Proof Tactics, Strategies and Derived Rules. CS 270 Math Foundations of CS Jeremy Johnson

Similar documents
Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

What is the decimal (base 10) representation of the binary number ? Show your work and place your final answer in the box.

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

Natural Deduction for Propositional Logic

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Warm-Up Problem. Write a Resolution Proof for. Res 1/32

Proving Things. Why prove things? Proof by Substitution, within Logic. Rules of Inference: applying Logic. Using Assumptions.

Proof Worksheet 2, Math 187 Fall 2017 (with solutions)

MACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)

Section 1.2: Propositional Logic

Propositional Logic. Spring Propositional Logic Spring / 32

The Logic of Compound Statements cont.

PHI Propositional Logic Lecture 2. Truth Tables

PROPOSITIONAL CALCULUS

(ÀB Ä (A Â C)) (A Ä ÀC) Á B. This is our sample argument. Formal Proofs

Deductive Systems. Lecture - 3

15414/614 Optional Lecture 1: Propositional Logic

03 Propositional Logic II

CS 512, Spring 2016, Handout 02 Natural Deduction, and Examples of Natural Deduction, in Propositional Logic

Packet #1: Logic & Proofs. Applied Discrete Mathematics

PHIL012. SYMBOLIC LOGIC PROPOSITIONAL LOGIC DERIVATIONS

Propositional Logic: Deductive Proof & Natural Deduction Part 1

A. Propositional Logic

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

Warm-Up Problem. Is the following true or false? 1/35

2.2: Logical Equivalence: The Laws of Logic

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Propositional Logic: Part II - Syntax & Proofs 0-0

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

Equational Logic: Part 2. Roland Backhouse March 6, 2001

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

Collins' notes on Lemmon's Logic

Today s Lecture 2/25/10. Truth Tables Continued Introduction to Proofs (the implicational rules of inference)

In this chapter, we specify a deductive apparatus for PL.

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

Equivalence and Implication

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Logic, Sets, and Proofs

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

CSC Discrete Math I, Spring Propositional Logic

It rains now. (true) The followings are not propositions.

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

Supplementary Logic Notes CSE 321 Winter 2009

Proof Methods for Propositional Logic

Compound Propositions

Inference in Propositional Logic

Two sources of explosion

KP/Worksheets: Propositional Logic, Boolean Algebra and Computer Hardware Page 1 of 8

Proof strategies, or, a manual of logical style

Math 102 Section 08, Fall 2010 Solutions Practice for Formal Proofs of Arguments

CS250: Discrete Math for Computer Science. L6: CNF and Natural Deduction for PropCalc

Propositional Logic. CS 3234: Logic and Formal Systems. Martin Henz and Aquinas Hobor. August 26, Generated on Tuesday 31 August, 2010, 16:54

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

DISCRETE MATH: FINAL REVIEW

Readings: Conjecture. Theorem. Rosen Section 1.5

Logic for Computer Science - Week 5 Natural Deduction

For a horseshoe statement, having the matching p (left side) gives you the q (right side) by itself. It does NOT work with matching q s.

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

4 Derivations in the Propositional Calculus

3 The Semantics of the Propositional Calculus

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Chapter 1: The Logic of Compound Statements. January 7, 2008

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

CS 486: Lecture 2, Thursday, Jan 22, 2009

Language of Propositional Logic

Logic and Inferences

Propositional natural deduction

Propositional logic. Programming and Modal Logic

MAT 243 Test 1 SOLUTIONS, FORM A

Analyzing Arguments with Truth Tables

Propositional Logics and their Algebraic Equivalents

Equivalences. Proposition 2.8: The following equivalences are valid for all formulas φ, ψ, χ: (φ φ) φ. Idempotency Idempotency Commutativity

Review The Conditional Logical symbols Argument forms. Logic 5: Material Implication and Argument Forms Jan. 28, 2014

A Quick Lesson on Negation

Propositional logic. Programming and Modal Logic

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

Rules Build Arguments Rules Building Arguments

DISCRETE MATH: LECTURE 3

Propositional Logic. Logical Expressions. Logic Minimization. CNF and DNF. Algebraic Laws for Logical Expressions CSC 173

Manual of Logical Style

Propositional Logic: Methods of Proof (Part II)

THE LOGIC OF COMPOUND STATEMENTS

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

CSC242: Intro to AI. Lecture 11. Tuesday, February 26, 13

Propositional logic II.

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Inference in first-order logic

Math 3336: Discrete Mathematics Practice Problems for Exam I

Artificial Intelligence. Propositional logic

Propositional logic (revision) & semantic entailment. p. 1/34

Logic and Proofs. (A brief summary)

CS 2336 Discrete Mathematics

Manual of Logical Style (fresh version 2018)

software design & management Gachon University Chulyun Kim

Transcription:

Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson

Outline 1. Review Rules 2. Positive subformulas and extraction 3. Proof tactics Extraction, Conversion, Inversion, Division, and Refutation Finding contradictions 4. Proof strategy Search tree and an algorithm to find a proof 5. Derived rules

Conjunction Rules Introduction Rule φ ψ φ ψ I Elimination Rule φ ψ φ ER φ ψ ψ EL

Implication Rules Introduction Rule φ ψ φ ψ I Assume φ and show ψ Elimination Rule (Modus Ponens) φ φ ψ ψ E

Disjunction Rules Introduction Rule φ φ ψ IR ψ φ ψ IL Elimination Rule (proof by case analysis) φ ψ φ χ χ ψ χ E

Negation Rules Introduce the symbol ( = bottom) to encode a contradiction Bottom elimination φ E Bottom introduction can prove anything φ φ I

Negation Rules Introduction and elimination rules φ φ I Double negation φ φ E φ φ E

Law of the Excluded Middle pp pp [derived rule LEM] 1 p p goal

Law of the Excluded Middle pp pp [derived rule LEM] 1 (p p) assumption 2 goal 3 p p E 2

Law of the Excluded Middle pp pp [derived rule LEM] 1 (p p) assumption 2 p p Goal 3 I 1,2 4 p p E 3

Law of the Excluded Middle pp pp [derived rule LEM] 1 (p p) assumption 2 p Goal 3 p p IR 2 4 I 1,3 5 p p E 4

Law of the Excluded Middle pp pp [derived rule LEM] 1 (p p) assumption 2 pp assumption 3 Goal 4 p E 3 5 p p IR 4 6 I 1,5 7 p p E 6

Law of the Excluded Middle pp pp [derived rule LEM] 1 (p p) assumption 2 pp assumption 3 (p p) IL 2 4 i 3,1 5 p E 4 6 p p IR 5 7 I 6,1 8 p p E 7

Search Tree? P? P (P P)? IL IR E? P P

Search Tree P? E? P? P (P P)? IL IR E? P P

P? P Search Tree I P? E The only possible contradictory pair is P and P and P? P can only be addressed by E and we are back where we started. backtrack? P IL

Search Tree? P? P (P P)? IL IR E? P P

Proof Tactics Systematically search for a proof Apply (,, ) elimination rules forward Apply introduction rules backwards No extraneous steps Backtrack when dead-end reached 1. Extraction 2. Conversion 3. Inversion 4. Division 5. Refutation

Positive Subformulas PS(ϕ) If ϕ is an atom return ϕ If ϕ = ψ return ϕ If ϕ = ψ ρ then return ϕ PS(ψ) PS(ρ) If ϕ = ψ ρ then return ϕ PS(ψ) PS(ρ) If ϕ = ψ ρ then return ϕ PS(ρ)

Extraction Apply elimination rules forward in order to extract goals that occur as positive subformulae of the formulae on available lines.

Conversion Use disjunction elimination in order to obtain goal disjunctions.

Inversion Invert non-atomic goals by applying introduction rules backward to them.

Division Use disjunction elimination on any goals for which the previous three tactics have either not applied, or not been successful.

Refutation Apply negation elimination backward to goals that cannot be obtained by any other means.

Possible Contradictions Form a list of all negations that appear as a positive subformulas of all premises and available assumptions. Pair each negation ϕ with its immediate subformula ϕ. These pairs are the only possible contradictions that must be considered.

Exercise Prove the definition of conditional (ϕ ψ) ϕ ψ ϕ ψ (ϕ ψ)

Deadend

Solution

Solution

Algorithm

Using Derived Rules Once you have proven a rule from the basic rules you may use it in your proofs Derive M from (M O) M 1 (M O) M premise 2 M assumption 3 M O IR 1 4 M O Df I 5 M E1,4 6 I2,5 7 M E 6

Derived Rules Commutative rules ϕ ψ ψ ϕ ϕ ψ ψ ϕ Associative rules (ϕ ψ) ρ (ψ ϕ) ρ (ϕ ψ) ρ (ψ ϕ) ρ Idempotence rules ϕ ϕ ϕ and ϕ ϕ ϕ ϕ ϕ ϕ and ϕ ϕ ϕ

Derived Rules Distributive rules ϕ (ψ ρ) (ϕ ψ) (ϕ ρ) (ϕ ψ) (ϕ ρ) ϕ (ψ ρ) ϕ (ψ ρ) (ϕ ψ) (ϕ ρ) (ϕ ψ) (ϕ ρ) ϕ (ψ ρ) Disjunctive syllogism (ϕ ψ), ψ ϕ Cut (resolution) ( ϕ ψ), ( ϕ ρ) (ψ ρ)

Derived Rules DeMorgan s rules (ϕ ψ) ϕ ψ ϕ ψ (ϕ ψ) (ϕ ψ) ϕ ψ ϕ ψ (ϕ ψ)

Derived Rules Modus Tollens (ϕ ψ, ψ) ϕ Transposition (ϕ ψ) ( ψ ϕ) Hypothetical Syllogism (ϕ ψ, ψ ρ) (ϕ ρ) Exportation and Importation ((ϕ ψ) ρ) (ϕ (ψ ρ)) (ϕ (ψ ρ)) ((ϕ ψ) ρ)

Derived Rules Definition of conditional (ϕ ψ) ϕ ψ ϕ ψ (ϕ ψ) Negated conditional (ϕ ψ) ϕ ψ ϕ ψ (ϕ ψ)

Exercise Prove the definition of the conditional using Disjunctive Syllogism and LEM

Solution 1 P Q premise 2 P assumption 3 Q DSL 1,2 4 P Q I3 1 P Q premise 2 P P LEM 3 P assumption 4 Q E1,3 5 P Q IL4 6 P assumption 7 P Q IR6 8 P Q E2,5,7