CS236501 Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.

Slides:



Advertisements
Similar presentations
Artificial Intelligence 8. The Resolution Method
Advertisements

Resolution Proof System for First Order Logic
Inference Rules Universal Instantiation Existential Generalization
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Standard Logical Equivalences
Resolution.
Inference in first-order logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
Automated Reasoning Systems For first order Predicate Logic.
Disjunctive Normal Form CS 680: Formal Methods Jeremy Johnson.
Artificial Intelligence
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.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
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.
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
Resolution Theorem Proving
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
Predicate Calculus Russell and Norvig: Chapter 8,9.
RESOLUTION: A COMPLETE INFERENCE PROCEDURE. I Then we certainly want to be able to conclude S(A); S(A) is true if S(A) or R(A) is true, and one of those.
1 Resolution in First Order Logic CS 171/271 (Chapter 9, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Prolog IV Logic, condensed. 2 Propositional logic Propositional logic consists of: The logical values true and false ( T and F ) Propositions: “Sentences,”
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
1 FOL Resolution based Inferencing Resolution based rules studied earlier can lead to inferences, rules such as modus ponen, unit resolution etc… Other.
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
Methods of Proof Chapter 7, second half.
Knoweldge Representation & Reasoning
Inference in First-Order Logic
Start with atomic sentences in the KB and apply Modus Ponens, adding new atomic sentences, until “done”.
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
For Wednesday Read chapter 10 Prolog Handout 4. Exam 1 Monday Take home due at the exam.
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.
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.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Reasoning using First-Order Logic
Propositional Logic Predicate Logic
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
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.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Introduction to Logic for Artificial Intelligence Lecture 2
Propositional Logic Resolution
Horn Clauses and Unification
Elementary Metamathematics
Logic Use mathematical deduction to derive new knowledge.
Horn Clauses and Unification
Horn Clauses and Unification
Horn Clauses and Unification
CSNB234 ARTIFICIAL INTELLIGENCE
Horn Clauses and Unification
Methods of Proof Chapter 7, second half.
RESOLUTION.
Resolution Proof System for First Order Logic
Presentation transcript:

CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution

Problem Definition Input 1.Database containing formally represented facts: First-order logic sentences converted into clause form. 2.Inference rule: Resolution principle (MP & MT) Goal: An inference procedure Requirements: 1.Soundness – every sentence produced by the procedure will be “true”. 2.Completeness – every “true” sentence can be produced by the procedure 16-Nov-15Intro. to AI – Tutorial 82

Definitions Terms: –Constants (e.g. “c 1 ”, “c 2 ”) –Variables (e.g. “x 1 ”, “x 2 ”) –Functions (e.g. “f(x 1, x 2 )”) Predicate – Indicator function on terminals. –e.g. EVEN(t) : Numbers  {TRUE, FALSE} Atom – the application of a predicate on a literal. –e.g. EVEN(t) Literal – A predicate or its negation –e.g. EVEN(t), ¬EVEN(t) 16-Nov-15Intro. to AI – Tutorial 83

Definitions Formulae - Recursively defined: –Every Atom is a formula –If w 1, w 2 are formulae, then so are: Clause – Disjunction (or) of literals. –e.g. L 1 V L 2 V ¬L 3 (can be written as: {L 1, L 2,¬L 3 }) 16-Nov-15Intro. to AI – Tutorial 84

The Resolution Principle Given: –A clause Φ containing the literal: φ –A clause Ψ containing the literal: ¬φ We can conclude: –(Φ – {φ}) U (Ψ – {¬φ}) Or in the generalized version… 16-Nov-15Intro. to AI – Tutorial 85

The Resolution Principle Given: –A clause Φ containing the literal: φ –A clause Ψ containing the literal: ¬ψ –A most general unifier g of φ and ¬ψ We can conclude: –((Φ – {φ}) U (Ψ – {¬ψ})) | g 16-Nov-15Intro. to AI – Tutorial 86

The Resolution Procedure Let DB be a set of true sentences without contradictions, and C be a sentence we want to prove. The Idea - proof by negation: Assume ¬C and try to find a contradiction. Intuition If all DB sentences are true, and assuming ¬C creates a contradiction then C must be inferred from DB. 16-Nov-15Intro. to AI – Tutorial 87

The Resolution Procedure 1.Convert: DB U {¬C} to clause form. 2.If there is a contradiction in DB, C was proved. Terminate. 3.Select two clauses and add their resolvents to the current DB. If there are no resolvable clauses – the procedure fails, terminate. Else, go to step Nov-15Intro. to AI – Tutorial 88

Conversion to Clause Form 1.Eliminate all  : –Replace A  B with ¬A V B 2.Distribute negations: –Replace ¬¬A with A – with –… 3.Eliminate existential quantifiers by replacing with Skölem constants or functions: –e.g. 16-Nov-15Intro. to AI – Tutorial 89

Conversion to Clause Form 4.Rename variables to avoid duplicates between different quantifiers. 5.Drop all universal quantifiers 6.Put expression into conjunctive normal form (CNF). 7.Convert to clauses (sets of literals). 8.Rename variables to avoid duplicates between different clauses. 16-Nov-15Intro. to AI – Tutorial 810

Conversion to Clauses - Example Initial expression: Remove implications: 16-Nov-15Intro. to AI – Tutorial 811

Conversion to Clauses - Example Previous step: Move negations inwards: 16-Nov-15Intro. to AI – Tutorial 812

Conversion to Clauses - Example Previous step: Remove existential quantifiers: 16-Nov-15Intro. to AI – Tutorial 813

Conversion to Clauses - Example Previous step: Rename variables: 16-Nov-15Intro. to AI – Tutorial 814

Conversion to Clauses - Example Previous step: Remove universals quantifiers: 16-Nov-15Intro. to AI – Tutorial 815

Conversion to Clauses - Example Previous step: Convert to CNF: 16-Nov-15Intro. to AI – Tutorial 816

Conversion to Clauses - Example Previous step: Convert to clauses: 16-Nov-15Intro. to AI – Tutorial 817

Conversion to Clauses - Example Previous step: Rename variables: 16-Nov-15Intro. to AI – Tutorial 818

Simple Example The problem: –“Heads I win, tails you lose.” –Use resolution to show I always win. Facts representation: 16-Nov-15Intro. to AI – Tutorial 819

Simple Example Proof: 16-Nov-15Intro. to AI – Tutorial 820