CS 730/730W/830: Intro AI Propositional Logic First-Order Logic 1 - - PowerPoint PPT Presentation

cs 730 730w 830 intro ai
SMART_READER_LITE
LIVE PREVIEW

CS 730/730W/830: Intro AI Propositional Logic First-Order Logic 1 - - PowerPoint PPT Presentation

CS 730/730W/830: Intro AI Propositional Logic First-Order Logic 1 handout: slides Wheeler Ruml (UNH) Lecture 8, CS 730 1 / 15 Propositional Logic Logic The PSSH Semantics Reasoning Refutation CNF Break


slide-1
SLIDE 1

CS 730/730W/830: Intro AI

Propositional Logic First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 1 / 15

1 handout: slides

slide-2
SLIDE 2

Propositional Logic

Propositional Logic ■ Logic ■ The PSSH ■ Semantics ■ Reasoning ■ Refutation ■ CNF ■ Break First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 2 / 15

slide-3
SLIDE 3

Logic

Propositional Logic ■ Logic ■ The PSSH ■ Semantics ■ Reasoning ■ Refutation ■ CNF ■ Break First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 3 / 15

A logic is a formal system:

syntax: defines sentences

semantics: relation to world

inference rules: reaching new conclusions three layers: proof, models, reality soundness, completeness flexible, general, principled (Advice Taker, 1958)

slide-4
SLIDE 4

Empirical Philosophy = Science

Propositional Logic ■ Logic ■ The PSSH ■ Semantics ■ Reasoning ■ Refutation ■ CNF ■ Break First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 4 / 15

The Physical Symbol System Hypothesis: A physical symbol system has the necessary and sufficient means for general intelligent action. (Newell and Simon) where a Symbol is a designating pattern that can be combined with

  • thers to form another designating pattern

and Designation means standing in for something in the world

slide-5
SLIDE 5

Semantics

Propositional Logic ■ Logic ■ The PSSH ■ Semantics ■ Reasoning ■ Refutation ■ CNF ■ Break First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 5 / 15

Interpretation: possible world = state of affairs = truth value for each proposition Model: interpretation in which sentence is true Meaning: values across all models Entailment (| =): α true in all models of KB x y (x ∧ ¬y) z (x ∧ ¬y) → z T T F T T T T F F T T F T T T T F T F F F T F T T F T F F T F F F T T F F F F T

slide-6
SLIDE 6

Propositional Reasoning

Propositional Logic ■ Logic ■ The PSSH ■ Semantics ■ Reasoning ■ Refutation ■ CNF ■ Break First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 6 / 15

computing entailment soundness, completeness modus ponens, resolution α | = β iff α ← β is valid determining validity/tautology is co-NP-complete (easy to test proof of no) therefore, verification that α is not entailed is polytime α | = β iff α ∧ ¬β is unsatisfiable determining satisfiability is NP-complete (easy to test proof of yes)

slide-7
SLIDE 7

Resolution Refutation Proofs

Propositional Logic ■ Logic ■ The PSSH ■ Semantics ■ Reasoning ■ Refutation ■ CNF ■ Break First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 7 / 15

Given KB, is α entailed?

slide-8
SLIDE 8

Resolution Refutation Proofs

Propositional Logic ■ Logic ■ The PSSH ■ Semantics ■ Reasoning ■ Refutation ■ CNF ■ Break First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 7 / 15

Given KB, is α entailed? (Is it true in all models of the KB?)

slide-9
SLIDE 9

Resolution Refutation Proofs

Propositional Logic ■ Logic ■ The PSSH ■ Semantics ■ Reasoning ■ Refutation ■ CNF ■ Break First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 7 / 15

Given KB, is α entailed? (Is it true in all models of the KB?) Is KB ∧¬α satisfiable?

slide-10
SLIDE 10

Resolution Refutation Proofs

Propositional Logic ■ Logic ■ The PSSH ■ Semantics ■ Reasoning ■ Refutation ■ CNF ■ Break First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 7 / 15

Given KB, is α entailed? (Is it true in all models of the KB?) Is KB ∧¬α satisfiable? Resolution is refutation complete.

slide-11
SLIDE 11

Conversion to Conjunctive Normal Form

Propositional Logic ■ Logic ■ The PSSH ■ Semantics ■ Reasoning ■ Refutation ■ CNF ■ Break First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 8 / 15

1. eliminate ↔ 2. eliminate → 3. move ¬ inward: ¬¬x, ¬(x ∧ y), , ¬(x ∨ y) 4. distribute ∨: x ∨ (y ∧ z)

slide-12
SLIDE 12

Break

Propositional Logic ■ Logic ■ The PSSH ■ Semantics ■ Reasoning ■ Refutation ■ CNF ■ Break First-Order Logic

Wheeler Ruml (UNH) Lecture 8, CS 730 – 9 / 15

asst 2

  • ffice hours: Mon or Wed?
slide-13
SLIDE 13

First-Order Logic

Propositional Logic First-Order Logic ■ First-Order Logic ■ EOLQs

Wheeler Ruml (UNH) Lecture 8, CS 730 – 10 / 15

slide-14
SLIDE 14

First-Order Logic

Propositional Logic First-Order Logic ■ First-Order Logic ■ EOLQs

Wheeler Ruml (UNH) Lecture 8, CS 730 – 11 / 15

Gottlob Frege (1848-1925) PhD at 25 Begriffsschrift, 1879 (concept script) ”a formula language, modelled on that of arithmetic, of pure thought.”

slide-15
SLIDE 15

First-Order Logic

Propositional Logic First-Order Logic ■ First-Order Logic ■ EOLQs

Wheeler Ruml (UNH) Lecture 8, CS 730 – 12 / 15

∀person ItIsRaining() → IsWet(person) 1. Things:

constants: John, Chair23

functions (thing → thing): MotherOf(John), SumOf(1,2) 2. Relations:

predicates (objects → T/F): IsWet(John), IsSittingOn(MotherOf(John),Chair23) 3. Complex sentences:

connectives: IsWet(John) ∨ IsSittingOn(MotherOf(John),Chair23)

quantifiers and variables: ∀personIsWet(person)..., ∃person...

slide-16
SLIDE 16

First-Order Logic

Propositional Logic First-Order Logic ■ First-Order Logic ■ EOLQs

Wheeler Ruml (UNH) Lecture 8, CS 730 – 13 / 15

1. constants: objects 2. predicates: relations between objects 3. variables 4. quantifiers 5. functions 6. connectives

slide-17
SLIDE 17

More First-Order Logic

Propositional Logic First-Order Logic ■ First-Order Logic ■ EOLQs

Wheeler Ruml (UNH) Lecture 8, CS 730 – 14 / 15

∀person (ItIsRaining() ∧ ¬∃umbrella Holding(person, umbrella)) → IsWet(person) John loves Mary. All crows are black. Dolphin are mammals that live in the water. Mary likes the color of one of John’s ties.

slide-18
SLIDE 18

EOLQs

Propositional Logic First-Order Logic ■ First-Order Logic ■ EOLQs

Wheeler Ruml (UNH) Lecture 8, CS 730 – 15 / 15

Please write down the most pressing question you have about the course material covered so far and put it in the box on your way out. Thanks!