# Compactness theorem

__: Theorem__

**Short description**In mathematical logic, the **compactness theorem** states that a set of first-order sentences has a model if and only if every finite subset of it has a model. This theorem is an important tool in model theory, as it provides a useful (but generally not effective) method for constructing models of any set of sentences that is finitely consistent.

The compactness theorem for the propositional calculus is a consequence of Tychonoff's theorem (which says that the product of compact spaces is compact) applied to compact Stone spaces,^{[1]} hence the theorem's name. Likewise, it is analogous to the finite intersection property characterization of compactness in topological spaces: a collection of closed sets in a compact space has a non-empty intersection if every finite subcollection has a non-empty intersection.

The compactness theorem is one of the two key properties, along with the downward Löwenheim–Skolem theorem, that is used in Lindström's theorem to characterize first-order logic. Although there are some generalizations of the compactness theorem to non-first-order logics, the compactness theorem itself does not hold in them, except for a very limited number of examples.^{[2]}

## History

Kurt Gödel proved the countable compactness theorem in 1930. Anatoly Maltsev proved the uncountable case in 1936.^{[3]}^{[4]}

## Applications

The compactness theorem has many applications in model theory; a few typical results are sketched here.

### Robinson's principle

The compactness theorem implies the following result, stated by Abraham Robinson in his 1949 dissertation.

Robinson's principle:^{[5]}^{[6]} If a first-order sentence holds in every field of characteristic zero, then there exists a constant [math]\displaystyle{ p }[/math] such that the sentence holds for every field of characteristic larger than [math]\displaystyle{ p. }[/math] This can be seen as follows: suppose [math]\displaystyle{ \varphi }[/math] is a sentence that holds in every field of characteristic zero. Then its negation [math]\displaystyle{ \lnot \varphi, }[/math] together with the field axioms and the infinite sequence of sentences
[math]\displaystyle{ 1 + 1 \neq 0, \;\; 1 + 1 + 1 \neq 0, \; \ldots }[/math]
is not satisfiable (because there is no field of characteristic 0 in which [math]\displaystyle{ \lnot \varphi }[/math] holds, and the infinite sequence of sentences ensures any model would be a field of characteristic 0). Therefore, there is a finite subset [math]\displaystyle{ A }[/math] of these sentences that is not satisfiable. [math]\displaystyle{ A }[/math] must contain [math]\displaystyle{ \lnot \varphi }[/math] because otherwise it would be satisfiable. Because adding more sentences to [math]\displaystyle{ A }[/math] does not change unsatisfiability, we can assume that [math]\displaystyle{ A }[/math] contains the field axioms and, for some [math]\displaystyle{ k, }[/math] the first [math]\displaystyle{ k }[/math] sentences of the form [math]\displaystyle{ 1 + 1 + \cdots + 1 \neq 0. }[/math] Let [math]\displaystyle{ B }[/math] contain all the sentences of [math]\displaystyle{ A }[/math] except [math]\displaystyle{ \lnot \varphi. }[/math] Then any field with a characteristic greater than [math]\displaystyle{ k }[/math] is a model of [math]\displaystyle{ B, }[/math] and [math]\displaystyle{ \lnot \varphi }[/math] together with [math]\displaystyle{ B }[/math] is not satisfiable. This means that [math]\displaystyle{ \varphi }[/math] must hold in every model of [math]\displaystyle{ B, }[/math] which means precisely that [math]\displaystyle{ \varphi }[/math] holds in every field of characteristic greater than [math]\displaystyle{ k. }[/math] This completes the proof.

The Lefschetz principle, one of the first examples of a transfer principle, extends this result. A first-order sentence [math]\displaystyle{ \varphi }[/math] in the language of rings is true in *some* (or equivalently, in *every*) algebraically closed field of characteristic 0 (such as the complex numbers for instance) if and only if there exist infinitely many primes [math]\displaystyle{ p }[/math] for which [math]\displaystyle{ \varphi }[/math] is true in *some* algebraically closed field of characteristic [math]\displaystyle{ p, }[/math] in which case [math]\displaystyle{ \varphi }[/math] is true in *all* algebraically closed fields of sufficiently large non-0 characteristic [math]\displaystyle{ p. }[/math]^{[5]}
One consequence is the following special case of the Ax–Grothendieck theorem: all injective complex polynomials [math]\displaystyle{ \Complex^n \to \Complex^n }[/math] are surjective^{[5]} (indeed, it can even be shown that its inverse will also be a polynomial).^{[7]} In fact, the surjectivity conclusion remains true for any injective polynomial [math]\displaystyle{ F^n \to F^n }[/math] where [math]\displaystyle{ F }[/math] is a finite field or the algebraic closure of such a field.^{[7]}

### Upward Löwenheim–Skolem theorem

A second application of the compactness theorem shows that any theory that has arbitrarily large finite models, or a single infinite model, has models of arbitrary large cardinality (this is the Upward Löwenheim–Skolem theorem). So for instance, there are nonstandard models of Peano arithmetic with uncountably many 'natural numbers'. To achieve this, let [math]\displaystyle{ T }[/math] be the initial theory and let [math]\displaystyle{ \kappa }[/math] be any cardinal number. Add to the language of [math]\displaystyle{ T }[/math] one constant symbol for every element of [math]\displaystyle{ \kappa. }[/math] Then add to [math]\displaystyle{ T }[/math] a collection of sentences that say that the objects denoted by any two distinct constant symbols from the new collection are distinct (this is a collection of [math]\displaystyle{ \kappa^2 }[/math] sentences). Since every *finite* subset of this new theory is satisfiable by a sufficiently large finite model of [math]\displaystyle{ T, }[/math] or by any infinite model, the entire extended theory is satisfiable. But any model of the extended theory has cardinality at least [math]\displaystyle{ \kappa }[/math].

### Non-standard analysis

A third application of the compactness theorem is the construction of nonstandard models of the real numbers, that is, consistent extensions of the theory of the real numbers that contain "infinitesimal" numbers. To see this, let [math]\displaystyle{ \Sigma }[/math] be a first-order axiomatization of the theory of the real numbers. Consider the theory obtained by adding a new constant symbol [math]\displaystyle{ \varepsilon }[/math] to the language and adjoining to [math]\displaystyle{ \Sigma }[/math] the axiom [math]\displaystyle{ \varepsilon \gt 0 }[/math] and the axioms [math]\displaystyle{ \varepsilon \lt \tfrac{1}{n} }[/math] for all positive integers [math]\displaystyle{ n. }[/math] Clearly, the standard real numbers [math]\displaystyle{ \R }[/math] are a model for every finite subset of these axioms, because the real numbers satisfy everything in [math]\displaystyle{ \Sigma }[/math] and, by suitable choice of [math]\displaystyle{ \varepsilon, }[/math] can be made to satisfy any finite subset of the axioms about [math]\displaystyle{ \varepsilon. }[/math] By the compactness theorem, there is a model [math]\displaystyle{ {}^* \R }[/math] that satisfies [math]\displaystyle{ \Sigma }[/math] and also contains an infinitesimal element [math]\displaystyle{ \varepsilon. }[/math]

A similar argument, this time adjoining the axioms [math]\displaystyle{ \omega \gt 0, \; \omega \gt 1, \ldots, }[/math] etc., shows that the existence of numbers with infinitely large magnitudes cannot be ruled out by any axiomatization [math]\displaystyle{ \Sigma }[/math] of the reals.^{[8]}

It can be shown that the hyperreal numbers [math]\displaystyle{ {}^* \R }[/math] satisfy the transfer principle:^{[9]} a first-order sentence is true of [math]\displaystyle{ \R }[/math] if and only if it is true of [math]\displaystyle{ {}^* \R. }[/math]

## Proofs

One can prove the compactness theorem using Gödel's completeness theorem, which establishes that a set of sentences is satisfiable if and only if no contradiction can be proven from it. Since proofs are always finite and therefore involve only finitely many of the given sentences, the compactness theorem follows. In fact, the compactness theorem is equivalent to Gödel's completeness theorem, and both are equivalent to the Boolean prime ideal theorem, a weak form of the axiom of choice.^{[10]}

Gödel originally proved the compactness theorem in just this way, but later some "purely semantic" proofs of the compactness theorem were found; that is, proofs that refer to *truth* but not to *provability*. One of those proofs relies on ultraproducts hinging on the axiom of choice as follows:

**Proof**:
Fix a first-order language [math]\displaystyle{ L, }[/math] and let [math]\displaystyle{ \Sigma }[/math] be a collection of [math]\displaystyle{ L }[/math]-sentences such that every finite subcollection of [math]\displaystyle{ L }[/math]-sentences, [math]\displaystyle{ i \subseteq \Sigma }[/math] of it has a model [math]\displaystyle{ \mathcal{M}_i. }[/math] Also let [math]\displaystyle{ \prod_{i \subseteq \Sigma}\mathcal{M}_i }[/math] be the direct product of the structures and [math]\displaystyle{ I }[/math] be the collection of finite subsets of [math]\displaystyle{ \Sigma. }[/math] For each [math]\displaystyle{ i \in I, }[/math] let [math]\displaystyle{ A_i = \{j \in I : j \supseteq i\}. }[/math]
The family of all of these sets [math]\displaystyle{ A_i }[/math] generates a proper filter, so there is an ultrafilter [math]\displaystyle{ U }[/math] containing all sets of the form [math]\displaystyle{ A_i. }[/math]

Now for any sentence [math]\displaystyle{ \varphi }[/math] in [math]\displaystyle{ \Sigma: }[/math]

- the set [math]\displaystyle{ A_{\{\varphi\}} }[/math] is in [math]\displaystyle{ U }[/math]
- whenever [math]\displaystyle{ j \in A_{\{\varphi\}}, }[/math] then [math]\displaystyle{ \varphi \in j, }[/math] hence [math]\displaystyle{ \varphi }[/math] holds in [math]\displaystyle{ \mathcal M_j }[/math]
- the set of all [math]\displaystyle{ j }[/math] with the property that [math]\displaystyle{ \varphi }[/math] holds in [math]\displaystyle{ \mathcal M_j }[/math] is a superset of [math]\displaystyle{ A_{\{\varphi\}}, }[/math] hence also in [math]\displaystyle{ U }[/math]

Łoś's theorem now implies that [math]\displaystyle{ \varphi }[/math] holds in the ultraproduct [math]\displaystyle{ \prod_{i \subseteq \Sigma} \mathcal{M}_i/U. }[/math] So this ultraproduct satisfies all formulas in [math]\displaystyle{ \Sigma. }[/math]

## See also

- Barwise compactness theorem
- Herbrand's theorem
- List of Boolean algebra topics – Wikimedia list article
- Löwenheim–Skolem theorem – Existence and cardinality of models of logical theories

## Notes

- ↑ See Truss (1997).
- ↑ J. Barwise, S. Feferman, eds., Model-Theoretic Logics (New York: Springer-Verlag, 1985) [1], in particular, Makowsky, J. A. Chapter XVIII: Compactness, Embeddings and Definability. 645--716, see Theorems 4.5.9, 4.6.12 and Proposition 4.6.9. For compact logics for an extended notion of model see Ziegler, M. Chapter XV: Topological Model Theory. 557--577. For logics without the relativization property it is possible to have simultaneously compactness and interpolation, while the problem is still open for logics with relativization. See Xavier Caicedo, A Simple Solution to Friedman's Fourth Problem, J. Symbolic Logic, Volume 51, Issue 3 (1986), 778-784.doi:10.2307/2274031 JSTOR 2274031
- ↑ Vaught, Robert L.: "Alfred Tarski's work in model theory".
*Journal of Symbolic Logic*51 (1986), no. 4, 869–882 - ↑ Robinson, A.:
*Non-standard analysis*. North-Holland Publishing Co., Amsterdam 1966. page 48. - ↑
^{5.0}^{5.1}^{5.2}Marker 2002, pp. 40-43. - ↑ Gowers, Barrow-Green & Leader 2008, pp. 639-643.
- ↑
^{7.0}^{7.1}Terence, Tao (7 March 2009). "Infinite fields, finite fields, and the Ax-Grothendieck theorem". https://terrytao.wordpress.com/2009/03/07/infinite-fields-finite-fields-and-the-ax-grothendieck-theorem/. - ↑ Goldblatt 1998, pp. 10–11.
- ↑ Goldblatt 1998, p. 11.
- ↑ See Hodges (1993).

## References

- Boolos, George; Jeffrey, Richard; Burgess, John (2004). Computability and Logic (fourth ed.). Cambridge University Press.
- Chang, C.C.; Keisler, H. Jerome (1989).
*Model Theory*(third ed.). Elsevier. ISBN 0-7204-0692-7. - Dawson, John W. junior (1993). "The compactness of first-order logic: From Gödel to Lindström".
*History and Philosophy of Logic***14**: 15–37. doi:10.1080/01445349308837208. - Hodges, Wilfrid (1993).
*Model theory*. Cambridge University Press. ISBN 0-521-30442-3. https://archive.org/details/modeltheory0000hodg. - Goldblatt, Robert (1998).
*Lectures on the Hyperreals*. New York: Springer Verlag. ISBN 0-387-98464-X. https://archive.org/details/lecturesonhyperr00gold_574. - Gowers, Timothy; Barrow-Green, June; Leader, Imre (2008).
*The Princeton Companion to Mathematics*. Princeton: Princeton University Press. pp. 635–646. ISBN 978-1-4008-3039-8. OCLC 659590835. - Marker, David (2002).
*Model Theory: An Introduction*. Graduate Texts in Mathematics.**217**. Springer. ISBN 978-0-387-98760-6. OCLC 49326991. - Robinson, J. A. (1965). "A Machine-Oriented Logic Based on the Resolution Principle".
*Journal of the ACM*(Association for Computing Machinery (ACM))**12**(1): 23–41. doi:10.1145/321250.321253. ISSN 0004-5411. - Truss, John K. (1997).
*Foundations of Mathematical Analysis*. Oxford University Press. ISBN 0-19-853375-6.

## External links

Original source: https://en.wikipedia.org/wiki/Compactness theorem.
Read more |