A Weak Post s Theorem and the Deduction Theorem Retold

Similar documents
Natural Deduction for Propositional Logic

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

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

02 Propositional Logic

4. Derived Leibniz rules

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

A NEW FOUNDATION OF A COMPLETE BOOLEAN EQUATIONAL LOGIC

Some Applications of MATH 1090 Techniques

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

Introduction to Metalogic

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

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

Logic for Computer Science - Week 4 Natural Deduction

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

Inference in Propositional Logic

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

Propositional Logics and their Algebraic Equivalents

Propositional Logic Arguments (5A) Young W. Lim 10/11/16

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

Propositional Logic Arguments (5A) Young W. Lim 11/8/16

Language of Propositional Logic

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

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

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

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

On the Complexity of the Reflected Logic of Proofs

1. Propositional Calculus

Propositional Logic Arguments (5A) Young W. Lim 11/30/16

Canonical models for normal logics (Completeness via canonicity)

Formal (natural) deduction in propositional logic

3 The Semantics of the Propositional Calculus

CITS2211 Discrete Structures Proofs

Propositional Calculus - Soundness & Completeness of H

Notes on Inference and Deduction

Manual of Logical Style (fresh version 2018)

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

The Process of Mathematical Proof

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

Deductive Systems. Lecture - 3

15414/614 Optional Lecture 1: Propositional Logic

Tutorial Exercises 1 (mjs)

Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

22c:145 Artificial Intelligence

Section 1.2: Propositional Logic

Propositional Logic: Syntax

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Propositional natural deduction

A MODAL EXTENSION OF FIRST ORDER CLASSICAL LOGIC Part I

Propositional Logic: Deductive Proof & Natural Deduction Part 1

Logic and Inferences

Advanced Topics in LP and FP

Proof strategies, or, a manual of logical style

Introduction to Metalogic 1

Completeness for FOL

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

1. Propositional Calculus

Packet #1: Logic & Proofs. Applied Discrete Mathematics

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

4 Derivations in the Propositional Calculus

1.1 Statements and Compound Statements

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

Modal and temporal logic

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

Logic via Algebra. Sam Chong Tay. A Senior Exercise in Mathematics Kenyon College November 29, 2012

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

Lecture 11: Measuring the Complexity of Proofs

UNIT-I: Propositional Logic

Equivalents of Mingle and Positive Paradox

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

Axiomatic systems. Revisiting the rules of inference. Example: A theorem and its proof in an abstract axiomatic system:

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

THE LOGIC OF COMPOUND STATEMENTS

CHAPTER 11. Introduction to Intuitionistic Logic

Gödel s Completeness Theorem

Truth-Functional Logic

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

Propositional Logic Arguments (5A) Young W. Lim 11/29/16

Propositional Logic Language

MAI0203 Lecture 7: Inference and Predicate Calculus

Chapter 1 Elementary Logic

CSE 1400 Applied Discrete Mathematics Proofs

S4LP and Local Realizability

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

Systems of modal logic

Propositional Calculus - Deductive Systems

3 Propositional Logic

Glossary of Logical Terms

Proofs. Joe Patten August 10, 2018

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now

Propositional Logic Arguments (5A) Young W. Lim 2/23/17

Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture - 15 Propositional Calculus (PC)

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

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models

AN INTRODUCTION TO SEPARATION LOGIC. 2. Assertions

Supplementary Logic Notes CSE 321 Winter 2009

The semantics of propositional logic

Propositional Calculus - Natural deduction Moonzoo Kim CS Dept. KAIST

Learning Goals of CS245 Logic and Computation

ANS: If you are in Kwangju then you are in South Korea but not in Seoul.

Transcription:

Chapter I A Weak Post s Theorem and the Deduction Theorem Retold This note retells (1) A weak form of Post s theorem: If Γ is finite and Γ = taut A, then Γ A and derives as a corollary the Deduction Theorem: (2) If Γ, A B, then Γ A B. 1. Some tools We will employ below the following Lemma. 1.1 Lemma. A C, B C (A B) C. Proof. Here Γ = { A C, B C}. (A B) C Leib: r C + demorgan ( A B) C distrib. of over ( A C) ( B C) bingo by join! 1.2 Corollary. (A B) C ( A C) ( B C). 1.3 Main Lemma. Suppose that A contains none of the symbols,,,,. If = taut A, then A. Proof. Under the assumption, A is an -chain, that is, it has the form A 1 A 2 A 3... A i... A n (1)

2 I. A Weak Post s Theorem and the Deduction Theorem Retold where none of the A i has the form B C. In (1) we assume without loss of generality that n > 1, due to the axiom X X X that is, in the contrary case we can use A A instead, which is a tautology as well. Moreover, (1), that is A, is written in least parenthesised notation. Let us call an A i reducible iff it has the form (C D) or ( C). Otherwise it is irreducible. Thus, the only possible irreducible A i have the form p or p (where p is a variable). We say that p occurs positively in... p..., while it occurs negatively in... p.... In, for example, p p it occurs both positively and negatively. By definition we will say that A is irreducible iff all the A i are. We define the reducibility degree, of A i in symbols, rd(a i ) to be the number of or connectives in it, not counting a possible leading. The reducibility degree of A is the sum of the reducibility degrees of all its A i. For example, rd(p) = 0, rd( p) = 0, rd( ( p q)) = 2, rd( ( p q)) = 3, rd( p q)) = rd( p) + rd(q)) = 0. By induction on rd(a) we now prove the main lemma, on the stated hypothesis that = taut A. For the basis, let A be an irreducible tautology (rd(a) = 0). It must be that A is a string of the form p p for some p, otherwise, if no p appears both positively and negatively, then we can find a truth-assignment that makes A false (f) a contradiction to its tautologyhood. To see that we can do this, just assign f to p s that occur positively only, and t to those that occur negatively only. Now A commuting terms of an -chain p p B (what is B?) Leib: r B + excluded middle, plus Red. thm. B bingo! Thus A which settles the Basis-case rd(a) = 0. We now argue the case where rd(a) = n + 1, on the I.H. that for any formula Q restricted as in the lemma statement with rd(q) n, we have that = taut Q implies Q. By commutativity (symmetry) of, let us assume without restricting generality that rd(a 1 ) > 0. We have two cases:

1. Some tools 3 (1) A 1 is the string C, hence A has the form C D. Clearly = taut C D. Moreover, rd(c D) < rd( C D), hence by the I.H. But, C D C D Leib: r D + X X C D bingo! Hence, C D, that is, A in this case. One more case to go: (2) A 1 is the string (C D), hence A has the form (C D) E. We want: (C D) E (i) By 1.2 and from = taut (C D) E this says = taut A we immediately get that = taut C E (ii) and = taut D E (iii) from the and truth tables. Since the rd of each of (ii) and (iii) is smaller than that of A, by I.H. we obtain C E and D E which by 1.1 yield the validity of (i). We are done, except for one small detail: If we had changed an original A into A A, then we have proved A A. The idempotent axiom and Eqn then yield A. We are now removing the restriction on A regarding its connectives and costants: 1.4 Metatheorem. (Post s Theorem) If = taut A, then A. Proof. First, we note the following equivalences. The ones to the left of also follow from the ones to the right by soundness. The ones to the right are known from class (or follow trivially thereoff): The first is the Excluded Middle

4 I. A Weak Post s Theorem and the Deduction Theorem Retold Axiom augmented by Redundant. The one below it follows from simple manipulation and. All the others have been explicitly covered. = taut p p, also p p = taut ( p p), also ( p p) = taut C D C D, also C D C D = taut C D ( C D), also C D ( C D) = taut (C D) ((C D) (D C)), also (C D) ((C D) (D C)) (I.1) Using the I.1 above, we eliminate, in order, all the, then all the, then all the and finally all the and all the. Let us assume that our process eliminates one unwanted symbol at a time. Thus, starting from A we will generate a sequence of formulae F 1, F 2, F 3,..., F n where F n contains no,,,,. I am using here F 1 is an alias for A. We will also give to F n an alias A. Now in view of the provable equivalences of I.1 (right column), each transformation step is the result of a Leib application, thus we have A Leib from I.1 F 2 Leib from I.1 F 3 Leib from I.1 F 4. Leib from I.1 A Thus, A A By soundness, we also have = taut A A ( ) ( ) So, say = taut A. By ( ) we have = taut A, and by 1.3 we obtain A. By ( ) and Eqn we get A. Post s theorem is often called the Completeness Theorem of Propositional Calculus. It shows that the syntactic manipulation apparatus certifies the whole truth (tautologyhood) in the propositional case. Which is really a Metatheorem, right?

2. Deduction Theorem, Proof by Contradiction 5 1.5 Corollary. If A 1,..., A n = taut B, then A 1,..., A n B. Proof. It is an easy semantic exercise to see that = taut A 1... A n B. By 1.4, A 1... A n B hence A 1,..., A n A 1... A n B (1) Applying modus ponens n times to (1) we get A 1,..., A n B The above corollary is very convenient. It says that any (correct) schema A 1,..., A n = B leads to a derived rule of inference, A 1,..., A n B. In particular, combining with the transitivity of metatheorem, we get 1.6 Corollary. If Γ A i, for i = 1,..., n, and if A 1,..., A n = B, then Γ B. Thus unless otherwise requested! we can, from now on, rigorously mix syntactic with semantic justifications of our proof steps. For example, we have at once A B A, because (trivially) A B = taut A (compare with our earlier, much longer, proof given in class). 2. Deduction Theorem, Proof by Contradiction 2.1 Metatheorem. (The Deduction Theorem) If Γ, A B, then Γ A B, where Γ, A means all the assumptions in Γ, plus the assumption A (in set notation this would be Γ {A}). Proof. Let G 1,..., G n Γ be a finite set of formulae used in a (Γ, A)-proof of B. Thus also G 1,..., G n, A B. By soundness, But then, G 1,..., G n, A = taut B (1) G 1,..., G n = taut A B (Let a v make all G i t. What does it do to the rhs of = taut? If A is f then rhs is t. If not, then (1) makes B t and we are done.) Thus, by 1.5, G 1,..., G n A B.

6 I. A Weak Post s Theorem and the Deduction Theorem Retold The mathematician, or indeed the mathematics practitioner, uses the Deduction theorem all the time, without stopping to think about it. Metatheorem 2.1 above makes an honest person of such a mathematician or practitioner. The everyday style of applying the Metatheorem goes like this: Say we have all sorts of assumptions (nonlogical axioms) and we want, under these assumptions, to prove that if A, then B (verbose form of A B ). We start by adding A to our assumptions, often with the words, Assume A. We then proceed and prove just B (not A B), and at that point we rest our case. Thus, we may view an application of the Deduction theorem as a simplification of the proof-task. It allows us to split an implication A B that we want to prove, moving its premise to join our other assumptions. We now have to prove a simpler formula, B, with the help of stronger assumptions (that is, all we knew so far, plus A). That often makes our task so much easier! 2.2 Definition. A set of formulas Γ is inconsistent or contradictory iff Γ proves every formula A. An inconsistent Γ proves all formulae. For example p p. This justifies the term contradictory in the definition. 2.3 Lemma. Γ is inconsistent iff Γ. Proof. only if-part. If Γ is as in 2.2, in particular it proves. if-part. Say, conversely, that we have Γ. Then, since A for any A (see midterm solutions ), we get Γ A for any A. 2.4 Metatheorem. Γ A iff Γ, A is inconsistent. Proof. if-part. So let (by 2.3) Hence Γ, A Γ A (1) by the Deduction theorem. However A = taut A (Why?), hence, by Corollary 1.6 and (1) above, Γ A. only if-part. Then also Moreover, trivially, So let Γ A Γ, A A (2) Γ, A A (3) Since A, A = taut, (2) and (3) yield Γ, A via Corollary 1.6, and we are done by 2.3. Or use 1.5 and the trivial fact that = taut A for any A.

2. Deduction Theorem, Proof by Contradiction 7 2.4 legitimizes the tool of proof by contradiction that goes all the way back to the ancient Greek mathematicians: To prove A assume instead the opposite ( A). Proceed then to obtain a contradiction. This being accomplished, it is as good as having proved A.