Explainer ·
What would happen if P = NP? What would change, and what would not
As of the afternoon of November 27, 2026, I found no public claim by any lab or researcher of a proof that P = NP, or of a polynomial-time algorithm for factoring on ordinary (classical) computers. What exists is a rumor about cryptography, which Nature reported on November 26 could not be confirmed. The question behind the rumor is still a good one, so here is what a proof of P = NP would change, what it would leave alone, why fast factoring is a different question, and why even a proof of P ≠ NP would not make today's encryption provably safe.
P vs NP asks whether every problem whose answers are quick to check is also quick to solve. If you are new to it, What is P vs NP? explains it from zero with one small puzzle; this page assumes only the one-line version. On November 27 a lot of people were asking what would happen if a lab had proved P = NP, because rumors had been circulating since November 24 that AI labs were sitting on results that bear on cryptography. I think the question deserves a careful answer whatever the rumors turn out to be, and the careful answer has more "it depends" in it than most posts suggest.
What "P = NP" would actually say
A proof that P = NP would show that some algorithm solves 3-SAT, and therefore every problem in NP, in a number of steps bounded by n^k for some fixed power k, where n is the size of the input. That is all the statement says. It does not say how large k is, how large the constant in front is, or whether anyone can write the algorithm down. Those three unknowns decide nearly everything people care about, which is why "P = NP" and "encryption is broken" are not the same headline.
Three ways it could turn out
- A proof with no usable algorithm. A proof can show that something exists without showing how to find it. Donald Knuth, one of the few prominent computer scientists who says he believes P = NP, told an interviewer in 2014 that he does not expect the equality to be helpful even if it is proved, because such a proof "will almost surely be nonconstructive"; he added that he suspects nobody will even know an upper bound on the power k. There is a theoretical twist: a trick called Levin's universal search, which runs every possible program side by side, would then find solutions to satisfiable formulas in polynomial time, so an explicit algorithm would exist. Its constant factor is so large that it could never be run.
- A real algorithm that is too slow to use. The algorithm might be explicit and still have a power like n^100, or a constant larger than the number of atoms in the universe. Computer scientists call such methods galactic algorithms, after a 2010 post by Richard Lipton: wonderful as the input grows without limit, never used to compute anything. Nature's explainer gives n^10000 as an example of a polynomial that would be useless in practice. This is not a far-fetched case. The methods behind the record bounds for multiplying huge matrices are galactic, and even the first deterministic polynomial-time primality test, from 2002, is slower in practice than the randomized tests people actually use.
- A fast, practical algorithm. This is the world people picture: a method with a small power, say n^3, and modest constants. Here the consequences really would be enormous. Finding a proof of a theorem, when a short one exists, would become about as easy as checking it; scheduling, chip layout and many optimization problems would become easy to solve exactly; and the cryptography below would need replacing.
Many of the dramatic posts I saw assume the third case. Jameson Lopp put the caution well on X on November 27: even a proof "doesn't mean cryptography gets broken overnight", because a polynomial-time algorithm can still be far too slow or too costly to run.
What would happen to encryption in the practical case
In the third case, public-key cryptography as deployed today would fail. RSA, Diffie-Hellman key exchange and elliptic-curve signatures all rest on problems in NP: given a public key, a secret key is a short piece of evidence that is quick to check. A fast general method for NP would find it. Symmetric ciphers such as AES would be exposed in principle as well, since recovering a key from a few known messages is also a search with quick checking. Post-quantum schemes such as NIST's lattice-based ML-KEM would not escape, because their hardness assumptions are also statements about NP problems. That is why the third case is the one cryptographers worry about, and why the first two would leave the internet running exactly as before.
Fast factoring is a different question
The rumors this week were mostly about factoring, the problem behind RSA, and a fast factoring algorithm would not show P = NP. Factoring is in NP, since a claimed factorization is easy to check, but it is not known to be NP-complete, one of the hardest problems in NP, and it is not expected to be. Its yes-or-no version has quick evidence for both answers, so it lies in both NP and coNP, and Aaronson's survey of the problem draws the consequence: "factoring can't be NP-complete unless NP = coNP", which almost nobody believes. The discrete logarithm problem behind Diffie-Hellman is in the same position. So factoring could fall to a polynomial-time algorithm while P vs NP stays open, and RSA could break without anyone learning anything about P vs NP.
Dan Hollick, a designer who writes makingsoftware.com, made the same point in an X Article on November 27, "What happens if P = NP?": factoring and discrete logarithms are not known to be NP-complete, so breaking them would not settle the question. His post introducing it said that if the rumors are true, the next few weeks will be interesting. Is factoring in P? has the rumors and Google's factoring papers, and What is the discrete logarithm problem? explains the second problem.
Would a proof of P ≠ NP make encryption safe?
No. P ≠ NP is a statement about the worst case: it says some instances of NP problems are hard. Cryptography needs something much stronger. It needs problems that are hard on the typical instances a key generator actually produces, it needs one-way functions, which are easy to compute and hard to invert on average, and for public-key cryptography it needs one-way functions with a secret trapdoor. Russell Impagliazzo's 1995 essay on average-case complexity describes five possible worlds consistent with what we know, and in one of them, Pessiland, P ≠ NP holds and there are "hard average-case problems, but no one-way functions", so no secure encryption at all. Aaronson's survey says plainly that public-key cryptography rests on conjectures that go beyond P ≠ NP, so reasonable doubt about it could remain even after a proof. Hollick's article makes this point too.
So the two halves of the question are lopsided. A practical proof of P = NP would break cryptography; a proof of P ≠ NP would not rescue it. Today's cryptography rests on specific problems, factoring, discrete logarithms and lattice problems, having resisted decades of attack, not on a theorem.
Why VP vs VNP is not P vs NP
This week's biggest complexity claims were about VP vs VNP, and the names invite confusion. VP vs VNP is the algebraic version of the question: it asks about circuits that may only add and multiply numbers from a field, with no comparisons, no bit tricks and no branching, and it compares the determinant, which such circuits compute efficiently, with the permanent, which most researchers believe they cannot. Anthropic claimed on November 23 that VP ≠ VNP, and OpenAI posted manuscripts claiming the same that day and the next; for Anthropic's the status is claimed, written and formalized by AI, not yet checked by a human mathematician, and OpenAI's are claimed, not yet independently verified (What is VP vs VNP? explains it, and the status page follows it).
Two things keep it apart from P vs NP. First, the direction: VP ≠ VNP says something is hard, the same direction as P ≠ NP, so it points away from P = NP, not toward it. Second, the model: an ordinary computer can do things an add-and-multiply circuit cannot, so a lower bound in the algebraic model does not carry over, and no implication from VP ≠ VNP to P ≠ NP is known. Anthropic's paper says itself that it does not settle P vs NP. The claimed refutation of the Exponential Time Hypothesis is a different kind of near miss: it claims 3-SAT can be solved faster than any exponential, which is surprising, but still far slower than any polynomial, so it would leave P vs NP open too.
What most researchers believe
William Gasarch has polled researchers three times. In his 2019 poll, 109 of 124 respondents, 88 percent, said P ≠ NP, and 15, 12 percent, said P = NP; in 2002 the split was 61 percent to 9 percent, with many undecided. In 2019, 66 percent expected the question to be resolved before 2100, and 9 percent said never. Belief is not proof, and Knuth is a reminder that serious people sit in the minority. What is P vs NP? gives the usual reasons for the majority view.
How I read the next rumor
- Is there a document? A paper, code, or a statement by a named person on the record. A rumor about a result is not a result.
- Which problem, exactly? P vs NP, factoring, discrete logarithms and a specific cryptosystem are four different claims.
- Polynomial, or only faster? Subexponential bounds such as Google's L_N[1/3] for factoring, faster than any exponential but slower than any polynomial, are real progress and still not polynomial.
- If polynomial, how big is the power, and is the algorithm explicit? That decides between the three cases above.
- Who has checked it, and in what words? I use "claimed, not yet independently verified", "machine-checked, not yet refereed" and "refereed" for the stages. The status tracker records each claim with its date.
I use Claude, Anthropic's AI model, for my own research. I do not work for Anthropic.
Short answers
What would happen if P = NP?
It depends on the proof. If it gave a fast, practical algorithm, most of today's cryptography would break and many search and optimization problems would become easy. If the proof were nonconstructive, or the algorithm had a huge power such as n^100, almost nothing would change in practice.
Has anyone proved P = NP?
No. As of November 27, 2026, no lab or researcher has publicly claimed a proof, and the Clay Mathematics Institute lists P vs NP as unsolved. Rumors that AI labs hold results bearing on cryptography could not be confirmed, Nature reported on November 26.
Would P = NP break encryption?
Only if the proof came with an algorithm that is fast in practice. A polynomial-time algorithm with an enormous exponent or constant would leave encryption as it is.
Would fast factoring prove P = NP?
No. Factoring is in NP and coNP and is not believed to be NP-complete, so a polynomial-time factoring algorithm would break RSA but leave P vs NP open.
Would proving P ≠ NP make cryptography safe?
No. P ≠ NP only says some instances are hard. Cryptography needs problems that are hard on average and one-way functions, which P ≠ NP does not give.
Is VP vs VNP the same as P vs NP?
No. VP vs VNP is an algebraic analogue about circuits that only add and multiply. A proof that VP ≠ VNP, claimed by Anthropic and OpenAI in November 2026, points in the same direction as P ≠ NP but is not known to imply it.
What percentage of researchers think P = NP?
In William Gasarch's 2019 poll, 15 of 124 respondents (12 percent) said P = NP and 109 (88 percent) said P ≠ NP.
Did this make sense?
Was this helpful?
Get updates by email
Occasional email, only on the topics you pick. Confirm by email; unsubscribe anytime.