Predicate Calculus Russell and Norvig: Chapter 8,9.

Slides:



Advertisements
Similar presentations
First-Order Logic Chapter 8.
Advertisements

Inference in First-Order Logic
Artificial Intelligence 8. The Resolution Method
Resolution Proof System for First Order Logic
First-Order Logic.
Biointelligence Lab School of Computer Sci. & Eng.
Inference Rules Universal Instantiation Existential Generalization
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Standard Logical Equivalences
First-Order Logic (FOL) aka. predicate calculus. First-Order Logic (FOL) Syntax User defines these primitives: – Constant symbols (i.e., the "individuals"
Resolution.
Inference in first-order logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
First Order Logic Resolution
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.
Resolution in Propositional and First-Order Logic.
RESOLUTION: A COMPLETE INFERENCE PROCEDURE. I Then we certainly want to be able to conclude S(A); S(A) is true if S(A) or R(A) is true, and one of those.
Resolution Theorem Prover in First-Order Logic
PAI Recitation 3 – Logic Yuxin Chen Inference Truth tables Modus ponens Resolution …
1 Resolution in First Order Logic CS 171/271 (Chapter 9, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
Inference and Resolution for Problem Solving
Inference in First-Order Logic
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Fall 2004.
Predicate Calculus.
03 -1 Lecture 03 First-Order Predicate Logic Topics –Syntax –Formal Semantics –Denotational Semantics –Formal Inference –Resolution.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2005.
INFERENCE IN FIRST-ORDER LOGIC IES 503 ARTIFICIAL INTELLIGENCE İPEK SÜĞÜT.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
For Wednesday Read chapter 10 Prolog Handout 4. Exam 1 Monday Take home due at the exam.
UIUC CS 497: Section EA Lecture #3 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
1 Chapter 8 Inference and Resolution for Problem Solving.
Logical Agents Logic Propositional Logic Summary
First Order Predicate Logic
CSE S. Tanimoto Horn Clauses and Unification 1 Horn Clauses and Unification Propositional Logic Clauses Resolution Predicate Logic Horn Clauses.
Computing & Information Sciences Kansas State University Wednesday, 20 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 12 of 42 Wednesday, 20 September.
Unification Algorithm Input: a finite set Σ of simple expressions Output: a mgu for Σ (if Σ is unifiable) 1. Set k = 0 and  0 = . 2. If Σ  k is a singleton,
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 11 of 41 Wednesday, 15.
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 12 Friday, 17 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.
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.
C. Varela1 Logic Programming (PLP 11) Predicate Calculus, Horn Clauses, Clocksin-Mellish Procedure Carlos Varela Rennselaer Polytechnic Institute November.
1 First Order Logic CS 171/271 (Chapters 8 and 9) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Reasoning using First-Order Logic
Propositional Logic Predicate Logic
Propositional & Predicate Calculus _I
第 1 6 章 谓词演算中的归结. 2 Outline Unification Predicate-Calculus Resolution Completeness and Soundness Converting Arbitrary wffs to Clause Form Using Resolution.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
For Wednesday Finish reading chapter 10 – can skip chapter 8 No written homework.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
First-Order Logic Reading: C. 8 and C. 9 Pente specifications handed back at end of class.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
1 Introduction to Artificial Intelligence LECTURE 9: Resolution in FOL Theorem Proving in First Order Logic Unification Resolution.
Inference in First-Order Logic
The Hebrew University of Jerusalem
Notes 8: Predicate logic and inference
Horn Clauses and Unification
First Order Logic: Logical Inference
Horn Clauses and Unification
Horn Clauses and Unification
Horn Clauses and Unification
Horn Clauses and Unification
Presentation transcript:

Predicate Calculus Russell and Norvig: Chapter 8,9

Propositional Logic vs. Predicate Calculus Propositional Logic The world consists of propositions (sentences) which can be true or false. Predicate Calculus (First Order Logic) The world consists of objects, functions and relations between the objects.

Syntax Term: constant|variable|function(term, …, term)  War-and-Peace  author-of(War-and-Peace)  father-of(author-of(War-and-Peace)) Atomic Sentence predicate(term, …, term) Complex Sentence

Universal Quantifier Brothers are siblings Mother: a female parent of a plant or animal

Existential Quantifier A red object is on top of a green one An author is a person who writes documents A grandparent is the parent of one’s parent

Properties of Quantifiers

Examples All purple mushrooms are poisonous No purple mushroom is poisonous Every CS student knows a programming language. A programming language is known by every CS student

Properties of Quantifiers

Resolution Refutation in Predicate Calculus Add ¬σ to KB Conversion to CNF Apply Resolution Procedure Derive {}: σ is proved No more possible application of resolution rules: σ is not a consequence of KB

Resolution Rule in FOL Example: father(John, Kim),  x ¬father(x,y) V parent(x, y) parent(John, Kim)? Resolution with propositional logic: Find complementary literals Resolution with FOL Create complementary literals with substitution

Substitution Given sentence S and substitution σ, Sσ denotes result of plugging σ into S Example,  S = father(x, y)  σ = {x/John, y/Kim}  Subst(S, σ) = father(John, Kim) Also written as Sσ = father(John, Kim)

Skolemizing To convert arbitrary FOL formula to CNF, one needs to eliminate . Solution: just “name” it, using a new name different from any existing name …. to avoid conflict. Example  x rich(x) becomes rich(g 7 ) g 7 is called a Skolem constant.

Skolemization Theorem

Conversion to CNF

Applying Substitution

Composition of Substitutions

Unification To apply the resolution rule, we need to find a pair of complementary literals. Unification is a method for making two literals identical. If two literals can be made identical, they are unifiable.

Most General Unifier

Question MGU for f(W, g(Z), Z ) f(X, Y, h(X))

Notes on MGU If two terms are unifiable, then there exists a MGU There can be more than one MGU, but they differ only in variable names Not every unifier is MGU A MGU uses constants only as necessary

Inference Examples rich(me)?

Example #2 Jack owns a dog Every dog owner is an animal lover. No animal lover kills an animal. Either Jack or Curiosity killed the cat (named Tuna) Did Curiosity kill the cat?

Properties of Resolution Sound Refutation Complete If KB |= alpha, refutation will prove it Otherwise, refutation procedure may not terminate. Intractable Exponential in the size of KB for Propositional Logic

Summary Quantifiers Resolution Substitution Skolemization Unification  MGU