How to verify the Riemann Hypothesis Lean proof yourself (and how Claude Code checked it)
Short answer
You don't need to rebuild the 17-million-line proof to verify the Riemann Hypothesis Lean proof yourself. MIT mathematician Andrew Sutherland publishes the exported proof (solution.ndjson.zst, 7.7 GB) and the five target statements (challenge.ndjson.zst, 47 MB). Unpack both with zstd, check the SHA-256 hashes, then run either lake comparator with Lean v4.36.0 (about 100 GB of RAM and 70 GB of disk) or the faster independent checker con-leche in --compare mode (about 50 GB of RAM, under four minutes on 64 threads). Both report whether Levent Alpöge's proof really proves Mathlib's own statement of the Riemann Hypothesis using only Lean's three standard axioms. Sutherland and Waterloo's Michael Rubinstein both ran their checks with Claude Code.
On Friday, November 20, Anthropic mathematician Levent Alpöge posted a four-page note, remark.pdf, that opens with: "I believe I have, working with Claude, discovered a proof of the Riemann Hypothesis." He didn't post a paper. He posted Lean code, split into 14 .tar.gz parts on his site, because, in his words, posting "some massive unreadable travesty of 'slop'" would have been inappropriate.
A day later the Lean and Mathlib communities said they had "full confidence that Alpöge's proof of the Riemann Hypothesis is correct." The @leanprover post sharing that statement had 2,659,881 views, 25,846 likes and 4,399 bookmarks when we checked the X API at about 10:30 Dubai time on November 22. Posts mentioning "Riemann" on X went from 100 to 250 a day the week before to 43,917 on November 20 and 57,751 on November 21 (UTC days).
Most coverage stops at "it's verified." This post is about the part you can actually do: what "verified" means here, what it costs to check it on your own hardware, and how two of the checkers used Claude Code to run the work. Everything below comes from the verification pages and repositories linked in the sources, read on November 22, 2026. We have not run the checks ourselves.
What exactly did Alpöge release?
A Lean 4 library, not a written paper. The numbers, from the MIT verification page and the community mirror on GitHub:
- 175,187 Lean files, about 17 million lines, built on Lean v4.33.1 and Mathlib v4.33.1.
- The source archive is 239,275,554 bytes once the 14 parts are joined.
- Five headline theorems in
Main.lean: the Riemann Hypothesis using Mathlib's own definition (riemannHypothesis), the same statement written out, and three statements covering Dirichlet L-functions, which is the Generalized Riemann Hypothesis for every modulus and every Dirichlet character. - The exported proof, the file the checkers read, is 61,570,595,788 bytes unpacked and contains 1,468,418 declarations.
One scope note from the MIT page: "GRH" here means Dirichlet L-functions only. Dedekind zeta functions, Hecke L-functions and automorphic L-functions in general were not among the statements checked.
Alpöge's note gives a rough timeline, which he says Claude produced, starting with a "Stepanov determinant" on October 6, 2026. He writes that near the end "Claude flew, and danced, and sparkled near that finish line," and jokes that a written-out version "hit 250,000+ pages."
What does "verified in Lean" actually check?
A November 12 post on Kevin Buzzard's Xena blog set out four questions to ask before trusting any "checked in Lean" claim, especially an AI-generated one. The Lean community statement says all four are satisfied:
- The statement is right. The Riemann Hypothesis is already defined in Mathlib as
RiemannHypothesis, vetted by Lean and number theory experts. Nobody has to trust Alpöge's wording. - The code compiles. Dozens of people reported clean builds that reproduce the same raw proof export.
- It proves that statement and not a lookalike. The community added a
Challenge.leanfile that states the five theorems while importing only Mathlib. Two separate tools,lake comparatorandcon-leche --compare, confirmed the proved theorems match it exactly. - The proof is valid. The export was accepted by Lean's own kernel and by independent checkers written in other languages. con-leche and its Rust port con-ron come with a formal proof, relative to set theory, that they cannot accept a false proof.
The important detail: the checks ran on an inert export of the proof, so code hidden inside the 175,187 source files can't interfere with the checkers.
Which checks have passed so far?
From Sutherland's page, last updated 04:35 UTC on November 22 (08:35 Dubai time):
| Check | Result |
|---|---|
| Compile all modules (Lean v4.33.1, Mathlib v4.33.1) | 175,187 of 175,187, zero errors |
#print axioms on the five theorems | Only propext, Classical.choice, Quot.sound |
Kernel replay of every module (leanchecker) | 175,187 of 175,187, zero rejections |
| nanoda (independent Rust kernel) on the full export | Accepts, 27 min 42 s on 80 threads |
| con-leche on the full export | 1,468,418 declarations accepted, 3 min 15 s on 64 threads |
con-leche and con-ron --compare against the challenge | All five theorems "justified by the solution" |
| lean4lean, module by module | 175,187 of 175,187 (five needed a higher step limit) |
Sandboxed rebuild with lake build Main, no network | Export byte-identical to the published one |
Full lake comparator and Lean kernel on the export | Still running (single-threaded); statement and axiom checks already passed |
Michael Rubinstein's separate University of Waterloo check reports the same picture as of November 21: all 175,187 modules compile, three standard axioms, every module accepted by Lean's kernel, and nanoda checking 1,484,729 declarations with no errors. Elliot Arledge, Bartosz Naskręcki's riemann-rev dashboard and Simon DeDeo are listed there as other independent checkers.
Get the AI tools worth your time
Era of Minds by Salman Ahmed: one short email with the AI tools and news that actually matter. Free.
You're in. Check your inbox.
Confirm your email and your 50 AI prompts are on their way.
Free. Unsubscribe anytime.
How do I verify the Riemann Hypothesis Lean proof myself?
The cheap route is to check the published export instead of compiling 17 million lines. Sutherland's page lists the steps. With Lean v4.36.0 installed, nothing needs to be built:
- Download
solution.ndjson.zst(7,699,933,588 bytes) andchallenge.ndjson.zst(47 MB), pluscomparator.jsonandSHA256SUMS, from the MIT page. - Unpack and hash them. The
--longflags are required:
The unpacked solution should hash tozstd -d --long=30 solution.ndjson.zst zstd -d --long=27 challenge.ndjson.zst sha256sum solution.ndjson challenge.ndjson5ea74b91…244eand the challenge tobd484ac9…b2b9(full hashes on the page). The challenge hash matches the one the GitHub repo's CI publishes, so you aren't trusting a single source for it. - Judge it with Comparator:
This needs roughly 100 GB of RAM and 70 GB of disk. nanoda alone took about 28 minutes on 80 threads; the Lean kernels are single-threaded and take much longer.lake comparator --config comparator.json \ --challenge-from-export challenge.ndjson --solution-from-export solution.ndjson
If you only want the fastest independent answer, build con-leche from source (about two minutes with Lean v4.36.0):
git clone https://github.com/leanprover/con-leche && cd con-leche
git checkout compare
lake build con-leche
.lake/build/bin/con-leche --compare challenge.ndjson solution.ndjson
It needs about 50 GB of RAM and took under four minutes on 64 threads. A pass prints that each of the five theorems is "justified by the solution." Use con-leche built from master or the compare branch: the copies bundled with Lean v4.36.0 exit with code 2 on this proof, because they don't support one reflexive inductive type in it. That's a "can't read it," not a rejection.
No 50 GB machine? A short-lived cloud instance is the realistic option. If you go that route, our guide to driving a remote Linux box from Antigravity covers the agent side of working on a server.
Can I rebuild the whole proof from source?
Yes, but plan for a big machine and a long afternoon. The community verification notes report:
- On a 48-core machine with 503 GB of RAM, a full
lake buildwas on course for 7 to 10 hours, and the repo README says to expect about 100 GB of disk. - Lake writes a setup file per module averaging about 6 MB, around a terabyte across 175,187 modules unless you delete them as modules finish. The notes include a loop that does this.
- Exporting the solution took about 1 h 20 min on one thread and peaked at 163 GB of memory.
The repo's recommended order: export the challenge from a clean clone first, then build Main in a second clone inside a sandbox with no network, export it there, and judge both exports with Lean v4.36.0. Use lake exe mathlib/cache get, not lake exe cache get: in this repo the second one also downloads prebuilt files for the proof itself, and then lake build Main compiles nothing. The repo is blunt about its community cache too: download integrity checks "do not verify proofs."
How did Claude Code help verify the proof?
Claude helped Alpöge find and formalize the proof. Separately, two of the best-known independent checks were run with Claude Code as the operator:
- Andrew Sutherland (MIT) headlines his page "checks run with Claude Code." That page covers the full compile, axiom audit, kernel replays, the independent kernels, the sandboxed rebuild and the hash comparisons above.
- Michael Rubinstein (Waterloo) says his check was "run with Claude Code on University of Waterloo compute servers," starting from Alpöge's archive, with scripts in a repository "so that anyone can repeat them" and a dated log of each step, including the problems hit along the way. He also posted a 164-page working draft explaining the proof for the zeta function, written "with Claude, Codex and Gemini" as a study aid.
That's a practical pattern worth copying beyond math: let an agent drive a long, multi-step verification job, but have it produce logs, scripts and hashes a human can audit. If you run long jobs like this in Claude Code, our posts on Claude Code's Code Mode and on Headroom token compression cover two ways to keep those sessions efficient.
Is the proof accepted, or is it still disputed?
The Lean community has certified the formal proof. Mathematicians are a different matter: Alpöge himself says he is "presenting the world with a complete argument before having mastered a massive neighbourhood around its mathematics," and that he intends to write it up properly. The Clay Mathematics Institute, which has a $1 million prize on the problem, told AP that its assessment takes time.
There is also a public critique. Jenny Lorraine Nielsen posted a paper arguing the proof is invalid because a geometry predicate in the code, anyGeometry, is defined as always true. A DEV Community write-up confirms that definition exists in the source. Whether it matters is the open question, and it's worth knowing what the checks claim. Sutherland's page puts it this way: a passing check shows the formal statements "follow from the three standard axioms according to the kernels used," relying on those kernels and on Mathlib's definitions. The statement being proved is Mathlib's, not one defined inside the 17 million lines.
Our read: if you want certainty, the con-leche check above is the most direct thing you can run yourself. If you want understanding, that will come from the write-ups, not the kernel.
Get the AI tools worth your time
Era of Minds by Salman Ahmed: one short email with the AI tools and news that actually matter. Free.
You're in. Check your inbox.
Confirm your email and your 50 AI prompts are on their way.
Free. Unsubscribe anytime.
FAQ: verifying the Riemann Hypothesis Lean proof
Can I verify the Riemann Hypothesis Lean proof myself?
Yes. Download the exported proof (solution.ndjson.zst, 7.7 GB) and the challenge file (47 MB) from Andrew Sutherland's MIT page, unpack them with zstd using --long=30 and --long=27, compare the SHA-256 hashes, and run lake comparator with Lean v4.36.0 or con-leche --compare. You do not need to compile the 17 million lines of source.
How much RAM do I need to check the Riemann Hypothesis proof?
About 50 GB for the fastest independent check, con-leche --compare, which took under four minutes on 64 threads. The full lake comparator run needs roughly 100 GB of RAM and 70 GB of disk. Rebuilding the whole proof from source is much heavier: one team used a 48-core machine with 503 GB of RAM and estimated 7 to 10 hours.
What is con-leche?
con-leche is an external Lean proof checker from the Lean developers, with a Rust port called con-ron. It comes with a formal proof, relative to set theory, that it cannot accept a false proof. Its --compare mode checks that a solution proves exactly the statements in a challenge file. Build it from the master branch or the compare branch, because the copy bundled with Lean v4.36.0 cannot read this proof.
What does the Riemann Hypothesis Lean proof actually prove?
Five theorems: the Riemann Hypothesis using Mathlib's own RiemannHypothesis definition, the same statement written out, and three statements about zeros of Dirichlet L-functions for every modulus and character, which is the Generalized Riemann Hypothesis for Dirichlet L-functions. Dedekind zeta, Hecke and general automorphic L-functions were not part of the check.
How many lines is the Riemann Hypothesis proof?
About 17 million lines of Lean in 175,187 files. The source archive is 239,275,554 bytes, and the exported proof that checkers read is 61,570,595,788 bytes unpacked, with 1,468,418 declarations.
Did Claude Code verify the Riemann Hypothesis proof?
Claude Code was used to run two of the independent checks. Andrew Sutherland at MIT says his checks were run with Claude Code, and Michael Rubinstein at the University of Waterloo ran his check with Claude Code on Waterloo compute servers. The verdicts themselves come from Lean's kernel and independent checkers such as nanoda, con-leche and con-ron.
Is the Riemann Hypothesis proof accepted by mathematicians?
The Lean and Mathlib communities said on November 21, 2026 that they have full confidence the proof is correct. Wider acceptance is slower: Alpöge says he has not yet mastered all the mathematics around the argument and plans a proper write-up, the Clay Mathematics Institute says its assessment takes time, and a critique about an always-true geometry predicate in the code is being discussed.
Who is Levent Alpöge?
Levent Alpöge is a mathematician on the technical staff at Anthropic. His site lists a PhD from Princeton, a senior thesis at Harvard and a junior fellowship at Harvard's Society of Fellows. He announced the proof, found with Claude, in a four-page note on his website on November 20, 2026.
Sources
- Levent Alpöge: remark.pdf (announcement note, November 20, 2026)
- Lean community blog: Lean verification of the Riemann Hypothesis (joint statement, November 21, 2026)
- Andrew Sutherland (MIT): RH Lean proof verification files (checks, downloads, "Check it yourself", caveats)
- Michael Rubinstein (Waterloo): Alpöge/Claude proof of the Generalized Riemann Hypothesis
- leanprover-community/riemann-hypothesis on GitHub and its verification notes
- leanprover/con-leche (the external checker)
- Xena Project: "And the proof is checked in Lean" (the four criteria)
- Scientific American, AP and DEV Community on the anyGeometry critique
- On X: @leanprover joint statement post (metrics via X API, November 22, 2026, about 10:30 Dubai time)
Get AI news decoded weekly.
Decoded is a free weekly email from Era of Minds. The AI stories that actually matter, in plain English. Five minutes, no hype.
You're in. Check your inbox.
Confirm your email and your 50 AI prompts are on their way.
Free. Unsubscribe anytime. Free gift: 50 AI prompts that actually work, sent the moment you join. More about Decoded