TheoremComplete

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

Theorem4.1Compactness Theorem

A set TT of first-order sentences has a model if and only if every finite subset of TT has a model. Equivalently, if TβŠ¨ΟƒT \models \sigma, then there exists a finite T0βŠ†TT_0 \subseteq T with T0βŠ¨ΟƒT_0 \models \sigma.


Proof via Ultraproducts

Proof

The forward direction is trivial. For the converse, assume every finite subset of TT has a model. Let F={T0βŠ†T:T0Β isΒ finite}\mathcal{F} = \{T_0 \subseteq T : T_0 \text{ is finite}\}. For each T0∈FT_0 \in \mathcal{F}, let MT0\mathcal{M}_{T_0} be a model of T0T_0. For each T0∈FT_0 \in \mathcal{F}, define UT0={T1∈F:T0βŠ†T1}U_{T_0} = \{T_1 \in \mathcal{F} : T_0 \subseteq T_1\}.

The collection {UT0:T0∈F}\{U_{T_0} : T_0 \in \mathcal{F}\} has the finite intersection property: UT0∩UT1βŠ‡UT0βˆͺT1U_{T_0} \cap U_{T_1} \supseteq U_{T_0 \cup T_1}. By Zorn's lemma, extend this collection to an ultrafilter U\mathcal{U} on F\mathcal{F}.

Consider the ultraproduct M=∏T0∈FMT0/U\mathcal{M} = \prod_{T_0 \in \mathcal{F}} \mathcal{M}_{T_0} / \mathcal{U}. For any sentence ΟƒβˆˆT\sigma \in T, the set {T0:MT0βŠ¨Οƒ}βŠ‡U{Οƒ}∈U\{T_0 : \mathcal{M}_{T_0} \models \sigma\} \supseteq U_{\{\sigma\}} \in \mathcal{U}, so by Los's theorem, MβŠ¨Οƒ\mathcal{M} \models \sigma. Thus M⊨T\mathcal{M} \models T. β–‘\square

β– 

Applications

ExampleGraph Coloring

If every finite subgraph of a graph GG is kk-colorable, then GG itself is kk-colorable. Proof: For each vertex vv, introduce a constant cvc_v and colors {1,…,k}\{1, \ldots, k\}. The theory states each cvc_v takes a color value, and for each edge {u,v}\{u, v\}, cuβ‰ cvc_u \neq c_v. Every finite subset involves finitely many vertices, hence a finite subgraph, which is kk-colorable. By compactness, the full theory has a model.

RemarkNon-Standard Models

Compactness implies the existence of non-standard models. The theory Th(N)βˆͺ{c>nβ€Ύ:n∈N}\mathrm{Th}(\mathbb{N}) \cup \{c > \underline{n} : n \in \mathbb{N}\} (with new constant cc and nβ€Ύ\underline{n} for each natural number) is finitely satisfiable, hence has a model: a nonstandard model of arithmetic with an "infinite" element cc.