Gödel s Completeness Theorem

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

Handout: Proof of the completeness theorem

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

Completeness in the Monadic Predicate Calculus. We have a system of eight rules of proof. Let's list them:

1. Model existence theorem.

Propositional and Predicate Logic - V

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

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

1 Completeness Theorem for Classical Predicate

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

02 Propositional Logic

1. Propositional Calculus

An Introduction to Modal Logic III

Propositional Logics and their Algebraic Equivalents

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Informal Statement Calculus

185.A09 Advanced Mathematical Logic

Modal Logic: Exercises

Math 160A: Soundness and Completeness for Sentential Logic

1. Propositional Calculus

Krivine s Intuitionistic Proof of Classical Completeness (for countable languages)

Propositional Logic Language

Gödel s Incompleteness Theorems

Relational Reasoning in Natural Language

Notes for Math 601, Fall based on Introduction to Mathematical Logic by Elliott Mendelson Fifth edition, 2010, Chapman & Hall

Propositional and Predicate Logic - IV

Propositional Logic: Syntax

Forcing in Lukasiewicz logic

5. Peano arithmetic and Gödel s incompleteness theorem

CHAPTER 11. Introduction to Intuitionistic Logic

Introduction to Metalogic

The predicate calculus is complete

Logic, Sets, and Proofs

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

CHAPTER 2. FIRST ORDER LOGIC

SKETCHY NOTES FOR WEEKS 7 AND 8

Semantic Metatheory of SL: Mathematical Induction

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

Modal and temporal logic

Filtrations and Basic Proof Theory Notes for Lecture 5

Completeness for FOL

Classical Propositional Logic

Propositional and Predicate Logic - VII

Stanford University CS103: Math for Computer Science Handout LN9 Luca Trevisan April 25, 2014

GÖDEL S COMPLETENESS AND INCOMPLETENESS THEOREMS. Contents 1. Introduction Gödel s Completeness Theorem

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

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

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

Systems of modal logic

First Order Logic: Syntax and Semantics

Marie Duží

The Countable Henkin Principle

Marketing Impact on Diffusion in Social Networks

Natural Deduction for Propositional Logic

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

An Introduction to Modal Logic V

On the Complexity of the Reflected Logic of Proofs

UNIVERSITY OF EAST ANGLIA. School of Mathematics UG End of Year Examination MATHEMATICAL LOGIC WITH ADVANCED TOPICS MTH-4D23

Kreisel s Conjecture with minimality principle

Canonical models for normal logics (Completeness via canonicity)

Propositional Logic: Deductive Proof & Natural Deduction Part 1

LINDSTRÖM S THEOREM SALMAN SIDDIQI

Lecture 11: Gödel s Second Incompleteness Theorem, and Tarski s Theorem

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

Temporal Logic - Soundness and Completeness of L

Lecture 2: Syntax. January 24, 2018

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos

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

Meta-logic derivation rules

Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism

CSE 20. Final Review. CSE 20: Final Review

Victoria Gitman and Thomas Johnstone. New York City College of Technology, CUNY

CSE 20 DISCRETE MATH SPRING

Advanced Topics in LP and FP

Some consequences of compactness in Lukasiewicz Predicate Logic

Complete Axiomatization of Discrete-Measure Almost-Everywhere Quantification

TRUTH TELLERS. Volker Halbach. Scandinavian Logic Symposium. Tampere

EXCURSIONS IN MODEL THEORY

TR : Possible World Semantics for First Order LP

Boxes and Diamonds. An Open Introduction to Modal Logic

Language of Propositional Logic

CONTENTS. Appendix C: Gothic Alphabet 109

There are infinitely many set variables, X 0, X 1,..., each of which is

Introduction to Metalogic 1

On the Craig interpolation and the fixed point

Section 1.2: Propositional Logic

15414/614 Optional Lecture 1: Propositional Logic

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

The Language. Elementary Logic. Outline. Well-Formed Formulae (wff s)

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

De Jongh s characterization of intuitionistic propositional calculus

Mathematical Logic. An Introduction

Propositional Calculus - Soundness & Completeness of H

Modal Logic XX. Yanjing Wang

A simplified proof of arithmetical completeness theorem for provability logic GLP

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

MAI0203 Lecture 7: Inference and Predicate Calculus

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:

NEW RESULTS IN LOGIC OF FORMULAS WHICH LOSE SENSE

CS589 Principles of DB Systems Fall 2008 Lecture 4e: Logic (Model-theoretic view of a DB) Lois Delcambre

Transcription:

A.Miller M571 Spring 2002 Gödel s Completeness Theorem We only consider countable languages L for first order logic with equality which have only predicate symbols and constant symbols. We regard the symbols x as an abbreviation for x or vice-versa if you prefer. Propositional Tautologies We take all propositional tautologies as Logical Axioms. For example, for any L-formula θ the formula (θ θ) is a logical axiom. More generally, for any proposition tautology we replace the propositional letters with L-formulas and get a Logical Axiom. The other axioms are axiom schemas, i.e, all formulas of a certain syntactical form. Equality Axioms All formulas of the form: u = u u = v v = u (u = v v = w) u = w (u 1 = v 1 u 2 = v 2 u n = v n ) (R(u 1, u 2,..., u n ) R(v 1, v 2,..., v n )) are Logical Axioms. Here u, v, w, u i, v i are terms, i.e., either variables or constant symbols in any mix and R is an n-ary predicate symbol. Substitution Axioms For any formula θ(x) and constant symbol c the axiom: ( xθ(x)) θ(c) where θ(c) is the formula which results from substituting c for all free occurrences of x in θ(x). 1

And the axiom: ( xθ(x)) θ(y) where y is variable that does not occur in θ(x) at all. Henkin Axioms These aren t in Enderton, so we probably don t need them. However they make the proof of Lemma 6 easier so why not add them. For any formula θ(x) and variable y which doesn t occur in θ(x) at all we have the axiom: y[( xθ(x)) θ(y)] Generalization Axioms These axioms are used to prove a weak form of the generalization Lemma (see the Claim in the proof of Lemma 6). They are needed because we have not taken Generalization as a proof rule. Which on the other hand makes the Deduction Lemma easier to prove. For all formulas θ and ψ and variables x the following is a logical axiom: [ x(θ(x) ψ(x))] [( xθ(x)) ( xψ(x))] and for all formulas ρ and variables y such that y does not occur in ρ at all (free or bound) the axiom: ρ yρ Finally, (like Enderton) for any Logical Axiom we can and put as many x 1 x 2.. as we want in front of it and we get another Logical Axiom. This concludes our list of logical axioms. 2

(P) All propositional tautologies Summary of the Logical Axioms (E1) u = u (E2) u = v v = u (E3) (u = v v = w) u = w (E4)(u 1 = v 1 u n = v n ) (R(u 1, u 2,..., u n ) R(v 1, v 2,..., v n )) u, v, w, u i, v i are terms (constant symbols or variables) (S1) ( xθ(x)) θ(c) where c constant symbol (S2) ( xθ(x)) θ(y) where y is a variable that does not occur in θ(x) (H) y[( xθ(x)) θ(y)] for any variable y that does not occur in θ(x) (G1) [ x(θ(x) ψ(x))] [( xθ(x)) ( xψ(x))] (G2) ρ yρ where y does not occur ρ (G3) If θ any Logical Axiom, so is xθ Definition: For Σ a set of L-sentences and θ a L-formula Σ θ iff there is a finite sequence of L-formulas θ 1, θ 2... θ n such that θ = θ n and each θ k is either a logical axiom or member of Σ or follows from previous θ i using Modus Ponens. Definition: T h(σ) = {θ an L-formula : Σ θ}. Note that T h(σ) can also be characterized as the smallest family of L- formulas which contain Σ Logical Axioms and is closed under Modus Ponens. The Deduction Lemma only depends on the fact that we have included all propositional tautologies as logical axioms and that our only proof rule is Modus Ponens. Lemma 1 (Deduction Lemma) For any set Σ {θ} of L-sentences and ψ an L-formula Σ θ ψ iff Σ {θ} ψ The direction is easy from Modus Ponens. For the direction we prove it by showing that the set of all ψ such that Σ θ ψ 3

contains Σ {θ} Logical Axioms and is closed under Modus Ponens. (1) Given ψ note that ψ (θ ψ) is a propositional tautology. Hence if ψ Σ or if ψ is a logical axiom, then Σ θ ψ by using Modus Ponens. (2) Note that (θ ψ 1 ) [(θ (ψ 1 ψ 2 )) (θ ψ 2 )] is a propositional tautology. Hence if Σ θ ψ 1 and Σ θ (ψ 1 ψ 2 ) then by two uses of Modus Ponens, Σ θ ψ 2. It follows from (1) and (2) that: T h(σ {θ}) {ψ : Σ θ ψ} Definition: Σ is an inconsistent set of L-sentences iff Σ # where # is some propositional contradiction, for example, # could be # = P P = ( x x = x) ( x x = x) Definition: Σ is consistent iff Σ is not inconsistent. Note that since (# θ) is a propositional tautology for any formula θ, by Modus Ponens, if Σ # then Σ proves θ. Hence inconsistent Σ prove everything, i.e., T h(σ) is the set of all L-formulas. An equivalent definition of Σ is inconsistent is that for some L-formula θ both Σ θ and Σ θ. This is because θ ( θ #) is a propositional tautology and therefor by Modus Ponens twice Σ #. The next couple of lemmas only use the deduction lemma. Lemma 2 The following two forms of the completeness theorem are equivalent: (a) For every set Σ {θ} of L-sentences if every model of Σ is a model of θ, then Σ θ. (b) Every consistent set Γ of L-sentences has a model. Suppose (a). If Γ has no model, then every model of Γ is a model of #. But then Γ #, hence it is inconsistent. Suppose (b) and every model of Σ is a model of θ. Then Γ = Σ { θ} has no model and so is inconsistent by (b). Hence Γ = Σ { θ} #. 4

Now according to the deduction lemma: Σ ( θ #) But ( θ #) θ is a propositional tautology. So by Modus Ponens Σ θ The above proof also shows that: Lemma 3 If Σ {θ} is an inconsistent set of L-sentences, then Σ θ. If Σ θ # then by the Deduction Lemma, Σ θ #. But (θ #) θ is a propositional tautology and so by Modus Ponens, Σ θ. It also follows from the Deduction Lemma that: Lemma 4 For any consistent Σ and sentence θ either Σ {θ} is consistent or Σ { θ} is consistent. Otherwise by the Deduction Lemma Σ θ # and Σ θ #. But ( θ #) (θ #) is a propositional tautology and so by Modus Ponens twice Σ #. The next lemma shows that adding new constant symbols can t hurt. Lemma 5 Suppose Σ is a consistent set of L-sentences and c is a new constant symbol not appearing in L. Then Σ is a consistent set of L {c}- sentences. 5

Suppose θ 1 (c), θ 2 (c),..., θ n (c) is a proof from Σ of #. Let y be any variable that does not occur in any of the θ i (c). Then we claim θ 1 (y), θ 2 (y),..., θ n (y) is a proof of # from Σ in L. This is because (1) if θ i (c) Σ then c does not occur in θ i (c), so θ(c) = θ(y). (2) If θ i (c) is a logical axiom and y is any variable that does not occur in θ i (c), then θ i (y) is a logical axiom. (Note that an instance of S1 may turn into an instance of S2.) (3) Modus Ponens transfers over: e.g. From θ(c) and θ(c) ψ(c) infer ψ(c). From θ(y) and θ(y) ψ(c) infer ψ(y). Lemma 6 Suppose Σ is a consistent set of L-sentences and θ(x) is an L- formula with one free variable x. Let c be a new constant symbol not appearing L. Then Σ {( xθ(x)) θ(c)} is a consistent set of L {c}-sentences. The following claim is why we need the generalization axioms. It says basically that proving some statement about an arbitrary new constant is the same as proving for all y the statement holds. Claim. Suppose that ρ(c) is any L {c}-sentence such that Σ ρ(c). Then for all but finitely many variables y we have that Σ yρ(y). It is enough to prove that the set of such ρ which satisfy the claim contain Σ and the Logical Axioms, and they are closed under Modus Ponens. Case 1. ρ(c) is a logical axiom. In this case ρ(y) is also a logical axiom provided that y does not occur in ρ. By (G3) closure under universal quantification, yρ(y) is also a logical axiom. Case 2. ρ(c) Σ. In this case c does not appear in ρ = ρ(c). And so ρ yρ 6

is a logical axiom and by Modus Ponens Σ yρ. Case 3. ρ(c) is obtained by Modus Ponens from formulas, ψ(c) ρ(c) and ψ(c) which Σ proves. By induction we assume that for all but finitely many variables y that Σ y (ψ(y) ρ(y)) and Σ y ψ(y) Now using the generalization axiom G1 and Modus Ponens we get that ( y(ψ(y)) ( yρ(y))) and so by Modus Ponens again we get yρ(y). This ends the proof of the Claim. To prove the Lemma assume for contradiction that Σ {( xθ(x)) θ(c)} is inconsistent. Then by Lemma 3 we have that Σ ρ(c) where ρ(c) = [( xθ(x)) θ(c)]. By the claim for all but finitely many variables y Σ yρ(y) But this is exactly the negation of the Axiom H: is the same as which is the same as [ y[( xθ(x)) θ(y)] [ y [( xθ(x)) θ(y)] yρ(y) Thus Σ is inconsistent as a L {c}-theory and hence by Lemma 5 an inconsistent L-theory. Finally we prove part (b) of Lemma 2. Theorem 7 (Gödel s Completeness Theorem) Any consistent set Σ of L- sentences has a model. 7

The first step is to add to L infinitely many new constant symbols. Let L = L {c n : n ω}. By an induction on N Lemma 5 shows that Σ is a consistent set of L {c n : n < N}-sentences. Since proofs are finite it must be that Σ is a consistent set of L -sentences. Now let {ψ n : n ω} be the set of all L -sentences and let the set of all L -formulas with exactly one free variable be {θ n (x kn ) : n ω}. These sets are countable because L is. Construct an increasing sequence Σ n of consistent L -sentences as follows. Set Σ 0 = Σ. For even n = 2m put Σ n+1 to be either Σ n {ψ m } or Σ n { ψ m } whichever is consistent. One of the two must be consistent by Lemma 4. For odd n = 2m + 1. Let c be a constant not appearing in any of the sentences in Σ n or in θ m (x) and let This is consistent by Lemma 6. Now let Σ n+1 = Σ n {( x m θ m (x)) θ m (c)} Γ = n ω Σ n Since the notion of proof is finite the union of an increasing sequence of consistent sets of sentences must be consistent. By construction Γ satisfies: (1) Γ is consistent (2) Γ is complete, i.e., for every L -sentence ψ either ψ Γ or ψ Γ (3) Γ has the constant witness property: for any L -formula θ(x) with one free variable x, there is a constant c such that ( xθ(x)) θ(c) is in Γ. Since Γ is a complete consistent theory it must contain all Logical Axioms which are sentences and it must contain exactly one of θ or θ for each sentence θ. Now we build the canonical model A from Γ and prove that for every L -sentence θ that A = θ iff θ Γ Let C be the set of constant symbols in the language L. Define a binary relation on C by c d iff c = d Γ. Notice that the equality axioms E1,E2,E3 imply that is an equivalence relation. Since Γ is consistent and complete it must contain all Logical axioms which are sentences, in particular the E1,E2,E3,E4 when the terms involved are constant symbols. It follows 8

from E1,E2,E3 that is an equivalence relation. We define the universe A of the canonical model A to be set of equivalence classes of : For each constant symbol c we define A = C/ c A = [c] = {d C : c d} the equivalence class containing c. It follows from E4 and that of Γ that if c 1 d 1, c 2 d 2,..., and c n d n, then R(c 1, c 2,..., c n ) Γ iff R(d 1, d 2,..., d n ) Γ. Thus we may define the relation R A on A n by ([c 1 ], [c 2 ],..., [c n ]) R A iff R(c 1, c 2,..., c n ) Γ This definition of the canonical model guarantees that for any atomic L -sentence θ: A = θ iff θ Γ Inductive steps θ: A = θ iff not A = θ iff θ / Γ iff θ Γ The last iff requires proof. If θ / Γ then θ Γ since Γ is complete. If θ Γ, then θ / Γ because otherwise Γ is inconsistent. (θ 1 θ 2 ): A = θ 1 θ 2 iff (A = θ 1 or A = θ 2 ) iff (θ 1 Γ or θ 2 Γ) iff (θ 1 θ 2 ) Γ) The last iff is because Γ is complete and consistent, otherwise one would get a propositional contradiction in Γ. xθ(x): If A = xθ(x), then for some constant symbol c we have that A = θ(c). By inductive hypothesis θ(c) Γ. Since Γ is complete either xθ(x) Γ or xθ(x) Γ. If that latter is the case, then x θ(x) Γ and we may drop the double negation, since A A is propositional tautology. 9

Buy by the substitution axiom S1 we would have θ(c) provable from Γ and therefore it would be inconsistent. Conversely suppose that xθ(x) Γ. Now by the constant witness property ( xθ(x)) θ(c) Γ for some constant c. So by Modus ponens θ(c) Γ and by inductive hypothesis A = θ(c) and so A = xθ(x). This completes the proof of the completeness theorem. 10