Predicate Logic - Applications
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 subset such that .
The compactness theorem is a powerful tool with surprising applications throughout mathematics. It follows from Gödel's completeness theorem: if every finite subset of is consistent (has a model), then itself is consistent (cannot prove a contradiction), hence by completeness, has a model.
Consider Peano arithmetic PA with the standard axioms for plus the induction schema. Add new sentences:
where is a new constant. Every finite subset of has a model (the standard natural numbers with interpreted as a sufficiently large number). By compactness, has a model .
In , the element is greater than all standard natural numbers—it's an "infinite" element. This proves the existence of non-standard models of arithmetic containing elements that are infinite from the standard perspective.
If a countable first-order theory has an infinite model, then has a countable model.
This theorem has a paradoxical flavor: even theories that describe uncountable structures (like set theory with uncountably many sets) must have countable models. This is Skolem's paradox—the resolution is that "uncountable" is a relative notion defined within each model.
If a first-order theory in a countable language has an infinite model, then for every infinite cardinal , has a model of cardinality .
Consider the theory of infinite graphs with arbitrarily large finite cliques:
Every finite subset is satisfiable (take a large enough complete graph). By compactness, has a model—an infinite graph with arbitrarily large cliques. By the upward Löwenheim-Skolem theorem, such graphs exist in all infinite cardinalities.
If in first-order logic, then there exists a formula (the interpolant) such that:
- and
- Every non-logical symbol in appears in both and
The interpolant uses only the "common vocabulary" of and .
Craig's interpolation theorem has applications in:
- Software verification: Decomposing complex verification conditions
- Modular reasoning: Reasoning about systems built from components
- Definability theory: Understanding what concepts can be defined using which primitives
The theorem reveals deep structural properties of logical consequence and has analogues in modal logic, temporal logic, and other logical systems.
These theorems demonstrate that first-order logic, despite being more complex than propositional logic, has a rich and well-behaved theory with powerful applications across mathematics and computer science.