Resolution Proof System for First Order Logic

Slides:



Advertisements
Similar presentations
Artificial Intelligence 8. The Resolution Method
Advertisements

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.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 06 : First Order Logic Resolution Prove.
Standard Logical Equivalences
Resolution.
Automated Reasoning Systems For first order Predicate Logic.
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.
Models and Propositional Logic In propositional logic, a model in general simply fixes the truth value – true or false – for every proposition symbol.
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
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 Resolution.
Predicate Calculus Russell and Norvig: Chapter 8,9.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Resolution Theorem Prover in First-Order Logic
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
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
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Inference in First-Order Logic
Chapter 3 Propositional Logic
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.
The Semantic Web – WEEK 8: An automatic Proof technique.. The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse] You are here!
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
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.
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.
First Order Predicate Logic
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
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,
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Resolution Strategies One common strategy for applying resolution is called level saturation. Here you try to resolve every pair of clauses from the original.
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.
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.
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 Preliminaries Computational LogicLecture 9 By Prof. Michael Genesereth, Computer Science, Stanford Univ Spring 2005 Modified by Charles Ling.
Resolution Theorem Proving in Predicate Calculus Lecture No 10 By Zahid Anwar.
Answer Extraction To use resolution to answer questions, for example a query of the form  X C(X), we must keep track of the substitutions made during.
1 Introduction to Artificial Intelligence LECTURE 9: Resolution in FOL Theorem Proving in First Order Logic Unification Resolution.
Introduction to Logic for Artificial Intelligence Lecture 2
Resolution in the Propositional Calculus
Propositional Logic Resolution
Propositional Resolution
Biointelligence Lab School of Computer Sci. & Eng.
RESOLUTION.
Resolution in predicate Logic
Resolution Proof System for First Order Logic
Resolution Preliminaries
Presentation transcript:

Resolution Proof System for First Order Logic Michael Kucera 0426131

Resolution for propositional logic Ground (propositional) resolution is a single sound inference rule that is applied to clauses. A clause is a disjunction of literals. Example, (p  ¬q  r) is a clause. Resolution: (α1 p), (α2 ¬p) (α1 α2) Example, (¬p  q), (¬q r) (¬p r)

Clausal form In order to use resolution for first order logic the formulas must be converted into clausal form. A clause is a disjunction of literals with no literal appearing twice, no existential quantifiers and all universal quantifiers are at the left. Ex, xyz( P(x,y) ¬Q(y) R(z,y) ) The empty clause, denoted by , is unsatisfiable. A unit clause contains just one literal. The universal quantifiers may be omitted.

Skolemization Process for removing existential quantifiers. Delete each existential quantifier, then replace the resulting free variables by terms referred to as Skolem functions. xy P(x,y) becomes y P(c, y) xy P(x,y) becomes x P(x, f(x)) Skolemization preserves satisfiability.

Conversion to clausal form Eliminate and Move ¬ inwards Rename variables if two quantifiers have the same bound variable name. Eliminate existential quantifiers using Skolem functions. Move all universal quantifiers to the left (prenex normal form). Transform the matrix into conjunctive normal form.

Conversion to clausal form This produces the form x1x2 ...xm ( C1  ... Cn ) Where C1 ... Cn are clauses. Each step preserves logical equivalence except Skolemization which only preserves satisfiability.

Unification A substitution, denoted by θ, is an assignment from variables to terms. Example: if θ is {x → g(y)} and E is P(x,w,f(x)) then Eθ is P(g(y),w,f(g(y))) Unification is the process of replacing the variables in expressions by terms to make the modified expressions identical to each other. Example: Let E1=P(x,a) , E2=P(y,a) , θ = {y→x} Then E1θ = E2θ = P(x,a) I the above example θ is the most general unifier (mgu)

Resolution for FOL (α1 L)θ, (α2 ¬L)θ (α1 α2)θ θ is the most general unifier for L. The result of resolution is called the resolvent. There may be more than one possible reslolvent. The resolvent of two complementary unit clauses is the empty clause.

Resolution for first order logic Resolution is refutationally complete (with factoring). Factoring is an additional rule that allows you to remove duplicate literals within a clause. Proving  ׀= A is equivalent to proving that   {¬A} is unsatisfiable. A is called the goal. In a resolution proof you negate the goal and add it to the set of hypotheses, then apply resolution until the empty clause is produced.

Example Hypothesies Clausal Form x (dog(x) animal(x)) dog(fido) y (animal(y)  die(y)) Conclusion die(fido) Clausal Form ¬dog(x)  animal(x) dog(fido) ¬animal(y)  die(y) Negate the goal ¬die(fido)

Example ¬dog(x)  animal(x) ¬animal(y)  die(y) {x → y} {x dog(fido) ¬dog(y)  die(y) {y → fido} ¬die(fido) die(fido) 

Automated theorem proving Resolution is used in automated theorem provers like Otter. Don't have to choose which rule of inference to use because there is only one. No axiom schemata to instantiate. Many refinements such as Hyper-resolution and Lock resolution. Search strategies remove redundancy of preforming all posible deduction sequences.