Checking Anthropic's VP≠VNP Lean Proof, Its Difference From P≠NP, and CI Verification Scope
Contents
On the morning of November 24, 2026 (JST), a vp-vnp folder appeared in Anthropic’s GitHub repository anthropics/formal-math.
It contains a 70-page PDF paper titled “VP ≠ VNP over every field” along with a formalization written in the Lean proof assistant.
According to the folder’s README, the result was found by an internal research Claude model, and both the paper and the Lean code were written by AI. The same README explicitly states that no human mathematician has verified the proof yet.
Because VP vs. VNP looks similar in name to P vs. NP, it is easy to mistake this for a solution to P ≠ NP. Since it is actually a different problem, I checked the paper PDF, the Lean files, and the GitHub CI logs to see what is being claimed and how far the automated checks reach.
VP vs. VNP and Arithmetic Circuits
VP vs. VNP is a problem posed by Leslie Valiant in 1979 about a computational model called arithmetic circuits. An arithmetic circuit starts from variables and constants and builds a polynomial using only addition and multiplication.
Whereas standard Boolean circuits operate on 0 and 1 using AND, OR, and NOT gates, arithmetic circuits compute a polynomial itself over a “field” (a set of numbers closed under addition, subtraction, multiplication, and division, such as the real or rational numbers). The size of a circuit is measured by the number of operations (gates) it uses.
The paper focuses on two polynomials: the permanent and the Hamiltonian cycle polynomial.
The permanent resembles the determinant: for an matrix of variables , it sums over all permutations . While the determinant alternates plus and minus signs depending on the sign of each permutation, the permanent adds every term with a plus sign. The Hamiltonian cycle polynomial restricts the same sum to cyclic permutations that visit through in a single cycle.
The determinant can be computed with a number of operations bounded by a polynomial in , whereas Valiant’s conjecture (VP ≠ VNP) posits that the permanent—differing only in signs—has no comparably small arithmetic circuit.
Here, VP is the class of polynomial families—sequences of polynomials indexed by a size parameter (such as the determinant or permanent as grows)—whose number of variables, degree, and circuit gate count are all bounded by a polynomial in . VNP is the class of polynomial families obtained by taking a polynomial in VP and summing it over all 0/1 assignments to extra variables; every family in VP also belongs to VNP.
One property of a field is its “characteristic” (how many times must be added to reach ; real and rational numbers have characteristic 0 because adding never reaches , whereas the world of 0 and 1 where has characteristic 2). The permanent is VNP-complete (among the hardest problems in VNP) over any field of characteristic other than 2, and the Hamiltonian cycle polynomial is VNP-complete over every field. Showing that either one has no polynomial-size circuit therefore establishes VP ≠ VNP.
The Lower Bound Claimed by the Paper
The paper’s main theorem claims a lower bound on the minimum number of gates required: there exist a constant and a threshold such that for all , any arithmetic circuit computing the Hamiltonian cycle polynomial requires more than gates.
For the permanent, the paper claims the same lower bound over every field of characteristic other than 2. Here is base 2, so the bound can also be written as .
For any fixed constant , eventually exceeds as grows. The paper therefore concludes that the gate count cannot be bounded by any polynomial, placing the permanent and Hamiltonian cycle polynomial outside VP and yielding VP ≠ VNP over every field.
Characteristic 2 is excluded for the permanent because minus equals plus in characteristic 2, making the permanent identical to the determinant. Since the determinant has small circuits, the lower bound does not hold in characteristic 2.
Here is how the paper’s conditions compare with previously known results.
| Item | Description |
|---|---|
| Main theorem lower bound | More than gates ( is an absolute constant independent of variables and field, ) |
| Scope | Hamiltonian cycle polynomial over every field; permanent over fields of characteristic |
| Extension to approximate computation | Claims the same lower bound for circuits that approximate the polynomial in the limit |
| Best prior lower bound | by Strassen and Baur–Strassen for general arithmetic circuits ( variables, degree ) |
| Known upper bound | via Ryser’s formula and related methods (exponential gate count) |
| Constants | is non-constructive, and the paper does not claim the exponent is optimal |
From the extension to approximate computation, the paper also claims that VNP does not lie in the closure of VP (the class that includes polynomials approachable as limits).
Applied to the permanent, the best previously known lower bound did not exceed the scale. While the new bound is “quasi-polynomial” (larger than any polynomial but smaller than exponential), the paper itself notes that a large gap remains between this lower bound and the exponential upper bound.
How It Differs From P ≠ NP
The paper’s abstract states explicitly that while this is an algebraic analogue of P ≠ NP, it does not resolve P ≠ NP.
Because an arithmetic circuit must construct a polynomial as a formal expression, a circuit over the real numbers must match the formula not only for all real inputs, but also for inputs from extension fields such as the complex numbers. A Boolean circuit, by contrast, only needs to return the right answer on 0 and 1 inputs.
On 0 and 1, holds, so adding any multiple of to the Hamiltonian cycle polynomial produces a different polynomial that evaluates to the exact same value on every 0/1 input. As formal polynomials, however, they are distinct.
A Boolean circuit is free to compute such an alternative polynomial, whereas the main theorem says nothing about those alternatives. The proof inspects specific terms of the computed polynomial (terms that are degree 1 in each variable block, or low-degree terms); adding multiples of turns it into a different polynomial and breaks those steps.
A result by Bürgisser cited in the paper shows that over an appropriate field, VP = VNP implies P/poly = NP/poly (the Boolean-circuit version of P = NP). Taking the contrapositive, separating the Boolean circuit classes would separate VP and VNP.
Going the other way—deriving a separation of Boolean circuit classes from VP ≠ VNP—has no known method.
Proof Structure via Two Cases
Section 2 of the paper outlines the proof, starting by constructing a distance from a function defined on tensors (arrays of numbers with multiple indices). This function is a variant of Strassen’s asymptotic spectrum (a framework for measuring tensor complexity), which the paper calls a “spectral point.” No explicit formula is given for the spectral point; its existence is shown using Zorn’s lemma from set theory.
The resulting distance has “non-positive curvature” (a geometric property where triangles curve inward rather than outward), and the paper shows that over any field, at least one of two cases—“flat” or “shrinking”—must hold. The paper proves the lower bound separately in each case. Even over the real numbers, it is not known which of the two cases actually holds.
graph TD
A["Common foundation<br/>Distance built from tensors<br/>has non-positive curvature"] --> B["Over every field, at least one<br/>of two cases holds"]
B --> C["Flat case<br/>Lower bound on circuits for<br/>complete-graph routing polynomial"]
B --> D["Shrinking case<br/>A small circuit would speed up<br/>nondeterministic computation"]
C --> E["Lower bound transfers to circuits<br/>built by substitution into permanent"]
D --> F["Diagonalization shows no such<br/>speedup mechanism can exist"]
E --> G["Main theorem"]
F --> G
The permanent enters only once in each branch. Both cases rely on an explicit form of Valiant’s completeness theorem stating that the target polynomial can be expressed by substituting variables into the permanent, so a small circuit for the permanent yields a circuit of comparable size for the target polynomial.
In the flat case, an -gate circuit for the permanent produces a -gate circuit for the complete-graph routing polynomial, transferring the lower bound.
In the shrinking case, a small circuit would dramatically accelerate nondeterministic programs (a computational model that explores multiple branches simultaneously). Applying that speedup mechanism to a program that adds 1 to its own output via diagonalization leads to the contradiction for the output value .
Since the determinant does have small circuits, the same proof must not go through for it. The paper explains that no method is known for obtaining the same target polynomials by substitution into the determinant, so both steps that use the permanent fail there.
Lean Code and What CI Checks
The Lean code inside vp-vnp is built on top of the Mathlib mathematical library and separates statement files from proof files.
| File | Role |
|---|---|
Statement.lean | Imports only Mathlib; defines circuits, permanent, VP, VNP, and the target theorems |
Paper/ | Theorems corresponding to numbered claims in the paper |
Nc/, NS1/, Ov/ | Auxiliary proofs used by Paper/ |
Challenge.lean | Lists the theorem statements with sorry placeholders for proofs |
Solution.lean | Proves the target theorems using the results under Paper/ |
comparator.json | Configuration specifying the 5 theorem names to match, allowed axioms, and the nanoda external kernel |
In Statement.lean, computability by an arithmetic circuit is defined as follows:
def Computes {R : Type u} {V : Type} [CommSemiring R] (f : MvPolynomial V R) (s : ℕ) : Prop :=
∃ l : ℕ → MvPolynomial V R,
(∀ k < s, (∃ v : V, l k = X v) ∨ (∃ a : R, l k = C a) ∨
(∃ i < k, ∃ j < k, l k = l i + l j) ∨ (∃ i < k, ∃ j < k, l k = l i * l j)) ∧
∃ k < s, l k = f
There is a sequence of polynomials, each being a variable, a constant, or the sum or product of two earlier polynomials, and is computable in gates if it appears in that sequence.
Because this requires equality as formal polynomials (MvPolynomial), matching values on 0 and 1 alone does not satisfy the definition. The difference from Boolean circuits discussed in the P ≠ NP section shows up directly here.
MainTheorem states the same lower bound as the paper, allowing the threshold to depend on the characteristic . Separation, corresponding to VP ≠ VNP, states that VP is a strict subset of VNP over every field.
Counting the files locally gives 324 .lean files totaling 72,932 lines including comments. The breakdown is 236 files (46,094 lines) in Nc/, 43 files (17,448 lines) in Paper/, 29 files (7,308 lines) in NS1/, and 11 files (1,855 lines) in Ov/, plus 5 top-level files such as Statement.lean.
Compared with the roughly 175,000 files in the Riemann Hypothesis Lean proof I checked earlier, this codebase is much smaller. The Lean version (v4.33.1) and Mathlib commit (0df444a360ea…) match that earlier release.
I did not build the Lean project locally; instead, I checked the merge-time GitHub Actions run log. The verify (vp-vnp) job succeeded in about 22 minutes, running from 21:44 to 22:05 UTC on November 23, 2026 (06:44–07:05 JST on November 24). The only sorry warnings in the log come from the five theorem declarations in Challenge.lean—which is expected because Challenge.lean serves as the unproved problem template—while the actual proof files contain no sorry, and the run ends with nanoda kernel accepts the solution and Your solution is okay!.
Alongside verifying that lake build succeeds and no sorry remains outside Challenge.lean, the CI runs Comparator, a tool published by the Lean developers. Comparator checks that the theorems proved in Solution.lean match the statements in Challenge.lean and that the proof uses only the three standard axioms: propext, Quot.sound, and Classical.choice. Because declaring a custom axiom in Lean lets you prove false propositions, restricting axioms to the standard three is essential. The CI also re-checks the proof with nanoda, an independent verifier written separately from Lean’s standard type-checking kernel.
What Lean Does Not Verify
Lean guarantees only that the propositions written in Statement.lean can be proved from Mathlib and the three standard axioms.
The README states that no automated check verifies whether Statement.lean actually matches what the paper claims. According to Appendix Q of the paper, even checking whether the formal statements match the intended claims was done only by another AI; as noted at the start, no human mathematician has reviewed the development, Statement.lean, or the proof.
The paper also lists three caveats regarding how the PDF maps to the Lean code.
First, Remark N.6—which deduces from the approximate-computation bound that the permanent cannot be approximated in the limit by polynomial-size determinants—is the one claim not formalized in Lean. Second, for type universes (the hierarchy of type sizes), the theorems under Paper/ are proved in the lowest universe, and Solution.lean lifts them to fields in arbitrary universes.
Third, four results describing the construction of programs and machines (Proposition I.1, Theorem H.2(d)(e), Theorem J.3, and Proposition N.4) are explicitly noted as verified only in Lean. Both the shrinking case and the main theorem that depends on it rely on Lean for those four steps.
As a result, you cannot follow the shrinking-case proof to completion from the PDF text alone; that part relies on trusting the Lean code.
Even though the automated proof checks passed, whether the definitions in Statement.lean faithfully capture Valiant’s VP and VNP has not yet been confirmed by a human reader. The definitions themselves are around 100 lines long, so they can be compared directly against an arithmetic-circuit textbook.
Incidentally, the same repository also holds zeta23 on zeros of the Riemann zeta function, 3sum-apsp on faster algorithms for 3SUM and All-Pairs Shortest Paths (APSP), and eth on refuting the Exponential Time Hypothesis (ETH). I wrote about how OpenAI and Anthropic published their ETH refutations on the same day in a separate article.