Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.

Slides:



Advertisements
Similar presentations
Some Prolog Prolog is a logic programming language
Advertisements

Resolution Proof System for First Order Logic
Inference Rules Universal Instantiation Existential Generalization
Standard Logical Equivalences
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
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.
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.
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
Logic.
Logic Concepts Lecture Module 11.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
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.
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.
Propositional Logic. Grammatical Complexity A natural language is complex. E.g. –The dog chased the cat. –The dog that ate the rat chased the cat. –The.
ITCS 3153 Artificial Intelligence Lecture 11 Logical Agents Chapter 7 Lecture 11 Logical Agents Chapter 7.
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution 3.7. Natural Deduction.
Methods of Proof Chapter 7, second half.
Knoweldge Representation & Reasoning
Chapter 3 Propositional Logic
Prop logic First order predicate logic (FOPC) Prob. Prop. logic Objects, relations Degree of belief First order Prob. logic Objects, relations.
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
CS1502 Formal Methods in Computer Science Lecture Notes 10 Resolution and Horn Sentences.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
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.
Logical Agents Logic Propositional Logic Summary
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.
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
S P Vimal, Department of CSIS, BITS, Pilani
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM]
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.:
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
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.
CS6133 Software Specification and Verification
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
Resolution Preliminaries Computational LogicLecture 9 By Prof. Michael Genesereth, Computer Science, Stanford Univ Spring 2005 Modified by Charles Ling.
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.
1 Propositional Proofs 1. Problem 2 Deduction In deduction, the conclusion is true whenever the premises are true.  Premise: p Conclusion: (p ∨ q) 
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
EA C461 Artificial Intelligence
Knowledge Representation and Reasoning
Resolution in the Propositional Calculus
Logical Inference: Through Proof to Truth
Propositional Resolution
Biointelligence Lab School of Computer Sci. & Eng.
CS 416 Artificial Intelligence
Relational Proofs Computational Logic Lecture 8
Back to “Serious” Topics…
Biointelligence Lab School of Computer Sci. & Eng.
Logical Entailment Computational Logic Lecture 3
CSNB234 ARTIFICIAL INTELLIGENCE
Methods of Proof Chapter 7, second half.
Davis-Putnam Methods Computational Logic Lecture 5
Properties of Relational Logic
Resolution Preliminaries
Presentation transcript:

Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005

2 Axiom Schema Instances   (    ) p  (p  p)p  (p  p  p) p  (p  p  p) p  (q  p)p  (p  q  p) p  (p  q  p) p  (r  p)p  (p  r  p) p  (p  r  p) q  (p  q)…... q  (q  q) q  (r  q) r  (p  r) r  (q  r) r  (r  r) Proofs may be short, but many alternatives to consider.

3 Propositional Resolution Propositional resolution is a rule of inference. Using propositional resolution alone (without axiom schemata or other rules of inference), it is possible to build a theorem prover that is sound and complete for all of Propositional Logic. The search space using propositional resolution is much smaller than for Modus Ponens and the Standard Axiom Schemata.

4 Clausal Form Propositional resolution works only on expressions in clausal form. Fortunately, it is possible to convert any set of propositional calculus sentences into an equivalent set of sentences in clausal form.

5 Clausal Form A literal is either an atomic sentence or a negation of an atomic sentence. p  p A clausal sentence is either a literal or a disjunction of literals. p  p p  q A clause is a set of literals. {p} {  p} {p,q}

6 Empty Sets The empty clause {} is unsatisfiable. Why? It is equivalent to an empty disjunction.

7 Conversion to Clausal Form Implications Out: Negations In:

8 Conversion to Clausal Form Distribution Operators Out

9 Example

10 Example

11 Resolution Principle General: Example:

12 Issues Collapse Singletons

13 Issues Multiple Conclusions Single Application Only Wrong!!

14 Special Cases Modus Ponens Modus Tolens Chaining

15 Incompleteness? Propositional Resolution is not generatively complete. We cannot generate p  (q  p) using propositional resolution. There are no premises. Consequently, there are no conclusions.

16 Answer This apparent problem disappears if we take the clausal form of the premises (if any) together with the negated goal and try to derive the empty clause. General Method: To determine whether a set  of sentences logically entails a sentence , rewrite  {  } in clausal form and try to derive the empty clause using the resolution rule of inference.

17 Example

18 Example If Mary loves Pat, then Mary loves Quincy. If it is Monday, Mary loves Pat or Quincy. Prove that, if it is Monday, then Mary loves Quincy.

19 Example Heads you win. Tails I lose. Show that you always win.

20 Soundness and Completeness A sentence is provable from a set of sentences by propositional resolution if and only if there is a derivation of the empty clause from the clausal form of  {  }. Theorem: Propositional Resolution is sound and complete, i.e.  |=  if and only if  |- .

21 Two Finger Method

22 TFM With Identical Clause Elimination

23 TFM With ICE, Complement Detection

24 Termination Theorem: There is a resolution derivation of a conclusion from a set of premises if and only if there is a derivation using the two finger method. Theorem: Propositional resolution using the two-finger method always terminates. Proof: There are only finitely many clauses that can be constructed from a finite set of logical constants.

25 Decidability of Propositional Entailment Propositional resolution is a decision procedure for Propositional Logic. Logical entailment for Propositional Logic is decidable. Sadly, the problem in general is NP-complete.

26 Horn Clauses and Horn Chains A Horn clause is a clause containing at most one positive literal. Example: {r,  p,  q} Example: {  p,  q,  r} Example:  p  Non-Example: {q, r,  p} NB: Every Horn clause can be written as a “rule”. {  p,  q, r}  p  q  r

27 Complexity Good news: When a set of propositional sentences is Horn, satisfiability and, consequently, logical entailment can be decided in time linear in the size of the sentence set. p  q  r r  s s  t s  v Does {p, q} |= v? p q rs t v

28 Coin Logic Syntax: The logical constants: quarters, nickels, dimes Negation: coin upside down Disjunction: stack of coins Conjunction: set of stacks Almost exactly clausal form. Propositional Resolution: Add two stacks, deleting at most one pair of complementary coins.

29 Example Quarter means it is Monday. Nickel means Mary loves Pat. Dime means Mary loves Quincy. [  Nickel,Dime]: If Mary loves Pat, Mary loves Quincy. [  Quarter,Nickel,Dime]: Monday Mary loves Pat or Quincy. [  Nickel,  Dime]:Mary loves only one of the two. [  Quarter,Dime]: If Monday, Mary loves Quincy. [  Quarter,-Nickel]: If Monday, Mary does not love Pat.