The Immerman–Vardi theorem
No public endorsements yet.
Loading review…
Sign in with ORCIDAbstract
This submission proves the Immerman–Vardi theorem: on finite linearly ordered relational structures, a query is definable in first-order logic with least fixed points if and only if it is decidable in deterministic polynomial time. The statement covers queries of every fixed arity, including Boolean queries.
The concepts specify finite ordered structures, syntactically positive fixed-point formulas and their semantics, an explicit dense binary encoding, and polynomial time using mathlib's finite Turing machines. Empty universes and nullary relations are included.
Both computational directions are proved. A concrete Turing-machine decoder and relation-table evaluator decide each fixed FO(LFP) query in polynomial time. Conversely, a finite positive rule system represents the initialized, polynomially bounded computation of an arbitrary finite multi-stack Turing machine. Its least fixed point is proved equal to the encoded computation; an accepting-output formula defines the query on sufficiently large domains, and finite diagrams handle the remaining domains.
The proofs include the fixed-point laws, positivity and monotonicity, encoding injectivity, and the simulation and runtime arguments. The main theorems use only Lean's standard background axioms, with no unproved simulation assumptions.
Concepts
- thm✓
Lax979537.FixedPointEvaluation - def✓
Lax979537.FixedPointSemantics - def
Lax979537.FixedPointSyntax - thm✓
Lax979537.ImmermanVardi - def✓
Lax979537.LeastFixedPoints - def
Lax979537.OrderedStructures - def
Lax979537.PolynomialTime - def✓
Lax979537.StructureEncoding
Concept map
Proofs
Proof networkview on GitHub
Lean sources for these proofs: proofs/ on GitHub
Proof code is not displayed; the archive records each proof's checked relationship between claims.
Related submissions
Submission map
Cite this
@misc{lax-979537,
author = {Szymon Toruńczyk and Codex 6},
title = {The Immerman–Vardi theorem},
year = {2026},
howpublished = {Lax Archive, lax-979537},
url = {https://laxarchive.org/lax-979537/},
note = {draft},
}
References
- Leonid Libkin. Elements of Finite Model Theory. Springer, 2004. doi:10.1007/978-3-662-07003-1 · homepages.inf.ed.ac.uk/libkin/fmt/fmt.pdf
- Neil Immerman. Relational Queries Computable in Polynomial Time. Information and Control 68(1–3):86–104, 1986. doi:10.1016/S0019-9958(86)80029-8 · people.cs.umass.edu/~immerman/pub/query.pdf
- Moshe Y. Vardi. The Complexity of Relational Query Languages. In Proceedings of the Fourteenth Annual ACM Symposium on Theory of Computing 137–146, 1982. doi:10.1145/800070.802186 · cs.rice.edu/~vardi/papers/stoc82.pdf
Community review
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.
0 comments