Reading preferences
Optional display controls need JavaScript. All reading content and navigation work without it.
How to use Read
This page follows the Completeness Theorem in source order. Equations are native, unflattened MathML. Eight exercises remain unsolved, and every source coordinate is available offline.
Introduction
The completeness theorem is one of the most fundamental results about logic. It comes in two formulations, the equivalence of which we'll prove. In its first formulation it says something fundamental about the relationship between semantic consequence and our derivation system: if a sentence source 19 follows from some sentences source 20, then there is also a derivation that establishes source 20. Thus, the derivation system is as strong as it can possibly be without proving things that don't actually follow.
In its second formulation, it can be stated as a model existence result: every consistent set of sentences is satisfiable. Consistency is a proof-theoretic notion: it says that our derivation system is unable to produce certain derivations. But who's to say that just because there are no derivations of a certain sort from source 29, it's guaranteed that there is a valuation source 30 with source 31? Before the completeness theorem was first proved—in fact before we had the derivation systems we now do—the great German mathematician David Hilbert held the view that consistency of mathematical theories guarantees the existence of the objects they are about. He put it as follows in a letter to Gottlob Frege:
If the arbitrarily given axioms do not contradict one another with all their consequences, then they are true and the things defined by the axioms exist. This is for me the criterion of truth and existence.
Frege vehemently disagreed. The second formulation of the completeness theorem shows that Hilbert was right in at least the sense that if the axioms are consistent, then some valuation exists that makes them all true.
These aren't the only reasons the completeness theorem—or rather, its proof—is important. It has a number of important consequences, some of which we'll discuss separately. For instance, since any derivation that shows source 52 is finite and so can only use finitely many of the sentences in source 53, it follows by the completeness theorem that if source 54 is a consequence of source 54, it is already a consequence of a finite subset of source 55. This is called compactness. Equivalently, if every finite subset of source 57 is consistent, then source 57 itself must be consistent.
Although the compactness theorem follows from the completeness theorem via the detour through derivations, it is also possible to use the the proof of the completeness theorem to establish it directly. For what the proof does is take a set of sentences with a certain property—consistency—and constructs a structure out of this set that has certain properties (in this case, that it satisfies the set). Almost the very same construction can be used to directly establish compactness, by starting from “finitely satisfiable” sets of sentences instead of consistent ones.
Outline of the Proof
The proof of the completeness theorem is a bit complex, and upon first reading it, it is easy to get lost. So let us outline the proof. The first step is a shift of perspective, that allows us to see a route to a proof. When completeness is thought of as “whenever source 18 then source 19,” it may be hard to even come up with an idea: for to show that source 20 we have to find a derivation, and it does not look like the hypothesis that source 22 helps us for this in any way. For some proof systems it is possible to directly construct a derivation, but we will take a slightly different approach. The shift in perspective required is this: completeness can also be formulated as: “if source 26 is consistent, it is satisfiable.” Perhaps we can use the information in source 27 together with the hypothesis that it is consistent to construct a valuation that satisfies every formula in source 30. After all, we know what kind of valuation we are looking for: one that is as source 32 describes it!
If source 34 contains only propositional variables, it is easy to construct a model for it. All we have to do is come up with
a valuation source 46 such that source 46 for all source 46. Well, let source 47 iff source 47.
Now suppose source 49 contains some formula source 49, with source 49 atomic. We might worry that the construction of source 51 interferes with the possibility of making source 52 true. But here's where the consistency of source 53 comes in: if source 53, then source 53, or else source 54 would be inconsistent. And if source 54, then according to our construction of source 56, source 57, so source 58. So far so good.
What if source 60 contains complex, non-atomic formulas? Say it contains source 61. To make that true, we should proceed as if both source 62 and source 62 were in source 62. And if source 62, then we will have to make at least one of them true, i.e., proceed as if one of them was in source 64.
This suggests the following idea: we add additional formulas to source 67 so as to (a) keep the resulting set consistent and (b) make sure that for every possible atomic sentence source 68, either source 69 is in the resulting set, or source 69 is, and (c) such that, whenever source 70 is in the set, so are both source 70 and source 70, if source 71 is in the set, at least one of source 71 or source 71 is also, etc. We keep doing this (potentially forever). Call the set of all formulas so added source 73. Then our construction above would provide us with a valuation source 74 for which we could prove, by induction, that it satisfies all sentences in source 76, and hence also all sentence in source 76 since source 77. It turns out that guaranteeing (a) and (b) is enough. A set of sentences for which (b) holds is called complete. So our task will be to extend the consistent set source 80 to a consistent and complete set source 80.
So here's what we'll do. First we investigate the properties of complete consistent sets, in particular we prove that a complete consistent set contains source 137 iff it contains both source 138 and source 138, source 138 iff it contains at least one of them, etc. (the proposition about complete consistent sets). We'll then take the consistent set source 151 and show that it can be extended to a consistent and complete set source 153 (Lindenbaum's Lemma). This set source 154 is what we'll use to define our valuation source 155. The valuation is determined by the propositional variables in source 159 (the canonical valuation definition). We'll use the properties of complete consistent sets to show that indeed source 162 iff source 162 (the Truth Lemma), and thus in particular, source 164.
Complete Consistent Sets of sentence
Definition: Complete set
A set source 20 of sentences is complete iff for any sentence source 21, either source 21 or source 22.
In what follows, we will often tacitly use the properties of reflexivity, monotonicity, and transitivity of source 55 (see
the proof-theoretic notions section for sequent calculus, the proof-theoretic notions section for natural deduction, the proof-theoretic notions section for axiomatic derivation, the proof-theoretic notions section for tableaux).
Proposition: Properties of complete consistent sets
Suppose source 62 is complete and consistent. Then:
Proof
Let us suppose for all of the following that source 79 is complete and consistent.
Suppose that source 84. Suppose to the contrary that source 84. Since source 85 is complete, source 85. By
the sequent calculus proposition that derivability plus an explicit negation yields inconsistency, the natural deduction proposition that derivability plus an explicit negation yields inconsistency, the axiomatic derivation proposition that derivability plus an explicit negation yields inconsistency, the tableaux proposition that derivability plus an explicit negation yields inconsistency, source 96 is inconsistent. This contradicts the assumption that source 97 is consistent. Hence, it cannot be the case that source 97, so source 98.
Exercise.
First we show that if source 135, then either source 135 or source 136. Suppose source 136 but source 136 and source 137. Since source 137 is complete, source 138 and source 138. By
the sequent calculus proposition about disjunction and derivability, the natural deduction proposition about disjunction and derivability, the axiomatic derivation proposition about disjunction and derivability, the tableaux proposition about disjunction and derivability, item (1), source 148 is inconsistent, a contradiction. Hence, either source 148 or source 149.
For the reverse direction, suppose that source 151 or source 151. By
the sequent calculus proposition about disjunction and derivability, the natural deduction proposition about disjunction and derivability, the axiomatic derivation proposition about disjunction and derivability, the tableaux proposition about disjunction and derivability, item (2), source 162. By the complete-consistent-set closure-under-derivability proposition, source 162, as required.
Exercise.
End of proof.
Exercise: Complete the complete-set proposition proof
Unsolved exercise. The source supplies the prompt only; no solution is added.
Complete the proof of the proposition about complete consistent sets.
Lindenbaum's Lemma
Lemma: Lindenbaum's Lemma
Every consistent set source 29 in a language source 29 can be extended to a complete and consistent set source 30.
Proof
Let source 34 be consistent. Let source 34, source 34, … be an enumeration of all the sentences of source 35. Define source 36, and source 37 Let source 45.
Each source 47 is consistent: source 47 is consistent by definition. If source 48, this is because the latter is consistent. If it isn't, source 49. We have to verify that source 50 is consistent. Suppose it's not. Then both source 51 and source 52 are inconsistent. This means that source 53 would be inconsistent by
the axiomatic derivation proposition that two inconsistent one-formula extensions make the original set inconsistent, the sequent calculus proposition that two inconsistent one-formula extensions make the original set inconsistent, the natural deduction proposition that two inconsistent one-formula extensions make the original set inconsistent, the tableaux proposition that two inconsistent one-formula extensions make the original set inconsistent, contrary to the induction hypothesis.
For every source 65 and every source 65, source 65. This follows by a simple induction on source 66. For source 66, there are no source 66, so the claim holds automatically. For the inductive step, suppose it is true for source 68. We show that if source 68 then source 68. We have source 69 or source 69 by construction. So source 70. If source 71, then source 71 by inductive hypothesis (if source 72) or the trivial fact that source 72 (if source 73). We get that source 73 by transitivity of source 74.
From this it follows that source 76 is consistent. Here's why: Let source 77 be finite. Each source 77 is also in source 78 for some source 78. Let source 78 be the largest of these. Since source 79 if source 79, every source 79 is also source 80, i.e., source 80, and source 81 is consistent. So, every finite subset source 81 is consistent. By the proof-compactness proposition for axiomatic derivation, the proof-compactness proposition for sequent calculus, the proof-compactness proposition for natural deduction, the proof-compactness proposition for tableaux, source 90 is consistent.
Every sentence of source 93 appears on the list used to define source 94. If source 94, then that is because source 95 was inconsistent. But then source 95, so source 96 is complete.
End of proof.
Construction of a Model
Definition: Canonical valuation from Gamma star
Suppose source 65 is a complete consistent set of formulas. Then we let source 66
Reader correction SAR-002: Editorial projection note: the source omits an empty non-first-order alternative at this conditional boundary. This edition restores the boundary, so first-order-only material appears only in the first-order chapter; the canonical source is unchanged.
Lemma: Truth Lemma for the canonical valuation
source 165 iff source 165.
Proof
We prove both directions simultaneously, and by induction on source 169.
Case: source 172 by definition of satisfaction. On the other hand, source 173 since source 174 is consistent.
Case: source 187 iff source 188 (by the definition of satisfaction) iff source 189 (by the construction of source 190).
Case: source 194 iff source 195 (by definition of satisfaction). By induction hypothesis, source 197 iff source 198. Since source 198 is consistent and complete, source 199 iff source 200.
Case: source 219 iff source 220 or source 221 (by definition of satisfaction) iff source 222 or source 222 (by induction hypothesis). This is the case iff source 223 (by the proposition about complete consistent setsthe complete-consistent-set disjunction proposition).
End of proof.
Exercise: Complete the propositional Truth Lemma proof
Unsolved exercise. The source supplies the prompt only; no solution is added.
Complete the proof of the Truth Lemma.
The Completeness Theorem
Theorem: Model-existence form of completeness
Let source 21 be a set of sentences. If source 21 is consistent, it is satisfiable.
Proof
Suppose source 26 is consistent. By Lindenbaum's Lemma, there is a source 29 which is consistent and complete. By the Truth Lemma, source 40 iff source 40. From this it follows in particular that for all source 41, source 42, so source 43 is satisfiable.
End of proof.
Corollary: Semantic-consequence form of completeness
For all source 53 and sentences source 53: if source 53 then source 54.
Proof
Note that the source 58's in the semantic-consequence corollary to the Completeness Theorem and the model-existence Completeness Theorem are universally quantified. To make sure we do not confuse ourselves, let us restate the model-existence Completeness Theorem using a different variable: for any set of sentences source 61, if source 62 is consistent, it is satisfiable. By contraposition, if source 63 is not satisfiable, then source 63 is inconsistent. We will use this to prove the corollary.
Suppose that source 66. Then source 66 is unsatisfiable by the proposition relating entailment to unsatisfiability. Taking source 67 as our source 68, the previous version of the model-existence Completeness Theorem gives us that source 69 is inconsistent. By
the axiomatic derivation proposition equating derivability of A with inconsistency after adjoining not A, the sequent calculus proposition equating derivability of A with inconsistency after adjoining not A, the natural deduction proposition equating derivability of A with inconsistency after adjoining not A, the tableaux proposition equating derivability of A with inconsistency after adjoining not A, source 80.
End of proof.
Exercise: Recover model-existence completeness
Unsolved exercise. The source supplies the prompt only; no solution is added.
Use the semantic-consequence corollary to the Completeness Theorem to prove the model-existence Completeness Theorem, thus showing that the two formulations of the completeness theorem are equivalent.
Exercise: Trace proof-system rules used for completeness
Unsolved exercise. The source supplies the prompt only; no solution is added.
In order for a derivation system to be complete, its rules must be strong enough to prove every unsatisfiable set inconsistent. Which of the rules of derivation were necessary to prove completeness? Are any of these rules not used anywhere in the proof? In order to answer these questions, make a list or diagram that shows which of the rules of derivation were used in which results that lead up to the proof of the model-existence Completeness Theorem. Be sure to note any tacit uses of rules in these proofs.
The Compactness Theorem
One important consequence of the completeness theorem is the compactness theorem. The compactness theorem states that if each finite subset of a set of sentences is satisfiable, the entire set is satisfiable—even if the set itself is infinite. This is far from obvious. There is nothing that seems to rule out, at first glance at least, the possibility of there being infinite sets of sentences which are contradictory, but the contradiction only arises, so to speak, from the infinite number. The compactness theorem says that such a scenario can be ruled out: there are no unsatisfiable infinite sets of sentences each finite subset of which is satisfiable. Like the completeness theorem, it has a version related to entailment: if an infinite set of sentences entails something, already a finite subset does.
Definition: Finitely satisfiable set
A set source 30 of formulas is finitely satisfiable iff every finite source 30 is satisfiable.
Theorem: Compactness in two forms
The following hold for any sentences source 35 and source 35:
Proof
We prove (2). If source 45 is satisfiable, then there is a valuation source 46 such that source 47 for all source 47. Of course, this source 48 also satisfies every finite subset of source 49, so source 49 is finitely satisfiable.
Now suppose that source 52 is finitely satisfiable. Then every finite subset source 53 is satisfiable. By soundness ( the axiomatic derivation soundness corollary that satisfiability implies consistency, the sequent calculus soundness corollary that satisfiability implies consistency, the natural deduction soundness corollary that satisfiability implies consistency, the tableaux soundness corollary that satisfiability implies consistency), every finite subset is consistent. Then source 63 itself must be consistent by
the proof-compactness proposition for axiomatic derivation, the proof-compactness proposition for sequent calculus, the proof-compactness proposition for natural deduction, the proof-compactness proposition for tableaux. By completeness (the model-existence Completeness Theorem), since source 74 is consistent, it is satisfiable.
End of proof.
Exercise: Prove entailment compactness
Unsolved exercise. The source supplies the prompt only; no solution is added.
Prove (1) of the Compactness Theorem.
A Direct Proof of the Compactness Theorem
We can prove the Compactness Theorem directly, without appealing to the Completeness Theorem, using the same ideas as in the proof of the completeness theorem. In the proof of the Completeness Theorem we started with a consistent set source 18 of sentences, expanded it to a consistent and complete set source 20 of sentences, and then showed that in the valuation source 22 constructed from source 23, all sentences of source 23 are true, so source 24 is satisfiable.
We can use the same method to show that a finitely satisfiable set of sentences is satisfiable. We just have to prove the corresponding versions of the results leading to the truth lemma where we replace “consistent” with “finitely satisfiable.”
Proposition: Complete finitely satisfiable sets
Suppose source 33 is complete and finitely satisfiable. Then:
source 35 iff both source 36 and source 36.
source 38 iff either source 39 or source 39.
source 41 iff either source 42 or source 42.
Exercise: Prove the finite-satisfiability connective proposition
Unsolved exercise. The source supplies the prompt only; no solution is added.
Prove the proposition about complete finitely satisfiable sets. Avoid the use of source 54.
Lemma: Finite-satisfiability Lindenbaum extension
Every finitely satisfiable set source 92 can be extended to a complete and finitely satisfiable set source 94.
Exercise: Prove the finite-satisfiability Lindenbaum lemma
Unsolved exercise. The source supplies the prompt only; no solution is added.
Prove the finite-satisfiability Lindenbaum lemma. (Hint: the crucial step is to show that if source 109 is finitely satisfiable, then either source 110 or source 110 is finitely satisfiable.)
Theorem: Direct compactness
source 116 is satisfiable if and only if it is finitely satisfiable.
Proof
If source 121 is satisfiable, then there is a valuation source 122 such that source 123 for all source 123. Of course, this source 124 also satisfies every finite subset of source 125, so source 125 is finitely satisfiable.
Now suppose that source 128 is finitely satisfiable. By the finite-satisfiability Lindenbaum lemma, source 131 can be extended to a complete and finitely satisfiable set source 132. Construct the valuation source 134 as in the canonical valuation definition. The proof of the Truth Lemma (the Truth Lemma) goes through if we replace references to the complete-consistent-set proposition by references to the proposition about complete finitely satisfiable setsReader correction: Source correction: in the propositional edition, a conditional in the source removes the replacement target from this sentence. This reader supplies the intended finite-satisfiability proposition; the source file is unchanged. Reader correction TR014-SOURCE-PROSE-001: Source correction: in the propositional edition, a conditional in the source removes the replacement target from this sentence. This reader supplies the intended finite-satisfiability proposition; the source file is unchanged. .
End of proof.
Exercise: Rewrite the Truth Lemma for direct compactness
Unsolved exercise. The source supplies the prompt only; no solution is added.
Write out the complete proof of the Truth Lemma (the Truth Lemma) in the version required for the proof of the direct Compactness Theorem.