DEV Community

Cover image for Claude Riemann Hypothesis Proof: The Lean Check
Mihai Perdum
Mihai Perdum

Posted on Originally published at leanzero.net

Claude Riemann Hypothesis Proof: The Lean Check

On 20 November 2026, Levent Alpöge, a mathematician at Anthropic, posted a four-page note. Its second paragraph begins: "I believe I have, working with Claude, discovered a proof of the Riemann Hypothesis." He posted no paper. The proof exists only as code in Lean, a language in which a computer checks each step of a proof. A day later the Lean FRO (the nonprofit that develops Lean) and the Mathlib Initiative said they certify that the code proves the formal statement.

So did Claude prove the Riemann hypothesis? Computers have checked the Lean proof step by step. The people who run those checks are confident. But no mathematician quoted so far says they understand the argument. And the bar for a famous problem is human. The Clay Mathematics Institute wants a published proof, two years to pass after it, and general acceptance by mathematicians. Its page still lists the problem as unsolved.

I run a small consultancy that builds Atlassian apps and AI tooling, and Claude Code (Anthropic's coding agent) runs on our Macs every day. I'm not a mathematician. What caught my eye is the speed. A proof with no readable version got trusted within a day, because programs replay each step and refuse the ones they can't follow. I ask the same of the code Claude writes for us. So we downloaded the archive, all 239 MB of it, and searched it for the shortcuts a Lean proof can hide.

Plenty of people want the answer. The English Wikipedia page on the hypothesis had 964 views on 19 November. It had 295,157 on 20 November and 388,288 on 21 November. The Hacker News thread on the note had 2,868 points and 2,049 comments when we read it on 22 November.

The Riemann hypothesis in two paragraphs

Start with the Riemann zeta function. It takes a complex number s and is zero at -2, -4, -6 and so on, the "trivial" zeros, and it has infinitely many other zeros. Riemann's hypothesis says all of those have real part exactly 1/2, so they sit on one vertical line called the critical line. Alpöge's note says what that buys: "optimal control on the count of prime numbers of a given size".

It has been open since 1859. It is one of the seven Millennium Prize Problems, and the Clay Mathematics Institute set aside $1 million for each in 2000. GRH, the Generalized Riemann Hypothesis, asks the same question for a wider family of functions called L-functions, which Wikipedia describes as "formally similar to the Riemann zeta-function".

Black and white portrait of Bernhard Riemann: a bearded man with round glasses, a bow tie and a dark jacket.

Five findings from the note, the archive and the checkers

  1. Alpöge credits Claude by name and names no model. We found no statement from Anthropic on the claim as of 22 November.
  2. The proof is 17,374,215 lines of Lean in 175,187 files. Our scan found 0 uses of sorry, admit, axiom or native_decide in them.
  3. The Lean FRO and the Mathlib Initiative certified it in a joint statement. Andrew Sutherland published his own runs: all 175,187 modules compile, and the five main theorems use only the three standard axioms.
  4. The readable version doesn't exist. Alpöge says a full write-up ran past 250,000 pages, and he chose not to post it.
  5. The checked "generalized" part covers Dirichlet L-functions only. It is also a separate story from Anthropic's August result on the same function.

What Levent Alpöge claims, in his words

Alpöge's homepage, alpo.ge, lists him at Anthropic and as a junior fellow at Harvard's Society of Fellows.

A smiling teenager in a dark suit and tie with a lanyard name badge points at a large poster titled A Non-Parametric, Massively Parallelized Vessel Detection Method for Complex Vascular Structures, Levent Alpoge, Half Hollow Hills High School West.

His note is short and unusually personal. Here is the claim, from page 1:

"I believe I have, working with Claude, discovered a proof of the Riemann Hypothesis. In fact, the method easily extends much further, resolving the so-called Generalized Riemann Hypothesis, and I expect, with more time, the Extended Riemann Hypothesis too. Claude and I have also formalized the arguments without assumptions."

The top of page 1 of Levent Alpöge's note, with the paragraph that begins I believe I have, working with Claude, discovered a proof of the Riemann Hypothesis

He steered, he says: "I guided us to the right situation analogous to that toy setting, and then Claude began to leave me in awe." Then comes the line people quote most: "Claude flew, and danced, and sparkled near that finish line." He calls the argument "a descendant of Stepanov's". He describes Stepanov's method as "resolving Riemann over function fields". The hard part, he says, is that "multiplicity is hard to find over the integers". He singles out one line as Claude's: for a sum of length X, Claude suggested a chain of what he calls theta lifts of length √X.

A grey robot with a lantern and rope climbs a snowy path at night while a small orange robot dances beside a yellow flag at the summit

He is open about what is missing. "The argument is incredibly long at the moment," he writes, and he intends "to write it properly". He says Claude compiled the timeline at the end of the note, which runs from "10/6/26: Stepanov determinant" to "11/16/26: GRH", about six weeks. In a footnote he admits that where Claude is the expert, he is "sort of paraphrasing a 'slop' summary, which might make zero sense". He adds: "the Lean should suffice to clarify everything."

He never says which Claude model he used. Terence Tao, writing on his blog the same day, calls it "an internal AI model". Nor does the word Anthropic appear. Alpöge writes that he asked about his "ability to announce" before posting, and he calls himself "unilaterally responsible" for the timing. Anthropic's news page had nothing on it when we checked.

What the Riemann hypothesis Lean proof checks, and what it leaves open

Lean is a proof assistant. You write a proof as code, and a small program called the kernel checks that each step follows from the ones before. Mathlib is the shared library of mathematics written in Lean, and it already contains a formal statement of the hypothesis. At the exact Mathlib version Alpöge's project pins, it reads:

/-- A formal statement of the **Riemann hypothesis** – constructing a term of this type is worth a
million dollars. -/
@[wikidata Q205966]
def RiemannHypothesis : Prop :=
  ∀ (s : ℂ) (_ : riemannZeta s = 0) (_ : ¬∃ n : ℕ, s = -2 * (n + 1)) (_ : s ≠ 1), s.re = 1 / 2
Enter fullscreen mode Exit fullscreen mode

In words: a zero of zeta that isn't a trivial zero has real part 1/2. Why care? A formal proof can quietly prove a statement that only looks like the famous one. Here the statement lives in Mathlib, in the file at that commit, outside Alpöge's project, and the comparator checks below confirm that the project proves that exact statement.

Our scan: 175,187 files and no obvious shortcut

We didn't compile the project. Sutherland's page says checking it needs "roughly 100 GB of RAM and 70 GB of disk", and others had done it by the time we looked. Instead we downloaded the 14 parts from alpo.ge, joined them, unpacked them and counted, with a short shell script on one of our Macs:

What we measured Result
Archive parts and size 14 parts, 239,275,554 bytes
SHA-256 of the joined archive 9631b4f0...7fc, the same in two downloads and on Sutherland's page
Lean files 175,187, all inside the project's own src folder
Lines of Lean 17,374,215
Lean version pinned v4.33.1, Mathlib at commit 0df444a3
sorry / admit (a step left unproved) 0 / 0
axiom (a new assumption) 0
native_decide (trust compiled code instead of the kernel) 0

Mathlib and Lean itself aren't in the archive: the project fetches Mathlib from GitHub at that commit. So the zeros are about Alpöge's own 175,187 files. Its top file, Main.lean, states theorem riemannHypothesis : RiemannHypothesis := rhOfAll, using Mathlib's definition above. It states four more theorems: the same zeta statement in the project's own words, and three about Dirichlet L-functions (Mathlib defines one for each Dirichlet character), which is where the "generalized" part lives.

Counting these words catches the obvious ways to skip a step. It can't catch a bug in Lean itself, or a definition inside the project that doesn't mean what its name says, and that is what the checkers below were built for.

An orange robot with a magnifying glass stands in front of a mountain of cardboard boxes while a conveyor belt feeds single sheets into a grey machine with a green lamp

Is the Riemann hypothesis proof verified?

The Lean proof is verified. Several independent tools agree. Mathematicians mean something more by verified, a proof they have read and understood, and no one has yet shown they have done that.

Kevin Buzzard, a mathematician at Imperial College London, had written on his Xena blog on 12 November, before this claim, about how to trust an AI-made Lean proof. His questions: "Does the Lean statement match the informal statement?", "does the code compile?", "does the code prove the theorem as stated?" and "does the code exploit a bug in Lean's official kernel?".

On 21 November a joint statement by the Lean FRO and the Mathlib Initiative answered them. The statement credits the Lean and Mathlib communities with the day of checking behind it. It reads: "We hereby certify that both the statement and the proof of the Riemann Hypothesis are correct. The four criteria in [Xena post] are all satisfied." They compared the statement with two separate tools, comparator and con-leche. The statement says Lean's official kernel and several independent checkers checked the proof. Those ran on an export, a frozen copy of the compiled proof that outside checkers can read, so no code in the project can run during the check. Some of those checkers "come with a formal proof, relative to set theory, that they cannot accept a false proof".

The Lean community blog post Lean verification of the Riemann Hypothesis, dated 2026-11-21 13:55, with the joint statement and the first three of its four criteria

Andrew Sutherland at the Massachusetts Institute of Technology (MIT) keeps a page of his own checks, run with Claude Code. As of 04:35 UTC on 22 November it read:

  • "All 175,187 modules compile (Lean v4.33.1, Mathlib v4.33.1)".
  • The five main theorems use only "propext, Classical.choice, Quot.sound", the three standard axioms.
  • An independent checker, nanoda, accepted the proof in 27 min 42 s on 80 threads, and con-leche accepted 1,468,418 declarations.
  • A rebuild in a sandbox gave a byte-identical 61,570,595,788-byte export. The original build, he notes, "ran on cloud machines without a sandbox".
  • Two runs were still listed as "running": Lean's default and paranoid kernels on the export, and an end-to-end comparator run on a newer Lean version. Lean's kernel had already replayed every module one by one: 175,187 of 175,187, zero rejections.

The page has moved on since. Updated at 03:30 UTC on 24 November, it says Lean's own kernel and its paranoid kernel both accept the full export, and Comparator v4.33.0 reports "Your solution is okay!". Only the lake comparator run on v4.36.0 is still in progress.

Andrew Sutherland's verification page for the Lean proof, last updated 2026-11-22 04:35 UTC, with a summary and a table of checks marked pass

Sutherland adds a caveat: a passing check "relies on those kernels and on Mathlib's definitions being what they are intended to be." So he also checked a consequence that doesn't touch Mathlib's zeta definition. Combined with a separate Lean proof of Robin's 1984 criterion, it yields a Lean theorem that Robin's inequality about the sum of a number's divisors holds for every n above 5040, a statement with no zeta in it.

One Scientific American headline now calls the proof "true". What that article reports is the Lean check: the joint statement, Sutherland's compile and the comparator run. It doesn't report a reading of the mathematics. Sutherland told it: "Honestly the chance that anything is fishy here is approximately zero." In the first report he called it "indeed an historic moment" and added: "There is much work to be done to understand the mathematical details of the proof".

Scott Aaronson, the computer scientist, wrote on 20 November "my bet is that the proof will stand". After the Lean check he updated the post: "The proof is correct." In the same post he wrote: "Mathematicians of course won't be satisfied with 17 million lines of Lean."

Mathematicians quoted so far speak in conditionals

Tao says the proof "appears to use the full power of modern developments on the Langlands program and arithmetic geometry". He expects "the digestion process will take some time, though in this case at least we have a human author to communicate with".

Two mathematicians quoted by Scientific American spoke in conditionals. Hector Pasten said "If the proof is correct and understood, this completes a dictionary between different branches of math". Carlo Pagano said "If true", the ideas "will open up brand new avenues of thinking in number theory". I read both as interest in the ideas rather than a verdict on the argument. No source we read mentions a journal submission.

The same day brought a second claim. It shows what the Lean part buys. Ravi Vakil posted that Alessandro Maria Masullo had a proposed proof of GRH, "all human, with no AI". About eight hours later he added: "Several people have contacted me to report problems in the proposed proof." Brian Conrad told Scientific American it was "undergoing major revision". Readers reported problems in Masullo's paper within hours. Alpöge's proof has no paper for anyone to read, so this time the machines answered first.

The checked generalized Riemann hypothesis covers Dirichlet L-functions only

Hacker News said "Generalized Riemann Hypothesis" in its title. So did Terence Tao's post. Sutherland pins the scope down exactly: "'GRH' here means Dirichlet L-functions: all moduli and all characters. Dedekind zeta functions, Hecke L-functions and automorphic L-functions in general are not among the statements that were checked."

As for the Extended Riemann Hypothesis, it appears in the note only as "I expect, with more time". And the community statement certifies "the Riemann Hypothesis" without using the word GRH.

How this differs from Anthropic's August Riemann hypothesis result (41.6% to 67.2%)

Alpöge worked on both, and the two results sit side by side in search results for this question. On 10 August, Anthropic published a result where an unreleased research version of Claude raised a known lower bound: the share of zeta zeros proven to lie on the critical line went from 41.6% to 67.2%. Alpöge and Ralph Furman checked it, and the outside experts Brian Conrey and Dan Goldston examined the paper. That run took about 31 million output tokens over two Claude Code sessions, with about 60 subagents and 2,400 shell commands. Claude first tried 650 ideas, and none worked.

That page says: "We don't expect that the techniques Claude used will lead to proving the Riemann hypothesis." It describes the August technique and says nothing about November. A 67.2% floor isn't a proof either, because the hypothesis needs every zero. In October, Quanta reported a third, separate result: OpenAI's proof that the zeros sit in a narrower strip, the "quasi-Riemann hypothesis". Alpöge praises "the people at OpenAI" in his note too. Only the November note claims the hypothesis itself.

What I take from it as someone who runs Claude every day

I can't judge the mathematics. I can judge where the trust came from. Alpöge had two outputs. One was a 250,000-page document. He called that a "massive unreadable travesty of 'slop'" and didn't publish it. The other was 17 million lines that a checker could replay. Nobody could read 250,000 pages in a day, so the trust came from programs that reject any step they can't follow.

We see the small version of this daily. When Claude writes code for us, "does it look right" is the weak question. The useful one is "what refuses it when it's wrong": a test, a type checker, a gate in a script. Our own article pipeline refuses a draft without its research sheet, in code, and this article went through it. I've written about how Claude Sonnet and Opus did on our two coding benchmarks and about which models hold up on agentic coding, and the runs I trust there are the ones a scorer replays.

Sutherland's caveat is the limit, though. A checker only checks what the statement says. Here the statement lives in Mathlib, outside the project being checked. In a Jira automation or a Forge app, the statement is usually a test somebody wrote in a hurry, probably the same person or agent that wrote the code.

So when one agent writes both your code and your tests, what do you check the tests against?


Originally published on leanzero.net. More Atlassian, Forge and local-AI write-ups at leanzero.net/blog, and if you're planning a migration or a Forge app, that's what we do: leanzero.net/services.

Top comments (0)