Presentation is loading. Please wait.

Presentation is loading. Please wait.

Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.

Similar presentations


Presentation on theme: "Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004."— Presentation transcript:

1 Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004

2 So Far Propositional Logic, entailment, deduction Resolution refutation(create more and more clauses until KB is saturated) Consequence finding, prime implicants/implicates

3 Today Language of FOL Models of FOL Deduction theorem for FOL Soundness, completeness, and incompleteness theorems

4 First-Order Theories Signature L: –Function symbols (f(x,y)) –Predicate (relation) symbols (P(x,A)) –Constant symbols (A,B,C,…) FOL language: quantification over objects

5 Well Founded Formulae Generate formulae from signature together with variables, connectives, quantifiers, and parentheses –Terms: variables, constants, f(a1,…) –Atomic formula: p(a1,a2,…) –Formula (negation, disjunction, existential) Not wffs…

6 Knowledge Representation in FOL Spatial relationships Temporal relationships Choice of concepts, objects, functions Elaboration tolerance

7 Model Theory Structure/Interpretation: –U = Universe of elements –I = Mapping of Constant symbols to elements in U Predicate symbols to relations over U Function symbols to functions over U M T - M satisfies T –T is a theory, i.e., a set of FOL sentences in language L for which M is an interpretation ╨

8 Logical Entailment ? ╨     ╨  L={man, woman, loves} M 1 = U 1 ={Sue,Kim,Pat} I 1 [man]={Pat} I 1 [woman]={Sue,Kim} I 1 [loves]={, } ? M1  ╨ ╨ 

9 Model Checking Given an interpretation, how do we decide if it satisfies a formula (i.e., gives it a truth value of TRUE)? What happens when the formula is not closed?

10 Proof and Theorems Axiom systems and rule systems –Propositional axioms: -A v A –Substitution axioms: A x [a]   xA –Identity axioms: x=x –Equality axioms: x1=y1  …  xn=yn  f(x1,…,xn)=f(y1,…,yn) x1=y1  …  xn=yn  p(x1,…,xn)  p(y1,…,yn) Rules:...

11 Proof and Theorems Axiom systems and rule systems –… Rules: –Expansion Rule: Infer BvA from A –Contraction Rule: Infer A from AvA –Associative Rule: Infer (AvB)vC from Av(BvC) –Cut Rule: Infer BvC from AvB and –AvC –  -introduction rule: If x not free in B, then infer  xA  B from A  B

12 Proofs and Theorems Nonlogical axioms: Axioms made for a certain theory Proofs – what are they? Completeness, Soundness (of an inference procedure) Incompleteness of FOL (as a language) for some intended models

13 Clausal Form Every FOL formula is consistency- equivalent to conjunction of F.O. clauses. First-order clause –Only universal quantifiers (which are implicit) –Disjunction of literals (atoms or their negation)

14 Conversion to Clausal Form 1.“  ” replaced by “  ”, ”  ” 2.Negations in front of atoms 3.Standardize variables (unique vars.) 4.Eliminate existentials (Skolemization) 5.Drop all universal quantifiers 6.Move disjunctions in (put into CNF) 7.Rename vars. (standardize vars. apart)

15 Take a Breath Until now: –First-order logic basics –How to convert a general FOL sentence to clausal form From now: Resolution theorem proving –Search in the space of proofs Later: Temporal reasoning

16 Next Time Reasoning procedure for FOL –Proving entailment using Resolution Application du jour: Temporal Reasoning Applications we will not touch –Spatial reasoning, formal verification, mathematics, planning, NLP, …


Download ppt "Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004."

Similar presentations


Ads by Google