110 likes | 254 Views
Chapter 5. Knowledge Representation & Reasoning (Part 2) Propositional Logic. Knowledge Representation & Reasoning . Propositional Logic: Inference rules An inference rule is sound if the conclusion is true in all cases where the premises are true. Premise _____ Conclusion.
E N D
Chapter 5 Knowledge Representation & Reasoning (Part 2)Propositional Logic
Knowledge Representation & Reasoning Propositional Logic: Inference rules An inference rule is sound if the conclusion is true in all cases where the premises are true. Premise _____ Conclusion
Knowledge Representation & Reasoning Propositional Logic: An inference rule: Modus Ponens • From an implication and the premise of the implication, you can infer the conclusion. Premise ___________ Conclusion Example: “raining implies soggy courts”, “raining” Infer: “soggy courts”
Knowledge Representation & Reasoning Propositional Logic: An inference rule:Modus Tollens • From an implication and the premise of the implication, you can infer the conclusion. ¬ Premise ___________ ¬ Conclusion Example: “raining implies soggy courts”, “courts not soggy” Infer: “not raining”
Knowledge Representation & Reasoning Propositional Logic: Equivalence rules • Two sentences are logically equivalent iff they are true in the same models: α ≡ ß iff α╞ β and β╞ α.
Knowledge Representation & Reasoning Resolution Unit Resolution inference rule: l1 … lk, m l1 … li-1li+1 … lk where liand m are complementary literals.
Knowledge Representation & Reasoning Resolution Full resolution inference rule: l1… lk, m1 … mn l1… li-1li+1…lkm1…mj-1mj+1...mn where liand m are complementary literals.
Knowledge Representation & Reasoning Resolution For simplicity let’s consider clauses of length two: l1l2, ¬l2l3 l1l3 To derive the soundness of resolutionconsider the values l2cantake: • If l2isTrue, thensincewe know that ¬l2l3holds, it must be the case thatl3 isTrue. • If l2isFalse, thensincewe know thatl1l2holds, it must be the case thatl1isTrue.
Knowledge Representation & Reasoning Resolution 1. Properties of the resolution rule: • Sound • Complete (yields to a complete inference algorithm). 2. The resolution rule forms the basis for a family of complete inference algorithms. 3. Resolution rule is used to either confirm or refute a sentence but it cannot be used to enumerate true sentences.
Knowledge Representation & Reasoning Resolution 4. Resolution can be applied only to disjunctions of literals. How can it lead to a complete inference procedure for all propositional logic? 5. Turns out any knowledge base can be expressed as a conjunction of disjunctions (conjunctive normal form, CNF). E.g., (A ¬B) (B ¬C ¬D)
Knowledge Representation & Reasoning Resolution: Inference procedure 6. Inference procedures based on resolution work by using the principle of proof by contradiction: To show that KB ╞ αwe show that (KB ¬α) isunsatisfiable The process: 1. convertKB ¬α to CNF 2. resolutionruleisapplied to the resulting clauses.