Descriptive complexity: decision classes defined by counting
No public endorsements yet.
Loading review…
Sign in with ORCIDAbstract
Decision classes defined by counting, from the descriptive-complexity library. It builds on the NP core registered as lax-904597 and on the submissions on logarithmic space (lax-485149), polynomial time (lax-535992), the polynomial hierarchy (lax-564036), AC⁰ (lax-895169), and counting problems, #P, and FP (lax-366625).
A problem is in one of these classes when its answer is a property of the numbers of witnesses of existential second-order sentences over ordered structures, the descriptive form of the numbers of accepting runs of a nondeterministic machine: ⊕P, after Papadimitriou and Zachos and, independently, Goldschlager and Parberry, when the number is odd; Mod_k P, after Cai and Hemachandra, when it is not a multiple of k; PP, after Gill, when one number exceeds another; C₌P, after Wagner, when two numbers are equal; and UP, after Valiant, when there is at most one witness and the answer is whether there is one. Comparing two numbers, rather than taking the sign of one integer, is the two-number form of the GapP characterization of Fenner, Fortnow, and Kurtz.
UP is contained in NP and in ⊕P, NP and coNP in PP, and ⊕P and PP are closed under complement. ⊕SAT is ⊕P-complete and Mod_k-SAT is Mod_k P-complete, and more generally the parity and the residues of every parsimoniously #P-complete problem are complete, since a parsimonious reduction preserves every property of the count; ⊕P and Mod_k P are also reducibility to the parity and residues of the number of accepting runs of a Turing machine. Comparing the models of a CNF formula in which a selected variable is true with those in which it is false gives a PP-complete problem, by majority, and a C₌P-complete one, by equality; the hardness proof pairs two kernels in one Tseitin formula. No complete problem is known for UP, a question which Hartmanis and Hemachandra showed not to relativize.
The proofs are those of the library's development after version 1.2.2, on its Lean 4.33 branch, sliced to what these statements use; they assume the submission's own statements and those of the submissions it requires 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
- thm✓
CountClassComplements - thm✓
CountClassInclusions - thm✓
CountClassMembership - lem✓
CountingValues - thm✓
ParitySatComplete - thm✓
SelectedSatComplete
- def
CountDefinability - def
SelectedSat
- def
Lax366625.CountingClasses - def
Lax366625.CountingProblems - def
Lax366625.CountingRuns - def
Lax366625.CountingSat - def
Lax366625.HornNumbers - def
Lax366625.MachineNumbers - def
Lax366625.NumberedCircuits - def
Lax366625.QuantitativeLogic - def
Lax366625.SecondOrderCounting - def
Lax366625.WitnessCounting - def
Lax485149.Complement - def
Lax485149.Problems - def
Lax485149.SecondOrderAtoms - def
Lax535992.CircuitValue - def
Lax535992.ClassPTIME - def
Lax535992.DeterministicMachines - def
Lax535992.HornFragment - def
Lax535992.HornSat - def
Lax535992.LeastFixedPoint - def
Lax564036.Hierarchy - def
Lax895169.BitPredicate - 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
-
⊢
Lax175070Proofs.Bridge.mem_parityP_iff_le_parity_sharpNtmAccept -
⊢
Lax175070Proofs.Bridge.modP_complete_of_sharpP_parsimoniousComplete -
⊢
Lax175070Proofs.Bridge.parityP_complete_of_sharpP_parsimoniousComplete
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-175070,
author = {Pierre Senellart and Claude (Anthropic)},
title = {Descriptive complexity: decision classes defined by counting},
year = {2026},
howpublished = {Lax Archive, lax-175070},
url = {https://laxarchive.org/lax-175070/},
note = {draft},
}
References
- Pierre Senellart. DescriptiveComplexity: Completeness by First-Order Reductions in Lean. 2026. doi:10.5281/zenodo.21678423 · github.com/PierreSenellart/descriptive-complexity
- Christos H. Papadimitriou and Stathis K. Zachos. Two remarks on the power of counting. In Theoretical Computer Science, 6th GI-Conference 269–275, 1982. doi:10.1007/BFb0009651
- Leslie M. Goldschlager and Ian Parberry. On the construction of parallel computers from various bases of boolean functions. Theor. Comput. Sci. 43:43–58, 1986. doi:10.1016/0304-3975(86)90165-9
- Jin-yi Cai and Lane A. Hemachandra. On the power of parity polynomial time. Math. Syst. Theory 23(1):95–106, 1990. doi:10.1007/BF02090768
- John Gill. Computational Complexity of Probabilistic Turing Machines. SIAM J. Comput. 6(4):675–695, 1977. doi:10.1137/0206049
- Klaus W. Wagner. The complexity of combinatorial problems with succinct input representation. Acta Informatica 23(3):325–356, 1986. doi:10.1007/BF00289117
- Leslie G. Valiant. Relative complexity of checking and evaluating. Inf. Process. Lett. 5(1):20–23, 1976. doi:10.1016/0020-0190(76)90097-1
- Stephen A. Fenner, Lance J. Fortnow and Stuart A. Kurtz. Gap-definable counting classes. J. Comput. Syst. Sci. 48(1):116–148, 1994. doi:10.1016/S0022-0000(05)80024-8
- Juris Hartmanis and Lane A. Hemachandra. Complexity classes without machines: On complete languages for UP. Theor. Comput. Sci. 58(1–3):129–142, 1988. doi:10.1016/0304-3975(88)90022-9
- G. S. Tseitin. On the complexity of derivation in propositional calculus. In Studies in Constructive Mathematics and Mathematical Logic, Part II 115–125, 1968. Translated from the Russian.
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments