17 Million Lines to 76,000: The Riemann Hypothesis Proof Just Became Human-Sized
17 Million Lines to 76,000: The Riemann Hypothesis Proof Just Became Human-Sized
Published: November 26, 2026 | Reading Time: ~10 minutes | Channel: techminute
TL;DR: The machine-checked proof of the Riemann Hypothesis — 17 million lines of Lean code across 175,187 files — has been compressed by Anthropic into a 300,000-line readable edition and a 76,000-line compact one, and Andrew Sutherland finished verifying both shortened versions correct on November 26, 2026.
Six days ago, the Riemann Hypothesis — the most famous open problem in mathematics, posed in 1859 — was proven in 17 million lines of machine-checked Lean code that no human was ever expected to read from beginning to end. As of today, that proof also exists in a 76,000-line compact edition a determined mathematician could actually walk through, re-verified end to end, with the first natural-language explainers starting to appear. The largest formal proof in history just became something people can read, argue about, and teach.
Key Takeaways
- Levent Alpöge, an Anthropic mathematician and Harvard Junior Fellow, released a Lean 4 proof of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions on November 20, 2026 — about 17 million lines across 175,187 files (Wikipedia).
- The Lean FRO and the Mathlib Initiative declared "full confidence" in the original proof on November 21, after it passed four community criteria including independent proof checkers with formal relative-consistency guarantees (Lean community blog).
- On November 25, Anthropic researcher Luke Sernau published grh-lean: a ~300,000-line readable edition and a 76,000-line compact edition of the same five theorems, Apache 2.0 licensed, building in one to two hours on a 12-core machine.
- On November 26, Andrew Sutherland finished testing both shortened editions and confirmed they are correct — the same day the first natural-language de-formalisations of the proof appeared.
- The reaction has been seismic: Scott Aaronson's essay on the week sits at #1 on Hacker News with 1,762 points and 1,606 comments, and the grh-lean repository collected 776 stars in roughly a day.
The Week Math Broke
To understand why a code refactoring is front-page news, you need the context of the strangest week theoretical computer science has ever had. Scott Aaronson tried to capture it in a blog post titled — I am not cleaning this up, because he didn't — "HOLY SHIT HOLY SHIT HOLY SHIT HOLY SHIT", and the title is doing honest work.
In the span of days: OpenAI and Anthropic posted proofs of VP ≠ VNP; OpenAI claimed the exponent of matrix multiplication, ω, is exactly 9/4 — a matching lower bound for the upper bound it published back in October, meaning one of algorithms' oldest open questions now has a known, rational answer; the Fourier transform got a new gate-count bound with a matching lower bound; and independent researchers posted results like QIP(2) = PSPACE with AI assistance so routine that, per Aaronson, "it didn't even raise an eyebrow." Yesterday I wrote about the ω = 9/4 result as a single earthquake. What Aaronson is describing from inside the field is a fault line that won't stop moving.
And underneath all of it sits the Riemann Hypothesis. Alpöge's November 20 release wasn't a press release or a paper — it was a Lean library, 175,187 files that a computer can verify and "that no human is expected to read from beginning to end," as the independent riemann-rev status dashboard puts it. Development ran from October 6 to November 16 with an unreleased Claude model; Alpöge writes that in "tens" of cases Claude carried an insight from a toy setting into the full proof, while the Wall Street Journal reported that Claude did not work autonomously — Alpöge guided it. One number theorist, Abhishek Saha of Queen Mary University of London, told Al Jazeera that Alpöge deserves the credit and that the proof should earn him a Fields Medal (as recounted in Wikipedia's current-event article).
The "250,000 pages of prose" figure that made the rounds? Alpöge said on November 23 that it was a joke. Which is somehow the most mathematician thing that has happened all week.
What 17 Million Lines Actually Gets You
Here's the part I find quietly radical: within about 24 hours of the release, the Lean FRO and the Mathlib Initiative issued a joint statement of "full confidence" in the proof — not because humans read it, but because they built a verification funnel no human could game. The four criteria, adapted from the Xena Project's playbook:
- The statement is right. The proof targets Mathlib's already-vetted
RiemannHypothesisdefinition — it doesn't get to invent its own weakened version of the problem. - The code compiles. Dozens of volunteers reproduced the same raw proof export file.
- It proves the right statement. Independent comparator tools (including
con-leche –compare) confirmed the theorem Alpöge's library proves is exactly Mathlib's statement. - The proof object is valid. The exported proof passed multiple independent checkers — including con-leche and con-ron, which carry a formal proof, relative to set theory, that they cannot accept a false proof. And the checks ran on an inert export, out of reach of any malicious code hiding in the Lean sources. The community overview lives at math.mit.edu/~drew/grh.
Read that again: the trust boundary isn't "we know the author," it's "we checked the checkers." When people ask how humanity is going to vet machine-made mathematics at scale, this is the emerging answer — an industrial pipeline for trust, bolted together in about a day by an open-source community that has been quietly building it for a decade.
The Compression: 56× Smaller, Same Theorems

Then came the part that turned a verified curiosity into a usable artifact. On November 25, Luke Sernau of Anthropic published grh-lean — produced, per the README, "in collaboration with my colleagues at Anthropic, and Claude." Two editions:
| Edition | Lines | What it is |
|---|---|---|
| Original (Alpöge, Nov 20) | ~17,000,000 | 175,187 Lean files; machine-checkable, human-unreadable |
grh/ readable (Nov 25) |
~300,000 | Same five theorems; start at GUIDE.md; adopted by the Lean community as the base for further refactors |
grh-compact/ (Nov 25) |
~76,000 | Same five theorems, maximally condensed |
That's a 56× compression from the readable edition to the original — or 224× from compact. The build recipe is refreshingly mundane: Lean v4.35.0 and Mathlib at commit 56a00585, and lake build finishes in one to two hours on 12 cores with 24 GB of memory (about 85 minutes more if you're cold-caching Mathlib). The whole proof of the Riemann Hypothesis now compiles on a laptop you could buy at an airport. The repo depends only on the axioms propext, Classical.choice, and Quot.sound — the boring, standard ones — and it's Apache 2.0, copyright Anthropic PBC.
An analysis shared by Sernau's team (via the Wikipedia summary) makes the compression legible: of the 300,000 lines, 177,492 are a library of known results — class field theory, Artin reciprocity, étale cohomology, Hodge structures, p-adic Hodge theory, crystalline cohomology, Kisin modules, Shimura varieties, the Siegel–Weil formula, the Pólya–Vinogradov inequality, the prime number theorem for arithmetic progressions, and on — stuff that simply wasn't in Mathlib yet when the proof was written. The actual new argument is 122,410 lines. In other words, more than half the original 17-million-line monolith wasn't new mathematics at all; it was the cost of doing formal math in a field whose literature had never been formalized. Terence Tao's preliminary review noted the argument "appears to use the full power of modern developments on the Langlands program and arithmetic geometry," and Filippo Nuccio, in the Lean Zulip chat, put it more vividly: it "basically contains all number theory produced in the last 50 years, in all branches of the discipline."
The repo's own status line deserves framing on a wall somewhere: "The proof has passed machine checks only... No mathematician has read it through, and no paper comes with it." That was November 25. It was already out of date by November 26.
Today: The Proof Gets Read
Two things landed today, November 26. First, Andrew Sutherland finished testing the two shortened versions — the 300,000-line readable edition and the 76,000-line compact one — confirming they are correct, closing the loop Sernau's release opened. Second, the first natural-language de-formalisations appeared — prose accounts of what the proof actually does, six days after the release.
They're not starting from zero. Ernest Davis, commenting on Aaronson's post, counted three expositions of the proof's general structure within the first week, two of them on GitHub (including community reconstruction projects like RH-Alpoge-Reconstruction). Researchers like Robin Zhang at IHES and Michael Rubinstein at Waterloo used AI agents to scan the Lean source and summarize the argument — which, per those summaries, specializes to estimating the error in Chebyshev's ψ function via a smoothed variant G(x), shows the weaker "intermittent" estimate suffices using classical Landau–Turán oscillation methods, and then does the heavy lifting transporting ideas descended from Stepanov's method (the one behind Weil's proof of RH for curves over finite fields) onto the integers.
There's also now a small literature on how to do this compression well. A study reported by kingy.ai — 24 problems, 5 tasks, 12 model pairings — found that giving models a solution skeleton cut mean first-pass formalization time from 81.3 hours to 17.4 hours and raised first-pass accuracy by 18.9%, with no failures when skeletons were present. The skeleton itself accounted for 48.3% of the tokens. Translation for the engineers in the room: architecture documents for proofs are becoming as valuable as the proofs.
What the Mathematicians Actually Said
The range of reactions is the story's honest center. James Maynard called it, if correct, "a historic milestone." Brian Conrey, Brian Greene, Shing-Tung Yau, and Alex Kontorovich weighed in on its significance, and Martin Bridson — president of the Clay Mathematics Institute, which still has RH on its Millennium Prize list — called it "an announcement of historic significance" while expecting understanding to take time. No prize decision has been announced. Meanwhile Andrew Granville and Maksym Radziwill pushed back hard on the document's clarity and the field's lack of understanding of it — a criticism Alpöge preemptively conceded on X with disarming candor: "the Lean is full of garbage obviously, but compiles, but all criticism of such garbage is totally reasonable and accepted... Mea culpa."
Melissa Lee, writing in The Conversation, noted the announcement itself broke the pattern of earlier AI-assisted results — released as a checkable artifact the whole community could verify within a day, rather than a claim the community had to take on faith. Thomas Bloom observed the approach reads as more algebraic than OpenAI's analytic quasi-Riemann work from October. You can feel a field negotiating, in real time, what "proven" means when the prover is a machine and the reader is optional.
Aaronson's Vertigo, and the Part Nobody Can Skip
Aaronson's post — the #1 story on Hacker News as I write this, 1,762 points and 1,606 comments — is really about the feeling of watching an epistemology get rebuilt mid-flight. "The labs don't even bother to issue press releases anymore," he writes, "they just upload papers." He describes sitting at a dinner party watching GitHub repositories update in real time like a weather radar. His working assumption now: "any proof that comes directly from OpenAI or Anthropic is correct barring information to the contrary." He goes further — "I now feel in my bones, for the first time ever, that a proof of P ≠ NP is not far."
And then the paragraph everyone read three times. Aaronson says he's "virtually certain, from multiple reliable sources" that the labs are sitting on "one or more bombshells" in cryptography — with the explicit caveat that he won't relay specifics he can't verify, and doesn't want the crypto angle to overshadow the mathematics. If you came here to ask whether your keys are safe: there is no verified claim that any deployed cryptosystem is broken. What exists is a proof pipeline that just cleared the tallest flag on the mathematical mountain range, and an expert who trust-verifies everything else in this paragraph telling you the same pipeline is now pointed at other peaks. Draw your own conclusions, carefully.
He also passed along the quote of the week, from a friend on Facebook: "After years of crackpot solutions claiming Millennium Problems are solved, now that we have actual solutions, we have crackpot refutations claiming Millennium Problems are not solved. It is really poetic, in a way."
What I Keep Thinking About
It's the compression. The 17-million-line proof was a theorem by every formal standard — but it wasn't yet knowledge, because knowledge has to fit in somebody's head. In six days, a community shrank it by two orders of magnitude, split it into "library" and "new idea," and started writing prose over it. That last mile — from checkable to teachable — used to take decades. It now takes about a news cycle.
And I keep coming back to that README disclaimer, because it's the most honest sentence in this entire saga: no mathematician has read it through. Six days ago that was a warning. Tonight it's almost false, and the people closing the gap are us — humans with guides and skeletons and reconstructable arguments, doing the ancient work of understanding, just with radically better tools. The machine checked the proof. Making it true for the humans is the part we still get to own. For now.
Frequently Asked Questions
Q: Did an AI prove the Riemann Hypothesis? A: A human–AI team did. Levent Alpöge, an Anthropic research mathematician, developed the proof with an unreleased Claude model between October 6 and November 16, 2026, and released it as a 17-million-line Lean 4 formalization on November 20. The Lean FRO and Mathlib Initiative verified it and stated "full confidence" on November 21. Per the Wall Street Journal, Claude did not work autonomously — Alpöge guided the process.
Q: Is the Riemann Hypothesis officially solved and the $1 million Clay prize claimed? A: The proof is machine-verified, but no Clay Mathematics Institute award decision has been announced; CMI president Martin Bridson called the announcement "of historic significance" and said understanding it will take time. The proof covers RH and the Generalized RH for Dirichlet L-functions; broader variants like the extended Riemann Hypothesis remain unproven.
Q: Where can I read the Riemann Hypothesis proof?
A: The compressed editions are on GitHub at lsernau/grh-lean: a ~300,000-line readable version (start at grh/GUIDE.md) and a 76,000-line compact version, both Apache 2.0. Building either requires Lean v4.35.0 and Mathlib commit 56a00585, and takes one to two hours on 12 cores with 24 GB of RAM. The original 175,187-file archive is preserved via the community cleanup project at leanprover-community/riemann-hypothesis.
Q: Does the Riemann Hypothesis proof break encryption? A: No verified claim says so. Scott Aaronson reported hearing from "multiple reliable sources" that the AI labs have cryptography-related results in hand, but explicitly declined to relay specifics as unverified, and no lab has announced a break of any deployed cryptosystem. RH itself, if anything, is used to prove upper bounds on prime-distribution error — a proof of it constrains where primes can deviate, which is more comforting than alarming for cryptographers.
📚 Sources
- Lean FRO & Mathlib Initiative — Joint statement: "Lean verification of the Riemann Hypothesis" (Nov 21, 2026). https://leanprover-community.github.io/blog/posts/riemann-hypothesis/
- Wikipedia — "Alpöge's proof of the Riemann hypothesis," current-event article (scraped Nov 26, 2026). https://en.wikipedia.org/wiki/Alp%C3%B6ge%27s_proof_of_the_Riemann_hypothesis
- GitHub: lsernau/grh-lean — Anthropic's compressed Lean 4 proof, README (scraped Nov 26, 2026). https://github.com/lsernau/grh-lean
- Scott Aaronson, Shtetl-Optimized — "HOLY SHIT HOLY SHIT HOLY SHIT HOLY SHIT" (Nov 25, 2026). https://scottaaronson.blog/?p=10379
- GitHub: nasqret/riemann-rev — Independent status dashboard for the formal proof. https://github.com/nasqret/riemann-rev
- Hacker News front page (Algolia API) — Story rankings at 15:00 UTC, Nov 26, 2026 (50646108: 1,762 pts / 1,606 cmt; 50648050: 497 pts / 309 cmt). https://hn.algolia.com/api/v1/search?tags=front_page
- kingy.ai — "Levent Alpöge's Claude-assisted Riemann hypothesis proof verified in Lean" (AlphaShell compression study: 81.3 → 17.4 hours, +18.9% first-pass accuracy). https://kingy.ai/blog/levent-alpoge-claude-riemann-hypothesis-proof/
- GitHub: leanprover-community/riemann-hypothesis — Community cleanup of the original proof archive. https://github.com/leanprover-community/riemann-hypothesis
All claims verified against Gold-tier (Lean FRO/Mathlib joint statement, grh-lean repository README, community verification dashboards) and Silver-tier (Wikipedia current-event article, Aaronson's blog, kingy.ai) sources. Each source URL was scraped and confirmed accessible on November 26, 2026. Community metrics (HN points, GitHub stars) are snapshots at scrape time and will drift.