P vs NP: The Deepest Question in Computer Science
Checking a solution is easy; finding one may not be. What P, NP and NP-completeness are, why no one can prove P ≠ NP, and what changed with the refutation of ETH in October 2026.

Prologue. A Letter from Princeton, 1956
On March 20, 1956, Kurt Gödel wrote a letter to John von Neumann, who in those months was dying of cancer in a bed at Walter Reed Hospital in Washington. After a few lines of good wishes and sympathy, Gödel moved on to a mathematical question that, he wrote, he would like to hear his friend’s opinion on. Could one build a machine that, given a formula of logic and a number n, decides whether a proof of that formula exists with at most n symbols? Such a machine certainly exists, because it is enough to try every possible sequence. What interested Gödel was how fast it could work, that is, how the number of steps required grows as n grows.
If that number grew like n, or like n squared, Gödel observed, the consequence would be of the greatest importance, because the creative work of the mathematician on yes-or-no questions could be replaced entirely by a machine. Von Neumann never replied. He died in February 1957, and the letter lay buried among the papers at Princeton until the 1980s, when it was found and published. In the meantime, others had asked the same question independently, given it a name and turned it into the most famous open problem in theoretical computer science.
That problem is called P vs NP, and its informal statement fits in one line. If the solution to a problem can be checked quickly, can it also be found quickly? Anyone who has solved a Sudoku, hunted for a bug in a program or tried to remember the combination of a padlock knows the asymmetry behind this question. Checking that a filled-in grid follows the rules takes a few seconds, while filling it in from scratch can take hours, and for large enough grids it can take more time than the universe has available. The dominant conjecture is that this asymmetry is real and irreducible: that there are problems that are inherently harder to solve than to check. But no one has ever managed to prove it.
In this article we try to walk the whole road, from precise definitions to philosophical consequences, from the concrete problems that live inside these classes to the technical reasons why sixty years of attempts have not been enough. It is a journey that touches logic, cryptography, industrial optimization, molecular biology and even the nature of creativity, and it reaches all the way to the events of these weeks, because in October 2026 something very close to P vs NP moved for the first time in decades.
Finding your bearings in time. The question about the complexity of computation predates the birth of P and NP: its history runs through mathematical logic, the theory of algorithms and computational complexity.
The milestones cluster in the 1970s, when the problem takes shape, and then move toward the barriers, that is, toward the question of why it is so hard.
How to read this article
The path unfolds in four steps: first it defines what it means to compute efficiently; then it introduces P, NP and NP-completeness; finally it explores the consequences of an answer and the obstacles that keep us from proving it. The formulas fix the definitions, while the visual diagrams summarize the relationships between the concepts.
What “Fast” Means
To pose the question rigorously, we first need to agree on what a computation is and how its cost is measured. The reference model is still the one proposed by Alan Turing in 1936: an abstract machine made of an infinite tape divided into cells, a head that reads and writes one symbol at a time, and a finite set of internal states with a table of rules that, given the current state and the symbol read, says what to write, which direction to move and which state to switch to. The Turing machine is deliberately spare, and that is exactly why it is useful: every real computer, from the processor in your phone to a supercomputer, can be simulated by it with a loss of efficiency that grows at most polynomially. This robustness is the technical fact on which everything else rests.
The cost of a computation is measured by counting the elementary steps the machine takes as a function of the length of the input, which we call n. If an algorithm sorts a list of n numbers, n is the length of the list; if it works on a graph, n is the number of nodes and edges; if it receives a logical formula, n is the number of symbols. What matters is not the time on a particular input but the worst-case behavior as n grows, that is, a function T(n) that tells us how many steps are needed at most on any input of that length. We ignore multiplicative constants and lower-order terms, because they depend on the machine and the language, and we look only at the shape of the growth, which is expressed with big O notation.
The decisive boundary lies between polynomial functions, like n, n² or n⁵, and exponential ones, like 2ⁿ or n!. The difference is not a matter of taste. An algorithm that takes n² steps on an input of a thousand elements performs a million of them, and a modern computer runs those in a thousandth of a second; an algorithm that takes 2ⁿ steps on the same input needs a number with over three hundred digits, far larger than the number of atoms in the observable universe. Doubling the speed of the hardware lets a quadratic algorithm handle inputs about forty percent larger in the same time, while an exponential algorithm gains barely one more element. Technological progress, in other words, does not save an exponential algorithm.
The difference is not marginal. On a logarithmic scale, exponential growth quickly separates from polynomial growth. The chart compares shapes of growth, not the performance of any specific computer.
On the logarithmic scale, polynomials become curves that flatten out, while the exponential becomes a straight line that climbs without stopping and crosses the one-year threshold of computation just before n = 55.
The idea of identifying “efficient” with “polynomial” was proposed almost simultaneously in 1965 by Alan Cobham, in a paper on the intrinsic complexity of functions, and by Jack Edmonds, in his famous article Paths, Trees, and Flowers on matchings in graphs, where Edmonds spoke of “good algorithms” and explicitly conjectured that no good algorithm existed for the traveling salesman problem. Since then this identification has been known as the Cobham-Edmonds thesis. It is a convention, and like all conventions it has obvious limits: an algorithm that takes n¹⁰⁰ steps is polynomial but unusable, while one that takes 1.0001ⁿ is exponential but practical for inputs of reasonable size. Experience, however, has shown that the convention works surprisingly well. When a polynomial algorithm is found for a natural problem, the exponent tends to drop, after a few years of refinements, to small values like 2 or 3. And the class of polynomial problems is closed under composition, so a polynomial algorithm that calls another polynomial algorithm as a subroutine stays polynomial.
Finally, there is one last simplification worth making right away. Theory almost always works with decision problems, that is, questions whose answer is yes or no. “Is there a route that visits all these cities in less than a thousand kilometers?” instead of “what is the shortest route?” The loss of generality is smaller than it seems, because in almost all interesting cases, being able to answer the decision version quickly also lets you quickly reconstruct the optimal solution, by repeatedly querying the oracle with different thresholds and fixing one piece of the solution at a time. A decision problem, formally, is a set of strings, the “language” of the instances whose answer is yes, and solving it means recognizing whether a given string belongs to it.
The class P, or what we know how to do well
P is the set of decision problems that a deterministic Turing machine solves in a number of steps bounded by a polynomial in the length of the input. In symbols, if we write TIME(f(n)) for the class of problems solvable in time O(f(n)), P is the union of all these classes as the exponent varies.
A huge part of everyday computing lives inside P. Sorting a list takes about n log n comparisons. Finding the shortest path between two points on a road network is done with Dijkstra’s algorithm, published in 1959, which is what your car’s navigation system runs, with a few refinements, every time it recalculates a route. Deciding whether a graph is connected, computing the maximum flow that can pass through a network of pipes, finding the minimum spanning tree that connects a set of cities with the least amount of cable, solving a system of linear equations with Gaussian elimination, stably matching doctors and hospitals with the Gale-Shapley algorithm: these are all problems in P, and for each of them there are algorithms that work on millions of elements in fractions of a second.
The history of P is also a history of surprises, because more than one problem that looked hard turned out to be easy thanks to a new idea. Linear programming, the optimization of a linear function under linear constraints, had been solved in practice since 1947 by George Dantzig’s simplex method, but it was known that the simplex method can take exponential time on cleverly constructed instances. Only in 1979 did Leonid Khachiyan prove, with the ellipsoid method, that the problem is in P, and in 1984 Narendra Karmarkar found an interior-point method that was polynomial and also efficient in practice. Even more striking was the case of prime numbers. For centuries people had looked for a way to quickly determine whether a number is prime, and very efficient probabilistic algorithms had existed since the 1970s, but in 2002 three researchers at the Indian Institute of Technology in Kanpur, Manindra Agrawal and his students Neeraj Kayal and Nitin Saxena, proved with a surprisingly elementary deterministic algorithm that primality testing is in P. Two of the three authors were still undergraduates.
There is a subtle detail worth clarifying, because it causes a lot of confusion. For problems about numbers, the length of the input is not the number itself but the number of its digits. An algorithm that tries to divide N by every number from 2 to the square root of N takes about √N steps, which sounds small. But if N has d digits, √N is about 10 to the power d/2, an exponential function of d. This is why the schoolbook method for recognizing primes is not polynomial, while the AKS algorithm is. For the same reason, a problem like knapsack, which would be easy with the weights written in unary, stays hard when the weights are written in binary.
The Class NP, or What We Know How to Check
NP is often described as the class of “hard” problems, and that is a mistake worth correcting right away. The name stands for nondeterministic polynomial time, and the class contains all the decision problems for which, when the answer is yes, there is a short proof of it that can be checked in polynomial time. This proof is called a certificate, or a witness. For Sudoku the certificate is the completed grid. For the question “is this number composite?” it is one of its divisors. For the question “is there a tour of all the cities shorter than a thousand kilometers?” it is the list of cities in tour order, together with the sum of the distances.
The formal definition uses a verifier V, an algorithm that runs in polynomial time and receives the instance x and a candidate certificate w. A problem L is in NP if there exist a polynomial p and a verifier V such that, for every instance x, the answer is yes exactly when there is a certificate w of length at most p(|x|) that V accepts.
The requirement that the certificate be short is essential. Otherwise we could use the entire computation as the certificate, however long, and the definition would lose its meaning. Note also the asymmetry in the definition, which asks for a certificate only for yes answers. That a Sudoku has a solution is shown by exhibiting it. That it has none, in general, we don’t know how to show briefly, and this asymmetry will lead us later to the class coNP.
The word “nondeterministic” comes from the original definition, which is equivalent to the one with certificates. A nondeterministic Turing machine may have several possible moves at each step, and it explores them all in parallel, as if it cloned itself at every fork. It accepts the input if at least one of its computation branches accepts. You can picture it as a machine with an infallible intuition, which at every choice always guesses the right path, if there is one. A computation of this kind that runs in polynomial time corresponds exactly to “guessing” a certificate of polynomial length and then verifying it. No real machines of this kind exist, and quantum computers are not such machines either, contrary to what you often read. Nondeterminism is a mathematical device for capturing the idea of verification.
On the left, exhaustive search, which with m bits of certificate must visit up to 2ᵐ leaves. On the right, verification, which starts from the right leaf and takes polynomial time. The nondeterministic machine is the one that always picks the right branch of the tree.
Every problem in P is also in NP, because if I can find the answer on my own in polynomial time, I can ignore the certificate and just compute it. So P is contained in NP. The question is whether the containment is strict, that is, whether there are problems in NP that are not in P.
How can you solve a problem in NP without infallible intuition? The obvious method is to try every possible certificate. If the certificate is m bits long, there are 2 to the power m candidates, and checking them all takes exponential time. In Russian this exhaustive search has an old, slightly scornful name, perebor, which means roughly “going through everything,” and the Soviet school of the 1950s and 1960s wondered for a long time whether perebor could be eliminated. The whole P versus NP question can be summed up like this: is there always a shortcut to brute force, or for some problems is exhaustive search, in essence, unavoidable?
Reductions and NP-Completeness, the Discovery That Changed Everything
The tool that gives structure to the whole class NP is called a reduction. A problem A reduces in polynomial time to a problem B when there is an efficient transformation f that takes any instance of A and converts it into an instance of B with the same answer. If I have a fast algorithm for B, I immediately get a fast algorithm for A, because I just need to transform the instance and pass it to B’s algorithm. A reduction can therefore be read as a relation of difficulty: B is at least as hard as A.
A problem is called NP-hard if every problem in NP reduces to it, and NP-complete if it is NP-hard and itself belongs to NP. NP-complete problems are thus the hardest in the class, and they have a remarkable property. If even one of them had a polynomial algorithm, all the problems in NP would have one and we would have P = NP. If instead even one of them required superpolynomial time, no NP-complete problem would be in P. The question about thousands of different problems is thus concentrated on a single point.
That NP-complete problems actually exist was far from obvious. Stephen Cook proved it in May 1971, in a paper presented at the third Symposium on Theory of Computing in Shaker Heights, Ohio, titled The Complexity of Theorem-Proving Procedures. The problem Cook chose was Boolean satisfiability, abbreviated SAT. You have a formula built from variables that can be true or false, joined by and, or and not, and you ask whether there is an assignment of values that makes the whole formula true. For example, the following formula is satisfiable by setting x true, y false and z true.
The idea behind Cook’s proof is one of the most beautiful in computer science. Take any problem in NP. By definition it has a verifier, which is a Turing machine running in polynomial time. The whole history of that machine’s computation, step by step, can be drawn as a table with a polynomial number of rows (the moments in time) and columns (the cells of the tape). The machine’s rules say that each cell depends only on a few cells in the previous row, and these local constraints can be written as Boolean clauses. The result is a gigantic formula, but one of polynomial size, which is satisfiable exactly when there is a certificate that makes the verifier accept. Every problem in NP translates into SAT in this way. Logic, in a sense, is expressive enough to describe any computation, and asking whether a formula has a model means asking whether a computation has an outcome.
On the other side of the Iron Curtain, Leonid Levin, a student of Kolmogorov in Moscow, reached the same result independently while studying “universal search problems.” In 1973 he published a short paper containing six complete problems and a remarkable observation. Levin described a universal search algorithm that, for every problem in NP, is optimal up to a multiplicative constant. If a polynomial algorithm exists, Levin’s is polynomial; the trouble is that nobody knows what its actual running time is. This is why today we speak of the Cook-Levin theorem.
Cook’s result might have remained a logical curiosity if, the following year, Richard Karp had not published Reducibility Among Combinatorial Problems. In it he showed that twenty-one classic problems of combinatorial optimization were all NP-complete. These problems had been studied for decades by operations researchers, engineers and mathematicians who did not talk to one another. Among them were clique in a graph, vertex cover, the Hamiltonian cycle, coloring with a given number of colors, set partition, knapsack and integer linear programming. All of a sudden, the failures of generations of scholars looked like the same failure seen from different angles. Whoever couldn’t find an optimal school timetable and whoever couldn’t design a minimal circuit were hitting the same wall. In 1979 Michael Garey and David Johnson published the catalog Computers and Intractability, which listed over three hundred NP-complete problems and has become one of the most cited books in computer science. Today many thousands are known, in every area of science.
The diagram shows some of the classic chains of reductions. A single arrow starting from an NP-complete problem is enough to make the target problem NP-complete too, as long as it is in NP.
A Gallery of Impossible Problems (Perhaps)
The fascination of NP-complete problems lies in their variety. They resemble each other only in their deep structure, while on the surface they come from worlds that have nothing in common, and the fact that they can be translated into one another is one of the most surprising phenomena in modern mathematics.
The progenitor is SAT, and its most studied variant is 3-SAT, in which the formula is a conjunction of clauses that each contain three literals. The detail of the three matters enormously. With clauses of two literals, the 2-SAT problem is solved in linear time by building an implication graph and looking for its strongly connected components; with three literals the problem becomes NP-complete. This sharp jump from easy to hard, as a seemingly innocent parameter changes, is a constant of the landscape. Finding a cycle that crosses every edge of a graph exactly once, the Königsberg bridges problem solved by Euler in 1736, is very easy, because you only need to check that the graph is connected and that every node has even degree. Finding a cycle that visits every node exactly once, the Hamiltonian cycle, is NP-complete. Coloring a graph with two colors so that adjacent nodes get different colors is trivial; coloring it with three is NP-complete.
Four thresholds to watch
| Simpler version | Harder variant | Structural difference |
|---|---|---|
| 2-SAT | 3-SAT | Two or three literals per clause |
| Eulerian cycle | Hamiltonian cycle | Edges or nodes to traverse |
| 2-colorability | 3-colorability | Two or three colors available |
| XOR formulas | General SAT | Algebraic structure or general logic |
The point is not the apparent similarity. Small changes in the formulation can radically change the complexity of the problem.
In every pair, the problem on the right looks like a minimal variation of the one on the left, and yet it crosses the boundary that, if P ≠ NP, separates what can be computed quickly from what cannot. A correct proof of P ≠ NP must be able to see this difference.
The traveling salesman problem is the most famous of them all. A salesman has to visit a set of cities and return to where he started, covering the shortest possible total distance. With twenty cities there are about 6 × 10¹⁶ possible tours; with sixty, on the order of 10⁷⁹, roughly the estimated number of atoms in the observable universe. And yet the traveling salesman is everywhere: in delivery planning, in drilling printed circuit boards, where a bit has to make thousands of holes in sequence, in genome sequencing, in scheduling the telescopes that point at a series of stars in a single night.
The knapsack problem asks you to choose, from a set of objects each with a weight and a value, a subset that does not exceed the knapsack’s capacity and maximizes the total value. It is the abstract model of every investment decision with a limited budget, of allocating containers on a ship, of choosing which projects to fund. Integer linear programming, that is, linear programming where the variables must be whole numbers, is NP-hard and contains as special cases almost every industrial planning problem, from train timetables to hospital shifts.
Games and puzzles are full of NP-completeness too. Sudoku generalized to n² × n² grids is NP-complete, as Takayuki Yato and Takahiro Seta proved in 2003. The same holds for the problem of deciding whether a Minesweeper configuration is consistent, proved by Richard Kaye in 2000, for several versions of Tetris, studied by Erik Demaine and colleagues, and for many generalized levels of classic Nintendo video games. In biology, predicting the three-dimensional structure of a protein in simplified lattice models is NP-hard, as are multiple sequence alignment and the reconstruction of phylogenetic trees under the maximum parsimony criterion. In economics, computing the optimal allocation in a combinatorial auction, where bids are placed on bundles of goods, is NP-hard. In statistical physics, finding the minimum-energy state of a three-dimensional Ising spin glass is NP-hard, as Francisco Barahona showed in 1982.
There is something almost metaphysical in this web of equivalences. A fast algorithm for Sudoku, if it existed, would become, through a chain of reductions, a fast algorithm for protein folding, for optimizing flight routes and for finding proofs of theorems. The difficulty of all these problems is one and the same difficulty, showing up in a thousand different disguises.
Beyond NP: the Map of the Computational Universe
P and NP are just two regions of a much larger map, which theorists jokingly call the complexity zoo and which today counts a few hundred classes. It is worth knowing at least a handful of them, because without them you can’t see where the real problem lies.
The first is coNP, the class of problems whose complements are in NP, that is, problems for which a short certificate exists when the answer is no. Deciding whether a formula is a tautology, true under every assignment, is in coNP, because to refute it you only need to exhibit an assignment that makes it false, but nobody knows how to certify briefly that a formula is always true. This question has a very concrete flavor. If NP were different from coNP, there would be tautologies for which every proof, in any reasonable proof system, has superpolynomial length; the proof complexity research program, started by Stephen Cook and Robert Reckhow in 1979, tries precisely to prove lower bounds of this kind for increasingly powerful systems. If P = NP, then NP = coNP as well, so proving NP ≠ coNP would imply P ≠ NP. The converse does not hold, and the second question is in a sense even harder.
On top of NP and coNP we build the polynomial hierarchy, introduced by Albert Meyer and Larry Stockmeyer in 1972, by alternating existential and universal quantifiers. At the first level are questions of the form “there exists a w such that…”, at the second those of the form “there exists a w such that for every z…”, as when we ask whether there is a circuit of size k equivalent to a given circuit on all possible inputs. If P = NP, the whole hierarchy collapses to P, and this is one of the reasons why equality seems so implausible.
Higher still is PSPACE, the class of problems solvable using a polynomial amount of memory, with no limit on time. It contains the whole polynomial hierarchy and the problems of deciding who wins in generalized versions of many two-player games, such as Generalized Geography or certain variants of Go. Above it sits EXP, exponential time, where generalized chess and checkers on n × n boards live. The chain of known containments is the following.
Reading note. The figure shows the known containment P ⊆ NP and places NP-complete problems schematically. It does not claim to settle the relative position of NP and coNP, nor to represent all the classes of the hierarchy.
Factoring lies in the intersection of NP and coNP, but we don’t know whether it lies in P; NP-complete problems lie in NP outside coNP, if NP ≠ coNP.
The time hierarchy theorem of Juris Hartmanis and Richard Stearns, from 1965, guarantees that with more time you can solve strictly more problems, and it follows that P is different from EXP. So at least one of the containments in the chain is strict, but nobody knows which. In theory, even P = PSPACE could hold, a possibility that almost no one considers plausible and that no one knows how to rule out. This situation is perhaps the most honest measure of our ignorance.
Another natural question is whether every problem in NP must be either easy or NP-complete. In 1975 Richard Ladner proved that, if P ≠ NP, there exist intermediate problems: in NP, but neither in P nor NP-complete. The problems Ladner constructed are artificial, but there are very famous natural candidates. The first is integer factorization, in its decision version, which lies in both NP and coNP, so if it were NP-complete it would make NP collapse into coNP. The best known classical algorithm, the number field sieve, runs in subexponential but superpolynomial time, and the security of RSA rests precisely on the difficulty of this problem. The second candidate was graph isomorphism, that is, deciding whether two graphs are the same graph with the nodes relabeled. In 2015 László Babai announced a quasi-polynomial algorithm, with running time on the order of 2 raised to a power of the logarithm of n. It was hailed as the most important result in the theory of algorithms in many years, and it places the problem dangerously close to P.
Finally, there are quantum computers. The class BQP, made of the problems a quantum computer can solve efficiently, contains factorization, thanks to Peter Shor’s 1994 algorithm, but it is not believed to contain the NP-complete problems. Grover’s algorithm speeds up exhaustive search only quadratically, turning 2ⁿ steps into about 2 raised to the power n/2, and for “blind” search we know this gain is the maximum possible. Quantum computers are extraordinary machines, but they are not the nondeterministic machines in the definition of NP.
The decisive question
If finding a solution were always as efficient as checking one, which activities that we consider hard today would become automatable?
If P were equal to NP
Imagine that tomorrow someone publishes an algorithm for 3-SAT that runs in n³ time, with reasonable constants. The consequences would be so vast that it is hard to list them without sounding emphatic, so it helps to go in order.
The first victim would be public-key cryptography as we know it. Every cryptographic scheme has, by its nature, the structure of an NP problem: whoever holds the right key must be able to quickly verify that it decrypts the message correctly, so finding the key is a problem with short certificates. With P = NP and a practical algorithm, RSA, elliptic curves, the lattice-based schemes chosen as post-quantum standards and, in general, every one-way function would fall together, and so would digital signatures, website certificates, bank transactions and blockchains. Only cryptography that does not rely on computational assumptions would survive, such as Vernam’s one-time pad, which requires keys as long as the message, exchanged in advance.
The second consequence is the one Gödel had in mind. Checking a formal proof is a mechanical task, which interactive proof assistants such as Lean or Coq already perform today in time polynomial in the length of the proof. If P = NP, then finding a proof of length n, when one exists, would also take time polynomial in n. Any theorem with a proof of reasonable length, say a million symbols, could be proved automatically. The Riemann hypothesis, if it has a proof a human being can write down, would be proved by a machine. The same would hold for the other Millennium Problems, P versus NP itself included, and here there is an irony that theorists love: a sufficiently fast algorithm for SAT would find on its own, if it exists, the proof that tells us how fast it is.
Scott Aaronson made the point in a sentence that has become famous. He observed that if P were equal to NP, the world would be profoundly different from the one we imagine: there would be no special value in “creative leaps,” no fundamental difference between solving a problem and recognizing the solution once it is found. Anyone who could appreciate a symphony would be Mozart, and anyone who could follow an argument step by step would be Gauss. The argument is evocative and must be handled with care, because human creativity is not a formalized decision problem, but it captures something true. All of human experience seems to tell us that recognizing is easier than creating, and P ≠ NP is the mathematical version of that intuition.
The third family of consequences concerns optimization and learning. Finding the simplest model that explains a set of data, in the sense of the shortest circuit or program, is a problem with short certificates, because given a model it is easy to verify that it explains the data. With P = NP, machine learning would become, at least in principle, optimal and almost trivial, and Occam’s razor could be applied mechanically. Logistics, drug design through the search for molecules with desired properties, industrial planning and circuit design would become problems solved exactly.
One important caveat is needed, though. A proof that P = NP could be non-constructive, that is, it could guarantee the existence of a polynomial algorithm without exhibiting it, or it could produce an algorithm with an astronomical exponent, like n¹⁰⁰⁰, or with monstrous constants. Donald Knuth, for example, has said several times that he suspects P = NP, but in this harmless sense, with algorithms that exist and will never be of any use. In that case the practical impact would be zero, and the revolution would remain confined to theory.
If P were different from NP, and Impagliazzo’s five worlds
If P ≠ NP, as almost everyone believes, the world would look the same as it does today, but it would gain a new law of nature. There would be problems for which no algorithm, however clever and on any classical computer, could replace search in a reasonable amount of time. It would be a limit similar to the second law of thermodynamics or to the impossibility of exceeding the speed of light: a constraint that technology cannot get around. Some scholars, such as Scott Aaronson, have even proposed treating the intractability of NP-complete problems as a physical principle, to be used to discard theories that would allow us to solve them easily.
Still, P ≠ NP on its own says less than it seems to. It states that there is no algorithm that solves SAT in polynomial time on all inputs, but it leaves open that SAT might be easy on the vast majority of inputs we meet in practice, or that it might be hard in the worst case without our knowing how to generate hard instances. For cryptography this is not enough, because a cipher has to be hard to break almost always, not just in some pathological case.
In 1995 Russell Impagliazzo proposed a memorable way to describe these possibilities, in a paper titled A Personal View of Average-Case Complexity, imagining five possible worlds in which we might be living without knowing it. In the first, Algorithmica, P = NP or something equivalent in practice holds; cryptography is impossible but every optimization problem is easy. In the second, Heuristica, P ≠ NP but NP problems are easy on every efficiently generable distribution of instances, so hard instances exist but even finding them is hard. In the third, Pessiland, the worst of all, there are problems that are hard on average but no one-way functions, so we have hard problems with no way to use them to protect anything. In the fourth, Minicrypt, one-way functions exist, and with them symmetric cryptography, pseudorandom generators and digital signatures, but not public-key cryptography. In the fifth, Cryptomania, public-key cryptography exists too, and the most sophisticated protocols, such as secure multiparty computation, are possible.
Most cryptographers bet on Cryptomania, because it is the world in which the internet seems to work. But no one has proved that we don’t live in Algorithmica, and the most remarkable thing about Impagliazzo’s classification is that all five worlds are compatible with what we know today. Proving P ≠ NP would rule out only the first, and it would still leave us a long way from justifying the trust we place every day in digital locks.
There is also a positive side to P ≠ NP, which you only see by looking at things from the other direction. Computational hardness is a resource. Thanks to it we can communicate in secret with strangers, sign documents, prove we know a secret without revealing it through zero-knowledge proofs and even, following a line of research developed by Avi Wigderson and others, replace true randomness with pseudorandom sequences in many algorithms. In a world where everything that can be checked can also be found, no secret would be safe.
A change of perspective
Proving that a problem is easy requires an algorithm. Proving that it is hard requires ruling out, in one stroke, every possible efficient algorithm.
Why It Is So Hard to Prove
To prove P ≠ NP we have to prove a lower bound, that is, show that no algorithm, among the infinitely many possible ones, solves SAT in polynomial time. It is a statement about all algorithms, including those nobody has imagined yet and that might exploit very deep mathematical structures. By contrast, proving that a problem is in P requires exhibiting a single algorithm. This asymmetry explains much of the difficulty, and it also explains why the lower bounds we can prove are so weak. For an explicit problem in NP, we cannot even rule out that it can be solved in linear time on a random-access machine.
A well-trodden path goes through Boolean circuits. A circuit is a network of AND, OR and NOT logic gates that computes a function on inputs of fixed length n. Every problem in P can be computed by circuits of polynomial size, so to separate P from NP it would be enough to show that SAT requires circuits of superpolynomial size. Claude Shannon had already shown in 1949, with a simple counting argument, that almost all Boolean functions require circuits of exponential size. The trouble is finding an explicit one. The best known lower bounds for explicit functions on general circuits are still linear: about 5n gates for circuits with AND, OR and NOT gates, and a little over 3n for circuits that allow any two-input gate. They have improved by a few decimal places in forty years.
Real progress has come on restricted circuits. In the early 1980s Merrick Furst, James Saxe and Michael Sipser, and independently Miklós Ajtai, proved that the parity function cannot be computed by circuits of constant depth and polynomial size, and Johan Håstad brought the result to a nearly optimal form in 1986. In 1985 Alexander Razborov proved that the clique problem requires monotone circuits, that is, circuits without negation gates, of superpolynomial size, and the bound was later improved to exponential by Noga Alon and Ravi Boppana. For a few years it seemed that the road to P ≠ NP was open. Then Razborov himself showed that those techniques could not be extended to general circuits, and the enthusiasm faded.
Over the decades, three formal obstacles have been discovered, three “barriers”, that explain why entire families of techniques are doomed to fail. The first is relativization, discovered in 1975 by Theodore Baker, John Gill and Robert Solovay. You can equip every machine with an oracle, a black box that instantly answers questions about a given set. Baker, Gill and Solovay built an oracle A for which Pᴬ = NPᴬ and an oracle B for which Pᴮ ≠ NPᴮ. The classic techniques of computability theory, such as the diagonalization that Turing used for the halting problem and that Hartmanis and Stearns used for the time hierarchy, work the same way with any oracle, and so they cannot tell the two worlds apart. A proof of P ≠ NP must exploit something oracles don’t have, namely the internal structure of computation.
The second barrier, natural proofs, was identified in 1994 by Alexander Razborov and Steven Rudich, who received the Gödel Prize in 2007 for it. Razborov and Rudich observed that almost all the circuit lower bounds proved up to then followed a common pattern. You identify a combinatorial property that simple functions don’t have, you show that the target function has it, and the property is such that a sizable fraction of all functions possess it and it can be recognized efficiently. They then proved that, if secure pseudorandom functions exist, as almost all cryptographers believe, no proof of this kind can show that NP requires large circuits. In other words, a natural proof of P ≠ NP would yield an algorithm that distinguishes pseudorandom functions from truly random ones, and would therefore contradict the existence of that cryptography, which is in turn a stronger assumption than P ≠ NP. The difficulty of proving that problems are hard is itself a consequence of the difficulty of the problems.
The third barrier, algebrization, was formulated in 2008 by Scott Aaronson and Avi Wigderson. In the 1990s, arithmetization techniques, which turn Boolean formulas into polynomials over finite fields, had produced spectacular results such as IP = PSPACE, which managed to get past the relativization barrier. Aaronson and Wigderson showed that these techniques too have a limit, because they keep working with “algebraic” oracles, and that there are algebraic oracles for which P and NP coincide and others for which they differ.
Every barrier, when you think about it, is also a map, because it tells us what a future proof will need to have. It will have to be non-relativizing, non-natural and non-algebrizing. There are results that get past all three barriers at once, and the most famous is the one Ryan Williams obtained in 2011, proving that the class NEXP is not contained in ACC⁰, a class of constant-depth circuits with modular gates. Williams’s idea was to connect lower bounds to algorithms, showing that an algorithm for circuit satisfiability even slightly faster than brute force implies a lower bound. It is a deep and surprising connection: to prove that certain problems are hard, we need to be able to solve other problems a little better than expected. But NEXP is an enormously larger class than NP, and ACC⁰ enormously smaller than P, so the distance from the finish line remains immense.
The most ambitious approach is perhaps geometric complexity theory, launched by Ketan Mulmuley and Milind Sohoni around 2001, which tries to separate algebraic classes analogous to P and NP, tied to the determinant and the permanent of a matrix, using algebraic geometry and the representation theory of groups. The program has produced beautiful mathematics and some important negative results, which closed off the simplest routes envisioned at the outset, and Mulmuley himself has estimated that it may take many decades, if not more than a century.
Wrong Proofs, and How to Recognize Them
A problem this famous, this easy to state and carrying a million-dollar prize inevitably attracts a steady stream of proposed solutions. The Dutch mathematician Gerhard Woeginger kept a web page for years collecting announcements of proofs, reaching more than a hundred entries, split almost evenly between those claiming P = NP and those claiming P ≠ NP, with a few supporters of undecidability. Every year new papers announcing the solution appear on arXiv and other preprint servers, and in 2025 and 2026 too several have appeared, some updated through numerous successive versions, without any of them convincing the community.
The most striking case in recent years was that of Vinay Deolalikar, a researcher at HP Labs, who in August 2010 circulated a manuscript of about a hundred pages in which he claimed to have proved P ≠ NP by combining finite model theory with the statistical physics of random satisfiability problems. The work was serious and written by a professional, and for a few days the community took it seriously. A collective review formed spontaneously on the blogs of Richard Lipton and Ken Regan and on the wiki of the Polymath project, with the participation of Terence Tao, Timothy Gowers and many complexity specialists. In little more than a week, fundamental errors were identified, among them the fact that the argument, if it had been correct, would also have proved statements known to be false, such as the hardness of problems that are in fact in P.
This is the most powerful test experts use to judge a purported proof, and it’s worth spelling out. A proof of P ≠ NP has to tell NP-complete problems apart from structurally very similar problems that sit in P: 3-SAT from 2-SAT, the Hamiltonian cycle from the Eulerian cycle, 3-colorability from 2-colorability, and the satisfiability of XOR formulas, which is solved by Gaussian elimination, from that of ordinary formulas. If the argument works the same way on both sides of this line, it proves too much, and so it is wrong. In the same way, it has to get around the three barriers, and whoever is reviewing it immediately checks whether it relativizes, whether it is natural, whether it algebrizes. Many proofs of P = NP, on the other hand, propose formulations of the traveling salesman problem as a linear program of polynomial size. In 2012 Samuel Fiorini and colleagues showed that every formulation of this kind for the traveling salesman polytope requires an exponential number of constraints, closing that road for good.
Scott Aaronson has distilled this experience into a list of warning signs. Among them: the author doesn’t explain why his technique fails on 2-SAT, doesn’t mention the barriers, or uses tools far more elementary than those that have withstood the best mathematicians in the world for decades. However elitist it may sound, it is a statistical criterion that is hard to dispute.
Living with NP, or how to solve the unsolvable
There is an apparent paradox that anyone working in industry knows well. NP-complete problems are, in theory, intractable, and yet every day they are solved at enormous scale. Airlines assign crews to thousands of flights using integer linear programming, chip makers verify the correctness of circuits with SAT solvers, couriers plan millions of deliveries, compilers allocate processor registers by solving graph coloring problems. The paradox dissolves when we remember that NP-completeness means worst-case hardness, as n grows without bound, while real instances have finite size and, above all, a structure that algorithms can exploit.
The history of SAT solvers is a perfect example. The DPLL algorithm, proposed by Martin Davis, Hilary Putnam, George Logemann and Donald Loveland between 1960 and 1962, explores the tree of assignments with a smart form of backtracking. In the 1990s João Marques-Silva and Karem Sakallah introduced conflict-driven clause learning, the technique now called CDCL: whenever the solver reaches a contradiction, it analyzes the cause and adds a new clause to the formula that keeps it from making the same mistake again. Add efficient data structures, variable-selection heuristics and periodic restarts, and modern solvers handle industrial formulas with millions of variables and tens of millions of clauses. In 2016 Marijn Heule, Oliver Kullmann and Victor Marek used a SAT solver to settle the Boolean Pythagorean triples problem, producing a 200-terabyte proof, the longest ever written at the time. Yet on random instances built near the critical threshold, a few hundred variables are enough to bring the same solvers to their knees, which shows that the theoretical hardness is real.
A second strategy is to give up on the optimum and settle for a solution guaranteed to be close to it. For the traveling salesman problem with distances that obey the triangle inequality, Nicos Christofides’s 1976 algorithm guarantees a tour at most one and a half times longer than the optimum. For almost half a century nobody did better, until in 2020 Anna Karlin, Nathan Klein and Shayan Oveis Gharan improved the factor by a minuscule amount, on the order of 10⁻³⁶, which was celebrated all the same as a breakthrough. For the traveling salesman in the Euclidean plane, Sanjeev Arora and Joseph Mitchell independently showed in 1996 that you can get as close to the optimum as you like in polynomial time. For the knapsack problem there are arbitrarily precise approximation schemes, while for the maximum clique you cannot approximate the solution even within a factor of n¹⁻ᵋ, unless P = NP.
This last kind of result, which tells us when even approximation is impossible, comes from one of the deepest theorems of the twentieth century, the PCP theorem, proved in 1992 by Sanjeev Arora, Carsten Lund, Rajeev Motwani, Madhu Sudan and Mario Szegedy, building on work by Arora and Shmuel Safra. The acronym stands for probabilistically checkable proofs. The theorem states that every proof of membership in NP can be rewritten, with only a polynomial increase in length, into a redundant form such that a probabilistic verifier, reading only a constant number of randomly chosen bits, always accepts correct proofs and rejects wrong ones with probability at least one half. It is as if you could check the correctness of a thousand-page book by reading three randomly chosen letters, provided the book was written in a special format. From this it follows that for many problems there is a precise threshold beyond which approximation becomes NP-hard. In 1997 Johan Håstad showed that for MAX-3SAT a random assignment satisfies seven eighths of the clauses on average, and that doing even slightly better than seven eighths is already NP-hard. The trivial random algorithm is therefore optimal.
One last family of strategies involves exponential algorithms that are nonetheless much better than brute force. For 3-SAT, exhaustive search takes 2ⁿ steps, but Uwe Schöning’s randomized algorithm from 1999 takes about (4/3)ⁿ, and its successors, such as PPSZ by Paturi, Pudlák, Saks and Zane, have gone below 1.31ⁿ. The difference between 2ⁿ and 1.3ⁿ is not polynomial, but it means being able to handle instances almost three times as large. Until a few weeks ago, people believed this was, in essence, the final shape of the question: that 3-SAT requires time cⁿ for some constant c greater than one.
October 2026: The Exponential Time Hypothesis Called into Question
In the late 1990s and early 2000s, Russell Impagliazzo, Ramamohan Paturi and Francis Zane formulated a conjecture stronger than P ≠ NP, the Exponential Time Hypothesis, abbreviated ETH. The hypothesis states that 3-SAT cannot be solved in subexponential time, that is, that there is a positive constant δ such that no algorithm solves 3-SAT with n variables in time 2 to the power δn. The strong version, SETH, states that for SAT with long clauses the base of the exponent must approach 2, that is, that brute force is essentially optimal.
Over the following quarter century, ETH became the keystone of an entire discipline, fine-grained complexity, which uses it to prove very precise conditional lower bounds. Thanks to ETH and SETH, it has been possible to state, for example, that the clique problem on k nodes cannot be solved in time n to the power o(k), or that the edit distance between two strings cannot be computed in significantly subquadratic time, and hundreds of results have been built on these foundations.
On October 26, 2026, OpenAI announced that one of its internal models had disproved ETH, with a 67-page manuscript titled The Exponential Time Hypothesis Is False. A few hours later, Anthropic published an independent 49-page paper, A 2^o(n) Time Algorithm for 3-SAT, signed by Claude, Anthropic’s model. According to the two companies, both models found the central idea on the same day, October 16, by different routes, and the two algorithms reach the same running time, which is subexponential but still very far from polynomial.
Mind the distinction. A subexponential algorithm improves on brute force, but that does not make it polynomial. The result described here proves neither P = NP nor P ≠ NP.
According to published accounts, Anthropic’s work uses tensor network contraction and rank arguments, and the model reportedly found the algorithm without human intervention after about 14 million tokens of computation, while the researchers collaborated on the final write-up. Both groups accompanied their manuscripts with formal proofs in the Lean prover. This verification guarantees that the formal statements follow from the axioms, but it cannot by itself guarantee that those formal statements capture ETH exactly, and for this reason Impagliazzo, Paturi and Ryan Williams are organizing review meetings to examine precisely this point. In the first weeks, no public errors have been reported. Impagliazzo called the news very surprising, and Williams observed that parts of OpenAI’s proof look routine while others seem almost alien and still require careful examination.
If the result holds up, the theoretical consequences would be significant. As early as November 10, Carmen Strassle and Bernardo Subercaseaux showed that these algorithms imply that every nondeterministic Turing machine running in time t can be simulated deterministically in time 2 to the power O(t divided by the square root of log t), an improvement on the brute-force simulation that seemed out of reach. Many conditional lower bounds will have to be re-examined, and some researchers have already proposed weaker hypotheses to replace ETH, such as the conjecture that 3-SAT cannot be solved in time 2 to the power n^(1−γ) for any positive constant γ.
The practical consequences, on the other hand, are for now nil. The new algorithm beats exhaustive search only on formulas of astronomical size, only when the number of variables exceeds 10 to the power of ten thousand, according to Anthropic’s paper, and OpenAI’s researchers say they have verified that the method does not compromise the cryptosystems in use. Above all, the running time obtained remains superpolynomial, so P versus NP stays exactly where it was. What has changed is the landscape around the problem. For twenty-five years it was believed that brute force for SAT could only be trimmed in the base of the exponent, and now we know, if the checks confirm it, that something qualitatively better can be done. As a result, some experts say they assign P = NP a slightly less negligible probability than before. And there is a second novelty, perhaps even more profound than the first: for the first time, a major advance in complexity theory was found by a machine.
To remember
- P is about problems that can be solved efficiently.
- NP is about problems whose positive answers can be verified efficiently.
- NP-completeness connects thousands of problems through reductions.
- We still don’t know whether P = NP.
- A subexponential improvement is not the same as a polynomial algorithm.
Epilogue. What We Believe, and What Remains
In May 2000, in Paris, the Clay Mathematics Institute presented seven Millennium Prize Problems, offering one million dollars for the solution of each. P versus NP was among them, next to the Riemann hypothesis, the Poincaré conjecture and the Navier-Stokes equations. That same year Stephen Smale put it in third place on his list of eighteen problems for the twenty-first century. Of the seven Clay problems, only the Poincaré conjecture has been solved, by Grigori Perelman, who turned down the prize. But P versus NP has one peculiarity that sets it apart from the others: a solution in the sense of P = NP, with a practical algorithm, would probably let us solve the remaining five as well, making the prize a rather modest bargain.
What does the scientific community think? William Gasarch ran three polls among researchers, in 2002, 2012 and 2019. The share of those who believe P is different from NP rose from 61 percent in the first poll to 83 in the second and 88 in the third, while a small minority, which includes illustrious names, leans toward equality or toward independence from the axioms of mathematics. On when the problem will be solved, opinions are far more scattered, and a considerable share of respondents don’t expect an answer before the end of this century.
The reasons for believing that P ≠ NP are of different kinds, and it is worth separating them. There is the empirical argument: thousands of NP-complete problems have been attacked for decades by thousands of brilliant people, in different communities and with enormous economic motivation, and no one has found a polynomial algorithm for any of them, whereas if they were easy, finding one for a single problem would be enough. There is the structural argument: P = NP would collapse the polynomial hierarchy and make cryptography impossible, two consequences that seem too strong to be true. And there is the almost philosophical argument, about the difference between creating and recognizing. None of these arguments is a proof, and the history of mathematics contains many plausible conjectures that turned out to be false. The refutation of the exponential time hypothesis, if it is confirmed, is a very recent reminder of how wrong even the best experts’ intuitions can be after decades.
Finally, there remains the most dizzying question. If the problem were independent of the axioms of set theory, as the continuum hypothesis is, no proof in either direction would be possible. Some logicians have explored this possibility, but the known results only show that certain weak formal systems are not enough to prove lower bounds on circuits, and almost all specialists believe that the question has a definite answer, one that can be reached sooner or later.
Seventy years after Gödel’s letter, the question he put to a dying friend is still open. In the meantime it has produced the theory of NP-completeness, modern cryptography, the PCP theorem, industrial SAT solvers, the barriers that describe the limits of our own ability to prove things, and, for a few weeks now, the first major result in complexity discovered by an artificial intelligence. Few problems have ever generated so much knowledge without being solved. Perhaps this is the mark of truly deep problems: the answer matters enormously, but the road that leads to it matters even more.
Sources
Wikipedia, P versus NP problem · Wikipedia, Exponential time hypothesis · Cade Metz, The New York Times, republished by The Star, November 9, 2026 · DataCamp, AI and the Exponential Time Hypothesis · Strassle and Subercaseaux, Simulating Nondeterministic Turing Machines in Subexponential Deterministic Time, arXiv 2611.11832 · Respect the P v NP Problem, Computational Complexity blog, June 2026 · Scientific American, The Most Important Unsolved Problem in Computer Science


