TheoremComplete

Predicate Logic - Applications

TheoremCompactness Theorem for First-Order Logic

A set Γ\Gamma of first-order sentences has a model if and only if every finite subset of Γ\Gamma has a model.

Equivalently: If Γϕ\Gamma \models \phi, then there exists a finite subset Γ0Γ\Gamma_0 \subseteq \Gamma such that Γ0ϕ\Gamma_0 \models \phi.

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 Γ\Gamma is consistent (has a model), then Γ\Gamma itself is consistent (cannot prove a contradiction), hence by completeness, Γ\Gamma has a model.

ExampleNon-Standard Models of Arithmetic

Consider Peano arithmetic PA with the standard axioms for 0,S,+,×0, S, +, \times plus the induction schema. Add new sentences:

Γ=PA{c>0,c>S(0),c>S(S(0)),}\Gamma = \text{PA} \cup \{c > 0, c > S(0), c > S(S(0)), \ldots\}

where cc is a new constant. Every finite subset of Γ\Gamma has a model (the standard natural numbers with cc interpreted as a sufficiently large number). By compactness, Γ\Gamma has a model M\mathcal{M}.

In M\mathcal{M}, the element cMc^\mathcal{M} 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.

TheoremLöwenheim-Skolem Theorem (Downward)

If a countable first-order theory TT has an infinite model, then TT 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.

TheoremLöwenheim-Skolem Theorem (Upward)

If a first-order theory TT in a countable language has an infinite model, then for every infinite cardinal κ\kappa, TT has a model of cardinality κ\kappa.

ExampleApplication to Graph Theory

Consider the theory of infinite graphs with arbitrarily large finite cliques:

T={"G is a graph"}{"G has a clique of size n":nN}T = \{\text{"$G$ is a graph"}\} \cup \{\text{"$G$ has a clique of size $n$"} : n \in \mathbb{N}\}

Every finite subset is satisfiable (take a large enough complete graph). By compactness, TT has a model—an infinite graph with arbitrarily large cliques. By the upward Löwenheim-Skolem theorem, such graphs exist in all infinite cardinalities.

TheoremCraig's Interpolation Theorem

If ϕψ\phi \models \psi in first-order logic, then there exists a formula χ\chi (the interpolant) such that:

  1. ϕχ\phi \models \chi and χψ\chi \models \psi
  2. Every non-logical symbol in χ\chi appears in both ϕ\phi and ψ\psi

The interpolant χ\chi uses only the "common vocabulary" of ϕ\phi and ψ\psi.

Remark

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.