Descriptive complexity: PTIME, fixed points and the Immerman–Vardi theorem
No public endorsements yet.
Loading review…
Sign in with ORCIDAbstract
Polynomial time as a logically defined class, from the descriptive-complexity library, built on the NP core registered as lax-904597 and on the logarithmic-space classes registered as lax-485149. PTIME is the class of decision problems on finite structures definable in the Horn fragment of existential second-order logic, on ordered structures and invariantly in the order: the logic that captures polynomial time by a theorem of Grädel. No machine model enters the definition.
The Horn fragment is equivalent to first-order logic with least fixed points, FO(LFP), each compiled into the other; read against the definition of the class, this is the Immerman–Vardi theorem, PTIME = FO(LFP). FO(LFP) is closed under complement, hence so is the Horn fragment, and PTIME = coPTIME. First-order logic with inflationary fixed points defines the same problems on ordered structures, so FO(≤, IFP) = PTIME as well.
Four problems are complete under the core's first-order reductions: the satisfiability of Horn formulas, by a generic reduction that instantiates a Horn program, the polynomial-time counterpart of the Cook–Levin theorem; the circuit value problem; alternating reachability; and acceptance by a deterministic Turing machine within the bounds of the instance. The last relates the class to the machine model: a problem is in PTIME exactly when it reduces to deterministic machine acceptance.
The class sits between those of the two earlier submissions: L ⊆ NL ⊆ PTIME ⊆ NP, neither inclusion of a fragment being syntactic.
The proofs are those of version 1.2.2 of the library, sliced to what these statements use; they assume the core's hardness laws and the submission's own statements where they compose. The library and its documentation are at https://github.com/PierreSenellart/descriptive-complexity and https://pierresenellart.github.io/descriptive-complexity/DescriptiveComplexity.html. The Lean code was written with the assistance of several Claude models; the design and the statements are the author's.
Concepts
- lem✓
CircuitValueInvariance - thm✓
CircuitValuePTIMEComplete - lem✓
DeterministicMachineInvariance - thm✓
DeterministicMachinePTIMEComplete - lem✓
GameInvariance - thm✓
GamePTIMEComplete - thm✓
HornIsLeastFixedPoint - lem✓
HornSatInvariance - thm✓
HornSatPTIMEComplete - thm✓
ImmermanVardi - thm✓
InflationaryIsLeastFixedPoint - thm✓
LeastFixedPointComplement - thm✓
NLSubsetPTIME - thm✓
PTIMEClosure - thm✓
PTIMEEqCoPTIME - thm✓
PTIMESubsetNP
- def
CircuitValue - def
ClassPTIME - def
DeterministicMachines - def
Game - def
HornFragment - def
HornSat - def
InflationaryFixedPoint - def
LeastFixedPoint
- thm✓
Lax485149.LSubsetNL - def✓
Lax904597.Machines - thm✓
Lax904597.NPClass
- def
Lax485149.ClassL - def
Lax485149.ClassNL - def
Lax485149.Complement - def
Lax485149.DeterministicReachability - def
Lax485149.DeterministicTransitiveClosure - def
Lax485149.FirstOrderDefinability - def
Lax485149.HeadAutomata - def
Lax485149.KromFragment - def
Lax485149.Problems - def
Lax485149.Reachability - def
Lax485149.SecondOrderAtoms - def
Lax485149.TransitiveClosure - def
Lax485149.TwoSat - def
Lax904597.Classes - def
Lax904597.Interpretations - def
Lax904597.Problems - def
Lax904597.Relativized - def
Lax904597.Sat - def
Lax904597.SecondOrder
Concept map
Proofs
Proof networkview on GitHub
Proof list
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
This is only the formalizers. The authors of the formalized results may be different (see References).
@misc{lax-535992,
author = {Pierre Senellart and Claude (Anthropic)},
title = {Descriptive complexity: PTIME, fixed points and the Immerman–Vardi theorem},
year = {2026},
howpublished = {Lax Archive, lax-535992},
url = {https://laxarchive.org/lax-535992/},
note = {draft},
}
References
- Pierre Senellart and Anton Gnatenko. Descriptive Complexity in Lean: Completeness by First-Order Reductions. 2026. arXiv:2609.18261
- Pierre Senellart. DescriptiveComplexity: Completeness by First-Order Reductions in Lean. 2026. doi:10.5281/zenodo.21678423 · github.com/PierreSenellart/descriptive-complexity
- Neil Immerman. Relational Queries Computable in Polynomial Time. Inf. Control. 68(1-3):86–104, 1986. doi:10.1016/S0019-9958(86)80029-8
- Moshe Y. Vardi. The Complexity of Relational Query Languages (Extended Abstract). In Proceedings of the 14th Annual ACM Symposium on Theory of Computing, May 5-7, 1982, San Francisco, California, USA 137–146, 1982. doi:10.1145/800070.802186
- Erich Grädel. Capturing Complexity Classes by Fragments of Second-Order Logic. Theor. Comput. Sci. 101(1):35–57, 1992. doi:10.1016/0304-3975(92)90149-A
- Yuri Gurevich and Saharon Shelah. Fixed-point extensions of first-order logic. Annals of Pure and Applied Logic 32:265–280, 1986. doi:10.1016/0168-0072(86)90055-2
- Richard E. Ladner. The Circuit Value Problem is Log Space Complete for P. SIGACT News 7(1):18–20, 1975. doi:10.1145/990518.990519
- Neil Immerman. Descriptive Complexity. Springer, 1999. doi:10.1007/978-1-4612-0539-5
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments