Skip to Content
Chapter 8

Proof complexity: The war on proof length

Tomas Reimers 15 minute read

In 1985, Armin Haken proved that a statement every child understands (five pigeons don’t fit in four holes, one per hole) requires exponentially long proofs  in the standard reasoning system used by every SAT solver in Chapter 4. There’s a family poetry to it: his father, Wolfgang Haken, had stunned mathematics nine years earlier with the four-color theorem — a proof so enormous it needed a computer to check. The son proved certain proofs must be enormous: no cleverness, no insight, no reordering of steps gets the pigeonhole principle below exponential size in resolution. It was the first unconditional, exponential lower bound against a general-purpose reasoning system — and it is, to this day, one of the few fronts in the whole P vs NP war where the good guys have actually captured territory.

This chapter is about that front:

  1. The Cook–Reckhow program — how “prove that proofs must be long” became a formal attack on P vs NP, with a ladder of proof systems to climb.
  2. Resolution, and Haken’s theorem — the one-rule proof system, shown working by refuting Chapter 4’s unsatisfiable dinner-party formula φ′\varphi' in 14 machine-checked steps; why its lower bound holds; and the direct consequence for Chapter 4: formulas that provably kill every CDCL solver, forever.
  3. The ladder above — cutting planes, Frege, and the exact rung where the climb has been stuck for forty years, at the same altitude as Chapter 7’s wall.

Cook–Reckhow: lower bounds on arguments

Chapter 3’s loaded gun is still on the table: NP vs coNP asks whether refutations — proofs that a formula has no solution — can always be short; and if NP ≠ coNP, then P ≠ NP, because P is closed under flipping the answer, so P = NP would force NP and coNP to coincide. In 1979, Cook and Reckhow made that attackable  by defining what “a proof system” is in full generality: any polynomial-time checkable certificate format for unsatisfiability. (Polynomial checkability is the non-negotiable part — a “proof” you can’t efficiently verify is an oracle, not a proof. This is the same design constraint as Chapter 2’s NP verifier, pointed at “no” instead of “yes.”) Their theorem: some proof system admits polynomial-size refutations of every unsatisfiable formula if and only if NP = coNP.

Read the contrapositive as a battle plan. To prove NP ≠ coNP (and with it P ≠ NP) show that every proof system has unsatisfiable formulas requiring super-polynomial refutations. You can’t fight “every system” at once, but you can climb: take the systems mathematicians and machines actually use, weakest first, and prove exponential lower bounds against each — building techniques as the systems get stronger. Unlike Chapter 7’s assault on P/poly (stalled at 3n3n gates), this campaign has won real battles on real systems.

Resolution: one rule, and everything Chapter 4 runs on

The ladder’s first serious rung. Resolution has a single inference rule: from (A∨x)(A \lor x) and (B∨¬x)(B \lor \neg x), conclude (A∨B)(A \lor B) — if xx is true the second clause must lean on BB, if false the first must lean on AA, so A∨BA \lor B holds either way. A refutation derives, from the formula’s clauses, the empty clause ⊥\bot — a clause with no literals left, satisfiable by nothing — certifying unsatisfiability. One rule is all it takes to be complete: every unsatisfiable CNF has a resolution refutation. Here’s a real one — our no-lonely-guests party φ′\varphi' from Chapter 4, refuted in 14 steps, every step machine-verified:

(¬a∨b∨c∨d)(¬a∨¬b)(¬c∨d)(¬a∨¬d)(¬a∨c∨d)(¬a∨d)(¬a)… 7 steps → (¬b)… then (c), (d), (¬c∨¬d) →⊥
the rule — from (A ∨ x) and (B ∨ ¬x), conclude (A ∨ B): if x is true the second clause needs B; if false the first needs A. That's the entire proof system.
Resolution refuting the no-lonely-guests party: the full derivation of (¬a) — the same fact Chapter 4's CDCL learned from its first conflict, which is no coincidence: clause learning IS resolution. The complete refutation runs 14 steps to the empty clause, every one machine-checked. Resolution's one rule makes proofs easy to verify — and easy to reason about, which is how the first exponential lower bound was won.

Watch step 3 of the derivation: resolution concludes (¬a)(\neg a) (Alice can never attend) which is exactly the clause Chapter 4’s CDCL solver learned from its first conflict — and the identity is literal. Chapter 4’s solver extracts every learned clause by cutting through its implication graph, and that extraction is resolution. Concretely: the conflicting clause says “this combination fails”; resolving it against the clause that forced the most recent assignment eliminates that variable and bakes its reason in; repeat backward to the frontier, and what survives mentions only the frontier’s assignments — the learned clause, derived by nothing but resolution steps. A CDCL run on an unsatisfiable formula, written out, is therefore a resolution refutation (the DRAT log is its receipt) and the correspondence is tight in both directions : CDCL with restarts can match general resolution up to polynomial factors.

The correspondence even grades Chapter 4’s family tree. Plain DPLL (backtracking with no learning) corresponds to tree-shaped resolution, where every lemma must be re-derived from scratch in every branch that needs it; on pigeonhole the tree pays roughly n!n!, because the search effectively re-enumerates the orderings of the pigeons (all n!=2Θ(nlog⁡n)n! = 2^{\Theta(n \log n)} of them), one full re-derivation per ordering. Clause learning is exactly what upgrades the tree to a DAG, deriving each lemma once and reusing it everywhere — which drops pigeonhole to the 2Θ(n)2^{\Theta(n)} range. So the leap from DPLL to CDCL that Chapter 4 narrated as engineering is a provable exponential improvement in proof-theoretic terms — and, by the theorem below, still provably not enough.

One caution on “can match”: the correspondence is existential. Atserias and Müller proved in 2020  that finding a short resolution refutation, even for formulas that have one, is itself NP-hard. Lower bounds say where no solver can win; this says even the winnable games can be hard to win. So Chapter 4’s entire engine room (GRASP, Chaff, MiniSat, Kissat, every heuristic, every restart schedule) operates strictly inside this one-rule proof system. Its running time on UNSAT instances is bounded below by the shortest resolution refutation that exists — so “do short resolution refutations always exist?” is a question about every solver’s running time.

Haken’s theorem: the pigeons that outlive every solver

They don’t. The formula that proves it encodes the pigeonhole principle — PHPnn+1\mathrm{PHP}^{n+1}_n: variables xp,hx_{p,h} for “pigeon pp sits in hole hh,” clauses saying every pigeon lands somewhere and no hole takes two. With more pigeons than holes it’s unsatisfiable, for reasons a child can articulate:

p1p2p3p4h1h2h3x_p,h — 12 variables: which pigeon where?
4 pigeon clauses: (x₁₁∨x₁₂∨x₁₃) … — every pigeon lands somewhere
18 hole clauses: (¬x₁₁∨¬x₂₁) … — no two pigeons share a hole
The pigeonhole formula PHP(4→3): every pigeon gets a hole (one clause per pigeon), no hole gets two (one clause per hole per pigeon-pair) — 12 variables, 22 clauses, obviously unsatisfiable to any human. Haken 1985: resolution refutations of PHP(n+1→n) require exponential size. Scale to a few dozen pigeons and this one-paragraph formula outlives every CDCL solver on earth.

Haken’s 1985 theorem: every resolution refutation of PHPnn+1\mathrm{PHP}^{n+1}_n has size 2Ω(n)2^{\Omega(n)}. Haken’s own proof is bottleneck counting: follow the “critical” assignments (every hole filled, exactly one pigeon left out) through the refutation, show that somewhere in its middle each of them must be killed by a clause that mentions many pigeons at once, and count how many such clauses it takes to cover them all.

The cleaner modern view (via Ben-Sasson–Wigderson , 2001) runs through an intermediate quantity, width: the length of the longest clause a refutation ever writes down. Two facts pincer a formula. First, short proofs are narrow: a refutation of size SS can be converted into one of width about w0+O(Nlog⁡S)w_0 + O(\sqrt{N \log S}), where NN counts the formula’s variables and w0w_0 is its widest starting clause. Second, some formulas force width: any refutation must, somewhere in its middle, state a fact about a medium-sized chunk of the formula, and when the formula is wired along a well-connected graph, that fact is irreducibly wide, because resolution can’t say “at least kk of these”; it can only enumerate. If a formula starts narrow and forces width Ω(N)\Omega(N), the two collide in one line of algebra: Nlog⁡S≳N\sqrt{N \log S} \gtrsim N (read ≳\gtrsim as “at least, up to a constant”), so log⁡S≳N\log S \gtrsim N and S≥2Ω(N)S \ge 2^{\Omega(N)}.

Pigeonhole itself doesn’t fit that template directly, and the reason is instructive. Its “every pigeon lands somewhere” clauses are already nn literals wide, and it has about n2n^2 variables, so plugging it straight in yields nothing. Ben-Sasson and Wigderson recover Haken’s bound through a sparse cousin: each pigeon may only use a few holes, chosen along a well-connected bipartite graph. Now the starting clauses are narrow, the width requirement is linear in the variable count, and the algebra above goes through. And setting the forbidden pigeon–hole variables to false turns any refutation of the original into a refutation of the sparse version, no larger, so the original is at least as hard. Exponential size is the only exit.

What this buys:

  • Chapter 4’s promised wall, delivered. Pigeonhole formulas are tiny: eleven pigeons and ten holes is 110 variables and 561 clauses (11 “lands somewhere” clauses plus 10×(112)=55010 \times \binom{11}{2} = 550 pairwise exclusions), small enough to print on a page. That one instance a modern solver still finishes; the theorem is about growth. Keep adding pigeons and every CDCL solver on earth, present and future, needs time exponential in their number, on formulas whose size grows only as the cube of that number. Not “hasn’t been tuned for it”: provably cannot, by the CDCL-resolution correspondence. When engineers at a verification company watch their million-variable-crushing solver choke on a toy scheduling core, this theorem is usually what’s biting: somewhere inside, the instance asks the solver to count. And the lower bound shapes practice: solvers now ship special inference rules (cardinality reasoning, symmetry breaking) precisely to step outside resolution when pigeons appear. The same move exists for parity: solvers in the CryptoMiniSat  line detect XOR substructure hiding in the clauses and run Gaussian elimination on it mid-search, stepping outside resolution exactly where the next bullet’s formulas would otherwise bite. Read practically, each lower bound has served as a shopping-list entry telling engineers which foreign inference rule to bolt on next.
  • Chapter 6’s cliff, explained from below. Chvátal and Szemerédi proved that random 3-SAT at clause densities past a constant requires exponential resolution refutations  with high probability. So on the UNSAT side, the hardness you measured in the browser was this chapter’s mechanism in miniature. (The theorem is asymptotic and the browser ran n=50n = 50, so read it as a preview, not an instance.) The DPLL search, whose closed search tree also transcribes into a resolution refutation, wasn’t being slow; it cannot run shorter than the shortest refutation that exists.
  • A second hard family, with strange scenery. Urquhart’s 1987 bound  uses Tseitin formulas: put a bit of “charge” on each node of a graph, write clauses forcing every node’s incident edge-variables to XOR to its charge. Odd total charge makes it unsatisfiable: sum every node’s constraint and each edge variable appears exactly twice (once per endpoint) so the sum is unavoidably even, while the total charge says it should be odd. No assignment survives. For these formulas to need exponential refutations, the underlying graph must be special: sparse, but so well-connected that no small cut isolates anything — every partial accounting of charge stays irreducibly wide. Graphs with that property have a name, and the echo from Chapter 5 is exact: the lower bound once again lives in how much information must cross a cut.

Is there a geometric picture of what a refutation is?

A clean one, on Chapter 2’s Hamming cube. Call a subcube (a partial assignment) blocked if every point inside it falsifies one specific clause of the formula. A closed DPLL search tree is exactly a partition of the whole cube into blocked subcubes: each leaf is a region of assignments that all die, together, for one syntactic reason. And the certificate checks arithmetically: disjointness of two subcubes is a syntactic clash on some literal, a subcube fixing kk variables has size 2n−k2^{n-k}, and if the sizes of disjoint blocked pieces sum to exactly 2n2^n, coverage is forced: unsatisfiability as a partition of unity.

In this picture a short proof is a coarse tiling: one subcube certifying exponentially many doomed assignments at once, because they share a reason. NP = coNP would mean every unsatisfiable formula admits a polynomially coarse tiling — that doomed regions of Boolean space always share reasons in bulk. Haken’s theorem says pigeonhole’s tiling is irreducibly fine in the language of clauses; stronger systems coarsen the available tilings by enriching the language of reasons, and indeed once a system can introduce definitions (extended resolution: “let qq name the rerouted assignment with one pigeon and one hole fewer”), pigeonhole’s exponential tiling compresses to polynomial.

Doesn’t Haken’s theorem feel like it already proves something huge — “simple truths need exponential proofs”?

Only inside resolution, and the ladder’s next rung shows how much that caveat carries. Cutting planes — a proof system that reasons with integer linear inequalities instead of clauses — proves the pigeonhole principle in polynomial size, trivially. It writes ”∑hxp,h≥1\sum_h x_{p,h} \ge 1 for each of n+1n+1 pigeons” and ”∑pxp,h≤1\sum_p x_{p,h} \le 1 for each of nn holes,” adds everything up, and reads off n+1≤nn + 1 \le n. The whole exponential wall was an artifact of resolution’s inability to count. This is the recurring lesson of proof complexity: a lower bound against a system is a theorem about that system’s blind spot, not about truth being deep. Each rung’s blind spot needs a different exploit — which is exactly why climbing is slow. (Cutting planes fell too, by the way — Pudlák 1997 , by yet another new technique, interpolation, which converts short proofs into small circuits and then invokes Chapter 7’s monotone bounds — a message-passing argument of the communication-complexity school Chapter 10 dissects. Proof complexity and circuit complexity, you’ll have noticed, keep borrowing each other’s weapons.)

The ladder, and where everyone is stuck

truth tablescheck all 2ⁿ rowsalways exponential — the baseline
resolutionone rule; where CDCL solvers live✕ exponential for pigeonhole (Haken 1985), Tseitin (Urquhart 1987), random 3-SAT (Chvátal–Szemerédi 1988)
cutting planesinteger-linear reasoning; counts natively✕ pigeonhole becomes EASY here — but other formulas are exponential (Pudlák 1997)
THE CLIMB STOPS HERE
Fregetextbook propositional logic, full formulasno superpolynomial lower bound known — open since 1979
extended Frege+ definitions (name any subformula)open; believed the hardest target short of the full question
The Cook–Reckhow ladder: prove exponential lower bounds against ever-stronger proof systems, and if you can do it for ALL of them, NP ≠ coNP (and hence P ≠ NP). Note the pattern up the ladder: each system's lower bound got harder, each took a new idea, and the climb has been stalled at Frege for four decades — the proof-complexity twin of Chapter 7's wall.

Above cutting planes sits Frege — ordinary textbook propositional logic, modus ponens (from AA and A→BA \to B, conclude BB) over arbitrary formulas. It proves pigeonhole in polynomial size (Buss 1987 ), handles Tseitin easily, and against it the field has proven… nothing: no super-polynomial lower bound for any formula family, despite forty years of trying. One rung higher, extended Frege — allowed to introduce definitions, the way working mathematicians name things — and the silence is deeper still. This is not coincidence: Frege systems stand in rough correspondence with the circuit class NC¹ (shallow, log-depth circuits), extended Frege with P/poly (general polynomial-size circuits). A proof is a computation that explains itself, and lower-bounding proof length keeps reducing to lower-bounding circuit size one floor up. The two campaigns (against circuits, against proofs) stalled at the same altitude, in the same decade: an arsenal of techniques that worked brilliantly on restricted targets went quiet all at once.

Why do definitions matter so much? Because they are to proofs what subroutines are to programs: logically eliminable (any defined variable can be expanded away), but the macro-expansion can cost an exponential. Pigeonhole’s short human proof is a recursion — reroute whoever sits in the last hole, and you now face nn pigeons and n−1n-1 holes; repeat — and a system with definitions transcribes exactly that, one layer of named reroutings per step, polynomial in total. Plain resolution, unable to name, must inline each layer’s construction into the next until the text grows exponentially: Haken’s theorem says the explosion is a failure not of strategy but of vocabulary. The extended-Frege question, in this language: is any contradiction so tangled that no amount of subroutine-naming can modularize its proof? Nobody has exhibited one; nobody has proven one exists.

Is there a rung made of algebra instead of logic?

A whole branch. In the sum-of-squares (SOS) system, encode each clause as a polynomial equation (plus x2=xx^2 = x to keep variables Boolean); a degree-dd refutation writes −1-1 as a sum of squared polynomials plus constraint multiples, everything of degree at most dd. Checking one — even finding one — is a semidefinite program running in nO(d)n^{O(d)} time, which makes SOS the rare proof system whose proofs are efficiently discoverable, and the engine behind the strongest approximation algorithms known.

Its duality is the cleanest statement of “lower bound” in this book: for each degree dd, exactly one of two objects exists. Either the refutation, or a pseudo-expectation — an assignment of values to all monomials of degree ≤d\le d that is normalized, respects every constraint, and hands every square a nonnegative value. A pseudo-expectation is a perfect forgery: against every polynomial test of degree ≤d\le d it is indistinguishable from a genuine distribution over solutions, even when no solution exists. Proving an SOS lower bound is building the forgery. Grigoriev built one of linear degree  for Tseitin formulas (2001), and Schoenebeck did the same  for random 3-SAT even at clause densities far above Chapter 6’s cliff (2008): sub-exponential SOS cannot see through either. Hardness as the best fake passes every cheap test is exactly the silhouette of Chapter 12’s barrier, with the forgery played by pseudorandom functions.

Twice now, a lower bound has turned on the same strange requirement: Urquhart’s hard Tseitin formulas need graphs that are sparse but unchokeable (no small cut disconnects much) and Ben-Sasson–Wigderson’s width machinery quantifies hardness through exactly that expansion. Chapter 5’s multiplier bound (multiplication’s decision diagrams explode because carries force information across every cut) was the same argument in a third costume. Sparse graphs where every cut is wide are called expander graphs, and once you know to look for them, they turn up everywhere explicit hardness is manufactured — in hard formulas, in error-correcting codes, in derandomization, and in the PCP theorem, which extends Cook–Levin into something far stranger. They are, in a precise sense, the most random-looking objects humans know how to build deterministically — Chapter 7’s haystack problem, partially solved. They get the next chapter; one more chapter names the blade all these bounds share; and then the barriers.

Further reading

Last updated on