The Law of Resolution Formal Aspects of Computer Science - Week 7 The Law of Resolution Lee McCluskey, room 2/07

Slides:



Advertisements
Similar presentations
Artificial Intelligence 8. The Resolution Method
Advertisements

CS4026 Formal Models of Computation Part II The Logic Model Lecture 1 – Programming in Logic.
Resolution Proof System for First Order Logic
Biointelligence Lab School of Computer Sci. & Eng.
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.
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.
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.
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.
AI - Week 13 Knowledge Representation, Logic, Semantic Web Lee McCluskey, room 2/07
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
Formal Aspects of Computer Science - Week 5 Logic and Reasoning Lee McCluskey, room 2/07
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Resolution Refutation Formal Aspects of Computer Science - Week 10 An Automated Theorem Prover Lee McCluskey, room 2/07
The Semantic Web – WEEK 7: Logic, Reasoning and Proof The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse] You are here!
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.
AI - Week 15 Logic and Reasoning in AI Lee McCluskey, room 2/07
Resolution Refutation Formal Aspects of Computer Science - Week 9 Resolution Refutation, Relation with Prolog Lee McCluskey, room 2/07
Inference and Resolution for Problem Solving
Modelling Conceptual Knowledge using Logic - Week 6 Lee McCluskey Department of Computing and Mathematical Sciences University of Huddersfield.
Inference in First-Order Logic
Artificial Intelligence
Formal Aspects of Computer Science – Week 12 RECAP Lee McCluskey, room 2/07
The Semantic Web – WEEK 8: An automatic Proof technique.. The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse] You are here!
CIA2326 Week4: Predicate Logic : introduction Lee McCluskey, room 2/07
Resolution Refutation Formal Aspects of Computer Science - Week 8 The Law of Resolution and the Resolution Procedure Lee McCluskey, room 2/07
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.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
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.
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.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
The AI War LISP and Prolog Basic Concepts of Logic Programming
Dr. Muhammed Al-Mulhem ICS An Introduction to Logical Programming.
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
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.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 15 of 41 Friday 24 September.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 18 of 41 Friday, 01 October.
Reasoning using First-Order Logic
1 Section 9.1 Automatic Reasoning Recall that a wff W is valid iff ¬ W is unsatisfiable. Resolution is an inference rule used to prove unsatisfiability.
第 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.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
1-1 An Introduction to Logical Programming Sept
Converting arbitrary wffs to CNF A wff is in prenex form iff it consists of a string of quantifiers (called a prefix) followed by a quantifier free formula.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Introduction to Logic for Artificial Intelligence Lecture 2
Knowledge Representation and Reasoning
Propositional Logic Resolution
Horn Clauses and Unification
Horn Clauses and Unification
Horn Clauses and Unification
Horn Clauses and Unification
Horn Clauses and Unification
RESOLUTION.
Resolution in predicate Logic
Resolution Proof System for First Order Logic
Presentation transcript:

The Law of Resolution Formal Aspects of Computer Science - Week 7 The Law of Resolution Lee McCluskey, room 2/07

The Law of Resolution Recap and Motivation We want to be able to reason with logic using tools in order to prove properties about specifications / requirements / code, and enable reasoning in intelligent agents. Just study ONE law of inference to do this Resolution. This law is often embodied is a “proof procedure” called Resolution Refutation which is SOUND and COMPLETE.

The Law of Resolution SOME JARGON To carry out Resolution, we need to learn about: The Clausal form of wffs (a little bit like clauses in Prolog) The Process of Unification (very similar to Prolog matching) Resolution Form: Parent Clause1 Parent Clause2 Child Clause

The Law of Resolution SOME JARGON ABOUT CLAUSES A LITERAL is a predicate - called a positive literal, or predicate preceded by a “~”, called a negative literal. 3 Example literals: on(x,y), ~on(x,table), green(table). A CLAUSE is a disjunction of literals in which any variable is assumed to be universally quantified. Sometimes we think of a clause as a SET of literals implicitly “disjuncted”. Example: on(x,y) v ~on(x,table) v green(table) Or in set notation {on(x,y), ~on(x,table), green(table)} A set of wffs w1, w2,... wn is in CLAUSAL FORM if each wi (i=1 to n) is a clause

The Law of Resolution To change any Wff to Clausal Form: Those Eight Steps …….. 1. Replace any occurrences of using the law: A B = (A => B) & (A <= B) 2. Replace all occurrences of => and <= using the laws: A => B = ~A v B …and... A <= B = A v ~B 3. Reduce the scope of every “~” so that they all operate on predicates. To do this use you may need the laws: ~(Ax wff) = Ex (~wff) and ~(Ex wff) = Ax (~wff) etc 4. Standardise variables - make sure all quantified variables are different 5. Eliminate existential quantifiers - change into Skolem Constants [TRICKY STEP] 6. Universal quantifiers can now all be removed, making every variable implicitly universally quantified. 7. Use the laws to convert to conjunctions of disjunctive literals (A & B) V C = (AVC) & (B V C) 8. Making all the conjunctions implicit, we are left with a set of clauses.

The Law of Resolution Student Example from last week… S = student, D = academic, T = teaches Ax ( S(x)=>D(x) ) ; Ax ( (Ey (T(x,y) & D(y) ) => D(x) ) S(Fred) ; T(Jeff,Fred) CLAUSAL FORM: 1. ~S(x) V D(x) 2. ~T(x,y) V ~D(y) V D(x) 3. S(Fred) 4. T(Jeff,Fred)

The Law of Resolution Unification: the process of substitution The law of resolution depends on the idea of “unification”. This virtually the same as matching in Prolog. We first introduce the idea of substitution: A legal substitution is the consistent replacing of a variable symbol x by a term T on condition that T does not contain any occurrence of x. If W is a clause we may write: W[T/x] meaning perform the textual substitution T for x throughout W. IF we have a sequence of substitutions S, we write W/S meaning perform the following sequence of substitutions on W: S = { [T1/x1],..., [Tn/xn]}.

The Law of Resolution Unification - definition A set of literals unify if and only if a step by step application of a sequence (possibly null) of legal substitutions make them identical. Identical here means: - they all have the same predicate symbol; - they all have the same polarity; - they all have the same number of slots; - they all have identical terms in corresponding slots. Given a set of literals we can try to UNIFY them by applying substitutions systematically

The Law of Resolution The Law of (Binary) Resolution Two PARENT clauses w1 and w2 infer a CHILD clause wr if there are literals L in w1 and M in w2 such that {L,~M} unify under some substitution sequence S. Remembering that clauses are sets of literals, we can deduce wr = [ w1 U w2 minus { L, ~ M } ]/S. The law also assumes that each clause has unique variable letters. This does not restrict its generality because variables in separate clauses are independent.

The Law of Resolution Summary Resolution is a law of inference that is based on: - Wffs in CLAUSAL FORM - The process of UNIFICATION of literals It inputs TWO clauses and outputs a child clause.