The Cook–Levin theorem, by first-order reductions

Lax904597.CookLevin · concepts/Lax904597/CookLevin.lean · lax-904597

proven

Loading review…

Sign in with ORCID

Community review

Flags

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

No flags have been submitted.

    Community review

    Flag this concept

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

    No source line selected.

    Natural Language Statement

    Theorem

    SAT is NP-complete, with NP read as existential second-order definability and hardness as cofinal hardness under relativized ordered first-order reductions. The two halves are stated in their sharper forms as well: SAT is Σ1\Sigma_1-definable, by the sentence that guesses a truth assignment and checks, in first-order logic, that every clause contains a true literal; and every Σ1\Sigma_1-definable problem has a plain ordered first-order reduction to SAT. The reduction is generic and machine-free: in the manner of Dahlhaus, it rewrites the first-order kernel of the defining sentence into clauses over the elements of the input structure, with the guessed relations as propositional variables.

    Since ordered first-order reductions are computable in AC0\mathrm{AC}^0 (a standard fact, not formalized here), the hardness half is stronger than hardness under polynomial-time reductions.

    Concept map
    7 concepts
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    This concept declares 3 statements. Each proof establishes one of them relative to its assumptions.

    1 sat_hard_of_sigmaSODefinable proven

    2 SAT_NP_complete proven

    3 sat_sigmaSODefinable proven

    Lean source view on GitHub

    1import Lax904597.Classes
    2import Lax904597.Sat
    3
    4/-!
    5---
    6title: The Cook–Levin theorem, by first-order reductions
    7type: theorem
    8---
    9SAT is NP-complete, with NP read as existential second-order definability
    10and hardness as cofinal hardness under relativized ordered first-order
    11reductions. The two halves are stated in their sharper forms as well: SAT is
    12Σ1\Sigma_1-definable, by the sentence that guesses a truth assignment and
    13checks, in first-order logic, that every clause contains a true literal; and
    14every Σ1\Sigma_1-definable problem has a plain ordered first-order reduction
    15to SAT. The reduction is generic and machine-free: in the manner of
    16Dahlhaus, it rewrites the first-order kernel of the defining sentence into
    17clauses over the elements of the input structure, with the guessed relations
    18as propositional variables.
    19
    20Since ordered first-order reductions are computable in AC0\mathrm{AC}^0 (a
    21standard fact, not formalized here), the hardness half is stronger than
    22hardness under polynomial-time reductions.
    23-/
    24
    25namespace Lax904597.CookLevin
    26
    27open FirstOrder FirstOrder.Language
    28open Lax904597.Problems Lax904597.Interpretations Lax904597.SecondOrder Lax904597.Classes
    29 Lax904597.Sat
    30
    31/-- SAT is `Σ₁`-definable: SAT is in NP. -/
    32axiom sat_sigmaSODefinable : SigmaSODefinable 1 SAT
    33
    34/-- Every `Σ₁`-definable problem has an ordered first-order reduction to
    35SAT. -/
    36axiom sat_hard_of_sigmaSODefinable : ∀ {L : Language.{0, 0}} [L.IsRelational]
    37 (Q : DecisionProblem L), SigmaSODefinable 1 Q → Nonempty (OrderedFOReduction Q SAT)
    38
    39/-- The Cook–Levin theorem: SAT is NP-complete. -/
    40axiom SAT_NP_complete : NP.Complete SAT
    41
    42end Lax904597.CookLevin
    43
    Show ProofShow ProofShow Proof
    Builds on
    Used by

    none

    From Mathlib

    none

    Discussion

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

    Loading discussion…