Resolution Theorem Proving in Predicate Calculus Lecture No 10 By Zahid Anwar.

Slides:



Advertisements
Similar presentations
Resolution Proof System for First Order Logic
Advertisements

Inference Rules Universal Instantiation Existential Generalization
1 A formula in predicate logic An atom is a formula. If F is a formula then (~F) is a formula. If F and G are Formulae then (F /\ G), (F \/ G), (F → G),
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Introduction to Theorem Proving
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 06 : First Order Logic Resolution Prove.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
First Order Logic Resolution
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.
Logic Use mathematical deduction to derive new knowledge.
Resolution
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 Resolution.
Logic Concepts Lecture Module 11.
First-Order Logic ECE457 Applied Artificial Intelligence Spring 2007 Lecture #7.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Propositional Calculus A propositional calculus formula is composed of atomic propositions, which area simply statements that are either true or false.
Prolog IV Logic, condensed. 2 Propositional logic Propositional logic consists of: The logical values true and false ( T and F ) Propositions: “Sentences,”
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
CSE (c) S. Tanimoto, 2008 Propositional Logic
1 FOL Resolution based Inferencing Resolution based rules studied earlier can lead to inferences, rules such as modus ponen, unit resolution etc… Other.
AI - Week 16 Logic and Reasoning in AI: Resolution Refutation Lee McCluskey, room 2/07
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution.
Inference and Resolution for Problem Solving
Chapter 3 Propositional Logic
Artificial Intelligence
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
Propositional logic It represents real-world facts as logical propositions in well formed formulas. It presented as an atomic propositions, and complex.
Automated Reasoning ARTIFICIAL INTELLIGENCE 6th edition George F Luger
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
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.
Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.
CSNB234 ARTIFICIAL INTELLIGENCE
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
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Tasks Task 41 Solve Exercise 12, Chapter 2.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
The AI War LISP and Prolog Basic Concepts of Logic Programming
Dr. Muhammed Al-Mulhem ICS An Introduction to Logical Programming.
KU NLP Resolution Theorem Proving Resolution Theorem Proving q Introduction - Resolution Principle q Producing the Clause Form q
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Automated Reasoning Early AI explored how to automate several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Reasoning using First-Order Logic
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.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
1-1 An Introduction to Logical Programming Sept
Lectures 1,2 Introduction to the course Logics. WHO AM I?
Knowledge Based Systems
Introduction to Logic for Artificial Intelligence Lecture 2
Propositional Logic Resolution
Propositional Approaches to First-Order Theorem Proving
Propositional Approaches to First-Order Theorem Proving
Logic Use mathematical deduction to derive new knowledge.
CS 416 Artificial Intelligence
Prolog IV Logic, condensed.
Resolution Theorem Proving
CSNB234 ARTIFICIAL INTELLIGENCE
RESOLUTION.
Resolution Proof System for First Order Logic
Presentation transcript:

Resolution Theorem Proving in Predicate Calculus Lecture No 10 By Zahid Anwar

Resolution  Resolution is a technique for proving theorems in predicate calculus  Resolution is a sound inference rule that, when used to produce a refutation, is also complete  In an important practical application resolution theorem proving particularly the resolution refutation system, has made the current generation of Prolog interpreters possible

Resolution Refutation  The resolution principle, describes a way of finding contradictions in a data base of clauses with minimum substitution  Resolution Refutation proves a theorem by negating the statement to be proved and adding the negated goal to the set of axioms that are known or have been assumed to be true  It then uses the resolution rule of inference to show that this leads to a contradiction

Resolution Refutation  Once the theorem prover shows that the negated goal is inconsistent with the given set of axioms, it follows that the original goal must be consistent.  This proves the theorem

Steps in Resolution Refutation Proofs 1.Put the premises or axioms into clause form 2.Add the negations of what is to be proved in clause form, to the set of axioms 3.Resolve these clauses together, producing new clauses that logically follow from them 4.Produce a contradiction by generating the empty clause 5.The substitutions used to produce the empty clause are those under which the opposite of the negated goal is true

Discussion about Steps  Resolution Refutation proofs require that the axioms and the negation of the goal be placed in a normal form called the clause form  Clausal form represents the logical database as a set of disjunctions of literals  Resolution is applied to two clauses when one contains a literal and the other its negation

Discussion about Steps  If these literals contain variables, they must be unified to make them equivalent  A new clause is then produced consisting of the disjunction of all the predicates in the two clauses minus the literal and its negative instance (which are said to have been “resolved away”)

An Example  We wish to prove that “Fido will die” from the statements that “Fido is a dog” and “all dogs are animals” and “all animals will die”

Equivalent Reasoning by Resolution  Convert these predicates to clause form Predicate FormClause Form x: [dog(x)  animal(x)] ¬ dog(x) V animal(x) Dog(fido) y:[animal(y)  die(y)] ¬ animal(y) V die(y)

Apply Resolution  Negate the conclusion that fido will die ¬die(fido) ¬dog(x) V animal(x) ¬animal(y) V die(y) [Y/X] dog(fido) ¬dog(y) V die(y) [fido/Y] die(fido) ¬die(fido) a Null clause  Hence fido will die

Another Example Anyone passing the Artificial Intelligence exam and winning the lottery is happy. But anyone who studies or is lucky can pass all their exams. Ali did not study be he is lucky. Anyone who is lucky wins the lottery. Is Ali happy?

Another Example Anyone passing the AI Exam and winning the lottery is happy X:[pass(x,AI) Λ win(x, lottery)  happy(x)] Anyone who studies or is lucky can pass all their exams X Y [studies(x) V lucky(x)  pass(x,y)] Ali did not study but he is lucky ¬ study(ali) Λ lucky(ali) Anyone who is lucky wins the lottery X: [lucky(x)  win(x,lottery)]

Change to clause Form 1.¬pass(X,AI) V ¬win(X,lottery) V happy(X) 2.¬study(Y) V pass(Y,Z) 3.¬lucky(W) V pass(W,V) 4.¬study(ali) 5.Lucky(ali) 6.¬lucky(u) V win(u,lottery) 7.Add negation of the conclusion ¬happy(ali)

¬pass(X,AI) V ¬win(X,lottery) V happy(X) win(u,lottery) V ¬lucky(u) u/v ¬pass(u,AI) V happy(u) V ¬lucky(u) ali/u ¬happy(ali) ¬pass(ali,AI) V ¬lucky(ali) lucky(ali) ¬ pass(ali,AI) Ali/v,AI/w ¬lucky(v) V pass(V,W) ¬lucky(ali)lucky(ali)