1 FOL Resolution based Inferencing Resolution based rules studied earlier can lead to inferences, rules such as modus ponen, unit resolution etc… Other.

Slides:



Advertisements
Similar presentations
Resolution Proof System for First Order Logic
Advertisements

Inference Rules Universal Instantiation Existential Generalization
ITCS 3153 Artificial Intelligence Lecture 15 First-Order Logic Chapter 9 Lecture 15 First-Order Logic Chapter 9.
Inference in first-order logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
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.
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 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.
Inference in FOL All rules of inference for propositional logic apply to first-order logic We just need to reduce FOL sentences to PL sentences by instantiating.
First-Order Logic Inference
1 FOL CS 331/531 Dr M M Awais Unification “It is an algorithm for determining the substitutions needed to make two predicate calculus expressions match”
CSCE 580 Artificial Intelligence Ch.9: Inference in First-Order Logic
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
Cooperating Intelligent Systems Inference in first-order logic Chapter 9, AIMA.
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 in first-order logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
Inference in First-Order Logic
1 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: FOL Inference (Reading R&N: Chapter 8)
Cooperating Intelligent Systems Inference in first-order logic Chapter 9, AIMA.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Fall 2004.
Artificial Intelligence
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”.
Inference in First-Order Logic Inference Rules with Quantifiers The three new inference rules are as follows: Universal Elimination: For any sentence ,
1 Inference in First-Order Logic. 2 Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward chaining.
Cooperating Intelligent Systems Inference in first-order logic Chapter 9, AIMA.
CHAPTER 9 Oliver Schulte Inference in First-Order Logic.
INFERENCE IN FIRST-ORDER LOGIC IES 503 ARTIFICIAL INTELLIGENCE İPEK SÜĞÜT.
Inference in First-Order Logic CS 271: Fall 2007 Instructor: Padhraic Smyth.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 26, 2012.
1 CS 2710, ISSP 2160 Chapter 9 Inference in First-Order Logic.
Inference in first-order logic I CIS 391 – Introduction to Artificial Intelligence AIMA Chapter (through p. 278) Chapter 9.5 (through p. 300)
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
1 Inference in first-order logic Chapter 9. 2 Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
Inference in first-order logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Inference in first- order logic. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward chaining.
Computing & Information Sciences Kansas State University Friday, 29 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 16 of 42 Friday, 29 September.
Inference in First-Order Logic 부산대학교 전자전기컴퓨터공학과 인공지능연구실 김민호
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
1 Inference in First-Order Logic CS 271: Fall 2009.
5/18/2005EE562 EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 13, 5/18/2005 University of Washington, Department of Electrical Engineering Spring.
An Introduction to Artificial Intelligence – CE Chapter 9 - Inference in first-order logic Ramin Halavati In which we define.
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.
1/19 Inference in first-order logic Chapter 9- Part2 Modified by Vali Derhami.
For Wednesday Finish reading chapter 10 – can skip chapter 8 No written homework.
Inference in first-order logic
Inference in First-Order Logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
1 Chaining 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.
Inference in first-order logic
Inference in First-Order Logic
Chapter 9 Inference in First-Order Logic
Knowledge Representation & Reasoning
Introduction to Artificial Intelligence
Inference in First-Order Logic
Inference in first-order logic part 1
Example of Knowledge Base
Artificial intelli-gence 1:Inference in first-order logic
Artificial Intelligence
Introduction to Artificial Intelligence
Artificial intelligence: Inference in first-order logic
Artificial Intelligence Inference in First Order Logic
Inference in first-order logic
Inference in first-order logic part 1
RESOLUTION.
First-Order Logic Inference
First-Order Logic Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

1 FOL Resolution based Inferencing Resolution based rules studied earlier can lead to inferences, rules such as modus ponen, unit resolution etc… Other Approach include resolution through REFUTATTION Forward Chaining Backward Chaining Used in Automated Reasoning and PROLOG interpretators

2 FOL Procedure for Refutation Proofs 1. Convert Predicate form to clause form 2. Add the negation of what is to be inferred or proved in the clause form 3. Resolve the clauses together 4. If a contradiction exists in the clause form, steps will generate an empty clause 5. Note all the substitutions used to generate the contradiction

3 FOL 1. Clause form English: All men are mortal, everyone who is mortal dies, Shahid is a man. Will shahid die? Predicate form: All men are mortal  X man(X)  mortal (X) Everyone who is mortal dies  X mortal(X)  die (X) Shahid is a man man(shahid) Clause form:  man(X)  mortal (X)  mortal(X)  die (X) man(shahid)

4 FOL 2. Negate Conclusion To be concluded: die(shahid) Add:  die (shahid)

5 FOL Final Clause form All men are mortal, everyone who is mortal dies, Shahid is a man. Will shahid die? Complete Clause form: (  man(X)  mortal (X)) ^ (  mortal(X)  die (X)) ^ man(shahid)

6 FOL Resolve All men are mortal, everyone who is mortal dies, Shahid is a man. Will shahid die? (  man(X)  mortal (X)) (  mortal(X)  die (X)) die(shahid)  die(shahid) []  man(X)  die (X) man(shahid) {shahid/X} Under substitution shahid/X die(shahid) follows from the clause form

7 FOL Resolution: brief summary Full first-order version: l 1  ···  l k, m 1  ···  m n ( l 1  ···  l i-1  l i+1  ···  l k  m 1  ···  m j-1  m j+1  ···  m n )  where Unify ( l i,  m j ) = . The two clauses are assumed to be standardized apart so that they share no variables. For example,  healthy(X)  unhappy(X) rich(imran) unhappy(imran) with  = {imran/X} Apply resolution steps to CNF(KB   ); complete for FOL

8 FOL Conversion to CNF Everyone who loves all animals is loved by someone:  X [  Y animal(Y)  loves(X,Y)]  [  Y loves(Y,X)] Eliminate biconditionals and implications  X [  Y  animal(Y)  loves(X,Y)]  [  Y loves(Y,X)] Move  inwards:  X p   X  p,   X p   X  p  X [  Y  (  animal(Y)  loves(X,Y))]  [  Y loves(Y,X)]  X [  Y  animal(Y)   loves(X,Y)]  [  Y loves(Y,X)]  X [  Y animal(Y)   loves(X,Y)]  [  Y loves(Y,X)]

9 FOL Conversion to CNF contd.  Standardize variables: each quantifier should use a different one:  X [  Y animal(Y)   loves(X,Y)]  [  Z loves(Z,X)]  Skolemize: a more general form of existential instantiation.Each existential variable is replaced by a Skolem function of the enclosing universally quantified variables:  X [animal(f(X))   loves(X,f(X))]  loves(g(X),X)  Drop universal quantifiers: [animal(f(X))   loves(X,f(X))]  loves(g(X),X)  Distribute  over  : [animal(f(X))  loves(g(X),X)]  [  loves(X,f(X))  loves(g(X),X)]

10 FOL Hostile Nation Example american(X)  weapon(Y)  sells(X,Y,Z)  hostile(Z)  criminal(X)  (american(X)  weapon(Y)  sells(X,Y,Z)  hostile(Z)) v criminal(X)  (american(X) v  weapon(Y) v  sells(X,Y,Z) v  hostile(z)) v criminal(X)  X owns(nono,X)  missile(X)  owns(nono,X) v  missile(X) missile(X)  owns(nono,X)  sells(west,X,nono)  missile(X) v  owns(nono,X) v sells(west,X,nono) missile(X)  weapon(X)  missile(X) v weapon(X) enemy(X,america)  hostile(X)  enemy(X,america) v hostile(X) owns(nono,m 1 ) missile(m 1 ) american(west) enemy(nono,america) Add the negation of the goal to the database  criminal(X)

11 FOL Resolution proof: definite clauses Be careful about the conventions

12 FOL Resolution proof: definite clauses Be careful about the conventions

13 FOL Resolution proof: definite clauses Be careful about the conventions

14 FOL Resolution proof: definite clauses Be careful about the conventions

15 FOL Resolution proof: definite clauses Be careful about the conventions

16 FOL Resolution proof: definite clauses Be careful about the conventions

17 FOL Resolution proof: definite clauses Be careful about the conventions

18 FOL Resolution proof: definite clauses Be careful about the conventions

19 FOL Resolution proof: definite clauses Be careful about the conventions

20 FOL Resolution proof: definite clauses Be careful about the conventions

21 FOL Resolution proof: definite clauses Be careful about the conventions

22 FOL Resolution proof: definite clauses Be careful about the conventions

23 FOL Resolution proof: definite clauses Be careful about the conventions

24 FOL Resolution proof: definite clauses Be careful about the conventions

25 FOL Resolution proof: definite clauses  Be careful about the conventions