CPSC 386 Artificial Intelligence Ellen Walker Hiram College

Slides:



Advertisements
Similar presentations
Inference in First-Order Logic
Advertisements

Artificial Intelligence 8. The Resolution Method
Some Prolog Prolog is a logic programming language
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
Inference in first-order logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
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.
Artificial Intelligence Inference in first-order logic Fall 2008 professor: Luigi Ceccaroni.
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.
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
(FO) Inference Methods CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
Resolution Proof Example Prateek Tandon, John Dickerson.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
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.
Proof methods Proof methods divide into (roughly) two kinds: –Application of inference rules Legitimate (sound) generation of new sentences from old Proof.
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
Methods of Proof Chapter 7, second half.
Knoweldge Representation & Reasoning
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Fall 2004.
Artificial Intelligence
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2005.
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.
CS1502 Formal Methods in Computer Science Lecture Notes 10 Resolution and Horn Sentences.
INFERENCE IN FIRST-ORDER LOGIC IES 503 ARTIFICIAL INTELLIGENCE İPEK SÜĞÜT.
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.
1 CS 2710, ISSP 2610 Chapter 7 Propositional Logic Reasoning.
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.
Notes on Assignment 3 Foundations of Artificial Intelligence.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
March 14, 2006AI: Chapter 9: Inference in First- Order Logic 1 Artificial Intelligence Chapter 9: Inference in First- Order Logic Michael Scherger Department.
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
First Order Predicate Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
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 23 Friday, 17 October.
1 Logical Inference Algorithms CS 171/271 (Chapter 7, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Computing & Information Sciences Kansas State University Lecture 15 of 42 CIS 530 / 730 Artificial Intelligence Lecture 15 of 42 William H. Hsu Department.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 18 of 41 Friday, 01 October.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
For Wednesday Finish reading chapter 10 – can skip chapter 8 No written homework.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
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.
Artificial Intelligence
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Resolution in the Propositional Calculus
Logical Inference: Through Proof to Truth
First Order Logic: Logical Inference
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence: Agents and Propositional Logic.
CS 416 Artificial Intelligence
Prolog IV Logic, condensed.
Biointelligence Lab School of Computer Sci. & Eng.
Methods of Proof Chapter 7, second half.
Presentation transcript:

CPSC 386 Artificial Intelligence Ellen Walker Hiram College (FO) Resolution CPSC 386 Artificial Intelligence Ellen Walker Hiram College

Inference Methods (Review) Unification (prerequisite) Forward Chaining Production Systems RETE Method (OPS) Backward Chaining Logic Programming (Prolog) Resolution Transform to CNF Generalization of Prop. Logic resolution

Resolution (review) Resolution allows a complete inference mechanism (search-based) using only one rule of inference Resolution rule: Given: P1  P2  P3 … Pn, and P1  Q1 … Qm Conclude: P2  P3 … Pn  Q1 … Qm Complementary literals P1 and P1 “cancel out” To prove a proposition F by resolution, Start with F Resolve with a rule from the knowledge base (that contains F) Repeat until all propositions have been eliminated If this can be done, a contradiction has been derived and the original proposition F must be true.

Propositional Resolution Example Rules Cold and precipitation -> snow ¬cold  ¬precipitation  snow January -> cold ¬January  cold Clouds -> precipitation ¬clouds  precipitation Facts January, clouds Prove snow

Proving “snow” ¬snow ¬cold  ¬precipitation  snow ¬January  cold ¬clouds  precipitation ¬January  ¬precipitation January ¬January  ¬clouds ¬clouds clouds

Resolution Theorem Proving (FOL) Convert everything to CNF Resolve, with unification Save bindings as you go! If resolution is successful, proof succeeds If there was a variable in the item to prove, return variable’s value from unification bindings

Converting to CNF Replace implication (A  B) by A  B Move  “inwards” x P(x) is equivalent to x P(x) & vice versa Standardize variables x P(x)  x Q(x) becomes x P(x)  y Q(y) Skolemize x P(x) becomes P(A) Drop universal quantifiers Since all quantifiers are now , we don’t need them Distributive Law

Convert to FOPL, then CNF John likes all kinds of food Apples are food. Chicken is food. Anything that anyone eats and isn’t killed by is food. Bill eats peanuts and is still alive. Sue eats everything Bill eats.

Prove Using Resolution John likes peanuts. Sue eats peanuts. Sue eats apples. What does Sue eat? Translate to Sue eats X Result is a valid binding for X in the proof

Another Example Steve only likes easy courses. Science courses are hard. All the courses in the basketweaving department are easy. BK301 is a basketweaving course. What course would Steve like?

Final thoughts on resolution Resolution is complete. If you don’t want to take this on faith, study pp. 300-303 Strategies (heuristics) for efficient resolution include Unit preference. If a clause has only one literal, use it first. Set of support. Identify “useful” rules and ignore the rest. (p. 305) Input resolution. Intermediately generated sentences can only be combined with original inputs or original rules. (We used this strategy in our examples). Subsumption. Prune unnecessary facts from the database.