1 Applied Computer Science II Resolution in FOL Luc De Raedt.

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.
Simply Logical – Chapter 2© Peter Flach, 2000 Clausal logic Propositional clausal logic Propositional clausal logic expressions that can be true or false.
Resolution Proof System for First Order Logic
First-Order Logic.
Biointelligence Lab School of Computer Sci. & Eng.
Inference Rules Universal Instantiation Existential Generalization
SLD-resolution Introduction Most general unifiers SLD-resolution
10 October 2006 Foundations of Logic and Constraint Programming 1 Unification ­An overview Need for Unification Ranked alfabeths and terms. Substitutions.
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),
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 06 : First Order Logic Resolution Prove.
Standard Logical Equivalences
First-Order Logic (FOL) aka. predicate calculus. First-Order Logic (FOL) Syntax User defines these primitives: – Constant symbols (i.e., the "individuals"
Resolution.
Artificial Intelligence University Politehnica of Bucharest Adina Magda Florea
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Automated Reasoning Systems For first order Predicate Logic.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
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.
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.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
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
Knoweldge Representation & Reasoning
Chapter 3 Propositional Logic
Artificial Intelligence
Formal Aspects of Computer Science – Week 12 RECAP Lee McCluskey, room 2/07
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
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.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
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.
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.
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,
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.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Procedural Semantics Soundness of SLD-Resolution.
Automated Reasoning Systems For first order Predicate Logic.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 18 of 41 Friday, 01 October.
Automated reasoning with propositional and predicate logics Spring 2007, Juris Vīksna.
Reasoning using First-Order Logic
第 1 6 章 谓词演算中的归结. 2 Outline Unification Predicate-Calculus Resolution Completeness and Soundness Converting Arbitrary wffs to Clause Form Using Resolution.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
Backward chaining Assume the same representation of rules as in forward chaining, i.e. If is true, is true, … is true Then is true. Rule interpretation.
Lecture 9a: Resolution Strategies Heshaam Faili University of Tehran Restriction strategies for resolution Horn clauses.
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.
Completeness of the SLD-Resolution
Resolution in the Propositional Calculus
Propositional Logic Resolution
Biointelligence Lab School of Computer Sci. & Eng.
Soundness of SLD-Resolution
CS 416 Artificial Intelligence
Horn Clauses and Unification
Biointelligence Lab School of Computer Sci. & Eng.
Horn Clauses and Unification
RESOLUTION.
Resolution in predicate Logic
Resolution Proof System for First Order Logic
Resolution Preliminaries
Presentation transcript:

1 Applied Computer Science II Resolution in FOL Luc De Raedt

2 Clausal Form Clauses are universally quantified disjunctions of literals; all variables in a clause are universally quantified

3 Towards Resolution Examples: We need to be able to work with variables ! Unification of two expressions/literals

4 Terms and instances Consider following atoms Ground expressions do not contain any variables

5 Substitution

6 Composing substitutions Composing substitutions s 1 and s 2 gives s 1 s 2 which is that substitution obtained by first applying s 2 to the terms in s 1 and adding remaining term/vars pairs to s 1 Apply to

7 Properties of substitutions

8 Unification Unifying a set of expressions {w i } –Find substitution s such that –Example The most general unifier, the mgu, g of {w i } has the property that if s is any unifier of {w i } then there exists a substitution s’ such that {w i }s={w i }gs’ The common instance produced is unique up to alphabetic variants (variable renaming)

9 Disagreement set The disagreement set of a set of expressions {w i } is the set of subterms { t i } of {w i } at the first position in {w i } for which the {w i } disagree

10 Unification algorithm

11 Predicate calculus Resolution John Allan Robinson (1965)

12 Example

13 A stronger version of resolution Use more than one literal per clause

14 Factors

15 Resolution

16 Resolution Properties –Resolution is sound If there is a resolution derivation of a clause C from a database KB of clauses, then KB |=c –Incomplete –But fortunately it is refutation complete If KB is unsatisfiable then KB |- 

17 Refutation To decide whether a formula KB |= w do Convert KB to clausal form KB’ Convert  w to clausal form  w’ Combine  w’ and KB’ to give  Iteratively apply resolution to  and add the results back to  until either no more resolvents can be added, or until the empty clause is produced.

18

19 Answer extraction Suppose we wish to prove whether KB |= (  w)f(w) We are probably interested in knowing the w for which f(w) holds. Add Ans(w) literal to each clause coming from the negation of the theorem to be proven; stop resolution process when there is a clause containing only Ans literal

20

21

22

23 Using resolution to prove theorems

24 Resolution Search Strategies Ordering strategies –In what order to perform resolution ? –Breadth-first, depth-first, iterative deepening ? –Unit-preference strategy : Prefer those resolution steps in which at least one clause is a unit clause (containing a single literal) Refinement strategies –Input : at least one of the clauses being resolved is a member of the original set of clauses (complete for horn clauses, incomplete in general)

25 Refinement strategies (ctd.) –Linear : at least one of the parents is a member of the original set of clauses or is an ancestor of the other parent Refutation complete –Ancestor : c2 is a descendant of c1 iff c2 is a resolvent of c1 (and another clause) or if c2 is a resolvent of a descendant of c1 (and another clause); c1 is an ancestor of c2 –Set of support : the set of clauses coming from the negation of the theorem (to be proven) and their descendants –Set of support strategy : require that at least one of the clauses in each resolution step belongs to the set of support

26 j

27 Herbrand base and interpretations

28

29 Conclusions Logic –A sound basis for reasoning, modeling and computer science –Syntax and Semantics –Propositional and First Order –Soundness and Completeness –Resolution