RESOLUTION.

Slides:



Advertisements
Similar presentations
Artificial Intelligence 8. The Resolution Method
Advertisements

Some Prolog Prolog is a logic programming language
Resolution Proof System for First Order Logic
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.
Standard Logical Equivalences
Resolution.
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.
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.
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.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
Prolog IV Logic, condensed. 2 Propositional logic Propositional logic consists of: The logical values true and false ( T and F ) Propositions: “Sentences,”
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
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.
Inference and Resolution for Problem Solving
3 Logic Translate the following four English sentences to first order logic (FOL). [4p] 1. Anyone passing his history exams and winning the lottery is.
Inference in First-Order Logic
Artificial Intelligence
Propositional logic It represents real-world facts as logical propositions in well formed formulas. It presented as an atomic propositions, and complex.
Introduction to Logic for Artificial Intelligence Lecture 2 Erik Sandewall 2010.
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
For Wednesday Read chapter 10 Prolog Handout 4. Exam 1 Monday Take home due at the exam.
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.
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.
CSE S. Tanimoto Horn Clauses and Unification 1 Horn Clauses and Unification Propositional Logic Clauses Resolution Predicate Logic Horn Clauses.
1CS3754 Class Notes 14B, John Shieh, Figure 2.5: Further steps in the unification of (parents X (father X) (mother bill)) and (parents bill.
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,
Propositional Calculus – Methods of Proof Predicate Calculus Math Foundations of Computer Science.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
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.
Prolog Conversion to clause form Reference: Artificial Intelligence, by Elaine Rich and Kevin Knight.
Reasoning using First-Order Logic
Propositional Logic Predicate Logic
第 1 6 章 谓词演算中的归结. 2 Outline Unification Predicate-Calculus Resolution Completeness and Soundness Converting Arbitrary wffs to Clause Form Using Resolution.
Resolution Proofs  Requires axioms to be in clause form  To do harder proofs, we convert their axioms to clause form  Clause form is a disjunctions.
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.
Resolution Theorem Proving in Predicate Calculus Lecture No 10 By Zahid Anwar.
Lectures 1,2 Introduction to the course Logics. WHO AM I?
Introduction to Logic for Artificial Intelligence Lecture 2
Propositional Logic Resolution
Proposition & Predicates
Horn Clauses and Unification
Logic Use mathematical deduction to derive new knowledge.
Natural deduction Gerhard Gentzen.
Horn Clauses and Unification
Prolog IV Logic, condensed.
Horn Clauses and Unification
Resolution Theorem Proving
Horn Clauses and Unification
Reasoning with the Propositional Calculus
Reasoning with the Propositional Calculus
Horn Clauses and Unification
Reasoning with the Propositional Calculus
Reasoning with the Propositional Calculus
Encoding Knowledge with First Order Predicate Logic
Resolution Proof System for First Order Logic
Presentation transcript:

RESOLUTION

WHAT IS RESOLUTION ? Resolution is a technique for proving theorems in the propositional or predicate calculus. Resolution proves a theorem by negating the statement to be proved and adding this negated goal to the set of axioms

Resolution involve the following steps. Put the premises or axioms in to clause form. Add the negation of what is to be proved, in clause form, to the set of axioms. Resolve these clauses together, producing new clauses that logically follow from them. Produce a contradiction by generating the empty clause. The substitutions used to produce the empty clause

The form is referred to as conjunction of disjuncts. Resolution requires that the axioms and the negation of the goal be placed in a normal form called clause form Clause form represents the logical database as a set of disjunctions of literals. The form is referred to as conjunction of disjuncts. The following is an example of a fact represented in clause form (⌐dog(X) U animal(X)) ∩ (⌐animal(Y) U die(Y)) ∩ (dog(fido))

1. Producing the clause form 1. First we eliminate the → by using the equivalent form. For example a→b ≡ ⌐a U b. 2. Next we reduce the scope of negation. ⌐ (⌐a) ≡ a ⌐ (X) a(X) ≡ (X) ⌐a(X) ⌐ (X) b(X) ≡ (X) ⌐b(X) ⌐ (a ∩ b) ≡ ⌐a U ⌐b ⌐ (a U b) ≡ ⌐a ∩ ⌐b

4. Move all quantifiers to the left without changing their order. 3. Standardize by renaming all variables so that variables bound by different quantifiers have unique names. If we have a statement ((X) a(X) U X b(X) ) ≡ (X) a(X) U (Y) b(Y) 4. Move all quantifiers to the left without changing their order. 5. Eliminate all existential quantifiers by a process called skolemization. (X) (Y) (mother (X, Y)) is replaced by (X) mother (X, m(X)) (X) (Y) (Z) (W) (foo (X, Y, Z, W)) is replaced with (X) (Y) (W) (foo (X, Y, f(X, Y), W))

6. Drop all universal quantifiers. 7. Convert the expression to the conjunct of disjuncts form using the following equivalences. a U (b U c) ≡ (a U b) U c a ∩ (b ∩ c) ≡ (a ∩ b) ∩ c a ∩ (b U c) is already in clause form. a U (b ∩ c) ≡ (a U b) ∩ (a U c)

8. Call each conjunct a separate clause. For eg. (a U b) ∩ (a U c) Separate each conjunct as a U b and a U c 9. Standardize the variables apart again. (X) (a(X) ∩ b(X)) ≡ (X) a(X) ∩ (Y) b(Y)

Example Consider the following expression Convert this expression to clause form.

Step 1. Eliminate the →.

step 2: Reduce the scope of negation.

The resolution proof procedure Suppose we are given the following axioms. 1. b U c → a 2. b 3. d ∩ e → c 4. e U f 5. d ∩ ⌐f We want to prove “a‟ from these axioms.

First convert the above predicates to clause form. 1. b ∩ c → a ⌐ (b ∩ c) U a ⌐ b U ⌐ c U a a U ⌐b U ⌐c 2. d ∩ e → c c U ⌐d U ⌐e

We get the following clauses 1. b U c → a 2. b 3. d ∩ e → c 4. e U f 5. d ∩ ⌐f a U ⌐b U ⌐c b c U ⌐d U ⌐e e U f d ⌐f

The goal to be proved, a, is negated and added to the clause set. Now we have a U ⌐b U ⌐c b c U ⌐d U ⌐e e U f d ⌐f ⌐a

Example 2 Anyone passing history exams and winning the lottery is happy. But anyone who studies or is lucky can pass all his exams. John did not study but he is lucky. Anyone who is lucky wins the lottery. Is john happy?

1. The sentences to predicate form:

.. We get ⌐pass (X, history) U ⌐win (X, lottery) U happy (X) ⌐study (Y) U pass (Y, Z) ⌐lucky (V) U pass (V, W) ⌐study (john) lucky (john) ⌐lucky (U) U win (U, lottery)

Into these clauses is entered, in clause form, the negation of the conclusion. ⌐happy (john)