Compactness Theorem
The compactness theorem is one of the most fundamental results in mathematical logic, asserting that a theory has a model if and only if every finite subset does. It has far-reaching consequences in algebra, combinatorics, and analysis.
Statement
A set of first-order sentences has a model if and only if every finite subset of has a model. Equivalently, if , then there exists a finite with .
Proof via Ultraproducts
The forward direction is trivial. For the converse, assume every finite subset of has a model. Let . For each , let be a model of . For each , define .
The collection has the finite intersection property: . By Zorn's lemma, extend this collection to an ultrafilter on .
Consider the ultraproduct . For any sentence , the set , so by Los's theorem, . Thus .
Applications
If every finite subgraph of a graph is -colorable, then itself is -colorable. Proof: For each vertex , introduce a constant and colors . The theory states each takes a color value, and for each edge , . Every finite subset involves finitely many vertices, hence a finite subgraph, which is -colorable. By compactness, the full theory has a model.
Compactness implies the existence of non-standard models. The theory (with new constant and for each natural number) is finitely satisfiable, hence has a model: a nonstandard model of arithmetic with an "infinite" element .