The Barriers

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

The Barriers

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.

Oracle Worlds

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 32 strings of length 5. Tap a string to ask the oracle whether it is in B.
Is any string of length 5 in B?
0 / 12
questions asked
32
strings you know nothing about
1
question on the guessing machine’s lucky branch
Every answer so far has been “not in B”. You have 12 questions left, and you may answer at any time.

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.

The moral. Parts 2 and 3 are two worlds with opposite answers. A proof technique that works unchanged when every machine is handed the same oracle (it “relativises”) would give the same answer in both, which is impossible. Diagonalisation and step-by-step simulation both relativise. So neither can settle P versus NP, in either direction.
Go deeper:Baker, Gill and Solovay: Two Worlds, Two Answers

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.

Natural Proofs

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.

0.00
advantage: random against small formulas
0.00
advantage: random against the toy family
0.00
advantage: toy family against small formulas
Sampling: 0 of 300 functions drawn from each urn so far.
Properties you have triedRandom against small formulasRandom against the toy family
Sensitivity0.000.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.

Go deeper:Razborov and Rudich: A Lower Bound Is a Distinguisher

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.

Arithmetisation, and the Map of Barriers

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.

The formula. Tap ¬ to negate a literal and tap a variable to change it.
∨∨∧∨∨∧∨∨
The same thing as a polynomial: one factor for each clause.
[1 − (1 − x₁)·(1 − x₂)·x₃] ×[1 − x₁·(1 − x₂)·(1 − x₃)] ×[1 − x₁·x₂·x₃]
Multiplied out, with coefficients mod 7: 27 terms.
1 + 6x₁ + 6x₃ + x₁x₂ + 3x₁x₃ + x₂x₃ + 6x₁²x₃ + 2x₁x₂x₃ + 6x₁x₃² + 3x₁²x₂x₃ + x₁²x₃² + x₁x₂²x₃ + 3x₁x₂x₃² + 5x₁²x₂²x₃ + 2x₁²x₂x₃² + 5x₁x₂²x₃² + x₁³x₂x₃² + 5x₁²x₂²x₃² + x₁²x₂x₃³ + 5x₁³x₂²x₃² + 6x₁³x₂x₃³ + 6x₁²x₂³x₃² + 5x₁²x₂²x₃³ + x₁³x₂³x₃² + 2x₁³x₂²x₃³ + x₁²x₂³x₃³ + 6x₁³x₂³x₃³
The formula and the polynomial on every Boolean point
x₁…x₃000100010110001101011111
formulaTFTTFTTF
polynomial10110110
Below: the polynomial at every pair (x₁, x₂) in the field, with x₃ = 2. Tap a cell to move the point.
3
the polynomial at (3, 5, 2), mod 7
5
sum of the polynomial over all 8 Boolean points, mod 7
5
satisfying assignments, counted directly
(3, 5, 2) is not a row of any truth table: asking whether the formula is “true” there means nothing. The polynomial still has a value, 3. Every such value is tied to the formula by algebra, and none of them can be read off from yes-or-no answers. Summed over the 8 Boolean points the polynomial gives 5, the number of satisfying assignments.

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.

Techniques against barriers. Select a technique to light its row.
TechniqueRelativisationBaker, Gill and Solovay, 1975Natural proofsRazborov and Rudich, 1994AlgebrisationAaronson and Wigderson, 2008
blockedgets pastblocked
gets pastblockednot known
gets pastgets pastblocked
not knownnot knownnot known
gets pastgets pastgets past
Diagonalisation and simulation
Build a machine that runs every smaller machine and does the opposite.
What it achieved
The time hierarchy theorem: more time solves strictly more problems. (Hartmanis and Stearns, 1965)
  • Relativisation: blocked. Simulating a machine step by step works just as well when both machines hold the same oracle, so the argument proves the same thing in every oracle world.
  • Natural proofs: gets past. It aims at one specially built function, not at a property shared by most functions, so it is not “large”.
  • Algebrisation: blocked. An argument that survives any oracle also survives an oracle with its low-degree extension.
Each column is a theorem about proofs: relativisation (1975), natural proofs (1994), algebrisation (2008). A technique that is blocked in a column cannot, on its own, separate P from NP. Compare the rows: no single classical technique is clear of all three.

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.

Go deeper:Past One Barrier, into the Next

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.

Key Takeaways

  • There are oracles relative to which P = NP and others relative to which P ≠ NP (Baker, Gill and Solovay, 1975), so no relativising proof can settle the question.
  • A natural circuit lower bound would be a test that breaks pseudorandom functions (Razborov and Rudich, 1994), so cryptographic hardness blocks such proofs.
  • Arithmetisation evaluates a formula’s polynomial off the Boolean cube and gets past relativisation, but it meets the algebrisation barrier (Aaronson and Wigderson, 2008).
  • The barriers are theorems about methods of proof; P versus NP itself remains open.

Spot a mistake or have an idea?

Search