Reasoning with the Propositional Calculus

Slides:



Advertisements
Similar presentations
Logic & Critical Reasoning
Advertisements

Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Introduction to Theorem Proving
Standard Logical Equivalences
First Order Logic Resolution
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.
Resolution Theorem Proving
Logic Concepts Lecture Module 11.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional 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
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Knoweldge Representation & Reasoning
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.
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
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.
Methods of Proof involving  Symbolic Logic February 19, 2001.
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.
Marriage Problem Your the sovereign in a small kingdom. One of your jobs is to marry off the people in kingdom. There are three rules that apply.
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.
Propositional Calculus – Methods of Proof Predicate Calculus Math Foundations of Computer Science.
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
Introductory Logic PHI 120 Presentation: “Solving Proofs" Bring the Rules Handout to lecture.
Extra slides for Chapter 3: Propositional Calculus & Normal Forms Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling;
CS6133 Software Specification and Verification
For Wednesday Finish reading chapter 10 – can skip chapter 8 No written homework.
Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Chapter 1 Logic and proofs
Chapter 7. Propositional and Predicate Logic
Knowledge Representation and Reasoning
Resolution in the Propositional Calculus
Propositional Logic Resolution
Horn Clauses and Unification
Principles of Computing – UFCFA3-30-1
Propositional Logic and Methods of Inference
Propositional Calculus: Boolean Algebra and Simplification
Lecture 6 CS 1813 – Discrete Mathematics
Elementary Metamathematics
Information Technology Department
7.1 Rules of Implication I Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.
Logic Use mathematical deduction to derive new knowledge.
CS 270 Math Foundations of CS
Biointelligence Lab School of Computer Sci. & Eng.
CS 416 Artificial Intelligence
Horn Clauses and Unification
Horn Clauses and Unification
Back to “Serious” Topics…
Horn Clauses and Unification
Computer Security: Art and Science, 2nd Edition
Biointelligence Lab School of Computer Sci. & Eng.
Reasoning with the Propositional Calculus
Reasoning with the Propositional Calculus
MAT 3100 Introduction to Proof
Chapter 7. Propositional and Predicate Logic
Horn Clauses and Unification
Encoding Knowledge with First Order Predicate Logic
Proof Tactics, Strategies and Derived Rules
Reasoning with the Propositional Calculus
Encoding Knowledge with First Order Predicate Logic
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
RESOLUTION.
Encoding Knowledge with First Order Predicate Logic
Introductory Logic PHI 120
Presentation transcript:

Reasoning with the Propositional Calculus Outline: Terminology of the propositional calculus Proof by perfect induction Proof by Wang’s algorithm Proof by resolution. CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning A Logical Syllogism If it is raining, then I am doing my homework. It is raining. Therefore, I am doing my homework. CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning Another Syllogism It is not the case that steel cannot float. Therefore, steel can float. CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

Terminology of the Propositional Calculus Proposition symbols: P, Q, R, P1, P2, ... , Q1, Q2, ..., R1, R2, ... Atomic proposition: a statement that does not specifically contain substatements. P: “It is raining.” Q: “Neither did Jack eat nor did he drink.” Compound proposition: A statement formed from one or more atomic propositions using logical connectives. P v Q: Either it is raining, or neither did Jack eat nor did he drink. CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning Logical Connectives Negation: ~P not P Conjunction: P & Q P and Q Disjunction: P v Q P or Q Exclusive OR: P <> Q P exclusive-or Q CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

Logical Connectives (Cont) NAND: ~(P & Q) P nand Q NOR: ~(P v Q) P nor Q Implies: P -> Q if P then Q ~P v Q CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

Logically Complete Sets of Connectives {~, v} form a logically complete set. P & Q = ~(~P v ~Q) {~, ->} form a logically complete set P & Q = ~(P -> ~Q) {~, &} form a logically complete set P v Q = ~(~P & ~Q) CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning Syllogism Premise 1 Premise 2 ... Premise n -------------- Conclusion P1 & P2 & ... & Pn -> C CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

Proof by Perfect Induction Prove that P, ~P v Q => Q CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

Proof by Wang’s Algorithm Write the hypothesis as a “sequent”. (Eliminate ->) Place the premises on the left-hand side separated by commas, and place the conclusion on the right hand side. 1. (P ^ (~P v Q)) => Q. 2. P, ~P v Q => Q. 3a. P, ~P => Q; 3b. P, Q => Q. 4a. P => Q, P; CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning Wang’s Method (Cont.) Transform each sequent until it is either an “axiom” and is proved, or it cannot be further transformed. Note: Each rule removes one instance of a logical connective. And on the left: X, A & B, Y => Z becomes X, A, B, Y => Z Or on the right: X => Y, A v B, Z becomes X => Y, A, B, Z Not on the left: X, ~A, Y => Z becomes X, Y => Z, A Not on the right: X => Y, ~A, Z becomes X, A => Y, Z CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning Wang’s Method (Cont.) Or on the left: X, A v B, Y => Z becomes X, A, Y => Z; X, B, Y => Z. And on the right: X => Y, A & B, Z becomes X => Y, A, Z; X => Y, B, Z. In a split, both of the new sequents must be proved. Axiom: A sequent in which any proposition symbol occurs at top level on both the left and right sides. e.g., P, P v ~Q => P CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning Clause Form Expressions such as P, ~P, Q and ~Q are called literals. They are atomic formulas to which a negation may be prefixed. A clause is an expression of the form L1 v L2 v ... v Lq where each Li is a literal. Any propositional calculus formula can be represented as a set of clauses. ~(P & (Q -> R)) starting formula ~(P & (~Q v R)) eliminate -> ~((P & ~Q) v (P & R)) distribute & over v. ~(P & ~Q) & ~(P & R) DeMorgan’s law (~P v ~~Q) & (~P v ~R) “ “ ~P v Q, ~P v ~R Double neg. and break into clauses CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

Propositional Resolution Two clauses having a pair of complementary literals can be resolved to produce a new clause that is logically implied by its parent clauses. e.g. Q v ~R v S, R v ~P => Q v S v ~P P v Q, ~Q v R => P v R P, ~P v R => R P, ~P => [] (the null clause) CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

Proof Using Resolution Prove: (P -> Q) & (Q -> R) => (P -> R) Negate the conclusion: (P -> Q) & (Q -> R) => ~(P -> R) Obtain clause form: ~P v Q, ~Q v R, P, ~R. Derive the null clause using resolution: Q resolving P with ~P v Q. R resolving Q with ~Q v R. F resolving R with ~R. CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning

CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning Reductio ad Absurdum A proof by resolution uses RAA (proof by contradiction). Original syllogism: Premise 1 Premise 2 ... Premise n --------------- Conclusion Syllogism for RAA: Premise 1 Premise 2 ... Premise n ~Conclusion ---------------------- [] CSE 415 -- (c) S. Tanimoto, 2004 Propositional Calculus Reasoning