Three theorems that explain fifty years of failure. Whole families of proof techniques provably cannot separate P from NP, and you can build the worlds that show it
Most open problems are open because nobody has had the right idea. P versus NP is different. There are theorems saying that whole families of ideas, including nearly every technique that has ever proved a complexity lower bound, cannot settle it. This lesson builds the evidence.
Open strings, then say whether the oracle’s set B contains any string of that length, and watch the adversary make you wrong. Then play the construction in part 2, and the opposite world in part 3.
The adversary does not fix B in advance. It says “not in B” to every question and decides what B is only after you commit, which is fair because any B that agrees with its answers was possible all along. With fewer than 2n questions you cannot win. A machine that may guess needs one question: it guesses the amber string and asks about that. The game is capped at n = 6 so that the grid fits; a budget of n2 or n3 questions falls below 2n for every large n.
An oracle is a set of strings that a machine may ask about, one membership question per step, with the answer arriving at once. Write PA and NPA for what deterministic and guessing machines can do in polynomial time with oracle A. In 1975 Theodore Baker, John Gill and Robert Solovay proved, in “Relativizations of the P =? NP Question”, that there are oracles A and B with PA = NPA and PB ≠ NPB.
For B, the problem is the one in the demo: given n, is any string of length n in B? A guessing machine guesses the string and asks one question. A deterministic machine with a polynomial budget cannot look at all 2n strings, so an adversary can always keep one out of sight. The construction lists the machines and defeats them one at a time, each on a fresh length. The demo’s list is five hand-picked strategies; the real proof enumerates every polynomial-time oracle machine, and the stages are the same. For A, any PSPACE-complete problem will do, as in part 3.
A proof relativises if it stays valid when every machine in it is handed the same oracle. Diagonalisation and simulation, the tools behind the hierarchy theorems, relativise: one machine can simulate another just as well when both hold the same box. A relativising proof of P = NP would contradict world B, and a relativising proof of P ≠ NP would contradict world A. So the tools that built the foundations of the field cannot answer its central question. This is a theorem about methods of proof. It says nothing about which answer is true.
In 1981 Charles Bennett and John Gill showed that relative to a random oracle, P ≠ NP with probability 1. It is tempting to read that as evidence about the real world, and for a while the “random oracle hypothesis” proposed exactly that. It was refuted: IP = PSPACE is true in the real world, yet it fails relative to a random oracle with probability 1. Oracle results tell us what proofs cannot do, not what is true.
Pick a property and compare the three histograms. Several properties split small formulas from random functions; hunt for one that also splits the violet family from the random one.
For each row, count the single-input flips that change the output. A random function averages n/2.
| Properties you have tried | Random against small formulas | Random against the toy family |
|---|---|---|
| Sensitivity | 0.00 | 0.00 |
Every function has 8 inputs, so its truth table has 256 bits; each square on the left is one such table, drawn 16 by 16. Rose: every bit a fair coin. Sky: a random tree of AND and OR gates over the inputs. Violet: a toy family with a hidden 32-bit key, computed by a tree walk that mixes the key with the input bits; the specimen shown is computed by a circuit of 335 XOR, AND and NOT gates, and no member of the family needs more than 480. The toy is not cryptographically secure. The advantage is the largest gap, over all thresholds, between the shares of two urns falling below the threshold: 0 means no threshold helps, 1 means one threshold separates them perfectly. With 300 functions per urn, values below about 0.15 are sampling noise. These are measurements on functions of 8 inputs, not statements about large n.
A typical circuit lower bound finds a property of Boolean functions with three features. It can be checked efficiently given the truth table (it is constructive). It holds for a large share of all functions (it is large). And it fails for every function with a small circuit of the kind under attack (it is useful). The proof that parity is not in AC⁰ fits the pattern: “a random restriction does not flatten this function” is easy to test, true of most functions, and false of every function with a small shallow circuit. See also: Circuits and Lower Bounds.
Alexander Razborov and Steven Rudich pointed out, in “Natural Proofs” (announced in 1994, journal version 1997, Gödel Prize 2007), that such a property is a statistical test. It accepts most truly random functions and rejects everything with a small circuit. A pseudorandom function family is a family of functions with small circuits that no efficient test can tell from random. So if pseudorandom functions computable by polynomial-size circuits exist, as follows from standard cryptographic assumptions such as the hardness of factoring, then no natural property can be useful against P/poly. Every circuit lower bound known at the time, including the AC⁰ and monotone results, was natural.
The barrier is conditional, and the condition is ironic: the more firmly we believe that some problems are hard, the harder it becomes to prove that anything is hard. The demo is a toy at n = 8. Its violet family fools the simple properties and is cracked by the low-degree test, because it was built from linear mixing. A secure family would fool every efficient test, including ones nobody has thought of; whether such families exist is itself unproved.
A way round must drop largeness or constructivity. Diagonalisation drops largeness: it attacks one specially built function, not most functions. But diagonalisation relativises. This is why more recent lower bounds combine the two kinds of argument.
Edit the formula and drag the sliders past 1 to evaluate its polynomial where no truth table has a row. Then select each technique in the table below to see which barriers stop it.
| x₁…x₃ | 000 | 100 | 010 | 110 | 001 | 101 | 011 | 111 |
|---|---|---|---|---|---|---|---|---|
| formula | T | F | T | T | F | T | T | F |
| polynomial | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 0 |
The rules: x ∧ y becomes xy, ¬x becomes 1 − x, and x ∨ y becomes 1 − (1 − x)(1 − y). In the grid, brighter sky means a larger value and dark means 0; the white outline is your point; the amber outlines, shown when the remaining variables are 0 or 1, are the only cells a truth table knows about. This is a toy: three or four variables and a field of at most 31 elements. Interactive proofs use the same polynomial with a field far larger than the formula. See also: Proofs as Conversations.
| Technique | RelativisationBaker, Gill and Solovay, 1975 | Natural proofsRazborov and Rudich, 1994 | AlgebrisationAaronson and Wigderson, 2008 |
|---|---|---|---|
| blocked | gets past | blocked | |
| gets past | blocked | not known | |
| gets past | gets past | blocked | |
| not known | not known | not known | |
| gets past | gets past | gets past |
Rose: the barrier applies to this technique. Emerald: the barrier does not stop this technique. Dashed: not known, or the barrier does not speak to this kind of argument. The barriers are theorems about methods of proof, not about the answer. Natural proofs is conditional: it assumes that pseudorandom functions computable by polynomial-size circuits exist. The other two are unconditional. The cell entries are a summary of a technical literature and simplify it.
Arithmetisation replaces a Boolean formula by a polynomial that agrees with it on 0 and 1 and can also be evaluated at every other element of a finite field. A low-degree polynomial is rigid: two different ones agree at few points, so a random evaluation point exposes a false claim. That is the engine of interactive proofs, and of the theorem IP = PSPACE (Adi Shamir, 1990, building on Carsten Lund, Lance Fortnow, Howard Karloff and Noam Nisan). The theorem does not relativise: there are oracles relative to which it fails. An oracle is only a table of yes-or-no answers, and the proof reaches inside the formula in a way a table does not allow.
In 2008 Scott Aaronson and Avi Wigderson, in “Algebrization: A New Barrier in Complexity Theory”, asked what happens if machines get an oracle together with its low-degree extension, a polynomial that agrees with the oracle on Boolean points. Arithmetisation-based proofs survive that change: they algebrise. And there are such worlds in which P = NP and others in which P ≠ NP. So arithmetisation, even combined with diagonalisation, cannot settle the question either.
Geometric complexity theory, begun by Ketan Mulmuley and Milind Sohoni in 2001, recasts lower bounds as questions in algebraic geometry and representation theory, in the hope of avoiding the barriers. It has produced deep mathematics and no separation of complexity classes so far. Ryan Williams’s 2011 theorem that NEXP is not contained in ACC⁰ takes another route: it turns a slightly faster satisfiability algorithm for ACC⁰ circuits into a lower bound, combines that with diagonalisation, and evades all three barriers. ACC⁰ is still a very weak class.
Keep the logic straight. The barriers rule out classes of proof methods, not the truth of P ≠ NP or of P = NP. They are theorems, and one of them, natural proofs, rests on a cryptographic assumption. What they explain is why fifty years of effort has not produced a proof, and what a successful proof will have to look like: non-relativising, non-algebrising and non-natural, all at once.
Spot a mistake or have an idea?