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, not currently searchedNo lanes running

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 P≠NP\mathrm{P} \ne \mathrm{NP}. 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 P=NP\mathrm{P} = \mathrm{NP}.

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 nk+kn^k + k. A language LL is in NP iff there are k∈Nk \in \mathbb{N} and a polynomial-time checking relation RR with w∈L  ⟺  ∃y (∣y∣≤∣w∣k∧R(w,y))w \in L \iff \exists y\,(|y| \le |w|^k \wedge R(w, y)). He then states:

Problem Statement. Does P = NP?

The pinned formal statement

The statement is P≠NP\mathrm{P} \ne \mathrm{NP}, with both classes defined in Lean as follows:

  • Decision problems are functions {0,1}∗→{0,1}\{0,1\}^* \to \{0,1\}.
  • 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 P=NP\mathrm{P} = \mathrm{NP} 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:
    • P⊆NP\mathrm{P} \subseteq \mathrm{NP}.
    • SAT is NP-complete (Cook, 1971; Levin, 1973), and Karp's 21 problems are NP-complete (1972).
    • The time hierarchy theorem gives P≠EXP\mathrm{P} \ne \mathrm{EXP}.
    • 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 A,BA, B with PA=NPA\mathrm{P}^A = \mathrm{NP}^A and PB≠NPB\mathrm{P}^B \ne \mathrm{NP}^B (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 IP=PSPACE\mathrm{IP} = \mathrm{PSPACE}.
  • Open:
    • No superlinear lower bound is known for general Boolean circuits computing an explicit function in NP. The best is about 3.1n3.1n (Li and Yang, 2022).
    • The problem itself is open.

References

Official problem description: Clay Mathematics Institute