RSS
Research

Claude's VP ≠ VNP proof: what Anthropic posted, what Lean checks, and why it is not P ≠ NP

Anthropic has posted a paper by Claude claiming VP ≠ VNP over every field, the algebraic version of P vs NP, with a 72,932-line Lean 4 proof that passes its CI checks. No human mathematician has checked it, and it does not settle P vs NP.

Blue circuit board illustrating Claude's VP ≠ VNP proof
Photo by Umberto on Unsplash

On November 23, 2026, Anthropic added a folder called vp-vnp to its public GitHub repository anthropics/formal-math. It holds a 70-page paper, "VP ≠ VNP over every field", whose only listed author is Claude (Anthropic), and a Lean 4 formalization of its proof: 324 Lean files and 72,932 lines, by our count of the folder on November 24.

The claim is a major one in algebraic complexity theory: Leslie Valiant's conjecture, posed in 1979, that the permanent cannot be computed by polynomial-size arithmetic circuits. The README says the result "was discovered by an internal research Claude model", that both the paper and the Lean code were written by AI models, and that no human mathematician has checked the proof. It also says plainly that this does not settle P vs NP.

It arrives days after two other big claims that came with Lean code, Levent Alpöge's Riemann hypothesis proof (claudefox.com/claude-riemann-hypothesis-proof) and the Navier-Stokes blow-up claim (claudefox.com/claude-navier-stokes-blowup-proof). How far each has been checked differs, and that is what matters most here.

What the paper claims

Short version: computing the Hamiltonian cycle polynomial, or the permanent outside characteristic 2, of an m × m matrix needs more than m^(c·(log m)^(1/3)) gates, which grows faster than any polynomial in m. The main theorem says there is a constant c > 0 such that, over every field and for every m beyond a threshold that depends on the field's characteristic, every arithmetic circuit for the Hamiltonian cycle polynomial has more than that many gates. The same holds for the permanent over every field whose characteristic is not 2.

Characteristic 2 is left out for the permanent for a simple reason the paper gives: there, the permanent equals the determinant, and the determinant has polynomial-size circuits. Because both polynomials lie in the class VNP, the corollary is that VP is a proper subset of VNP over every field. The paper extends the bound to circuits that only approximate the polynomial (border complexity), so VNP is not contained in the closure of VP either.

"Approximate" has a concrete meaning. Over the real numbers, the paper explains, it covers polynomials that are limits of polynomials with small circuits, even when the circuits' constants, such as 1/ε, blow up in the limit. The paper defines it with formal Laurent series in ε so it works over any field.

  • Size of the bound: 2^Ω((log m)^(4/3)), which is quasipolynomial. The best known upper bounds are exponential, 2^O(m), so the paper says there is "plenty of room" to tighten it.
  • Previous record: the paper says the best earlier lower bound for general arithmetic circuits computing an explicit polynomial was the Ω(n log d) bound of Strassen and of Baur and Strassen from the 1970s and 1980s.
  • Method: it does not follow geometric complexity theory, the Mulmuley-Sohoni programme, and uses neither representation theory nor orbit closures. It splits into a contracting case and a flat case and, in the flat case, uses functionals the paper calls spectral points, a variant of Strassen's asymptotic spectrum.
  • Open point the paper names: it has not analysed how the argument relates to the relativization and algebrization barriers.

Why this is not P ≠ NP

Arithmetic circuits must give the right polynomial for every input from the field and its extensions; Boolean circuits only have to be right on 0 and 1. The abstract says the bound "does not apply to Boolean circuits", and Section 2.5 shows where the proof breaks for them: a Boolean circuit for the Hamiltonian cycle polynomial may compute a different polynomial that agrees on 0 and 1, and two steps of the proof look at parts of the computed polynomial that such a circuit can change.

The paper also notes the one-way link that is known: proving VP = VNP over a suitable field would imply P/poly = NP/poly, a circuit version of P = NP. No implication runs the other way, so VP ≠ VNP leaves P vs NP open.

What Lean checks, and what it does not

Lean checks that the proofs follow from the definitions in Statement.lean; nothing checks that those definitions mean what complexity theorists mean by circuits, VP and VNP. That file imports only Mathlib and defines arithmetic circuits, the permanent, the Hamiltonian cycle polynomial, approximate circuits and Valiant's classes, then states four propositions; a fifth checked theorem, permanent_over_real, is the abstract's headline case of the permanent over the real numbers. The README says it directly: "no machine checks that this file says what is claimed."

  • Checked by machine: the proofs build on Lean 4.33.1 with Mathlib commit 0df444a and, per the paper's Appendix Q, use no native_decide, declare no axioms and contain sorry only in Challenge.lean, the file that restates the theorems without proofs for comparison.
  • Checked by machine: the comparator tool matches the proved theorems against Challenge.lean and rechecks the proofs with Lean's kernel and with nanoda, an independently written kernel. The allowed axioms are propext, Quot.sound and Classical.choice. The repository's CI job for vp-vnp passed in about 22 minutes after the merge on November 23.
  • Not formalized: Remark N.6, the consequence for determinantal complexity (that the permanent is not approximated by small determinants). It is the only numbered statement in the paper without a Lean version.
  • Not checked by any human: in the paper's own words, "Whether the statements say what is meant was judged only by AI readers."

Compare the Riemann hypothesis case. There the statement already lived in Mathlib and had been vetted by Lean and number theory experts, and on November 21 the Lean and Mathlib communities issued a joint statement certifying both the statement and the proof. For VP ≠ VNP, the definitions are new and written by AI, and we found no published outside review as of November 24.

QuestionRiemann hypothesis (Nov 20-21)VP ≠ VNP (Nov 23)
Where the formal statement comes fromMathlib's existing RiemannHypothesisA new Statement.lean written by AI
Statement compared bycomparator and con-lechecomparator
Proof rechecked byMany independent builds and checkersLean's kernel and nanoda (per README and CI)
Human review of the statementVetted by experts; community certifiedNone reported; judged only by AI readers
Who posted itLevent AlpögeAnthropic's formal-math repo; paper credits Claude only

How to check it yourself

Start by reading Statement.lean, which is 98 lines and is the part that most needs a human. Appendix Q of the paper maps each numbered statement to its Lean theorem (Table 3) and says where the Lean differs from the text (Q.3). Things a reviewer should look at: variables and constants count as gates, VNP sums over all 0/1 vectors, and the Paper theorems are stated for the lowest universe while the final Solution theorems hold in every universe. Then build the proofs. With elan, Lean's version manager, installed, run these in the vp-vnp folder, as the README gives them:

git clone https://github.com/anthropics/formal-math
cd formal-math/vp-vnp
lake exe cache get
lake build
lake env lean scripts/PrintAxioms.lean

What a correct result looks like: the build should print sorry warnings from Challenge.lean only, and the last command should name no axiom other than propext, Classical.choice and Quot.sound. The README describes a fuller check, the one CI runs, as bash ../.github/scripts/comparator-check.sh on Linux; the repository README says it passes when the Palomar registry's acceptance check prints "Your solution is okay!".

Try it with your AI. Want an AI assistant to walk you through reproducing the check and reading the statement file? Paste this into Claude or another coding agent with shell access.

I want to reproduce the Lean check of the VP ≠ VNP proof in
https://github.com/anthropics/formal-math/tree/main/vp-vnp and understand its statement
file. Work in [a new empty folder], ideally inside a container or disposable VM, because
lake build runs code from the repository.

First check: is elan installed (elan --version)? Is git available? How much free disk
space is there? If elan is missing, show me the official install command from
https://github.com/leanprover/elan and wait for my OK before running it.

Then:
1. Clone the repository and cd into formal-math/vp-vnp. Read lean-toolchain and confirm
   it says leanprover/lean4:v4.33.1.
2. Run lake exe cache get, then lake build. Report how long the build took and list
   every warning that mentions sorry, with its file. Tell me if any comes from a file
   other than Challenge.lean.
3. Run lake env lean scripts/PrintAxioms.lean and list the axioms printed. Flag anything
   other than propext, Classical.choice and Quot.sound.
4. Open Statement.lean. In plain English, explain each definition (Computes, perm, hc,
   Beyond, Approximates, VP, VPBar, VNP) and each of the four propositions. Point out
   any place where a definition might differ from the textbook definitions of arithmetic
   circuits, VP or VNP, and say how confident you are.

Do not edit any files in the repository, do not delete anything, and do not run scripts
other than the commands above without asking me first.

What we do not know yet

  • We found no Anthropic blog post or announcement as of November 24; this article relies on the repository and the paper. The files were committed by Thomas Steinke, and the paper credits no human.
  • Which internal model found the proof, and how much compute it used, is not stated.
  • We found no published expert review of the statement file or the paper as of November 24. That review, and a human-vetted statement of VP and VNP, are the next milestones to watch.

The same repository holds other Lean projects: zeta23 (Alpöge and Furman, on zeros of the Riemann zeta function), 3sum-apsp (Alman and Vassilevska Williams), and eth, a Claude paper added on October 27 whose README entry says it refutes the Exponential Time Hypothesis.

FAQ

Did Claude prove P ≠ NP? No. The paper claims VP ≠ VNP, the algebraic analogue, and says it does not settle P vs NP because its bound does not apply to Boolean circuits.

What are VP and VNP? VP is the class of polynomial families with polynomially many variables, polynomial degree and polynomial-size arithmetic circuits. VNP is the class of families obtained by summing a VP family over all 0/1 values of some extra variables. The permanent is the standard VNP-complete example outside characteristic 2.

Is the proof verified? The Lean proofs pass the repository's machine checks, including a second independent kernel. Whether Statement.lean captures the intended meaning has been judged only by AI readers, and no human mathematician has checked the proof.

Why is characteristic 2 different? In characteristic 2 the permanent equals the determinant, which has polynomial-size circuits. The Hamiltonian cycle polynomial is used instead, and the theorem holds for it over every field.

Can I build it on my laptop? The README gives the commands and needs only elan. It does not state hardware needs; the repository's CI job took about 22 minutes on November 23, on a GitHub runner whose size is not stated, so local times will differ.

What does Palomar have to do with it? The repository README says each project follows the Palomar registry's submission template (Challenge.lean, Solution.lean, comparator.json) and that CI runs the registry's acceptance check.

Source: GitHub: anthropics/formal-math, vp-vnp folder (README, Statement.lean, Lean proof), Claude (Anthropic): VP ≠ VNP over every field (paper PDF), Statement.lean: the definitions and theorems, importing only Mathlib, GitHub: anthropics/formal-math repository README (projects and CI), Lean community blog: Lean verification of the Riemann Hypothesis (joint statement, November 21, 2026)

This story first appeared in the claudefox daily briefing for November 24, 2026.