Trakhtenbrot's theorem is a fundamental result in mathematical logic, finite model theory, and computability theory. It was established by the Soviet logician Boris Trakhtenbrot and first published in 1950 under the title "The Impossibility of an Algorithm for the Decidability Problem on Finite Classes."
Statement
The theorem states that the problem of validity in first-order logic on the class of all finite models is undecidable. More precisely, the set of first-order sentences that are satisfied in some finite structure is undecidable. In fact, the class of valid sentences over finite models is not recursively enumerable, although it is co-recursively enumerable.
Key Implications
Trakhtenbrot's theorem implies that Gödel's completeness theorem—which is fundamental to first-order logic and guarantees that valid sentences are recursively enumerable—does not hold when models are restricted to the finite case. The result is often described as counter-intuitive because being valid over all structures is, in a computational sense, "easier" than being valid over just the finite ones.
The theorem is closely related to, but distinct from, Church's earlier result that the set of valid formulas in first-order logic is not decidable (though that set is semi-decidable).
Formal Formulation
Following the formulation of Ebbinghaus and Flum, the theorem can be stated as follows:
Theorem. Satisfiability for finite structures is not decidable in first-order logic. That is, the set {φ | φ is a sentence of first-order logic that is satisfied in some finite structure} is undecidable.
Corollary. Let σ be a relational vocabulary with at least one binary relation symbol. The set of σ-sentences valid in all finite structures is not recursively enumerable.
Two important remarks follow from the corollary:
- Gödel's completeness theorem fails in the finite case, since completeness implies recursive enumerability.
- There is no recursive function f such that if φ has a finite model, then it has a model of size at most f(φ). In other words, there is no effective analogue to the Löwenheim–Skolem theorem in the finite setting.
Proof Sketch
The proof typically proceeds by encoding the halting problem for Turing machines in first-order logic. For every Turing machine M, one constructs a first-order sentence φ_M such that φ_M is finitely satisfiable if and only if M halts on the empty input. Since the halting problem is undecidable, the finite satisfiability problem for first-order logic is therefore also undecidable.
The encoding represents computations of the machine using a finite relational vocabulary that includes a linear ordering, tape-content predicates, and head-position predicates indexed by machine states. The sentence φ_M asserts the correctness of the machine's initial configuration, the validity of its transition behavior, and the eventual reaching of a halting state.
Significance
Trakhtenbrot's theorem is a cornerstone of finite model theory and database theory. It marks a fundamental boundary between the behavior of first-order logic over arbitrary structures versus finite structures, and it underpins many undecidability results in areas such as database query evaluation and finite model checking.
References
- Trakhtenbrot, Boris (1950). "The Impossibility of an Algorithm for the Decidability Problem on Finite Classes." Proceedings of the USSR Academy of Sciences, 70(4): 569–572.
- Ebbinghaus, Heinz-Dieter; Flum, Jörg (1995). Finite Model Theory. Springer.
- Libkin, Leonid (2010). Elements of Finite Model Theory. Springer.