In 1971, Stephen Cook proved something that has vexed computer science ever since: there is a huge family of problems where checking whether an answer is correct is easy, but finding the answer from scratch may be hopelessly hard — and they are, in essence, all the same problem, so cracking any one of them cracks the lot. This is the origin of the famous open question P versus NP.
First, a strange fact
Some things you can check in a glance once the answer is handed to you, yet finding that answer yourself is brutal. A box of jigsaw pieces: once it's assembled you see in a second whether it's right — but building it from loose pieces can eat a whole day. Seating a big dinner table under a pile of "these two can't sit together" rules: hand me a finished chart and I can check it instantly, but producing one from nothing gets hopeless as the crowd grows. Cook noticed that such "easy to check, seemingly brutal to solve" problems are countless — and that they are all wired together.
The idea
Cook did two things. First, he fenced off this whole family of "easy-to-check" problems (later named NP). Second — and this is the stunning part — he proved that one problem in the family (deciding whether a string of logical conditions can all be satisfied at once, called satisfiability) is the hardest representative: any problem in the family can be quickly rewritten into that one problem.
How did he pull it off?
The key tool is rewriting (the technical name is a reduction). If I can quickly translate problem A into problem B — so A's answer is hidden inside B's answer — then "B is easy" implies "A is easy" too. Cook proved that every problem in the vast NP family can be translated this way into that one satisfiability problem. So it becomes a master key: if anyone finds a fast, general method to crack it, the entire family — thousands of seemingly unrelated hard problems — falls open all at once. Conversely, decades of nobody managing it have made people increasingly suspect that no such fast method exists.
What did it lead to?
"Does P actually equal NP?" became the single biggest open question in computer science, with a million-dollar prize still unclaimed. The practical payoff is large too: the moment you discover your hard problem belongs to the same family as that master key, you've essentially received a notice — stop hoping for a perfect-and-lightning-fast algorithm, and make do with approximations and clever shortcuts. One honest caveat: "hardest" means the worst case — in practice, many concrete instances of these problems are still solved quickly and well by today's solvers, so "same family" doesn't mean "this particular instance is forever unsolvable."
Remember this one line
Cook proved that within the big family of "easy-to-check" problems there is a hardest representative — crack it and you crack them all — and to this day nobody knows whether such a crack even exists. That is P versus NP.
Want the precise definitions of P and NP, how Cook's theorem is proved, and the diagram that "writes a computation as a logic puzzle"? → Switch to the Deep read
In one sentence
Cook's 1971 paper defined the class of problems whose answers can be verified in polynomial time (later called NP), introduced polynomial-time reductions for comparing the difficulty of problems, and proved the first NP-complete problem — the satisfiability (SAT) of propositional formulas: every problem in NP reduces to it in polynomial time. SAT thus became the "hardest representative" of all of NP, turning "does P equal NP?" from a vague intuition into a precise mathematical question.
Glossary
Decision problem: a problem whose answer is only "yes / no," e.g. "can this map be colored with three colors so no two neighbors match?" Complexity theory studies mainly this kind.
Input size & time complexity: how many steps an algorithm takes, written as a function of the "input size" n — the length of the input (digits of a number, nodes of a graph, …).
Polynomial time (P): a step count bounded by some fixed power of n (n, n², n³…) counts as "efficient / feasible"; the contrast is exponential time (roughly 2ⁿ), astronomical for even modest n. P is the class of decision problems that have a polynomial-time algorithm.
Turing machine: an abstract "barest-bones computer" — one tape, a read/write head, a table of rules — the mathematical definition of "algorithm / computable" (see the Turing Machine piece on this site); complexity is counted by how many steps it runs.
Deterministic vs nondeterministic: a deterministic machine has one action per step; a nondeterministic one may "fork and try all possibilities at once," succeeding if any branch reaches "accept" — a theoretical tool, not a real machine.
Propositional formula / satisfiability (SAT): a logical expression built from variables and "AND, OR, NOT"; SAT asks whether the variables can each be set true/false to make the whole expression true.
Reduction: a way to "translate" problem A into problem B so that A's answer can be read off from B's answer; if the translation itself is fast, then "B is easy ⇒ A is easy."
Where it sits
By Stephen Cook, presented at the third annual ACM Symposium on Theory of Computing (STOC) in 1971. It stands on Turing (1936, computability) and 1960s complexity theory (Hartmanis–Stearns and others making "how much resource does it take" itself the object of study), giving "hard to solve" its first precise, workable characterization. A year later Karp (1972) used it to prove 21 classic problems NP-complete, carrying the theory into the whole of algorithm design. The Soviet mathematician Levin obtained an equivalent result independently and almost simultaneously, so it is also called the Cook–Levin theorem. Cook received the 1982 Turing Award for it.
The problem & the motivation
By the 1960s, people could already separate "has an algorithm" from "has none" (computability, the line Turing drew). But within "has an algorithm" lay a vast gulf: testing whether a number is prime, or finding a shortest path in a graph, have fast algorithms; yet other problems — "can this map be 3-colored?", "can this batch of goods be packed exactly into a few bins?" — had only one known general method: try every possibility one by one, with the count exploding exponentially as the input grows. People sensed vaguely that such problems were "intrinsically harder," but couldn't say what "hard" even meant, let alone prove they truly had no fast algorithm. What was missing was a common yardstick: how do you say precisely that "problem A is at least as hard as problem B"? Cook's paper built that yardstick.
Core ideas / method
Two classes: P and NP
P: decision problems with a deterministic polynomial-time algorithm — "efficiently solvable." NP: for a "yes" instance, if there exists a certificate / answer of polynomial length that can be verified as valid in polynomial time, the problem is in NP — "answers can be efficiently verified." Equivalently, NP is the class decidable by a nondeterministic Turing machine in polynomial time (the machine "guesses" the certificate, then verifies). Example: SAT is in NP — hand over an assignment of the variables as a certificate, plug it into the formula, and you know at once whether it's true. Clearly P ⊆ NP (if you can solve it you can verify it). The suspense is the converse: does P = NP? Is everything efficiently verifiable also efficiently solvable?
Fig 1 · The landscape assuming P≠NP: P (solvable) sits inside NP (verifiable), NP-complete problems lie at NP's "hardest edge"; if P=NP, the three collapse into one.
Reduction: a yardstick for difficulty
Cook defined the polynomial-time reduction: if a polynomial-time procedure can turn every instance of A into an instance of B while preserving the answer (A is "yes" iff the produced B is "yes"), write A ≤ B, meaning "A is no harder than B" — because once you have a fast method for B, you can translate then solve B, incidentally solving A fast. Reductions are transitive and composable. With this yardstick, "which is hardest" acquires an exact meaning for the first time.
Fig 2 · Reduction: translate A into B quickly with the answer unchanged, so "B is easy" automatically yields "A is easy" — the ruler for comparing difficulty.
NP-completeness and Cook's theorem
If every problem in NP reduces to L, and L is itself in NP, then L is NP-complete — the "hardest representative" of NP: solve any one NP-complete problem (put it in P) and all of NP collapses into P, so P = NP at once. Cook's theorem: SAT is NP-complete. (Cook's original text phrased it via the "tautology" — always-true — decision, which is the complementary, equivalent form of SAT.) Behind this line is a startling fact: one concrete logical decision problem concentrates the entire difficulty of NP.
Proof intuition: writing a "computation" as a logic puzzle
How do you prove that the wildly assorted problems in NP all turn into SAT? Cook's trick is not to match problems one by one, but to target "the machine that verifies it." Behind any NP problem sits a nondeterministic Turing machine M that decides it within a polynomial number of steps. Spread M's entire run on input x into a tableau: rows are time steps, columns are tape cells, each cell recording the symbol at that moment, plus the head position and machine state.
Then describe every cell of the tableau with boolean variables, and nail down the "rules of the game" with a set of clauses: ① the first row must be exactly the input x; ② each pair of adjacent rows must obey M's transition rules (every step legal); ③ an accepting state appears in some row. The formula φ so assembled is satisfiable ⟺ M has a run that reaches accept. And since the tableau is only polynomially large, so is φ — and it can be built in polynomial time. Thus "does M accept x?" is translated into "is φ satisfiable?" — every NP problem ≤ SAT, and the theorem is proved. The key insight: satisfiability is "universal" enough to encode the very fact of whether each step of a computation is legal.
Fig 3 · Skeleton of Cook's proof: spread a nondeterministic machine's run into a tableau, pin down "start correct, every step legal, ends accepting" with boolean clauses; the formula is satisfiable iff the machine accepts — so every NP problem reduces to SAT.
Key results
This is a theory paper — no benchmarks, but the conclusions it delivers are checkable and hard:
The first NP-complete problem: SAT (and tautology decision) is NP-complete — every problem in NP reduces to it in polynomial time.
Cook also showed the completeness of another combinatorial problem (a subgraph problem), demonstrating that the tool is reusable, not a one-off trick.
The real detonation came with Karp 1972: using the same reduction technique, he proved 21 classic problems from logic, graph theory, scheduling, and set theory (satisfiability, clique, vertex cover, Hamiltonian cycle, partition, knapsack-type, …) all NP-complete — outwardly worlds apart, in fact the same problem in different clothes. Thousands of NP-complete problems are now known.
Why it matters / impact
It gave "hard to solve" a precise, operational definition and laid down the central structure of computational complexity theory: P, NP, reduction, completeness. From it:
A signpost for algorithm design: proving your problem NP-complete amounts (under the widely believed assumption P≠NP) to declaring "stop looking for a fast-and-exact general algorithm" — turn instead to approximation, heuristics, parameterized methods, or specialized solvers. This has saved countless doomed campaigns.
It spawned the SAT-solver industry: since everything reduces to SAT, encoding a real problem (hardware verification, planning and scheduling, program analysis) into SAT and handing it to a highly optimized solver became a universal weapon.
P vs NP became the top open problem: in 2000 it was named one of the Clay Mathematics Institute's seven "Millennium Prize Problems," its million-dollar prize still unclaimed. Cook himself received the 1982 Turing Award.
Limitations & criticism
It does not settle P vs NP: the theorem tells you these problems live and die together, but not whether they are actually hard; it remains open, and the field broadly believes P≠NP without a proof.
It characterizes only the worst case: NP-completeness is about the worst instance; in reality vast numbers of NP-complete problems have typical instances solved quickly and well by modern solvers (million-variable SAT is unremarkable) — "NP-complete" ≠ "unsolvable in practice."
Asymptotic ≠ practical: polynomial time is used as a synonym for "efficient," but n¹⁰⁰ is also polynomial; conversely, some exponential algorithms are fine at small scale. It's a convenient theoretical convention, not always matching real-world efficiency.
A difference in the kind of reduction: Cook used the broader polynomial-time Turing reduction; after Karp the field mostly switched to the stricter many-one reduction, so the two notions of "completeness" differ in detail.
Independent discovery and credit: Levin in the Soviet Union obtained an equivalent result on "universal search problems" almost simultaneously (arguably earlier), long overlooked in the West — hence the proper name Cook–Levin theorem.
Crossovers
Statistical physics · the random 3-SAT phase transition: Kirkpatrick and Selman (Science, 1994) used finite-size scaling from statistical physics to study random k-SAT: once the ratio of clauses to variables crosses a critical value (about 4.2 for 3-SAT), formulas flip from almost always satisfiable to almost never, and the instances solvers struggle with cluster right at that transition, like water freezing at zero. The difference: Cook's hardness is a verdict on the worst instance, while the phase transition describes the statistics of random ones, which is exactly why "NP-complete" does not mean "unsolvable in practice."
Quantum mechanics · superposition and Grover search: a nondeterministic machine "branching to try every possibility at once" looks a lot like quantum superposition. Yet Bennett, Bernstein, Brassard and Vazirani (1997) showed that for black-box search a quantum computer can only cut brute force down to its square root, a bound Grover's algorithm meets exactly. Unlike nondeterminism, measuring a superposition collapses it to a random branch; you cannot simply pick out the accepting one.
Biology · Levinthal's paradox: Levinthal (1969) noted that a protein trying every conformation in turn would take longer than the age of the universe to fold, yet real proteins fold in seconds or less; Berger and Leighton (1998) proved that folding in the simplified HP lattice model is NP-complete. Both face an exponential search space, but evolution has kept sequences with funnel-shaped energy landscapes, so nature never meets the worst case.
Philosophy of science · discovery vs justification: Reichenbach (Experience and Prediction, 1938) separated how a hypothesis is thought up from how it is justified. NP is a quantified version of that line: checking a certificate is easy, finding one may be very hard. Where they part ways: Reichenbach handed discovery to psychology and left it unanalyzed, while complexity theory turns "how much harder is finding than checking" into a provable question.
Economics · the complexity of Nash equilibrium: starting in 2006, Daskalakis, Goldberg and Papadimitriou used the same reduction-and-completeness toolkit to show that computing a Nash equilibrium is PPAD-complete, a cold shower for the assumption that markets simply compute their equilibria. Unlike SAT, an equilibrium is guaranteed to exist by Nash's theorem, so the question is never "is there one?", which places it in PPAD rather than among the NP-complete problems.
Ten takeaways
Cook's 1971 paper gave "intractable" its first precise definition and turned P versus NP into a rigorous mathematical question.
By the 1960s a vast gulf remained inside the computable: some problems seemed to need brute force, yet "harder" had no precise meaning.
P is the class of decision problems solvable in polynomial time; NP is the class whose answers can be verified in polynomial time.
A polynomial-time reduction A ≤ B means "if B is easy, so is A," giving a yardstick for comparing difficulty.
NP-complete problems are the hardest in NP: solve any single one efficiently and all of NP collapses into P.
The Cook–Levin theorem shows SAT is the first NP-complete problem; Levin reached an equivalent result independently in the Soviet Union.
The proof lays a nondeterministic Turing machine's run out as a tableau and pins down "valid start, legal steps, acceptance" with boolean clauses.
In 1972 Karp used the same reductions to show 21 classic problems NP-complete; thousands are known today.
NP-completeness describes only the worst case: modern SAT solvers routinely crack typical instances, and P versus NP is still open.
The gap between easy verification and hard discovery reads as a quantified version of Reichenbach's split between discovery and justification.