Skip to content
DAH

P versus NP: does Boolean satisfiability have a polynomial-time algorithm?

OpenTo verify: Lean proof$1M Clay Millennium PrizePosed by Stephen Cook (1971) and Leonid Levin (independently, published 1973)
AI-reviewed
On this page18 sections
Difficulty
100/100Defining
How far from a resolution. P vs NP = 100
Application value
100/100Transformative
Realistic practical impact if resolved. P vs NP = 100
Leverage
100/100Foundational
How much other knowledge hinges on it. P vs NP = 100

The anchor: difficulty, application value and leverage are 100 by definition and no other problem reaches 100 on any scale. It is the central open problem of complexity theory, shielded by three formal barriers (relativization, natural proofs, algebrization); a constructive P = NP would upend deployed cryptography and optimisation, and thousands of results across complexity, cryptography and algorithms are stated conditionally on P ≠ NP or on stronger hypotheses.

The problem

If a solution to a puzzle is easy to check, is it also easy to find? Nobody knows.

  1. 1Some puzzles are easy to check
  2. 2Are they also easy to solve?
  3. 3SAT stands for thousands of puzzles
  4. 4No proof; known methods blocked
  5. 5Answer reshapes security and optimisation

Statement. P\mathsf{P} is the class of yes/no problems a deterministic computer solves in time polynomial in the input length. NP\mathsf{NP} is the class of problems where a yes answer has a short certificate that can be checked in polynomial time. For example, for a logical formula, a satisfying assignment is a certificate. Clearly P⊆NP\mathsf{P}\subseteq\mathsf{NP}. P versus NP asks whether they are equal.

Why one problem is enough. Boolean satisfiability (SAT) is NP-complete (Cook and Levin, early 1970s): every problem in NP can be translated into it efficiently. So to settle the question it is enough to decide whether SAT has a polynomial-time algorithm. Thousands of natural problems (graph colouring, scheduling, the travelling salesman problem in its decision form) are NP-complete too.

What is known. There is no proof either way. Most experts believe P≠NP\mathsf{P}\ne\mathsf{NP}. The best unconditional lower bounds are weak: for explicit functions in NP, only linear lower bounds on the size of general Boolean circuits are known. Williams (2011) proved that a larger class, NEXP, does not have polynomial-size ACC0\mathsf{ACC}^0 circuits, a restricted circuit model, by turning a slightly faster SAT algorithm into a lower bound.

Three barriers. These results explain why standard techniques fail.

  • Relativization (Baker, Gill, Solovay, 1975): relative to some oracles P equals NP, and relative to others it does not. A technique that works with any oracle cannot decide the question.
  • Natural proofs (Razborov and Rudich, 1994): most combinatorial circuit-lower-bound arguments would, if they worked, break strong pseudorandom generators.
  • Algebrization (Aaronson and Wigderson, 2008): extends relativization to algebraic techniques.

Alternative routes. Geometric complexity theory (Mulmuley and Sohoni) tries to use algebraic geometry and representation theory, but has not produced a separation yet.

Consequences. If P=NP\mathsf{P}=\mathsf{NP} with a practically fast algorithm, much of modern public-key cryptography would be insecure, and optimisation would be transformed. If P≠NP\mathsf{P}\ne\mathsf{NP}, we gain a mathematical reason for why some tasks resist every algorithm, and the theory of approximation and cryptography stands on firmer ground.

Because so many results are stated "unless P equals NP", the problem sits underneath much of theoretical computer science. A proof would need a technique that is non-relativizing, non-natural and non-algebrizing, which is why the problem is regarded as extraordinarily hard.

Go deeper

The full technical text.

Is P=NP\mathsf{P}=\mathsf{NP}? Here P\mathsf{P} is the class of languages decidable by a deterministic Turing machine in time polynomial in the input length, and NP\mathsf{NP} the class of languages LL for which there is a polynomial-time verifier VV and a polynomial pp such that x∈L  ⟺  ∃w, ∣w∣≤p(∣x∣), V(x,w)=1x\in L\iff\exists w,\ |w|\le p(|x|),\ V(x,w)=1. Equivalently: can every problem whose solutions are efficiently checkable also be efficiently solved? Since Boolean satisfiability is NP\mathsf{NP}-complete, it suffices to decide whether it has a polynomial-time algorithm.

Words on this page (12)
Words on this page
P
Problems that a computer can solve in time that grows like a fixed power of the input size.
NP
Problems where a proposed answer can be checked quickly, even if finding one may be slow.
NP-complete
The hardest problems in NP: every other NP problem can be translated into them.
Boolean satisfiability (SAT)
Deciding if a logical formula can be made true by choosing true/false values for its variables.
certificate
A short piece of evidence, such as a filled-in Sudoku grid, that lets you verify a yes answer quickly.
reduction
An efficient method to turn one problem into another with the same answer.
oracle
A pretend black box that answers certain questions instantly, used to test whether a proof technique is too general.
Boolean circuit
A network of AND, OR and NOT gates computing a yes/no function.
computational complexity
The study of how many steps or how much memory problems need.
pseudorandom generator
A method that stretches a short random seed into a long sequence that looks random to efficient tests.
polynomial time
Running time that grows like a fixed power of the input size, such as n² or n³.
ACC0
A restricted kind of circuit: constant depth, with AND, OR, NOT and counting-modulo-m gates; one of the few classes with proved lower bounds.
New to this? Read first (3)
New to this? Read first

Built from

earlier problems → this one

The earlier problems this one is built from. “Builds on” means it needs their progress or tools. “Generalizes” means they are special cases that come first. “Implies” means they are weaker results on the way. On the right is what builds on this problem.

  1. Start with
    • P versus NP: does Boolean satisfiability have a polynomial-time algorithm?This problem
  2. Then

Path to understanding

foundations → problem

The research entries this problem rests on, in the order to read them. Each links to its explainer.

  1. Start with
  2. Step 2
  3. Then
    • P versus NP: does Boolean satisfiability have a polynomial-time algorithm?The problem

State of the art

No proof in either direction. Most experts believe P≠NP\mathsf{P}\ne\mathsf{NP}. Three barriers explain why standard techniques fail: relativization (Baker, Gill, Solovay, 1975), natural proofs (Razborov and Rudich, 1994) and algebrization (Aaronson and Wigderson, 2008). The best unconditional results are far weaker: only linear lower bounds on general Boolean circuit size are known for explicit functions in NP\mathsf{NP}, and Williams (2011) proved that NEXP\mathsf{NEXP} does not have polynomial-size ACC0\mathsf{ACC}^0 circuits. Geometric complexity theory (Mulmuley and Sohoni) proposes an algebraic-geometric route to related lower bounds, but no separation has come from it. Related time–space progress, such as Williams's 2025 simulation of time tt in space O(tlog⁡t)O(\sqrt{t\log t}), concerns P\mathsf{P} versus PSPACE\mathsf{PSPACE}-type questions, not P versus NP. P versus NP is not among the claims in the batch of AI-generated manuscripts released by OpenAI on 6 October 2026 (Aaronson: "P≠NP isn't there").

Realistic applications

If P=NP\mathsf{P}=\mathsf{NP} were shown with a practical algorithm, most deployed public-key cryptography would fail, and optimisation, verification, scheduling and machine learning would change at scale; this outcome is considered very unlikely, and a proof of P=NP\mathsf{P}=\mathsf{NP} with an impractical algorithm (for example with a huge exponent) would have far less effect. A proof of P≠NP\mathsf{P}\ne\mathsf{NP} would change no deployed system by itself, since cryptography needs average-case hardness and one-way functions, which P≠NP\mathsf{P}\ne\mathsf{NP} does not provide. Its value would be in the techniques (new lower-bound methods) and in settling whether the search for efficient exact algorithms for NP\mathsf{NP}-complete problems is futile.

What counts as solved

A proof of P=NP\mathsf{P}=\mathsf{NP} or P≠NP\mathsf{P}\ne\mathsf{NP} in the standard formalisation above, accepted by the complexity-theory community after scrutiny. The Clay Institute requires publication in a qualifying outlet, at least two years to have passed since publication, and general acceptance in the mathematics community.

How it gets verified

To verify: Lean proof

A formal proof checked by Lean 4 / Mathlib.

Statement: ComplexityTheory.P_ne_NP : P ≠ NP in Millennium/PvsNP.lean (Formal Conjectures pinned at commit e754a78 (17 October 2026)). The classes are defined in the corpus file Computability/Complexity.lean on top of Mathlib's polynomial-time Turing machines (TM2ComputableInPolyTime) over bit-string encodings, with NP as languages whose witnesses of polynomial length are checked by a polynomial-time relation (Arora–Barak, Definition 2.1). A resolution in either direction is accepted when a Lean proof of P_ne_NP or of its negation compiles against the pinned corpus and passes Comparator with only the three standard axioms; because the machine-level definitions belong to the corpus, a complexity theorist must also confirm that they match the textbook classes. No proof technique is known that avoids relativization, natural proofs and algebrization, so a formal proof is far off, and Clay's own rules (publication and two years of acceptance) still govern the prize.

Claims

No claimed results on this problem.

Where the work is

Theory
97%
New mathematical or conceptual ideas
Engineering
1%
Building instruments, chips, systems, software, formal proofs
Compute
2%
Raw computation, search, simulation
Empirical
0%
Observation, experiment, data collection

Resolution needs proof techniques that do not yet exist; all three known barriers are about methods, not computation. Computer search for small circuits says nothing about asymptotics.

Connected problems

Progress

  1. Jun 8, 2011
    NEXP ⊄ ACC⁰

    Ryan Williams proved that NEXP lacks polynomial-size ACC⁰ circuits by turning faster satisfiability algorithms into lower bounds (CCC 2011; JACM 2014; day approximate).

    source
  2. May 23, 1994
    Natural proofs barrier

    Razborov and Rudich showed that 'natural' circuit-lower-bound arguments would break strong pseudorandom generators (STOC 1994; JCSS 1997; day of the STOC presentation approximate).

    source
  3. Dec 1, 1975
    Relativization barrier

    Baker, Gill and Solovay gave oracles under which P = NP and others under which P ≠ NP, so relativizing proofs cannot settle the question.

    source
  4. May 3, 1971
    The problem is formulated

    Cook's STOC 1971 paper introduced NP-completeness and posed the question; Levin obtained equivalent results independently (published 1973).

    source