Complexity theory · p-vs-np
P vs NP
Is every problem whose solutions can be checked in polynomial time also solvable in polynomial time? Pinned as P ≠ NP. Statement ↓
Paused while the search pipeline is debugged on one problem. It will be reactivated. Its tree is kept as it stands.
Growing the tree…
The problem
Status on OpenProofs: pinned, in the direction . The Lean statement is OpenProofs.PvsNP.PvsNPStatement.
The problem in plain words
- P is the class of yes/no problems that a computer can solve in time bounded by a polynomial in the length of the input.
- NP is the class of yes/no problems for which a "yes" answer has a short certificate that a computer can check in polynomial time.
Every problem in P is in NP. The question is whether the reverse holds: is every efficiently checkable problem also efficiently solvable? Thousands of practical problems are NP-complete, including satisfiability, Hamiltonian path, graph colouring and integer programming. They are all in P if and only if .
Official Clay formulation
From the official problem description by S. Cook:
The P versus NP problem is to determine whether every language accepted by some nondeterministic algorithm in polynomial time is also accepted by some (deterministic) algorithm in polynomial time.
Cook defines P with Turing machines whose running time is at most . A language is in NP iff there are and a polynomial-time checking relation with . He then states:
Problem Statement. Does P = NP?
The pinned formal statement
The statement is , with both classes defined in Lean as follows:
- Decision problems are functions .
- Machine model is Mathlib's multi-stack Turing machines (
FinTM2), which have finitely many stacks, labels and states. - P is defined through
TM2ComputableInPolyTime: a time bound polynomial in the length of the encoded input. - NP is defined by polynomially bounded certificates checked by a polynomial-time verifier.
The definitions come from the google-deepmind formal-conjectures project.
OpenProofs pins the direction most researchers expect. A proof that would
also solve the Clay problem, but it would be a proof of the negation of the pinned statement. See
problems/lean/REVIEW.md.
What is known
- Settled:
- .
- SAT is NP-complete (Cook, 1971; Levin, 1973), and Karp's 21 problems are NP-complete (1972).
- The time hierarchy theorem gives .
- Strong lower bounds are known in restricted models: for constant-depth circuits (Furst–Saxe–Sipser, Ajtai, Håstad, Razborov–Smolensky) and for monotone circuits (Razborov, 1985).
- Barriers. Three known barriers show that whole families of techniques cannot settle the question:
- Relativization: there are oracles with and (Baker, Gill and Solovay, 1975). So diagonalization and simulation arguments alone cannot settle the question.
- Natural proofs (Razborov and Rudich, 1997): if strong pseudorandom functions exist, then "natural" circuit lower-bound arguments cannot prove superpolynomial lower bounds.
- Algebrization (Aaronson and Wigderson, 2009) extends the relativization barrier to the arithmetization techniques behind .
- Open:
- No superlinear lower bound is known for general Boolean circuits computing an explicit function in NP. The best is about (Li and Yang, 2022).
- The problem itself is open.
References
- S. Cook, The P versus NP Problem, Clay Mathematics Institute. https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf
- Clay Mathematics Institute, problem page. https://www.claymath.org/millennium/p-vs-np/
- google-deepmind/formal-conjectures,
FormalConjectures/Millennium/PvsNP.leanandFormalConjecturesForMathlib/Computability/Complexity.lean. https://github.com/google-deepmind/formal-conjectures - T. Baker, J. Gill and R. Solovay, "Relativizations of the P =? NP question", SIAM J. Comput. 4 (1975).
- A. Razborov and S. Rudich, "Natural proofs", J. Comput. Syst. Sci. 55 (1997).
- S. Aaronson and A. Wigderson, "Algebrization: a new barrier in complexity theory", ACM TOCT 1 (2009).
- J. Li and T. Yang, "3.1n − o(n) circuit lower bounds for explicit functions", STOC 2022.
Official problem description: Clay Mathematics Institute