Skip to content

Cook–Levin Theorem

The theorem that Boolean satisfiability is NP-complete because every NP decision problem has a polynomial-time truth-preserving reduction to SAT.

Version
v1 · 2026-10-03 · History
Domain-specific #
13096
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomains
Computational Complexity, NP Completeness → Computer Science & Software Engineering
Aliases
Cook's theorem in the SAT-completeness sense

Core Idea

The Cook–Levin theorem says that Boolean satisfiability (SAT) is NP-complete. SAT is in NP because a proposed satisfying assignment is efficiently checked. Every NP decision language can also be transformed in deterministic polynomial time into a Boolean formula that is satisfiable if and only if the original instance is a yes-instance. The standard proof encodes a bounded accepting computation as Boolean choices constrained by valid start, transition and acceptance rules.[1]

How would you explain it like I'm…

The Master Switch Puzzle

Some puzzles are hard to solve but easy to check once someone shows you an answer. The Cook–Levin Theorem says every puzzle like that can be turned, quickly, into one special kind of on-off switch puzzle. So if anyone ever found a fast way to solve the switch puzzle, they could solve all those puzzles fast. Nobody knows yet if such a fast way exists.

Every Checkable Puzzle Becomes SAT

Some puzzles are hard to solve but easy to check once someone shows you an answer. Computer scientists call that family NP. One puzzle, called SAT, asks whether you can set true/false switches so a logic rule comes out true. The Cook–Levin Theorem says SAT is in this family, and every other puzzle in the family can be quickly rewritten as a SAT puzzle with the same yes-or-no answer. So a fast SAT solver would quickly solve every puzzle in the family, but the theorem doesn't say such a solver exists.

SAT Is NP-Complete

NP is the class of yes/no problems where a proposed solution can be checked in polynomial time (time that grows reasonably with input size). SAT asks whether a Boolean formula has a true/false assignment making it true. The Cook–Levin Theorem says SAT is NP-complete: it is in NP, since checking an assignment is quick, and every NP problem can be converted in polynomial time into a formula that is satisfiable exactly when the original answer is yes. The proof writes the checking computation as a formula whose variables describe the computation's states, with rules for a correct start, legal steps and acceptance. The conversion must itself be fast; just writing a computation as some enormous formula wouldn't count. Consequently a fast SAT solver would give P = NP, though the theorem doesn't claim one exists.

 

The Cook–Levin Theorem, in modern form, states that Boolean satisfiability (SAT) is NP-complete. Membership: a truth assignment is a certificate checkable in polynomial time. Hardness: for every language L in NP there is a deterministic polynomial-time map f_L from instances x to formulas such that x ∈ L iff f_L(x) is satisfiable. The standard proof encodes a polynomially bounded accepting computation of a nondeterministic machine (equivalently, a verifier plus guessed certificate) as a formula: variables describe tape contents, head position and state at each step, and clauses enforce a correct start configuration, legal transitions and an accepting configuration. A satisfying assignment then corresponds to a consistent accepting history. The size and construction time must be polynomial; merely expressing computations as huge formulas would not show NP-hardness. Thus a polynomial-time SAT algorithm would imply P = NP, without the theorem asserting such an algorithm exists. Historically, Cook's 1971 statement used polynomial-time oracle reducibility to propositional tautology, yet his proof explicitly built a CNF formula satisfiable iff the machine accepts, so it contains the SAT encoding even though the headline differs from today's many-one formulation.

Scope of Application

The theorem supplies the starting NP-complete problem for later hardness proofs. Showing that another decision problem is NP-complete still requires its own polynomial reduction from an already-hard problem and proof of membership in NP. Related stepwise SAT encodings appear in bounded verification or planning, but an encoding of one application is not itself the universal theorem.[1]

Clarity

The reduction does not find a witness. MIT's six-step tableau shows state \(A\), tape \(000000\) at time 0 and halting state \(H\), tape \(011110\) at time 6; variables stand for each bounded row's tape, head and state. In Cook's original construction, a clause \((\neg S_{i,t}\lor\neg S_{j,t})\) for \(i\ne j\) is false if two head positions are simultaneously chosen, so it executes one local consistency rule. Many such constraints plus start and acceptance conditions yield a formula satisfiable iff a valid accepting run exists. The single tableau and clause illustrate, but do not alone prove, universality.[1][2]

Manages Complexity

Many different NP problems can be compared through a common SAT target. If SAT were solvable in polynomial time, every NP decision problem would be, yielding \(P=NP\). Cook–Levin neither supplies that algorithm nor proves \(P\ne NP\). Cook's 1971 theorem statement used a tautology/oracle formulation, but its proof also explicitly constructed an accepting-iff-satisfiable CNF \(A(w)\); the present SAT/many-one sentence is the standard modern framing.[2][1]

Abstract Reasoning

State the source decision language and polynomial witness/verification bound. Define a deterministic polynomial transformation to a formula, and prove that yes-instances map exactly to satisfiable formulas. Establish SAT membership separately. For a later completeness proof, check the reduction direction: the known hard problem must reduce to the proposed new target.[1]

Knowledge Transfer

The idea of encoding bounded global behavior through local Boolean constraints can guide other formal models, but a single model encoding lacks the theorem's universal claim. NP-completeness and polynomial reduction are concepts used in the theorem rather than aliases for it; the accepted broad theorem genus does not make either concept a second strict parent.

Relationships to Other Abstractions

Local relationship map for Cook–Levin TheoremParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Cook–Levin TheoremDOMAINDomain-specific abstraction: Formal theorem — is a kind ofFormal theoremDOMAIN

Current abstraction Cook–Levin Theorem Domain-specific

Parents (1) — outgoing typed relations

  • Cook–Levin Theorem is a kind of Formal theorem Domain-specific

    Cook–Levin is a proved formal theorem about SAT membership and NP-hardness under polynomial reductions.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Cook–Levin Theorem sits in a sparse region of the domain-specific corpus (81st percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Computational Complexity & Hardness (18 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] MIT OpenCourseWare, modern Cook–Levin tableau exposition. registry ↩a ↩b ↩c ↩d ↩e

[2] Cook's original 1971 paper hosted by its author. registry ↩a ↩b