1 inference in first-order logic proofs unification generalized modus ponens forward and backward...
TRANSCRIPT
![Page 1: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/1.jpg)
1
Inference in First-Order Logic
• Proofs
• Unification• Generalized modus ponens• Forward and backward chaining
• Completeness
• Resolution
• Logic programming
![Page 2: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/2.jpg)
2
Inference in First-Order Logic
• Proofs – extend propositional logic inference to deal with quantifiers
• Unification• Generalized modus ponens• Forward and backward chaining – inference rules and reasoning
program• Completeness – Gödel’s theorem: for FOL, any sentence
entailed byanother set of sentences can be proved from that set
• Resolution – inference procedure that is complete for any set ofsentences
• Logic programming
![Page 3: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/3.jpg)
3
Remember:propositionallogic
![Page 4: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/4.jpg)
4
Proofs
![Page 5: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/5.jpg)
5
Proofs
The three new inference rules for FOL (compared to propositional logic) are:
• Universal Elimination (UE):for any sentence , variable x and ground term ,
x {x/}
• Existential Elimination (EE):for any sentence , variable x and constant symbol k not in KB,
x {x/k}
• Existential Introduction (EI):for any sentence , variable x not in and ground term g in ,
x {g/x}
![Page 6: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/6.jpg)
6
Proofs
The three new inference rules for FOL (compared to propositional logic) are:
• Universal Elimination (UE):for any sentence , variable x and ground term ,
x e.g., from x Likes(x, Candy) and {x/Joe} {x/} we can infer Likes(Joe, Candy)
• Existential Elimination (EE):for any sentence , variable x and constant symbol k not in KB,
x e.g., from x Kill(x, Victim) we can infer{x/k} Kill(Murderer, Victim), if Murderer new
symbol
• Existential Introduction (EI):for any sentence , variable x not in and ground term g in ,
e.g., from Likes(Joe, Candy) we can inferx {g/x} x Likes(x, Candy)
![Page 7: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/7.jpg)
7
Example Proof
![Page 8: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/8.jpg)
8
Example Proof
![Page 9: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/9.jpg)
9
Example Proof
![Page 10: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/10.jpg)
10
Example Proof
![Page 11: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/11.jpg)
11
Search with primitive example rules
![Page 12: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/12.jpg)
12
Unification
![Page 13: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/13.jpg)
13
Unification
![Page 14: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/14.jpg)
14
Generalized Modus Ponens (GMP)
![Page 15: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/15.jpg)
15
Soundness of GMP
![Page 16: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/16.jpg)
16
Properties of GMP
• Why is GMP and efficient inference rule?
- It takes bigger steps, combining several small inferences into one
- It takes sensible steps: uses eliminations that are guaranteedto help (rather than random UEs)
- It uses a precompilation step which converts the KB to canonical
form (Horn sentences)
Remember: sentence in Horn from is a conjunction of Horn clauses(clauses with at most one positive literal), e.g.,(A B) (B C D), that is (B A) ((C D) B)
![Page 17: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/17.jpg)
17
Horn form
• We convert sentences to Horn form as they are entered into the KB
• Using Existential Elimination and And Elimination
• e.g., x Owns(Nono, x) Missile(x) becomes
Owns(Nono, M)Missile(M)
(with M a new symbol that was not already in the KB)
![Page 18: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/18.jpg)
18
Forward chaining
![Page 19: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/19.jpg)
19
Forward chaining example
![Page 20: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/20.jpg)
20
Backward chaining
![Page 21: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/21.jpg)
21
Backward chaining example
![Page 22: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/22.jpg)
22
Completeness in FOL
![Page 23: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/23.jpg)
23
Historical note
![Page 24: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/24.jpg)
24
Resolution
![Page 25: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/25.jpg)
25
Resolution inference rule
![Page 26: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/26.jpg)
26
Remember: normal forms
“sum of products of simple variables ornegated simple variables”
“product of sums of simple variables ornegated simple variables”
![Page 27: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/27.jpg)
27
Conjunctive normal form
![Page 28: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/28.jpg)
28
Skolemization
![Page 29: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/29.jpg)
29
Resolution proof
![Page 30: 1 Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming](https://reader033.vdocuments.site/reader033/viewer/2022061305/55144ece550346284e8b501c/html5/thumbnails/30.jpg)
30
Resolution proof