RSS
Research

Riemann hypothesis proof certified: Lean and Mathlib communities confirm Alpöge's Claude-assisted proof

The Lean and Mathlib communities say they have full confidence that Levent Alpöge's Lean proof of the Riemann hypothesis is correct and certify both the statement and the proof. Here is what was checked, by which tools, what GRH covers here, and what is still open.

A blackboard with a lot of writing on it illustrating Riemann hypothesis proof certified
Photo by Thomas T on Unsplash

The Lean proof of the Riemann hypothesis has been formally certified. In a joint statement on the Lean community blog on November 21, 2026, the Lean and Mathlib communities, endorsed by the Lean FRO and the Mathlib Initiative, said they have full confidence that Levent Alpöge's proof is correct and that they certify both the statement and the proof. Alpöge, a mathematician at Anthropic, released the proof on November 20 as a Lean library of about 17 million lines, found working with Claude. A few of the slowest independent runs were still finishing at the last update of the MIT verification page, and no one has yet explained the proof in human terms.

On November 21 we reported that the proof compiled on independent machines while the comparator checks were still running (our earlier explainer is at claudefox.com/claude-riemann-hypothesis-proof). This follow-up covers what changed: which checks passed, which tools ran them, what the result does and does not cover, and how to repeat the fastest check yourself.

The four checks, and how each was met

The statement uses the four questions set out in a November 12 post on the Xena Project blog for judging any AI-generated Lean proof. The joint statement says all four are satisfied:

  • Is the statement right? The theorem is Mathlib's own RiemannHypothesis definition, which the statement says has been vetted by experts in Lean and number theory. Andrew Sutherland's MIT page quotes it: every zero of zeta other than the trivial zeros has real part 1/2.
  • Does it compile? The joint statement says dozens of people report a clean build that reproduces the same raw proof export. Sutherland's run compiled all 175,187 modules on Lean v4.33.1 with Mathlib v4.33.1, with zero errors, and found the Mathlib and dependency files byte-identical to the official cache.
  • Does the code prove that statement? The community wrote a separate challenge file that states the theorems and imports only Mathlib, then matched it against Alpöge's theorem with two independent tools, comparator and con-leche --compare; the joint statement says both confirmed an exact match. On Sutherland's page, con-leche --compare passed for all five theorems, and comparator's statement comparison and axiom check had passed in one run, with its end-to-end run still going at the last update.
  • Is the proof valid, with no kernel bug exploited? The exported proof was checked by Lean's official kernel, the con-leche and con-ron checkers, and independent checkers in other programming languages. The statement notes that con-leche and con-ron come with a formal proof, relative to set theory, that they cannot accept a false proof, and that the checks ran on an inert export, out of reach of any malicious code in the sources.

What the MIT verification page shows

Sutherland's page, which says the checks were run with Claude Code, lists every run with logs and hashes. As of its last update (12:55 UTC on November 21):

  • Axioms: the five headline theorems depend only on propext, Classical.choice and Quot.sound, the three standard axioms. No axioms are declared outside Lean core.
  • Kernel replay: leanchecker replayed all 175,187 modules with zero rejections, and lean4lean passed all 175,187 (five needed a raised step limit on decide computations).
  • Independent kernels: nanoda, written in Rust, accepted the full export in 27 minutes 42 seconds on 80 threads. con-leche accepted 1,468,418 declarations in 3 minutes 15 seconds on 64 threads.
  • Statement match: con-leche --compare reports all five theorems justified by the solution.
  • Still running at that time: the end-to-end lake comparator run and the single-threaded Lean default and paranoid kernels on the export. Statement comparison and the axiom check had already passed in one comparator run.
  • Versions: the proof builds on Lean v4.33.1, while the judge tools (lake comparator, nanoda, con-leche) ran on Lean v4.36.0. The con-leche and con-ron binaries bundled with Lean v4.36.0 declined with exit code 2, which the page says is not a rejection: those older builds do not support one reflexive inductive type in the proof, and con-leche master accepts it.
  • Provenance: the checked source is the 14-part archive from alpo.ge, joined into lean.tar.gz (239,275,554 bytes, SHA-256 beginning 9631b4f0), and the public mirror Deicyde/riemann-hypothesis is byte-identical apart from the comparator files it adds.

The page also adds a check that does not depend on Mathlib's definition of zeta: combined with an independent formalization of Robin's and Lagarias's criteria (kimihiro64/Robin1984), the proof yields Robin's inequality for every n above 5040 and Lagarias's inequality for every positive n, statements about divisor sums with no mention of zeta. Both passed con-leche and nanoda.

What "GRH" covers here

The proof states five theorems: the Riemann hypothesis in Mathlib's form, the same statement written out, two statements about the zeros of Dirichlet L-functions for every modulus and every character, primitive or not, and the same for primitive characters, which is the form GRH is usually stated in. Sutherland's page is explicit about scope: Dedekind zeta functions, Hecke L-functions and automorphic L-functions in general are not among the statements that were checked. So "GRH" in headlines means GRH for Dirichlet L-functions.

Check it yourself

You need a large machine, ideally an isolated one: the MIT page notes its own builds ran on cloud machines without a sandbox. The full comparator route takes roughly 100 GB of RAM and 70 GB of disk; the exported proof is a 7.7 GB download that unpacks to about 61.6 GB. The fastest independent check, con-leche built from source on Lean v4.36.0, needs about 50 GB of RAM and took under four minutes on 64 threads. These are the commands from the MIT page, after downloading solution.ndjson.zst, challenge.ndjson.zst and SHA256SUMS from it:

zstd -d --long=30 solution.ndjson.zst
zstd -d --long=27 challenge.ndjson.zst
sha256sum solution.ndjson challenge.ndjson   # compare with SHA256SUMS

git clone https://github.com/leanprover/con-leche && cd con-leche
git checkout compare        # the page used commit 5dc36dc1
lake build con-leche
.lake/build/bin/con-leche --compare challenge.ndjson solution.ndjson

The unpacked challenge export should hash to the value the page publishes (it begins bd484ac9), which Sutherland says matches the one produced by the CI of the Deicyde/riemann-hypothesis mirror. A pass reports each theorem as justified by the solution; the page's own run did that for all five.

Copy-paste prompt: run the fast check with an agent

Try it with your AI. Give this to a coding agent on an isolated Linux machine or VM you control, with at least 50 GB of RAM and 80 GB of free disk. It checks resources first and asks before downloading, installing or building anything.

I want to independently check the Lean proof of the Riemann hypothesis using the fastest
method on Andrew Sutherland's page at https://math.mit.edu/~drew/grh/. Work only inside
[/path/to/empty/folder]. Step 1: read the page and report the expected SHA-256 values
from its SHA256SUMS file for solution.ndjson.zst, solution.ndjson and challenge.ndjson.
Step 2: check this machine: free RAM, free disk in the working folder, CPU threads, and
whether zstd, git and elan are installed. If RAM is under 50 GB or free disk under 80
GB, stop and tell me. Step 3: show me the downloads (about 7.8 GB), any tool you would
need to install (for Lean, only the official elan installer from lean-lang.org with
toolchain v4.36.0), and the exact commands, then wait for my approval. Step 4: after I
approve, download solution.ndjson.zst, challenge.ndjson.zst and SHA256SUMS, check the
compressed hash before unpacking, then decompress with zstd -d --long=30 for the
solution and --long=27 for the challenge and compare the unpacked hashes; stop if any
differs. Step 5: clone github.com/leanprover/con-leche, check out commit 5dc36dc1 on the
compare branch, run lake build con-leche, then run .lake/build/bin/con-leche --compare
challenge.ndjson solution.ndjson. Report the exit code, time taken, and whether each of
the five theorems is reported as justified. Do not use sudo, install nothing beyond what
I approved, and do not delete files outside the working folder.

What is still open

  • Human understanding. There is still no readable proof. Alpöge's note says he decided to release only the Lean code rather than a huge, unreadable expanded document, which he says ran past 250,000 pages, and the joint statement says the community looks forward to work that explains the new ideas.
  • Build caveats. Sutherland notes the build ran on cloud machines without a sandbox, that per-file hashes depend on the build directory, and that a passing check relies on the kernels used and on Mathlib's definitions being what they are meant to be.
  • Which Claude model was used and how much compute it took: none of the primary sources we read say.
  • Alessandro Masullo's separate, human-written GRH manuscript, posted by Ravi Vakil the same day, is a different case. Vakil updated his post to say several people had reported problems in it, found with the help of AI models.

FAQ

Is the Riemann hypothesis proved? The Lean and Mathlib communities now certify that Alpöge's Lean proof proves Mathlib's statement of the Riemann hypothesis, after checks by several independent proof checkers on the same inert export. That is unusually strong verification for a formal proof. Mathematicians still have to understand why it is true.

Did Claude solve the Riemann hypothesis? Alpöge says he found the proof working with Claude. The certification covers the proof itself, not how it was produced, and the primary sources do not say which Claude model or setup was used.

What is con-leche? An independent checker for exported Lean proofs, maintained in the leanprover GitHub organization. Its --compare mode checks that a solution proves exactly the statements in a challenge file. The joint statement says it comes with a formal proof, relative to set theory, that it cannot accept a false proof.

Does this prove GRH for all L-functions? No. The checked statements cover Dirichlet L-functions for every modulus and character. Dedekind zeta, Hecke and general automorphic L-functions were not part of what was checked.

Which Lean version do I need? The proof itself builds on Lean v4.33.1 with Mathlib v4.33.1. The checking tools on Sutherland's page, including lake comparator and con-leche, ran on Lean v4.36.0, which is all you need to check the exported proof without building it.

Is Masullo's proof also verified? No. It is a separate, 940-page human-written manuscript (Quanta gives the length) that Ravi Vakil posted on November 20. Vakil later wrote that several people reported problems in it, found with the help of AI models, and no formal version has been checked.

Source: Lean community blog: Lean verification of the Riemann Hypothesis (joint statement), Andrew Sutherland (MIT): Verification files for the Lean proof of the Riemann Hypothesis, Xena Project (Kevin Buzzard): "...and the proof is checked in Lean", Levent Alpöge: announcement note (remark.pdf), Ravi Vakil: Hurried Announcement: Alessandro Masullo GRH, Quanta Magazine: As mathematicians race to verify AI Riemann proof, a human proof emerges, Levent Alpöge: homepage

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