P vs NP: Barriers & Beyond
Relativization, natural proofs, algebrization, and what is actually known.
Nearly nine in ten researchers believe that P ≠ NP, and some of the strongest mathematicians alive have tried to prove it. Why has no one succeeded? Not only because the question is hard: whole families of proof techniques have been proved unable to settle it, and any proof must slip past three such barriers at once.
What you’ll learn
- State what is known unconditionally: hierarchy theorems, counting bounds, and lower bounds for restricted circuit models (constant depth, monotone, ACC⁰).
- State and prove the relativization barrier of Baker, Gill and Solovay, including the diagonal construction of an oracle that separates P from NP.
- Explain the natural-proofs and algebrization barriers, and why Williams's lower bound for ACC⁰ circuits evades all three.
- Use Ladner's theorem, the polynomial hierarchy and the 2025 simulation of time in square-root space to say what is, and is not, implied about P versus NP.
What is known
To prove is to prove a lower bound: that no polynomial-time algorithm decides SAT. Lower bounds are where complexity theory is weakest. What it can prove falls into two groups.
Diagonalization. The time hierarchy theorem (Hartmanis & Stearns, 1965) shows that more time decides strictly more problems, so ; the space hierarchy theorem gives , and a nondeterministic version gives . These separate classes with very different resources, never P from NP.
Circuits. A P vs NP proof could go through circuits: if SAT needs Boolean circuits of superpolynomial size, then , because every polynomial-time algorithm can be turned into polynomial-size circuits. Shannon (1949) counted circuits and showed that almost every Boolean function of inputs needs about gates. Yet for any explicit function in NP, the best lower bound known for general circuits is only about gates (Li & Yang, 2022), barely above the known since the 1980s.
| Model | What is proved | Who |
|---|---|---|
| deterministic time | Hartmanis & Stearns, 1965 | |
| circuits, almost all functions | size about | Shannon, 1949 |
| circuits, explicit functions in NP | about gates | Li & Yang, 2022 |
| constant depth (AC⁰) | parity needs size | Furst, Saxe & Sipser; Ajtai; Håstad, 1981–1986 |
| monotone circuits (AND, OR, no NOT) | detecting a -clique needs size ; exponential for large | Razborov, 1985; Alon & Boppana, 1987 |
| constant depth with counting gates (ACC⁰) | , later extended to quasi-polynomial nondeterministic time | Williams, 2011; Murray & Williams, 2018 |
Monotone circuits for clique need superpolynomial size. Why does that not prove P ≠ NP?
- Because clique is not NP-complete
- Because monotone lower bounds do not transfer to general circuits: perfect matching, which is in P, also needs superpolynomial monotone circuits
- Because the bound holds only for cliques of size 3
- Because circuit lower bounds say nothing about algorithms
Show the answer
B. Because monotone lower bounds do not transfer to general circuits: perfect matching, which is in P, also needs superpolynomial monotone circuits
Razborov (1985) showed that perfect matching, a problem in P, needs monotone circuits of size , and Tardos (1988) found a problem in P that needs exponential monotone circuits. Forbidding NOT gates can blow circuits up enormously, so monotone hardness says nothing about general circuits.
Relativization
An oracle that collapses. Let be a PSPACE-complete language, such as true quantified Boolean formulas. A nondeterministic machine with oracle can be simulated in polynomial space, answering its queries itself, and nondeterministic polynomial space equals PSPACE (Savitch). Every PSPACE problem is then one query to away:
A test language for . For any oracle , let contain the strings such that contains some string of length . A nondeterministic machine guesses such a string and asks the oracle:
Diagonalize against every polynomial-time machine. List the deterministic oracle machines , with running in time . At stage , pick larger than every length used so far, with , and run on , answering "no" to every query not yet decided. If accepts, put no string of length into . If it rejects, put into one string of length that never asked about, which exists since it asked fewer than questions.
Later stages only add strings longer than any query made so far, so 's run, and its wrong answer, survive. No polynomial-time machine with oracle decides :
Diagonalization and simulation, the engines of the hierarchy theorems, treat machines as black boxes, so their proofs relativize. A relativizing proof of would also prove , contradicting the first oracle; a relativizing proof of would contradict the second. Any resolution must use techniques that do not relativize.
Such techniques exist. (Lund, Fortnow, Karloff & Nisan; Shamir, 1990), which says that interactive proofs capture polynomial space, fails relative to some oracle. Its key idea, arithmetization, replaces Boolean formulas by low-degree polynomials over a field and looks inside the computation instead of treating it as a black box.
Natural proofs and algebrization
Pseudorandom functions lack the property. Fix all but input bits of . The resulting functions on bits still have circuits of size polynomial in , hence in , so a property useful against P/poly excludes them all:
Random functions have it. By largeness, a uniformly random function on bits has the property with probability at least :
The property becomes a distinguisher. By constructivity, testing membership takes time polynomial in , which is , far below , and its advantage is far above . That breaks the family's security, a contradiction:
Razborov and Rudich observed that the known circuit lower bounds, including the AC⁰ bounds for parity, are natural. That is why they stop at restricted models: functions computed in AC⁰ are too simple to be pseudorandom, so natural properties can work there, but not against general circuits, if cryptography is secure.
Algebrization (Aaronson & Wigderson, 2009) addresses the techniques that escaped relativization. A proof algebrizes if it stays valid when one machine gets an oracle and the other gets , a low-degree polynomial extension of over a field: exactly the extra access that arithmetization uses. The known non-relativizing results, such as , algebrize, and Aaronson and Wigderson built oracle pairs showing that algebrizing techniques can settle neither P versus NP nor many related questions.
Between P and NP-complete, and what is at stake
The language. Let list all Turing machines. Define as the smallest such that decides correctly on every input of length at most within steps, or if there is none, and pad SAT accordingly. Checking only inputs of length up to keeps computable in polynomial time, and :
Not in P. If some decided in time , then for all large , so would be SAT with only polynomial padding, and SAT would be in P. Conversely, if , every eventually fails, so grows without bound:
Not NP-complete. If SAT reduced to by a map running in time , its outputs would have length at most . Once , an output of that length forces , so the map shrinks formulas, and repeating it decides SAT in polynomial time, contradicting :
The problem Ladner builds is artificial. Natural candidates for this middle ground, such as factoring and graph isomorphism, remain unclassified, and for constraint satisfaction problems no middle ground exists at all (Bulatov; Zhuk, 2017).
Above NP sits the polynomial hierarchy: , asks "is there an such that for every a polynomial-time check holds?", and so on, every level inside PSPACE. Resolving P versus NP one way flattens the whole hierarchy; Karp and Lipton (1980) showed that even polynomial-size circuits for SAT would collapse it to its second level.
If , what happens to the polynomial hierarchy?
- Nothing: only its first level changes
- It collapses entirely to P
- It collapses to its second level,
- It becomes equal to PSPACE
Show the answer
B. It collapses entirely to P
Each level is NP with an oracle for the level below. If , then , and by induction every level equals P.
Williams (STOC 2025), building on Cook and Mertz's algorithm for tree evaluation (2024), proved that every multitape Turing machine running in time can be simulated in much less space:
Suppose every problem solvable in linear space could be solved in time for some . The simulation would then put linear space inside sublinear space:
The space hierarchy theorem forbids that, so some problems solvable in linear space need nearly quadratic time on multitape machines: an unconditional lower bound, though far from separating P from NP.
Key takeaways
- What is proved: hierarchy theorems (), Shannon's count that almost all functions need about gates, and strong lower bounds for restricted circuits (parity outside AC⁰, monotone clique, ), but only about gates for explicit functions on general circuits.
- Relativization: oracles with and show that no proof valid relative to every oracle, such as pure diagonalization, can settle P versus NP.
- Natural proofs: if strong pseudorandom functions exist, no constructive and large property proves superpolynomial circuit lower bounds. Algebrization extends relativization to arithmetized proofs such as IP = PSPACE. Williams's ACC⁰ lower bound, from a faster satisfiability algorithm plus a hierarchy theorem, evades all three barriers.
- If P ≠ NP, NP-intermediate problems exist (Ladner); if P = NP, the polynomial hierarchy collapses to P. The 2025 simulation of time in about space is a rare unconditional advance: linear space contains problems that need nearly quadratic time.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Baker, Gill and Solovay built oracles with and . What does this imply?
- P versus NP is independent of the axioms of set theory
- Any proof that settles P versus NP must use techniques that do not relativize
- P = NP, since equality holds relative to some oracle
- Diagonalization proves nothing in complexity theory
Show the answer
B. Any proof that settles P versus NP must use techniques that do not relativize
A proof whose every step stays valid with an oracle attached would settle the question the same way relative to every oracle, which the two oracles rule out in either direction.
Razborov and Rudich call a property of Boolean functions natural when it is…
- true of the parity function
- constructive (decidable in time polynomial in the truth table's size ) and large (shared by a noticeable fraction of all functions)
- provable in standard set theory
- computable by constant-depth circuits
Show the answer
B. constructive (decidable in time polynomial in the truth table's size ) and large (shared by a noticeable fraction of all functions)
Constructivity and largeness are exactly what let a property that is useful against polynomial-size circuits serve as a test that tells random functions from pseudorandom ones, which would break cryptography believed to be secure.
If , what does Ladner's theorem guarantee?
- Factoring is neither in P nor NP-complete
- Some problem in NP is neither in P nor NP-complete
- Every problem in NP is either in P or NP-complete
- Graph isomorphism is neither in P nor NP-complete
Show the answer
B. Some problem in NP is neither in P nor NP-complete
Ladner's intermediate problem is SAT with a carefully chosen, slowly growing amount of padding: an artificial problem. Whether natural candidates such as factoring or graph isomorphism are intermediate is open.
Williams (2025) showed that a multitape Turing machine running in time can be simulated in space . Combined with the space hierarchy theorem, what follows?
- For every , some problems solvable in linear space cannot be solved in time on multitape Turing machines
- Every problem solvable in linear time needs space
Show the answer
B. For every , some problems solvable in linear space cannot be solved in time on multitape Turing machines
If linear space fitted in time , the simulation would put it in space , which is , contradicting the space hierarchy theorem. The gap is polynomial, so P versus PSPACE stays open.
Further reading
- T. Baker, J. Gill & R. Solovay, "Relativizations of the P =? NP question," SIAM Journal on Computing 4(4) (1975).
- A. A. Razborov & S. Rudich, "Natural proofs," Journal of Computer and System Sciences 55(1) (1997).
- S. Aaronson & A. Wigderson, "Algebrization: A new barrier in complexity theory," ACM Transactions on Computation Theory 1(1) (2009).
- R. Williams, "Nonuniform ACC circuit lower bounds," Journal of the ACM 61(1) (2014); conference version, CCC 2011.
- S. Arora & B. Barak, Computational Complexity: A Modern Approach (Cambridge University Press, 2009), chapters 3 and 23.