Relativization: The first barrier
In 1975 — four years after Cook’s theorem made SAT the universal NP problem, with the field young and optimistic — Theodore Baker, John Gill, and Robert Solovay published a strange pair of constructions . They built two mathematical “worlds”: in one, P = NP; in the other, P ≠ NP. Both worlds are perfectly consistent; you can hold each in your hand. That sounds like a curiosity — of course a question has possible answers both ways before it’s resolved. The theorem’s sting is sharper: an enormous class of proof techniques, including essentially everything that had ever worked in computability and complexity theory up to that point, provably cannot tell the two worlds apart — and a proof that can’t distinguish the worlds can’t settle the question, because the question has different answers in each. It was the first of the three barrier theorems, and it announced the genre: in this field, when your weapons all fail at once, someone eventually proves a theorem about why, and the theorem is more interesting than the weapons were.
This chapter, in three steps:
- The weapon being confiscated: diagonalization — what it is, run on screen, and why it was the natural candidate for resolving P vs NP.
- The confiscation: oracles, the two worlds, and the actual construction of the world where P ≠ NP (it’s three paragraphs, and you already have all the parts).
- The escape exhibit: IP = PSPACE — a major theorem that doesn’t relativize, proven with a technique (arithmetization) you’ll run on real numbers — which maps exactly where the fence has a gate, and sets up barriers two and three.
Diagonalization: the technique that built the field
Chapter 1 stated the one unconditional separation on this book’s map — the time hierarchy theorem: more time computes strictly more, so P ≠ EXP — and deferred its proof to this chapter. Time to pay. The engine is the oldest move in the foundations playbook: diagonalization — Cantor’s uncountability argument, retooled by Gödel for the incompleteness theorem (the famous 1931 sentence asserting its own unprovability is a diagonal construction), by Turing for the halting problem, and by Hartmanis–Stearns for complexity. The move: machines are finite strings, so you can list them. Machines can be simulated, so you can compute what any of them does. Therefore you can define a problem whose answer on input is rigged to disagree with the -th machine on that very input. The rigged problem defeats every machine on the list — not by being deep, but by construction:
Give the rigged problem slightly more time than the machines it’s dodging (simulation has overhead — that’s the “slightly”) and is computable, yet outside the listed class: time hierarchy, proven. It’s a beautiful, infinitely reusable argument — and notice, because everything turns on this, how little it assumed about machines: that they can be enumerated, and that they can be run. Not what’s inside them. Not how they compute. A machine, to diagonalization, is a black box with a serial number.
So the natural plan for P vs NP, pursued seriously through the early 1970s: diagonalize NP against P — list the polynomial-time machines, build an NP problem dodging each one. Nobody could make it work. Baker, Gill, and Solovay explained the failure, and the explanation begins with a definition the field already had lying around.
Oracles: proofs that don’t read the fine print
An oracle machine is a Turing machine with a magic subroutine: a set , and a special instruction answering “is this string in ?” in one step. is polynomial time with oracle ; likewise. Oracles let you ask: does this theorem still hold if everyone, uniformly, gets the same magic? A proof (or technique) relativizes if yes: if it goes through verbatim when every machine in it carries an arbitrary oracle .
Diagonalization relativizes, and now you can see it immediately: enumeration doesn’t care about the oracle (machines-with-oracle are still finite strings); simulation doesn’t either (when the simulated machine queries , the simulator queries — black box in, black box out). The same holds for the broader toolkit of simulation-based arguments that built computability theory. Which makes the following theorem a guillotine:
World A (where ): let be TQBF, Chapter 3’s quantified-formula problem, complete for PSPACE, so one oracle call answers anything a polynomial-memory computation could. With that much power on tap, nondeterministic guessing becomes redundant. Concretely: an computation (guess a certificate, verify it with oracle help) can itself be written down as one quantified formula — machines compile into formulas; that’s the tableau encoding behind Cook’s theorem, with a ∃ quantifier for the guess (“does there exist a certificate such that every verification step checks out?”), and a single TQBF query answers that formula. So sinks into , and the gap P vs NP is crushable by a strong enough uniform magic.
World B (where ): the delicious one, because the construction is Chapter 2’s gap between finding and checking, made into a theorem — and it’s just counting. We build adversarially, and consider the problem “does contain any string of length ?” That’s in for free: guess the string, make one oracle query, done. Now kill the polynomial machines one at a time: take the -th machine with time budget (list machines so every polynomial machine shows up with some budget that covers it), on input length chosen so large that (at : a million strings, eight thousand queries). Run and watch which length- strings it queries. It can touch at most of the — almost all strings go unexamined. If ends up answering “no,” sneak one unqueried string into : every query made still gets the same answer, so still says “no” — and is now wrong. If it answers “yes,” leave length empty — wrong again. Repeat down the list of machines, each at its own fresh length. Every polynomial oracle machine is wrong somewhere; the needle problem is in but provably not in . ∎
Now the checkmate, stated carefully because it’s the template for all of Part IV. Suppose you had a proof of P ≠ NP that relativizes. Run it in world A — it concludes . But . Contradiction: no relativizing proof of P ≠ NP exists. Symmetrically (world B), no relativizing proof of P = NP exists either. The barrier cuts both ways: whatever resolves this question must, somewhere, exploit what computation is (read the fine print inside the machines) rather than treat it as enumerable black boxes. The entire classical toolkit, the one that proved the time hierarchy on screen above, is structurally disqualified. That’s why Chapter 1 called the hierarchy theorem “structurally silent” about P vs NP, and why its silence isn’t a skill issue: P vs NP is provably not a diagonalization problem in the classical sense.
Wait — doesn’t the barrier itself use diagonalization? And what does it mean that BOTH answers survive it?
Yes, world B is built by diagonalization — the barrier is the old weapon’s formal acknowledgment of its own limits, which is part of its charm. And the two worlds together say something useful about the question’s depth: P vs NP isn’t just open, it’s undetermined by any black-box argument — the answer genuinely depends on the fine-grained, non-black-box structure of real computation. One more note: relativization is a statement about techniques, not a formal impossibility proof about all mathematics. “Relativizing” isn’t perfectly crisp around the edges — it’s a lens, made rigorous in specific formalizations, under which a recognizable class of arguments provably can’t win. The barrier’s practical force is in how exactly it predicted which arguments kept failing, decades before anyone understood what a non-relativizing argument would even look like.
Diagonalization’s most famous trophy is Gödel’s incompleteness theorem — so could P vs NP itself be a Gödel sentence, true but unprovable?
The lineage invites the question, and after fifty open years it gets asked constantly (it will be asked loudly the next time a proof is claimed), so here is the equipment for it. Gödel 1931: every consistent, mechanically axiomatizable theory containing basic arithmetic leaves some true arithmetic statements unprovable. Maybe P vs NP is one of them — independent of ZFC, the axioms underlying working mathematics?
- What independence would and wouldn’t mean. P vs NP is a concrete arithmetic statement (quantifiers over machines, polynomials, and inputs) so in the standard integers it is simply true or false; independence wouldn’t dissolve the fact, it would convict our axioms of weakness. (Contrast the continuum hypothesis, which is genuinely model-relative — different set-theoretic universes disagree. P vs NP isn’t like that.) And “P = NP, but unprovably” is stranger than it sounds, because of a gem called Levin’s universal search : there is a specific algorithm, writable today — interleave all programs with doubling time budgets, feeding every candidate answer to Chapter 2’s cheap verifier — that finds a satisfying assignment, whenever one exists, within a constant factor of the time taken by the best possible algorithm. If P = NP, this very program finds solutions in polynomial time. (One fine-print caveat: on an unsatisfiable formula it never finds anything to verify, so it only becomes a full decision procedure once you also know the polynomial bound to stop at.) The algorithm’s text was never the mystery; only its speed is. In that world we would already own the philosopher’s stone and merely be unable to certify the gold.
- The actual evidence: for ZFC, none, in either direction. No concrete algorithmic statement remotely like P ≠ NP has ever been proven independent of ZFC — known independence results live in set theory, not in arithmetic of this kind. Where independence has been proven is instructive, though: Razborov showed, under the same pseudorandomness assumption as Chapter 12, that strong circuit lower bounds are unprovable in certain weak formal systems that roughly capture “feasible, combinatorial reasoning.” Read correctly, that is not evidence about ZFC — it is the natural-proofs barrier wearing proof-theoretic clothes, one more confirmation that the fences of this Part are statements about styles of argument, not about mathematical truth.
So the bottom line, per Aaronson’s survey of the question : independence is a logical possibility nobody can exclude, with the extra diagonal twist that proving “P vs NP is unprovable” would itself be a major theorem, plausibly as hard as the original. But there is no technical evidence for it, and the barrier theorems are not that evidence. The reasonable reading of fifty open years is “very hard,” not “undecidable.” (Gödel himself, incidentally, saw no reason for pessimism: the 1956 letter that opened this book explicitly notes that his undecidability results pose no obstacle to brute-force search being avoidable.)
The escape exhibit: IP = PSPACE
For fifteen years the fence looked airtight: theorem after theorem relativized, and relativization became a referee’s smell test — does your claimed P ≠ NP proof use anything an oracle world would break? Usually not; rejected. Then, in 1990, a theorem jumped the fence, and where it jumped tells us exactly where the gate is.
The setting is interactive proofs (IP): a polynomial-time verifier who can flip coins interrogates an all-powerful but untrusted prover over many rounds, and must catch lies with high probability. (Chapter 2’s NP is the one-round, no-coins special case: prover sends certificate, verifier checks.) How much can conversation and randomness buy a verifier? There were oracles relative to which IP was weak (strictly smaller than PSPACE) so the relativization smell test said: expect weakness. Instead, Lund–Fortnow–Karloff–Nisan and then Shamir proved IP = PSPACE: a chatty, coin-flipping polynomial verifier can be convinced of anything in PSPACE — optimal chess moves, quantified formulas, the works. The theorem contradicts no oracle world, because its proof doesn’t carry oracles along: it does something to the formula that a black box cannot survive.
Arithmetization: the non-relativizing move
That something is arithmetization, and you should see it with real numbers, because it is the single most important non-relativizing move known — the engine of IP = PSPACE, of the original proof of Chapter 9’s PCP theorem, and of barrier three (Chapter 13). Take a Boolean formula and re-read it as algebra: becomes , becomes , becomes . On 0/1 inputs, nothing changed; but the result is a polynomial, defined over a whole field — a number system with addition, multiplication, and division, say the integers modulo a prime — so you can now evaluate the formula at , a question that is gibberish for the Boolean original.
Why would anyone want to? Because polynomials are rigid: two distinct polynomials of degree agree on at most points of any field, a vanishing sliver once the field is much larger than — so claims about a polynomial can be spot-checked at random points. Here is the resulting protocol (sum-check) verifying a count of satisfying assignments on a formula small enough to audit by hand. (Counting is the engine of the IP = PSPACE proof; Shamir’s full theorem plays the same polynomial game over quantified formulas, which is where the chess and the rest of PSPACE come in.)
Walk the steps and find the barrier-breaking moment: the verifier evaluates the formula’s polynomial at a random field point far outside . That requires owning the formula’s algebraic text (its clauses, its wiring) not just the ability to call it on Boolean inputs. Hand the verifier a black-box oracle instead of a formula and the protocol dies on contact, which is precisely why the theorem escapes worlds like A and B: it reads the fine print. (And the rigidity is doing real security work: at each round, a lying prover must commit to a fake low-degree polynomial that passes a consistency check and survives evaluation at a fresh random point. The -points-of-agreement fact makes each round’s escape probability ≈ degree/field-size, and the field is chosen so much larger than degree-times-rounds that the overall escape chance vanishes. Compare Chapter 2’s dinner-party verifier, which had to be handed the whole answer; this verifier audits an exponential-sized claim with one round of algebra per formula variable.)
Sum-check verified the full solution count — is even the count’s lowest bit, its parity, worth anything?
The parity buys a shocking amount, and the story earns a place in your toolkit even though (watch the ending) it stays inside this chapter’s fence. Define ⊕SAT: given a formula, is the number of satisfying assignments odd? (Its class is called ⊕P, “parity-P.”) One bit of the count, seemingly the most useless bit — our dinner party has 3 solutions, so its ⊕SAT answer is “odd,” and knowing that tells you almost nothing. Two theorems say otherwise:
- Valiant–Vazirani 1986 : there is a randomized reduction that takes any SAT instance and prunes it, with decent probability, to one with at most one solution — so deciding “zero solutions vs exactly one” is as hard as SAT itself, and a ⊕SAT oracle answers it (parities 0 and 1 are the two cases). Consequence worth framing: solution abundance is not where SAT’s hardness lives — hardness survives even a promise of uniqueness. That’s a quiet audit on Chapter 6’s geometry intuitions (hardness stories built on “many scattered solutions” must explain why uniqueness doesn’t help), and one more proves-too-much tripwire for Chapter 14’s checklist.
- Toda 1991 : with randomness, a single ⊕SAT oracle call suffices to decide every floor of Chapter 3’s polynomial hierarchy — all the ∃∀∃… questions collapse into one parity-of-a-count query (and the full count, #SAT, swallows PH outright). The proof is arithmetization’s combinatorial cousin: formulas manipulated as polynomials mod 2.
And a pairing to shelve next to Schaefer’s razor from Chapter 2: parity inside the clauses (XOR-SAT) is polynomial; parity of the number of solutions of ordinary clauses is, by Toda, stronger than the entire hierarchy. Same word, opposite fates, depending only on which side of the quantifier the ⊕ sits.
Nor is the lowest bit special — every one-bit shadow of the count turns out to be the count in disguise. Suppose you only wanted comparisons: an oracle answering “does have at least as many solutions as ?”, no numbers ever produced. It’s easy to build reference formulas with any prescribed solution count (encode “this -bit string, read as a number, is less than ”), so adaptive comparisons against references binary-search their way to exactly — the comparison bit, queried -ish times, is a counter. The same collapse hits conditionals: by a classic equivalence of Jerrum, Valiant, and Vazirani , estimating marginals (“what fraction of solutions set true?”), sampling a uniform solution, and counting are all polynomially interchangeable for SAT. Hardness lives in the dependence on the instance, not in the width of the output.
The ending, and the reason this lives in an aside in this chapter: Toda’s theorem, mighty as it is, relativizes — its proof carries oracles along happily, so it’s not an escape exhibit like IP = PSPACE. File it as calibration: the fenced region is not a wasteland of weak results; it contains some of the deepest theorems in the field. The fence doesn’t mark where good mathematics ends — only where this question’s answer can’t come from.
So the fence has a gate, and by 1992 the field had walked through it twice (IP = PSPACE, then the PCP theorem). A fair reader now expects the story to accelerate: combine the gate (arithmetization — non-relativizing) with Part III’s combinatorial arsenal (restrictions, approximations — non-black-box by nature, since they stare directly at circuit structure), and surely P vs NP is back on the menu? The field thought so too. What actually happened is the most self-aware theorem in computer science. Two of the very people who built Part III’s arsenal (Razborov and Rudich) proved that every technique in it shares a hidden property, and that the property, pushed to its destination, would destroy the cryptography that Chapter 3 said P ≠ NP is supposed to protect. The lower-bound program, it turns out, had been quietly sawing the branch it sat on. That’s natural proofs, and it’s the next chapter.
Further reading
- Relativizations of the P =? NP Question (Baker, Gill & Solovay, 1975) — the two worlds; the needle construction is section 3 and reads exactly like this chapter’s sketch.
- Algebraic Methods for Interactive Proof Systems (Lund, Fortnow, Karloff & Nisan, 1992) — arithmetization and sum-check, from the source.
- IP = PSPACE (Shamir, 1992) — the full theorem, three pages of protocol on top of LFKN.
- IP = PSPACE: Simplified Proof (Shen, 1992) — the cleanest complete write-up if you want to verify every step yourself.
- The Role of Relativization in Complexity Theory (Fortnow, 1994) — a thoughtful survey of what the barrier does and doesn’t mean, written as the escape exhibits were landing.