Descriptive complexity: first-order reductions and the NP core

lax-904597·formalized by Pierre Senellart @PierreSenellart · Claude (Anthropic)·registered·created ·GitHub @5aef71b·Lean v4.33.0 epoch · mathlib db584cd6d46c

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this submission may be incorrect.

No flags have been submitted.

    Community review

    Flag this submission

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    Abstract

    Two forms of the NP-completeness of SAT from the descriptive-complexity library, with corresponding definitions: a decision problem is an isomorphism-invariant predicate on the finite structures of a relational vocabulary; a reduction is a first-order interpretation, with tags for disjoint copies and, in the ordered variant, a linear order on the input; a complexity class is a set of problems closed under reductions, and NP is the class of problems definable in existential second-order logic.

    SAT is NP-complete (SAT_NP_complete): SAT belongs to NP, and every problem in NP reduces to SAT by an ordered first-order reduction, the generic Tseitin reduction applied to the problem's existential second-order definition.

    The machine form (SAT_complete_for_ntmAccept): the Cook–Levin theorem in the form the machine-based mechanizations prove, SAT complete for the class that nondeterministic machine acceptance defines. The library has no model of computation: machine acceptance is one more decision problem, whose instances are finite structures describing a nondeterministic Turing machine, its input and its step budget, and “accepted by a polynomial-time machine” means “reduces to that problem by an ordered first-order reduction”. SAT reduces to machine acceptance, and every problem that reduces to machine acceptance reduces to SAT.

    The proofs are those of version 1.2.2 of the library, sliced to what these statements use; 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

    Concept map
    10 concepts
    100%
    Proven claimDefinitionThis submissionA → B: B builds on A

    Proofs

    Proof networkview on GitHub

    100%
    assumptions conclusionProven claimStatement 1, 2, … of a claim with several statementsClaim from this submissionProof — open large view for details
    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

    No other submission in the archive builds on this one, and this one builds on none.

    Cite this

    This is only the formalizers. The authors of the formalized results may be different (see References).

    @misc{lax-904597,
      author = {Pierre Senellart and Claude (Anthropic)},
      title = {Descriptive complexity: first-order reductions and the NP core},
      year = {2026},
      howpublished = {Lax Archive, lax-904597},
      url = {https://laxarchive.org/lax-904597/},
    }

    References

    1. Pierre Senellart and Anton Gnatenko. Descriptive Complexity in Lean: Completeness by First-Order Reductions. 2026. arXiv:2609.18261
    2. Pierre Senellart. DescriptiveComplexity: Completeness by First-Order Reductions in Lean. 2026. doi:10.5281/zenodo.21678423 · github.com/PierreSenellart/descriptive-complexity

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…