Home › Logic › Lesson 8

Gödel's Completeness Theorem

Lesson 8 of 13

Key idea of this section

Σ ⊨ φ implies Σ ⊢ φ: truth in all models is captured by finite derivations.
Henkin: add witnesses cφ with ∃x φ → φ[cφ/x], extend to a maximal consistent set.
The model is built from the closed terms, modulo provable equality.

Statement

Theorem 8.1 (Gödel 1929). Let Σ be a set of sentences and φ a sentence of a first-order language L. If Σ ⊨ φ, then Σ ⊢ φ. Equivalently (model existence): every consistent set of sentences has a model.

The equivalence is as in the propositional case: Σ ⊬ φ implies that Σ ∪ {¬φ} is consistent, and a model of Σ ∪ {¬φ} witnesses Σ ⊭ φ. Gödel's original proof (his doctoral dissertation) reduced to prenex sentences and used propositional compactness on a sequence of quantifier-free instances. The proof below is Leon Henkin's (1949), which generalises to uncountable languages and to many other logics. We give it for countable L; for arbitrary L replace the enumerations by transfinite ones or by Zorn's lemma, and the model obtained has cardinality at most |L| + ℵ₀.

Step 1: Henkin witnesses

A set Σ of L-sentences has the witness property if for every L-formula φ(x) with one free variable there is a constant c with ∃x φ(x) → φ(c) in Σ.

Lemma 8.2. Let Σ be consistent and let c be a constant symbol not occurring in Σ or in φ. Then Σ ∪ {∃x φ(x) → φ(c)} is consistent.

Proof. Suppose Σ, ∃x φ(x) → φ(c) ⊢ ⊥. Then Σ ⊢ ¬(∃x φ(x) → φ(c)), hence Σ ⊢ ∃x φ(x) and Σ ⊢ ¬φ(c). Since c does not occur in Σ, a derivation of ¬φ(c) can be turned into a derivation of ¬φ(y) for a fresh variable y by replacing c throughout (constants not in the assumptions behave like eigenvariables), and then ∀I gives Σ ⊢ ∀y ¬φ(y), which with Σ ⊢ ∃x φ(x) yields Σ ⊢ ⊥, a contradiction. ∎

Let L₀ = L, and let Lₙ₊₁ be Lₙ together with a new constant cφ for each Lₙ-formula φ(x) with one free variable. Put L* = ⋃ Lₙ, and let Σ* be Σ together with all the Henkin axioms ∃x φ(x) → φ(cφ). Each finite subset of Σ* adds finitely many Henkin axioms to Σ; adding them one at a time, in order of the level n of their constants, preserves consistency by Lemma 8.2. So Σ* is consistent and has the witness property for L*.

Step 2: Lindenbaum

Exactly as in Lemma 4.3, extend Σ* to a maximal consistent set Δ of L*-sentences. Since Δ ⊇ Σ*, it still has the witness property. Maximal consistent sets have the properties of Lemma 4.2, and in addition: ∃x φ(x) ∈ Δ iff φ(c) ∈ Δ for some closed term c (by the witness axioms and ∃I), and ∀x φ(x) ∈ Δ iff φ(t) ∈ Δ for every closed term t (apply the previous clause to ¬φ).

Step 3: the term model

Let T be the set of closed L*-terms. Define t ∼ u iff (t = u) ∈ Δ. By the equality rules and deductive closure, ∼ is an equivalence relation and a congruence: if tᵢ ∼ uᵢ then F(t⃗) ∼ F(u⃗), and R(t⃗) ∈ Δ iff R(u⃗) ∈ Δ. Let A = T/∼, and interpret c𝔄 = [c], F𝔄([t₁], …, [tₙ]) = [F(t₁, …, tₙ)] and R𝔄 = {([t₁], …, [tₙ]) : R(t₁, …, tₙ) ∈ Δ}. These are well defined because ∼ is a congruence.

Lemma 8.3 (Truth lemma). For every L*-sentence ψ, 𝔄 ⊨ ψ iff ψ ∈ Δ.

Proof. By induction on the number of logical symbols in ψ. For atomic sentences this is the definition of 𝔄 (each closed term t denotes [t], by induction on t). The connective steps use Lemma 4.2. For ∃x φ(x): 𝔄 ⊨ ∃x φ(x) iff 𝔄 ⊨ φ[a] for some a ∈ A; every a is [t] for a closed term t, and 𝔄 ⊨ φ[[t]] iff 𝔄 ⊨ φ(t) by the substitution lemma, iff φ(t) ∈ Δ by induction (φ(t) has fewer logical symbols than ∃x φ(x)), iff ∃x φ(x) ∈ Δ by the witness property. The ∀ case is dual. ∎

Finally, by the truth lemma 𝔄 satisfies every member of Δ ⊇ Σ, so the reduct of 𝔄 to the original language L is a model of Σ. This proves Theorem 8.1. ∎

Consequences

The completeness theorem has three immediate consequences of great importance. First, compactness: Σ has a model iff every finite subset does, since consistency is a finitary property. Second, the downward Löwenheim–Skolem theorem: a consistent set in a countable language has a countable model, since A is a quotient of the countable set T. Third, the set of valid sentences of a computable language is computably enumerable: one can list all derivations mechanically, and a sentence is valid iff it eventually appears as a conclusion. Church and Turing showed in 1936 that this set is not computable (Lesson 10), so completeness is the best possible result: validity is semi-decidable and no more.

The completeness theorem is also exactly where the expressive power of first-order logic is limited. Second-order logic, which allows quantification over all subsets of the domain, can characterise (ℕ, S, 0) up to isomorphism by the induction axiom, but in consequence it has no sound, complete and effective proof system.

Exercise

  • (a)
    Why must the language be expanded with new constants in Step 1, rather than using existing ones?
  • (b)
    Let Σ = {∃x P(x)} ∪ {¬P(c)}. Describe a Henkin axiom and a possible term model.
  • (c)
    Explain why a consistent set of sentences in a countable language with equality might have a finite term model.
Show solution

Answers: (a) An existing constant may already be constrained by Σ: for Σ = {∃x P(x), ¬P(c)}, adding ∃x P(x) → P(c) would make the set inconsistent. Fresh constants carry no prior information, which is what Lemma 8.2 needs. (b) Add a fresh constant d with the Henkin axiom ∃x P(x) → P(d). Any maximal consistent extension Δ contains P(d) and ¬P(c), hence c ≠ d. So the term model has at least the two distinct elements [c] and [d], with [d] ∈ P𝔄 and [c] ∉ P𝔄; how many further elements it has depends on which equations between the other Henkin constants Δ happens to contain. (c) Equalities in Δ may identify infinitely many closed terms: if Σ contains ∀x ∀y (x = y), then all closed terms are equivalent and A has a single element.

V.3.1