CS 730/830: Intro AI First-Order Inference Semantics FOL Odds and - - PowerPoint PPT Presentation

cs 730 830 intro ai
SMART_READER_LITE
LIVE PREVIEW

CS 730/830: Intro AI First-Order Inference Semantics FOL Odds and - - PowerPoint PPT Presentation

CS 730/830: Intro AI First-Order Inference Semantics FOL Odds and Ends Spock had a big, big effect on me. I am so much more Spock-like today than when I first played the part in 1965 that you wouldnt recognize me. Im not talking


slide-1
SLIDE 1

CS 730/830: Intro AI

First-Order Inference Semantics FOL Odds and Ends

Wheeler Ruml (UNH) Lecture 13, CS 730 – 1 / 16

“Spock had a big, big effect on me. I am so much more Spock-like today than when I first played the part in 1965 that you wouldn’t recognize me. I’m not talking about appearance, but thought processes. Doing that character, I learned so much about rational logical thought that it reshaped my life.” – Leonard Nimoy (1931–2015) 1 handout: slides

slide-2
SLIDE 2

First-Order Inference

First-Order Inference ■ Clausal Form ■ Example ■ Break Semantics FOL Odds and Ends

Wheeler Ruml (UNH) Lecture 13, CS 730 – 2 / 16

slide-3
SLIDE 3

Clausal Form

First-Order Inference ■ Clausal Form ■ Example ■ Break Semantics FOL Odds and Ends

Wheeler Ruml (UNH) Lecture 13, CS 730 – 3 / 16

1. Eliminate → using ¬ and ∨ 2. Push ¬ inward using de Morgan’s laws 3. Standardize variables apart 4. Eliminate ∃ using Skolem functions 5. Move ∀ to front 6. Move all ∧ outside any ∨ (CNF) 7. Can finally remove ∀ and ∧

slide-4
SLIDE 4

Example

First-Order Inference ■ Clausal Form ■ Example ■ Break Semantics FOL Odds and Ends

Wheeler Ruml (UNH) Lecture 13, CS 730 – 4 / 16

1. Anyone who can read is literate. 2. Dolphins are not literate. 3. Some dolphins are intelligent. 4. Prove: someone intelligent cannot read. Skolem, standardizing apart

slide-5
SLIDE 5

Break

First-Order Inference ■ Clausal Form ■ Example ■ Break Semantics FOL Odds and Ends

Wheeler Ruml (UNH) Lecture 13, CS 730 – 5 / 16

asst 6, 7

preliminary proposals due at next Tuesday’s class now is the time to talk wait to start project until I comment on your proposal

slide-6
SLIDE 6

Semantics

First-Order Inference Semantics ■ Semantics ■ Terminology ■ Refuatation ■ Another Example FOL Odds and Ends

Wheeler Ruml (UNH) Lecture 13, CS 730 – 6 / 16

slide-7
SLIDE 7

Semantics

First-Order Inference Semantics ■ Semantics ■ Terminology ■ Refuatation ■ Another Example FOL Odds and Ends

Wheeler Ruml (UNH) Lecture 13, CS 730 – 7 / 16

A possible world is: Propositional: a truth assignment for symbols. Exponential number of worlds. First-order: a set of objects and an interpretation for constants, functions, and predicates (fixing referent of every term). Unbounded number of worlds. No unique names assumption: constants not distinct. No closed world assumption: unknown facts not false. α valid iff true in every world α | = β iff β true in every model of α

slide-8
SLIDE 8

Terminology

First-Order Inference Semantics ■ Semantics ■ Terminology ■ Refuatation ■ Another Example FOL Odds and Ends

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

Formally, Interpretation: maps constant symbols to objects in the world, each function symbol to a particular function on objects, and each predicate symbol to a particular relation. Model of P: an interpretation in which P is true. Eg, Famous(LadyGaga) is true under the intended interpretation but not when the symbol LadyGaga maps to Joe Shmoe. Satisfiable: ∃ a model for P. Eg, P ∧ ¬P is not satisfiable. Entailment: if Q is true in every model of P, then P | = Q. Eg, P ∧ Q | = P. Valid: true in any interpretation. Eg, P ∨ ¬P.

slide-9
SLIDE 9

The Basis for Refutation

First-Order Inference Semantics ■ Semantics ■ Terminology ■ Refuatation ■ Another Example FOL Odds and Ends

Wheeler Ruml (UNH) Lecture 13, CS 730 – 9 / 16

Recall α | = β iff β true in every model of α. 1. Assume KB | = α. 2. So if a model i satisfies KB, then i satisfies α. 3. If i satisfies α, then doesn’t satisfy ¬α. 4. So no model satisfies KB and ¬α. 5. So KB ∧¬α is unsatisfiable. Another way: 1. Suppose no model that satisfies KB also satisfies ¬α. In

  • ther words, KB ∧¬α is unsatisfiable (= inconsistent =

contradictory). 2. In every model of KB, α must be true or false. 3. Since in any model of KB, ¬α is false, α must be true in all models of KB. Resolution is not complete: cannot derive P ∧ ¬P

slide-10
SLIDE 10

Another Example

First-Order Inference Semantics ■ Semantics ■ Terminology ■ Refuatation ■ Another Example FOL Odds and Ends

Wheeler Ruml (UNH) Lecture 13, CS 730 – 10 / 16

1. Anyone whom Mary loves is a football star. 2. Any student who does not pass does not play. 3. John is a student. 4. Any student who does not study does not pass. 5. Anyone who does not play is not a football star. 6. Prove: If John does not study, then Mary does not love John.

slide-11
SLIDE 11

FOL Odds and Ends

First-Order Inference Semantics FOL Odds and Ends ■ Completeness ■ Equality ■ Specific Answers ■ Res. Strategies ■ EOLQs

Wheeler Ruml (UNH) Lecture 13, CS 730 – 11 / 16

slide-12
SLIDE 12

Refutation Completeness

First-Order Inference Semantics FOL Odds and Ends ■ Completeness ■ Equality ■ Specific Answers ■ Res. Strategies ■ EOLQs

Wheeler Ruml (UNH) Lecture 13, CS 730 – 12 / 16

  • del’s Completeness Theorem (1930) says a complete set of

inference rules exists for FOL. Herbrand base: substitute all constants and combinations of constants and functions in place of variables. Potentially infinite! Herbrand’s Theorem (1930): If a set of clauses is unsatisfiable, then there exists a finite subset of the Herbrand base that is also unsatisfiable. Ground Resolution Theorem: If a set of ground clauses is unsatisfiable, then the resolution closure of those clauses contains ⊥. Robinson’s Lifting Lemma (1965): If there is a proof on ground clauses, there is a corresponding proof in the original clauses. FOL is semi-decidable: if entailed, will eventually know

slide-13
SLIDE 13

Equality

First-Order Inference Semantics FOL Odds and Ends ■ Completeness ■ Equality ■ Specific Answers ■ Res. Strategies ■ EOLQs

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

Equality: ∀xy (Holding(x) ∧ ¬(x = y) → ¬Holding(y)) Unique: ∃!xP(x) ≡ ∃x (P(x) ∧ ∀y(¬(x = y) → ¬P(y)))

slide-14
SLIDE 14

Specific Answers

First-Order Inference Semantics FOL Odds and Ends ■ Completeness ■ Equality ■ Specific Answers ■ Res. Strategies ■ EOLQs

Wheeler Ruml (UNH) Lecture 13, CS 730 – 14 / 16

Use the “answer literal”: 1. FatherOf(Alice, Bob) 2. FatherOf(Caroline, Bob) 3. FatherOf(x, y) → ParentOf(x, y) Query: Who is Caroline’s parent?

slide-15
SLIDE 15

Resolution Strategies

First-Order Inference Semantics FOL Odds and Ends ■ Completeness ■ Equality ■ Specific Answers ■ Res. Strategies ■ EOLQs

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

Breadth-first: all first-level resolvents, then second-level...

Complete, slow Set of Support: at least one parent comes from SoS

Complete if non-SoS are satisfiable, nice Input Resolution: at least one parent from the input set

Complete for Horn KBs Simplifications: remove tautologies, subsumbed clauses, and pure literals.

slide-16
SLIDE 16

EOLQs

First-Order Inference Semantics FOL Odds and Ends ■ Completeness ■ Equality ■ Specific Answers ■ Res. Strategies ■ EOLQs

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

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!