Software and AI · mathematics · artificial intelligence
The Riemann Hypothesis, in seventeen million lines of Lean
In 1859 Bernhard Riemann published a short paper on prime numbers, and in it, almost in passing, sat a conjecture he openly said he hadn't bothered trying to prove. That conjecture stayed the most famous open question in mathematics for 167 years. On 20 November 2026 a mathematician named Levent Alpöge put a four-page note up on his own site and announced that the question was closed. The odd part is the proof itself: there's no paper sent off to a journal. The proof is nothing but code written in a proof assistant called Lean, and that code runs to roughly 17.4 million lines.
Let me say it up front: everything here is pulled together from the announcement, the independent verification pages, the Lean community's statement and what mathematicians have written. I didn't build that archive myself, and I didn't run a single check myself either (as you'll see in a minute, the job made even a university's compute allocation sweat).
First, what was the question?
The Riemann zeta function is a function that carries the way prime numbers are distributed like a kind of fingerprint. Some of its zeros count as "trivial"; the rest sit inside a particular strip of the complex plane. The hypothesis says that every one of these non-trivial zeros has a real part of exactly 1/2. If it's true, a whole pile of estimates we have about how the primes are distributed snap into their best possible form overnight. The Clay Institute put this question on its list of Millennium Problems and hung a million-dollar prize on it.
Alpöge's claim is even wider than that. It also covers the version of the Generalized Riemann Hypothesis (GRH) for Dirichlet L-functions, and for every modulus and every character at that. But careful: Dedekind, Hecke or general automorphic L-functions are NOT part of this. Some headlines are running with "GRH solved". What got solved is a fairly important but limited piece of GRH.
Alpöge has been working at Anthropic since 2024 (Wikipedia says so), and writes that he found the proof working with Claude. I couldn't confirm the timeline Wikipedia gives in any other primary source, so I'm passing it on as is: the work started on 6 October, finished on 16 November, and the announcement was held until after the company's IPO on 19 November. The proof went first to Tristan Buckmaster and Scott Armstrong, and when Armstrong shared a link, it landed in front of everyone.
What is Lean, and why does it matter?
Lean is a proof assistant. You write a mathematical statement and its proof the way you'd write in a programming language. Then a deliberately tiny checker called the "kernel" goes over every step, one by one. If the kernel won't accept a step, the proof doesn't compile, and that's that. The referee doesn't get sleepy, doesn't get tired, doesn't skip a page because "this bit is well known anyway".
This setup has one weak spot, and it has to be said: Lean doesn't guarantee that you proved what you meant, only that you proved the statement you WROTE. Write the statement wrong (or write it the way that suits you) and the kernel won't catch it, because as far as it's concerned there's no error. So with a claim like this, the first question isn't "does the proof compile?" It's "which sentence does the compiled proof actually prove?"
Here the answer is pretty clean. The main theorem, riemannHypothesis, is built on Mathlib's own definition. Mathlib is the maths library the Lean community has been growing for years, and its RiemannHypothesis definition was sitting there long before this proof, already looked over by experts. In other words, nobody moved the goalposts to score. Next to that theorem there are four more main results: riemannZeta_eq_zero_re on the zeros of zeta, and LFunction_ne_zero_of_half_lt_re, LFunction_eq_zero_re and LFunction_eq_zero_re_of_isPrimitive on Dirichlet L-functions. None of the five takes any extra assumptions.
Where you could cheat, and why nobody found it
There are a few well-known ways to "fool" a proof in Lean. You write sorry, Lean takes it as "I'll prove this bit later" and moves on. With axiom you can declare anything you like to be true. native_decide hands a calculation to compiled code instead of the kernel, which means shifting your trust from the tiny checker to a much bigger piece of software. And then there's admit. If one of these is tucked away in some corner of 17 million lines, the whole building comes down.
Michael Rubinstein ran an independent audit and published the results on a detailed page. The announcement used Lean v4.33.1, with Mathlib pinned to a specific commit (0df444a3). The source archive is 239,275,554 bytes. Try splitting that across the 880K floppies of old and you'd get two hundred and sixty-odd disks (and your hair would go grey swapping them). According to Rubinstein's page:
- All 175,187 modules compiled with zero errors.
- The kernel replaying the proof from scratch rejected no module. The page notes that some parts ran out of memory partway and had to be rerun.
- A scan of the source found no
sorry,axiom,admitornative_decide. #print axiomsshows onlypropext,Classical.choiceandQuot.sound. Those three are the standard axioms nearly every theorem in Mathlib rests on, nothing surprising.- nanoda, a checker written in Rust and independent of Lean's own kernel, went through the 1,484,729 exported declarations in 48 minutes without an error.
One thing snagged me, so I'll write that down too. The page gives the dependency set of riemannHypothesis as 1,478,198 declarations. The number nanoda checked is 6,531 more than that. The page doesn't explain the difference. Too many is clearly better than too few: the set that got checked isn't smaller than what the proof needs. But in a file like this, every number ought to come with an explanation. According to the page, these checks were run by Claude Code on Rubinstein's university compute allocation, and all of them finished on 21 November at 10:10 UTC.
The community's signature
The same day, the Lean FRO and the Mathlib Initiative put out a joint statement. It sets four criteria and says all four are met. One: the statement is Mathlib's existing, expert-reviewed RiemannHypothesis definition. Two: the library compiles, and dozens of people have reproduced the same proof dump on their own machines. Three: two separate tools, comparator and con-leche --compare, confirm that the theorem proved really is identical to that definition. Four: the Lean kernel, con-leche, con-ron and third-party checkers all accept the exported proof.
My favourite thing about the statement is that it spells out what it doesn't say: it signs off on the formal proof only, and adds that the ideas still have to be explained. Don't read that as hedging. It's an honest sentence saying that formal verification and mathematical understanding are two different things.
Andrew Sutherland of MIT also compiled the proof independently and checked the five main theorems, and on 26 November he went over the condensed versions too. The condensed versions are a story in themselves: on 25 November Luke Sernau, who also works at Anthropic, released two compressed, Apache-licensed versions of the proof. One is a "readable" version of about 300 thousand lines, the other a "compact" version of about 76 thousand. Seventeen million lines boiling down to seventy-six thousand also tells you just how bloated the first dump really was. The community keeps a cleaned-up version in a separate repo under leanprover-community as well.
If you're planning to download and compile these repos, a warning: compiling someone else's Lean project means running that project's metaprograms on your own machine. ALWAYS try it under a separate user account or in a virtual machine. The proof may well be correct, but that's no reason to trust it with your machine!
So does anyone understand it?
Here's the real knot. The computer has said everything it can say: this statement follows from these axioms, by these steps. But right now there isn't a single human who carries the proof in their head from start to finish.
The reactions split right along that line. Hector Pasten, Carlo Pagano and Sutherland, interviewed by Scientific American, speak positively. Wikipedia reports that Clay Institute president Martin Bridson found the announcement historic. Pasten and Pagano also talk about the proof possibly linking different fields together. On the other side, Andrew Granville and Maksym Radziwill stress that the four-page note isn't clear and that no human understands the proof yet. And they've got a point: four pages is a pretty flimsy cover for a 17-million-line proof. Alpöge's remark about "more than 250 thousand pages" of prose stirred things up a bit too. On 23 November Alpöge said it had been a joke (mathematician humour: you only get it the next day).
In his 20 November blog post, Terence Tao places this Lean-only GRH proof as the least digested of the recent results and expects understanding it to take time. Then on 24 November a guest post signed by Anurag Sahay, Will Sawin and Lior Silberman went up on Tao's blog: a joint effort called "G.R.H. Polymath", aiming to produce a proof humans can read. When a project sets "a proof humans can read" as its goal, that tells you pretty well where we've ended up.
As for the prize: there's no confirmed word that the Clay Institute has awarded it or accepted the proof. The institute's rules ask for a solution that has been published and accepted over time, and nobody knows yet how that works for a Lean repo. I don't know either, and I'm not going to make something up.
And one small mix-up alert: the zeta research post Anthropic published in August 2026 is not this proof; it's a partial result about zeta zeros. Some news stories are confusing the two. Don't you.
My verdict
On the formal side, this is one of the tightest audits ever applied to a mathematical claim. The statement is a definition that existed before the proof, none of the escape-hatch keywords are there, two separate kernels and several independent checkers reach the same result, and dozens of people have reproduced the same dump. Under these conditions, to say "the proof might be wrong" you'd have to find a bug in Lean's own foundations. I don't see that as a serious possibility. The Riemann Hypothesis has, in the formal sense, very probably been proved.
But mathematics isn't only the question "is it true?", it's also "why is it true?". Nobody has an answer to that second question today, and the four-page note doesn't make the job any easier. The proof's value will only fully show once the ideas inside it are translated into human language. That's why the Polymath group's work is at least as important a part of this story as the Lean code.
If Lean has you curious, start with Sernau's 76-thousand-line compact version. It's still long, but a cute kind of long: in a weekend you can at least see how the main theorems are put together. If the Polymath group produces a readable proof, I'll cover that on these pages too. Until then, write to me about which parts of this proof you got and which you didn't. I got stuck plenty on the first pages myself, and I'm not ashamed to say so.
Sources
- Primary source alpo.ge