Inference in First-Order Logic

Slides:



Advertisements
Similar presentations
Inference in First-Order Logic
Advertisements

Inference in First-Order Logic
Artificial Intelligence 8. The Resolution Method
Some Prolog Prolog is a logic programming language
Resolution Proof System for First Order Logic
First-Order Logic.
Inference Rules Universal Instantiation Existential Generalization
Inference in first-order logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
Artificial Intelligence Inference in first-order logic Fall 2008 professor: Luigi Ceccaroni.
We have seen that we can use Generalized Modus Ponens (GMP) combined with search to see if a fact is entailed from a Knowledge Base. Unfortunately, there.
For Friday No reading Homework: –Chapter 9, exercise 4 (This is VERY short – do it while you’re running your tests) Make sure you keep variables and constants.
Logical Inference 1 introduction Chapter 9 Some material adopted from notes by Andreas Geyer-Schulz,, Chuck Dyer, and Mary Getoor.
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 Resolution.
Propositional Logic Reading: C , C Logic: Outline Propositional Logic Inference in Propositional Logic First-order logic.
IES Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Proof methods Proof methods divide into (roughly) two kinds: –Application of inference rules Legitimate (sound) generation of new sentences from old Proof.
CS 561, Session Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
CS 460, Session Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9.
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
Inference and Resolution for Problem Solving
CS 561, Session Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution.
Inference in First-Order Logic
Knoweldge Representation & Reasoning
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Fall 2004.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2005.
Start with atomic sentences in the KB and apply Modus Ponens, adding new atomic sentences, until “done”.
CS 460, Session Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution.
Inference in First-Order Logic Inference Rules with Quantifiers The three new inference rules are as follows: Universal Elimination: For any sentence ,
Cooperating Intelligent Systems Inference in first-order logic Chapter 9, AIMA.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
INFERENCE IN FIRST-ORDER LOGIC IES 503 ARTIFICIAL INTELLIGENCE İPEK SÜĞÜT.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
Logical Inference 2 rule based reasoning
Inference in FOL Compared to predicate logic, more abstract reasoning and specific conclusions.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 13 of 41 Monday, 20 September.
9/30/98 Prof. Richard Fikes Inference In First Order Logic Computer Science Department Stanford University CS222 Fall 1998.
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University Monday, 25 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 14 of 42 Monday, 25 September.
1 Logical Inference Algorithms CS 171/271 (Chapter 7, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 15 of 41 Friday 24 September.
1 Inference in First Order Logic CS 171/271 (Chapter 9) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Inference in First Order Logic. Outline Reducing first order inference to propositional inference Unification Generalized Modus Ponens Forward and backward.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
Reasoning with Propositional Logic automated processing of a simple knowledge base CD.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 05 : Knowledge Base & First Order Logic.
Chương 3 Tri thức và lập luận. Nội dung chính chương 3 I.Logic – ngôn ngữ của tư duy II.Logic mệnh đề (cú pháp, ngữ nghĩa, sức mạnh biểu diễn, các thuật.
First-Order Logic Reading: C. 8 and C. 9 Pente specifications handed back at end of class.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
For Friday Finish chapter 9 Program 1 due. Program 1 Any questions?
EA C461 Artificial Intelligence
Logical Inference 2 Rule-based reasoning
Inference in First-Order Logic
Logical Inference 1 introduction
Logical Inference 2 Rule-based reasoning
Inference in first-order logic part 1
Artificial Intelligence
First Order Logic: Logical Inference
Artificial Intelligence
Inference in first-order logic part 1
Inference in FOL All PL inference rules hold in FOL, as well as the following additional ones: Universal elimination rule: x, A ===> Subst({x / g}, A).
RESOLUTION.
Quiz Nov Logic.
Presentation transcript:

Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming CS 561, Session 16-18

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 by another set of sentences can be proved from that set Resolution – inference procedure that is complete for any set of sentences Logic programming CS 561, Session 16-18

Remember: propositional logic CS 561, Session 16-18

Proofs CS 561, Session 16-18

Proofs Universal Elimination (UE): 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} CS 561, Session 16-18

Proofs Universal Elimination (UE): 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 infer x {g/x} x Likes(x, Candy) CS 561, Session 16-18

Example Proof CS 561, Session 16-18

Example Proof CS 561, Session 16-18

Example Proof CS 561, Session 16-18

Example Proof CS 561, Session 16-18

Search with primitive example rules CS 561, Session 16-18

Unification CS 561, Session 16-18

Unification CS 561, Session 16-18

Generalized Modus Ponens (GMP) CS 561, Session 16-18

Soundness of GMP CS 561, Session 16-18

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 guaranteed to 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) CS 561, Session 16-18

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) CS 561, Session 16-18

Forward chaining CS 561, Session 16-18

Forward chaining example CS 561, Session 16-18

Backward chaining CS 561, Session 16-18

Backward chaining example CS 561, Session 16-18

Completeness in FOL CS 561, Session 16-18

Historical note CS 561, Session 16-18

Resolution CS 561, Session 16-18

Resolution inference rule CS 561, Session 16-18

Remember: normal forms “product of sums of simple variables or negated simple variables” “sum of products of simple variables or negated simple variables” CS 561, Session 16-18

Conjunctive normal form CS 561, Session 16-18

Skolemization CS 561, Session 16-18

Resolution proof CS 561, Session 16-18

Resolution proof CS 561, Session 16-18