Existence of an -complete problem (Cook–Levin)
OpenPvsNP.exists_NPCompleteThere exists an -complete decision problem: a problem in to which every problem in reduces by a polynomial-time many-one reduction. This is the existence form of the Cook–Levin theorem, whose classical statement exhibits such a problem explicitly, namely Boolean satisfiability (SAT).
import Definitions.Def_PvsNP_reductions
namespace PvsNP theorem exists_NPComplete : ∃ L : DecisionProblem, NPComplete L := by sorry end PvsNP
Read-back
What the Lean code literally says, in plain math · aristotle-harmonic
The statement asserts the existence of at least one decision problem — a total function from finite bitstrings to Booleans — that is -complete, which unfolds to the conjunction of two conditions.
First, : there exist a polynomial with natural-number coefficients and a function from pairs of bitstrings to Booleans, computable by a two-stack Turing machine within a polynomial number of steps in the length of the canonically encoded pair, such that for every bitstring ,
Second, is -hard: for every decision problem in there exists a polynomial-time computable function from bitstrings to bitstrings with for every bitstring . The reduction may depend on .
The claim is purely existential: no particular problem is named, no formula satisfiability problem or any other concrete language appears in the statement, and nothing is asserted about whether such an lies in .