Mathematical logic and foundations First-order logic Theorem
Compactness theorem
Builds on SentenceModelSatisfiability
Statement
Let be a signature and let be a set of first-order sentences over . Then has a model if and only if every finite subset of has a model.
Remarks
One direction is clear, since a model of is a model of each subset.
For the other, if had no model, then by Gödel's completeness theorem it would derive a contradiction.
That derivation uses only finitely many sentences of , and this finite subset would have no model.
A second proof builds a model as an ultraproduct of models of the finite subsets.
Application: let be the true sentences of arithmetic, plus for a new constant and each numeral .
Each finite subset holds in with a large number, so has a model, a non-standard model of arithmetic.
In Mathlib the theorem is FirstOrder.Language.Theory.isSatisfiable_iff_isFinitelySatisfiable.
Going deeper
For a student
Compactness is the main tool of model theory. A typical use shows that some property cannot be expressed in first-order logic. If a theory has finite models of every size, then it has an infinite model, so "the domain is finite" is not first-order. The theorem is named after compactness in topology: it says that a certain space of complete theories, the Stone space, is compact. By Lindström's theorem, first-order logic is the strongest logic that has both compactness and the downward Löwenheim–Skolem theorem.
Reading path
To understand this page from the ground up, read these 4 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Model concept
- Satisfiability concept
- Sentence concept
- Compactness theorem statement
Where this leads
3 pages build on this one.
Further reading
About this page
| Tag | 1NR3HAWG9D |
|---|---|
| URI | m2://1NR3HAWG9D |
| Kind | statement, theorem |
| Writing | W0 stub |
| MSC | 03C07, 03B10 |
| Status | This copy of the site has no build data. Run m2 status 1NR3HAWG9D. |
| About | Satisfiability |
| Uses | Sentence, Model, Satisfiability |
| Same as | |
| Changed | 2 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.