Detailed development of the compactness theorem, its proof via completeness, and fundamental applications in model theory.
The compactness theorem is one of the central structural results of first order logic, and it expresses a precise relationship between finite and infinite behavior of theories, showing that global satisfiability is completely controlled by finite fragments.
Definition 5.1 (Structures and Satisfaction)
Let be a first order language, and let be an -structure.
For a sentence in , we write:
to mean that is true in .
If is a set of sentences, we write:
to mean that:
for every .
Thus is a model of exactly when it satisfies every sentence in .
Definition 5.2 (Satisfiability and Consistency)
A set of sentences is satisfiable if there exists an -structure such that:
A set of sentences is unsatisfiable if no such structure exists.
A set of sentences is syntactically consistent if:
In first order logic, the completeness theorem connects these two notions by saying that a set of sentences is satisfiable exactly when it is syntactically consistent.
Definition 5.3 (Finite Satisfiability)
A set of sentences is finitely satisfiable if every finite subset:
is satisfiable.
This means that whenever one chooses only finitely many sentences from , there is a structure in which all chosen sentences are true at the same time.
Theorem 5.4 (Compactness Theorem)
Let be a set of first order sentences.
If is finitely satisfiable, then is satisfiable.
Equivalently, if every finite subset of has a model, then there is a single structure that is a model of all sentences in .
The theorem says that an infinite set of first order requirements can fail to have a model only when some finite part of those requirements already fails to have a model.
Assume that is finitely satisfiable, and suppose for contradiction that is not satisfiable.
Then:
By the completeness theorem for first order logic:
A formal proof is finite, so this derivation of contradiction can use only finitely many assumptions from . Hence there is a finite subset:
such that:
By soundness, or equivalently by completeness applied in the opposite direction, this finite subset is unsatisfiable:
This contradicts the assumption that every finite subset of is satisfiable. Therefore must be satisfiable.
Theorem 5.5 (Compactness in Consequence Form)
Let be a set of sentences, and let be a sentence.
If:
then there exists a finite subset:
such that:
Assume:
Then there is no model of:
Thus:
is unsatisfiable.
By compactness, some finite subset is already unsatisfiable. Therefore there exists a finite set:
such that:
is unsatisfiable.
This means that every model of must be a model of , and hence:
Example 5.6 (Infinite Models from Finite Conditions)
Let the language contain one unary predicate symbol .
For each natural number , let be the sentence:
The sentence says that there are at least distinct elements satisfying .
Let:
Every finite subset of contains only finitely many sentences:
Let:
A structure with elements, all satisfying , is a model of all these finitely many sentences.
Thus every finite subset of is satisfiable.
By compactness, itself is satisfiable. In any model of , for every natural number there are at least distinct elements satisfying . Therefore the set of elements satisfying is infinite.
Example 5.7 (Nonstandard Models of Arithmetic)
Let be the usual language of arithmetic, and extend it by adding a new constant symbol .
Let consist of the axioms of arithmetic together with the sentences:
Every finite subset of mentions only finitely many inequalities:
This finite set can be satisfied in the standard natural numbers by interpreting as a number larger than .
Therefore every finite subset of is satisfiable.
By compactness, the whole set has a model. In that model, the element denoted by is greater than every standard natural number.
Such a model cannot be the standard model , because no ordinary natural number is greater than all ordinary natural numbers. Hence first order arithmetic has nonstandard models.
Corollary 5.8 (Finiteness is Not First Order Axiomatizable)
There is no set of first order sentences whose models are exactly the finite structures.
Suppose, for contradiction, that is a set of first order sentences such that a structure satisfies exactly when it is finite.
For each , let be the sentence saying that there are at least distinct elements:
Consider:
Every finite subset of this theory requires only finitely many distinct elements, and so it has a finite model satisfying .
By compactness, the whole theory has a model.
That model satisfies every , so it is infinite. It also satisfies , so by the assumed property of it must be finite.
This is impossible. Therefore finiteness cannot be characterized by any first order theory.
Corollary 5.9 (Arbitrarily Large Finite Models Give an Infinite Model)
Let be a first order theory.
If has finite models of arbitrarily large size, then has an infinite model.
For each , let be the sentence saying that there are at least distinct elements:
Consider:
Every finite subset of this theory requires only a lower bound on the size of a model. Since has finite models of arbitrarily large size, every such finite subset is satisfiable.
By compactness, the whole theory is satisfiable.
Any model of the whole theory has at least distinct elements for every , and therefore it is infinite.
Conceptual Meaning
Compactness says that first order satisfiability is controlled by finite information.
This is a powerful model construction principle. To build a model with infinitely many requirements, it is enough to show that every finite selection of those requirements can be satisfied.
At the same time, compactness reveals a limitation of first order logic. Properties that require a genuinely global distinction between finite and infinite behavior cannot usually be expressed by first order sentences.