Propositional Logic: Deductive Proof & Natural Deduction Part 1

Similar documents
Propositional Calculus - Natural deduction Moonzoo Kim CS Dept. KAIST

Natural Deduction for Propositional Logic

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

15414/614 Optional Lecture 1: Propositional Logic

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

Propositional logic. Programming and Modal Logic

Propositional logic. Programming and Modal Logic

Propositional Calculus - Deductive Systems

Propositional Calculus - Soundness & Completeness of H

185.A09 Advanced Mathematical Logic

Learning Goals of CS245 Logic and Computation

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

Logic for Computer Science Handout Week 8 DERIVED RULE MODUS TOLLENS DERIVED RULE RAA DERIVED RULE TND

02 Propositional Logic

03 Propositional Logic II

Logic for Computer Science - Week 5 Natural Deduction

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

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Propositional Calculus - Hilbert system H Moonzoo Kim CS Dept. KAIST

Formal (natural) deduction in propositional logic

(p == train arrives late) (q == there are taxis) (r == If p and not q, then r. Not r. p. Therefore, q. Propositional Logic

Propositional Logic Language

Marie Duží

Propositional Logic: Gentzen System, G

Propositional Calculus - Hilbert system H Moonzoo Kim CS Division of EECS Dept. KAIST

Outline. Overview. Syntax Semantics. Introduction Hilbert Calculus Natural Deduction. 1 Introduction. 2 Language: Syntax and Semantics

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

Modal Logic XX. Yanjing Wang

MAI0203 Lecture 7: Inference and Predicate Calculus

Teaching Natural Deduction as a Subversive Activity

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

Overview. I Review of natural deduction. I Soundness and completeness. I Semantics of propositional formulas. I Soundness proof. I Completeness proof.

Deductive Systems. Lecture - 3

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Lecture 11: Measuring the Complexity of Proofs

Chapter 9. Proofs. In this chapter we will demonstrate how this system works. The precise definition of 9-1

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

Logic: Propositional Logic Truth Tables

Classical First-Order Logic

cis32-ai lecture # 18 mon-3-apr-2006

PHIL012. SYMBOLIC LOGIC PROPOSITIONAL LOGIC DERIVATIONS

Advanced Topics in LP and FP

First Order Logic: Syntax and Semantics

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

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/33

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

Computational Logic Chapter 2. Propositional Logic

03 Review of First-Order Logic

Chapter 11: Automated Proof Systems

Propositional and Predicate Logic. jean/gbooks/logic.html

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

Propositional Logic Sequent Calculus

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Equivalents of Mingle and Positive Paradox

PHIL 50 - Introduction to Logic

3 Propositional Logic

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

Overview of Logic and Computation: Notes

Chapter 11: Automated Proof Systems (1)

Logic for Computer Science - Week 4 Natural Deduction

Introduction to Metalogic

SE 212: Logic and Computation. se212 Nancy Day

Fundamentals of Logic

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

Intermediate Logic. Natural Deduction for TFL

Phil Introductory Formal Logic

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson

Classical First-Order Logic

On the Complexity of the Reflected Logic of Proofs

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Language of Propositional Logic

Intelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Propositional Logic Review

The semantics of propositional logic

CITS2211 Discrete Structures Proofs

Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction

Logic. Propositional Logic: Syntax

First-Order Logic. Chapter Overview Syntax

Gödel s Completeness Theorem

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

Propositional natural deduction

CHAPTER 11. Introduction to Intuitionistic Logic

Notes on Inference and Deduction

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

Two sources of explosion

Inference in Propositional Logic

Logic: Propositional Logic (Part I)

Propositional Logics and their Algebraic Equivalents

CS 3110: Proof Strategy and Examples. 1 Propositional Logic Proof Strategy. 2 A Proof Walkthrough

Propositional and Predicate Logic - V

- Introduction to propositional, predicate and higher order logics

On sequent calculi vs natural deductions in logic and computer science

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

On Axiomatic Rejection for the Description Logic ALC

Introduction to Logic in Computer Science: Autumn 2006

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini. FBK-IRST, Trento, Italy

Transcription:

Propositional Logic: Deductive Proof & Natural Deduction Part 1 CS402, Spring 2016 Shin Yoo

Deductive Proof In propositional logic, a valid formula is a tautology. So far, we could show the validity of a formula φ in the following ways: Through the truth table for φ Obtain φ as a substitution instance of a formula known to be valid. That is, q (p q) is valid, therefore r s (p q r s) is also valid. Obtain φ through interchange of equivalent formulas. That is, if φ ψ and φ is a subformula of a valid formula χ, χ obtained by replacing all occurrences of φ in χ with ψ is also valid.

Deductive Proof Goals of logic: (given U), is φ valid? Theorem 1 (2.38, Ben-Ari) U = φ iff = A 1... A n φ when U = {A 1,..., A n }. However, there are problems in semantic approach. Set of axioms may be infinite: for example, Peano and ZFC (Zermelo-Fraenkel set theory) theories cannot be finitely axiomatised. Hilbert system, H, uses axiom schema, which in turn generates an infinite number of axioms. We cannot write truth tables for these. The truth table itself is not always there! Very few logical systems have decision procedures for validity. For example, predicate logic does not have any such decision procedure.

Semantic vs. Syntax = φ vs. φ Truth Tools Semantics Syntax Validity Proof All Interpretations Finite Proof Trees Undecidable (except propositional logic) Manual Heuristics

Deductive Proof A deductive proof system relies on a set of proof rules (also inference rules), which are in themselves syntactic transformations following specific patterns. There may be an infinite number of axioms, but only a finite number of axioms will appear on any deductive proof. Any particular proof consists of a finite sequence of sets of formulas, and the legality of each individual deduction can be easily and efficiently determined from the syntax of the formulas. The proof of a formula clearly shows which axioms, theorems and rules are used and for what purposes.

Soundness and Completeness Given a logical system, its proof system is sound if and only if: U φ U = φ. Given a logical system, its proof system is complete if and only if: U = φ U φ.

Proof Calculus Proof calculus refers to a family of formal systems that use a common style of formal inference for their inference rules. There are three classicl systems: Hilbert Systems, H Gentzen Systems, G. There are two variants: Natural Deduction: every line has exactly one asserted propositions. Sequent Calculus: every line has zero or more asserted propositions.

Natural Deduction We have a collection of proof rules. Natural deduction does not have axioms. Suppose we have premises φ 1, φ 2,..., φ n and would like to prove a conclusion ψ. The intention is denoted by φ 1, φ 2,..., φ n ψ We call this expression a sequent; it is valid if a proof for it can be found. Definition 1 A logical formula φ with the valid sequent φ is theorem.

Proof Rules Introduction Elimination φ ψ φ ψ i φ ψ φ e 1 φ ψ ψ e 2 i (and-introduction): to prove φ ψ, you must first prove φ and ψ separately and then use the rule i. e 1 : (and-elimination) to prove φ, try proving φ ψ and then use the rule e1. Probably only useful when you already have φ ψ somwhere; otherwise, proving φ ψ may be harder than proving φ.

Proof Rules Introduction Elimination φ φ ψ i 1 ψ φ ψ i 2 φ. φ ψ χ χ ψ. χ e i 1 (or-introduction): to prove φ ψ, try proving φ. Again, in general it is harder to prove φ than it is to prove φ ψ, so this will usually be useful only if you have already managed to prove φ. e (or-elimination): has an excellent procedural interpretation. It says: if you have φ ψ, and you want to prove some χ, then try to prove χ from φ and from ψ in turn. In those subproofs, of course you can use the other prevailing premises as well.

Proof Rules Introduction Elimination φ. ψ φ ψ i φ. φ i (No introduction rule for ) φ φ φ ψ ψ φ. ψ φ φ e φ φ φ. ψ e e e

Derived Rules φ ψ ψ φ φ. φ RAA MT φ φ i φ φ LEM Modus Tollens (MT): If Abraham Lincoln was Ethiopian, then he was African. Abraham Lincoln was not African; therefore, he was not Ethiopian. Introduction of double negation. Reductio Ad Absurdum, i.e. Proof By Contradiction. Tertium Non Datur, or Law of the Excluded Middle.

How Proof Rules Work Prove that p q, r q r. Proof Tree p q q e2 r q r i Linear Form 1. p q premise 2. r premise 3. q e2, 1 4. q r i, 3, 2

Scope Box We can temporarily make any assumptions, and apply rules to them. We use scope boxes to represent their scope, i.e. to represent which other steps depend on them. For example, let us show that p q q p. 1. p q premise 2. q assumption 3. p modus tollens, 1, 2 4. q p i, 2, 3 Note that p depends on the assumption, q. However, step 4 does not depends on step 2 or 3. The line immediately following a closed box has to match the pattern of the conclusion of the rule using the box.

Example 1 Prove that p q r, r, p q. 1. p q r premise 2. r premise 3. p premise 4. q assumption 5. p q i, 3, 4 6. r i, 5, 1 7. e, 6, 2 8. q i, 4-7 9. q e, 8

Example 2 Prove that p q p q. 1. p q premise 2. p p law of eliminated middle 3. p assumption 4. p q i3, 3 5. p assumption 6. q i, 1, 5 7. p q i2, 6 8. p q e, 2, 3-4, 5-7 Note that, earlier in the lecture, we also showed p q = p q. Can you explain the differences?

Example 3: Law of Excluded Middle Prove the law of excluded middle, i.e. φ φ LEM. 1. (φ φ) assumption 2. φ assumption 3. φ φ i1, 2 4. e, 3, 1 5. φ i, 2-4 6. φ φ i2, 5 7. e, 1, 6 8. (φ φ) i, 1-7 9. φ φ e, 8

Proof Tips Write down the premises at the top. Write down the conclusion at the bottom. Observe the structure of the conclusion, and try to fit a rule backward.

Exercises Prove the following: p q p q p q, p q p p (q r), p, r q