Skip to content

cat posts/en/p-vs-np-ist-nicht-geloest.md

P vs NP is not solved: what actually happened in late November

“P = NP proven,” “AI cracks Millennium Problem”: a lot got mixed up in late November. What was a joke, what is a real breakthrough (VP ≠ VNP), and why that breakthrough still doesn't settle P vs NP.

Flat illustration: A small robot stands next to an orange flag reading “VP ≠ VNP” on a foothill. A dashed path leads to the large peak “P vs NP,” which is hidden in the clouds.

If you scrolled through your feed in the last week of November, you could have come away thinking P vs NP had fallen, possibly to an AI, and taken encryption down with it. As of December 1, 2026: P vs NP is open. The Clay Mathematics Institute still lists it as an unsolved Millennium Problem, and there is no published proof of either P = NP or P ≠ NP.

Still, a lot happened. Three things got blended together in the coverage: a joke, a real result about a related problem, and a series of rumors about cryptography. Here are the pieces, but first the short version for anyone who doesn't have much use for math.

Explained without math

Picture a sudoku. Checking a finished solution is quick: Go through the rows, columns, and boxes, done. Finding a solution takes much longer. P vs NP asks whether it has to be that way: For every puzzle whose solution can be checked quickly, is there also a quick way to find it? Most experts think the answer is no. Nobody has proven it yet.

Late November was about the same question in a simplified world, where a computer is only allowed to add and multiply. There, according to the new proofs, the answer really is “no.” It's a bit like someone climbing a foothill: a real achievement, but not the summit. A checking program went through the proof step by step. Whether the question it checked was posed correctly is something a human still has to read and confirm.

The joke: “We've proven P = NP”

On November 25, Justin Perry posted on X that P = NP had been proven and that a 45,000-page proof would be published as soon as possible (post). The post got close to 1.9 million views (CellCog). Two days later, Perry wrote that he would survive an X post making fun of the current AI zeitgeist (post). There was no formal correction, and no proof either.

Whether it was satire from the start or only declared satire afterward is impossible to say. For our purposes, it makes no difference: There is nothing to check.

The real thing: VP ≠ VNP

On November 23, Anthropic and, a few hours later, OpenAI each published a proof of VP ≠ VNP. That's Valiant's conjecture from 1979, the algebraic counterpart of P vs NP. According to the labs, both proofs come from internal models, and both ship with a formalization in Lean.

The best way to see what this is about is two nearly identical formulas:

det(A)  = Σ_σ sgn(σ) · a[1][σ(1)] · a[2][σ(2)] · … · a[n][σ(n)]
perm(A) = Σ_σ          a[1][σ(1)] · a[2][σ(2)] · … · a[n][σ(n)]

Both formulas sum over all permutations σ of 1 to n. The permanent is the determinant without signs. As code (vorzeichen is German for sign, fehlstaende for inversions):

from itertools import permutations
from math import prod


def vorzeichen(p: tuple[int, ...]) -> int:
    """+1 for even, -1 for odd permutations (via inversions)."""
    fehlstaende = sum(p[i] > p[j] for i in range(len(p)) for j in range(i + 1, len(p)))
    return -1 if fehlstaende % 2 else 1


def det(a: list[list[int]]) -> int:
    n = len(a)
    return sum(vorzeichen(p) * prod(a[i][p[i]] for i in range(n)) for p in permutations(range(n)))


def perm(a: list[list[int]]) -> int:
    n = len(a)
    return sum(prod(a[i][p[i]] for i in range(n)) for p in permutations(range(n)))


a = [[1, 1, 0],
     [1, 1, 1],
     [0, 1, 1]]
print(det(a), perm(a))  # -1 3

Both functions loop over all n! permutations; this is just for illustration. In practice, the difference is huge: You get the determinant with Gaussian elimination in O(n³). For the permanent, nothing substantially better than Ryser's formula is known, at roughly 2ⁿ · n operations. For a 0/1 matrix, the permanent counts the perfect matchings of the corresponding bipartite graph, three in the example. Valiant showed in 1979 that even this is #P-complete (Wikipedia).

In the algebraic world, you compute with circuits made of addition and multiplication gates plus arbitrary constants from a field. VP roughly covers the families of polynomials of polynomial degree that can be computed by polynomial-size circuits; the determinant is one of them. VNP is the algebraic counterpart of NP, and the permanent is complete for it, as long as the field doesn't have characteristic 2. In characteristic 2, −1 = 1, the signs disappear, and permanent and determinant are the same polynomial.

What Anthropic claims (repo): Every circuit that computes the Hamiltonian cycle polynomial over any field needs, for sufficiently large m, more than

m^(c · (log₂ m)^(1/3))  =  2^(c · (log₂ m)^(4/3))

gates, for a fixed constant c > 0. The same holds for the permanent of an m×m matrix over every field of characteristic ≠ 2. That grows faster than any polynomial but is far from exponential. For comparison: Since Baur and Strassen (1983), the best known lower bound for general algebraic circuits had been Ω(n log n), measured in the number n of variables.

OpenAI shows the same thing with a weaker bound of 2^Ω((log n)^(5/4)) (preprint). According to OpenAI, the results are now contained in two preprints from the following day.

Lance Fortnow calls the result the most important one in complexity theory this year and notes that this says a lot for 2026 (Computational Complexity).

Why this isn't P vs NP

Anthropic itself says in the README that the result does not settle P vs NP. The reasons:

  • The model is weaker. An algebraic circuit can only add and multiply. It can't compare, can't touch bits, can't branch. A Boolean circuit can do all of that. Fortnow's example: Satisfiability is NP-complete even for Boolean formulas of depth 2. Whether an algebraic circuit computes a polynomial other than the zero polynomial, on the other hand, can be tested in randomized polynomial time (Schwartz-Zippel).
  • It doesn't carry over. According to Fortnow, VP ≠ VNP doesn't even imply the corresponding Boolean statement that #P functions can't be computed by polynomial-size circuits of depth O((log n)²). And the technique, he says, doesn't give us a tool for the full computational power we'd need for P vs NP. His conclusion: P vs NP remains out of reach, “for man or machine.”
  • The bound is quasi-polynomial. Even in the algebraic model, the gap isn't exponential.

Scott Aaronson is more optimistic. He writes that for the first time, he feels a proof of P ≠ NP is not far off, and he sees VP ≠ VNP as a kind of warm-up (Shtetl-Optimized). That's an assessment, not a result, and he says as much.

What the Lean proof guarantees, and what it doesn't

Anthropic's formalization comprises a little over 70,000 lines of Lean 4 built on Mathlib. It uses only the three standard axioms (propext, Classical.choice, Quot.sound), and CI additionally checks it with a second, independently written kernel. Aaronson writes that the Lean proofs certify the result far beyond what we normally demand of a paper (Shtetl-Optimized).

The gap is spelled out in the README itself:

Lean checks the proofs, but no machine checks that this file says what is claimed.

The file in question is Statement.lean, just under 100 lines that define what a circuit is, what “computes” means, and what VP and VNP are. Lean guarantees that the proof proves the theorem in this file. Whether that theorem is the same as the one in the textbook is something a human has to check. According to Anthropic, no human has checked the proof or the statement file yet. For OpenAI, the linked Lean file covers only the class separation, not the quantitative bound (Lean file).

You know this pattern from Agent in the Loop (Part 5): Green means the check passed. Whether it checks the right thing is a different question. The difference: Reviewing 100 lines of definitions is doable for experts; reviewing 70,000 lines of proof is not. The work shifts from the proof to the statement. Aaronson assumes that a proof coming directly from OpenAI or Anthropic is correct unless there's evidence to the contrary. That doesn't mean the review is done.

Where the confusion comes from

Things were already running hot before that. On October 26, both labs had claimed to refute the Exponential Time Hypothesis (ETH) with an algorithm that decides 3-SAT in time 2^o(n) (Wikipedia). That also sounds like “NP-hard problems are easy now,” but it isn't. ETH implies P ≠ NP; refuting it doesn't imply P = NP. On top of that, the new algorithms only overtake the old ones on inputs no computer could ever store. Here, too, academic review is still pending.

Then there was cryptography. On November 25, Aaronson wrote that, based on several sources, he was virtually certain the labs were sitting on cryptographic “bombshells,” but that he didn't know what they were. On November 30, Anthropic did in fact publish a paper, though not about P vs NP: a quantum algorithm running in quasi-polynomial time against module lattices of small rank over the rings ℤ[x]/(xⁿ + 1) with n a power of two, the same kind ML-KEM uses. Some variants of Ring- and Module-LWE are affected (paper). The cost grows exponentially with the rank, the constants are astronomical, and it needs a large quantum computer. The Cryptography Incident Review Group concludes that the attack falls far short of threatening the current NIST standards, including the smallest parameter sets, ML-KEM-512 and ML-DSA-44 (CIRG). According to CIRG, Anthropic found no improvement in classical attacks on mainstream lattice schemes. Aaronson still points out that ML-KEM-512 uses rank 2. At that rank, it's mainly the huge constants that provide the protection, and he has said that's not enough for him (Shtetl-Optimized).

And what if P = NP after all?

The fear behind the headlines isn't pulled out of thin air. Public-key cryptography needs one-way functions: easy to compute, hard to invert. If P = NP, there wouldn't be any. RSA, elliptic curves, lattice schemes, and digital signatures would be done for, at least in theory.

The other side belongs in the picture too: P = NP would also make optimization, planning, chip verification, and finding proofs efficient. Aaronson describes it as a world in which “everyone who could appreciate a symphony would be Mozart” (Shtetl-Optimized, 2006). For him, that's one of the reasons to consider P ≠ NP more likely.

Then there are the caveats. A proof could be non-constructive, showing that a fast algorithm exists without giving it. An O(n¹⁰⁰) algorithm would be polynomial and still useless. Conversely, P ≠ NP doesn't guarantee secure cryptography, because that requires problems that are hard on average, not just in the worst case. And hardly anyone would bet on P = NP: In Gasarch's poll, published in 2019, 88 percent of respondents guessed P ≠ NP, and 99 percent of the experts (SIGACT News).

That leaves the question of whether the labs would hold something like this back. What's documented are delays of days to weeks. According to Wikipedia, Anthropic's model found the ETH refutation on October 16; it was published on the 26th. OpenAI gives November 6 as the date for VP ≠ VNP; the paper came out on the 23rd. The lattice paper went to CIRG on November 16 and to the public on the 30th; the time was used to bring in experts ahead of release, as is common with security vulnerabilities. Not much could be kept secret for long anyway: The ETH refutation came from both labs on the same day, VP ≠ VNP a few hours apart. And holding back a proof of P ≠ NP would gain nobody anything. There's nothing to exploit.

Conclusion

P vs NP is open. What's new is a proof of VP ≠ VNP, a major result about a weaker model of computation, machine-checked but not yet reviewed by humans. The next time you see a headline, three questions are worth asking: Which model? Which bound? And who checked that the formal statement is the right one?

0 comments

No comments yet. Be the first!