Discussion #18 1/13 Discussion #18 Resolution with Propositional Calculus; Prenex Normal Form.

Slides:



Advertisements
Similar presentations
TRUTH TABLES The general truth tables for each of the connectives tell you the value of any possible statement for each of the connectives. Negation.
Advertisements

Rules of Inferences Section 1.5. Definitions Argument: is a sequence of propositions (premises) that end with a proposition called conclusion. Valid Argument:
Inference Rules Universal Instantiation Existential Generalization
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
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.
First Order Logic Resolution
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
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.
Resolution Theorem Proving
Logic.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
Inference Methods Propositional and Predicate Calculus.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
CSE (c) S. Tanimoto, 2008 Propositional Logic
Discussion #12 1/22 Discussion #12 Deduction, Proofs and Proof Techniques.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution.
Inference and Resolution for Problem Solving
Methods of Proof Chapter 7, second half.
Knoweldge Representation & Reasoning
Chapter 3 Propositional Logic
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Discussion #10 1/16 Discussion #10 Logical Equivalences.
CS1502 Formal Methods in Computer Science Lecture Notes 10 Resolution and Horn Sentences.
I NTRO TO L OGIC Dr Shlomo Hershkop March
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
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.
Normal Forms, Tautology and Satisfiability 2/3/121.
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.
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.
Propositional Calculus – Methods of Proof Predicate Calculus Math Foundations of Computer Science.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
LOGIC Lesson 2.1. What is an on-the-spot Quiz  This quiz is defined by me.  While I’m having my lectures, you have to be alert.  Because there are.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
Chapter 8 – Symbolic Logic Professor D’Ascoli. Symbolic Logic Because the appraisal of arguments is made difficult by the peculiarities of natural language,
Scope, free variable, closed wff §In  X(A) or  X(A), where A is a wff : X is called the variable quantified over; A is said to be (within) the scope.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
Propositional calculus
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
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.
How do I show that two compound propositions are logically equivalent?
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.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Reasoning with Propositional Logic automated processing of a simple knowledge base CD.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
Outline Logic Propositional Logic Well formed formula Truth table
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Logic and Truth Tables Winter 2012 COMP 1380 Discrete Structures I Computing Science Thompson Rivers University.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Propositional Logic.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Chapter 1 Logic and proofs
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Logical Operators (Connectives) We will examine the following logical operators: Negation (NOT,  ) Negation (NOT,  ) Conjunction (AND,  ) Conjunction.
2. The Logic of Compound Statements Summary
Formal Logic CSC 333.
Proof by Deduction.
Discussion #10 Logical Equivalences
Logic Use mathematical deduction to derive new knowledge.
CS 220: Discrete Structures and their Applications
CS 416 Artificial Intelligence
The Method of Deduction
RESOLUTION.
Presentation transcript:

Discussion #18 1/13 Discussion #18 Resolution with Propositional Calculus; Prenex Normal Form

Discussion #18 2/13 Topics Motivation for resolution Resolution Why resolution works Examples Prenex normal form

Discussion #18 3/13 Programming a Computer to do Proofs Too much work to program all the possibilities we have considered. We need a better way. 1.Better = more uniform  not so many cases (even though it may sometimes be longer). 2.Better = fewer rules of inference. 3.Better = a heuristic guide to lead us to the conclusion. 4.Better = easier to convert to an algorithm.

Discussion #18 4/13 Resolution Resolution answers these “demands:” Uniform: Only disjunctions of literals in every rule Fewer Rules: Only one inference rule Heuristic Guide: Reduce the number of literals with the goal of reaching False Algorithmic: 1.Negate the conclusion and add it as a premise. 2.Convert the premises to CNF (conjunction of disjunction of literals). 3.Write each premise (which is a disjunction of literals) as a line of the proof. 4.Repeatedly apply resolution (the one inference rule) & simplify as needed. 5.Success iff F is reached.

Discussion #18 5/13 Resolution Rule This says: In two disjunctive clauses, if we have complementary literals, we can discard them and “OR” the remaining clauses. P  A  P  B A  B literals clauses: A and B will always be disjunctions of literals or just a literal or possibly missing.

Discussion #18 6/13 Resolution is Valid F T T T F T T T T T T T T T T T T T T T F T F T T T T T F F F F F F T T F T F T F F T T T T T T FFF TFF FTF TTF FFT TFT FTT TTT A  B  B)(P(P  (P  A) BAP

Discussion #18 7/13 Resolution Subsumes “the big 3” Inference Rules P P  Q Q P  F  P  Q Q  F  P Q  P  Q  P  F  Q  P  Q  F P  Q Q  R P  R  P  Q  Q  R  P  R Modus ponensModus tollens Hypothetical syllogism We now have one rule to rule them all!

Discussion #18 8/13 Example #1 If P  Q, Q  R, P then R. 1.Negate the conclusion (  R becomes another premise). 2.Convert to CNF: (  P  Q)  (  Q  R)  P   R 3.Write the premises as the first lines of the proof. 4.Do resolution. 1.  P  Q premise 2.  Q  Rpremise 3.Ppremise 4.  Rpremise 5.  P  Rresolution 1,2 6.Rresolution 3,5 7.resolution 4,6 } Sometimes called the support. empty = F

Discussion #18 9/13 Example #2 If P  (Q  R),  R  Q then  P. 1.Negate conclusion:  P  P 2.Convert to CNF: (  P  Q)  (  P  R)   R  Q  P 1.  P  Qpremise (not used  could discard) 2.  P  Rpremise 3.  Rpremise 4.Qpremise (not used  could discard) 5.Ppremise 6.Rresolution 2,5 7.Fresolution 3,6 Also, resolution 1,5 yields Q, which need not be added to the derivation  already there. Do we always need to use all the premises? If not, we can discard them from the statement to be proved.

Discussion #18 10/13 Example #3 If P  Q, Q  P, P  Q then P  Q. 1.Negate conclusion:  (P  Q)  (  P   Q) 2.CNF: (P  Q)  (  Q  P)  (  P  Q)  (  P   Q) 1.P  Qpremise 2.  Q  Ppremise 3.  P  Qpremise 4.  P   Qpremise 5.Presolution 1,2 (idemp. P  P  P) 6.Q resolution 3,5 7.  Q resolution 4,5 8.Fresolution 6,7

Discussion #18 11/13 Example #4 If (P  Q)  (P  R), P then Q  R. 1.Negate conclusion:  (Q  R)  (  Q   R) 2.CNF: ((  P  Q)  (  P  R))  P  (  Q   R)  (  P  Q  R)  P   Q   R 1.  P  Q  Rpremise 2.Ppremise 3.  Qpremise 4.  Rpremise 5.Q  Rresolution 1,2 6.R resolution 3,5 7. resolution 4,6

Discussion #18 12/13 Prenex Normal Form Prenex Normal Form  preparation to do resolution in predicate calculus –All quantifiers in front –More formally: No quantifier in the scope of any logical connector ( , , , ,  ) Algorithm to obtain prenex normal form: 1.Remove  and  2.Move  in 3.Rectify (standardize all variables apart) 4.Move quantifiers to the front

Discussion #18 13/13 Prenex Normal Form – Example  y(  xP(x)   xQ(x, y))   y(  xP(x)   xQ(x, y)) implication   y  (  xP(x)   xQ(x, y))  xA   x  A ( de Morgan’s )   y(  xP(x)   xQ(x, y)) de Morgan’s, double neg.   y(  xP(x)   x  Q(x, y))  xA   x  A (de Morgan’s)   y(  xP(x)   z  Q(z, y)) rectification   y  x(P(x)   z  Q(z, y))  xA  B   x(A  B) (x not free in B)   y  x  z(P(x)   Q(z, y)) A  zB   z(A  B) (z not free in A)