Anthropic · 2026-11-25 · major
GRH in Lean — Anthropic staff and Claude shrink the RH proof to 76k lines
In short
grh-lean is a Lean 4 proof of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions. Its compact edition is about 76,000 lines, against about 17 million in Alpöge and Claude's original proof.
Anthropic · 2026-11-25 · 3 sources checked

A far shorter, machine-checked Lean proof of the Riemann Hypothesis that also covers the Generalized Riemann Hypothesis.
Key specs
| Compact edition | ~76,000 lines |
|---|---|
| Hn points | 280 |
Quick facts
| Author | Luke Sernau, with colleagues at Anthropic and Claude |
|---|---|
| Proves | RH and GRH for Dirichlet L-functions (five theorems) |
| Editions | grh/ ~300,000 lines (readable), grh-compact/ ~76,000 lines |
| Toolchain | Lean v4.35.0, Mathlib commit 56a00585 |
| Axioms used | propext, Classical.choice, Quot.sound |
| License | Apache-2.0 (Copyright 2026 Anthropic, PBC) |
| Status | Research artifact, machine-checked only, no paper |
What is it?
grh-lean is a new Lean 4 repository that proves the Riemann Hypothesis and the Generalized Riemann Hypothesis (GRH) for Dirichlet L-functions on top of Mathlib. Luke Sernau published it on November 25, 2026. The README says it builds on Levent Alpöge's proof with Claude and was made with colleagues at Anthropic and Claude.
How does it work?
The repository ships two editions of the same five theorems: a readable grh/ edition of about 300,000 lines, with a GUIDE.md to start from, and a grh-compact/ edition of about 76,000 lines. Lean's kernel checks every step, and the proof relies only on the standard axioms propext, Classical.choice and Quot.sound.
Why does it matter?
Alpöge and Claude's original Lean proof ran to about 17 million lines, far too large for a person to read. A version roughly 99% smaller, which also proves the generalized statement for Dirichlet L-functions, is a much more practical target for human review. The README itself warns that no mathematician has read it through yet.
Who is it for?
mathematicians, Lean users, AI-for-math researchers
Frequently asked questions
- How is grh-lean different from the original Riemann Hypothesis proof in Lean?
- The grh-lean repository is far shorter and proves more. Levent Alpöge and Claude's certified Lean proof of the Riemann Hypothesis was about 17 million lines. grh-lean's compact edition is about 76,000 lines, and its readable edition about 300,000 lines, and both also prove the Generalized Riemann Hypothesis for Dirichlet L-functions.
- Has a mathematician checked the grh-lean proof?
- Not yet. The grh-lean README says the proof has passed machine checks only, that no mathematician has read it through, and that no paper comes with it. Lean's kernel accepts it using only the standard axioms propext, Classical.choice and Quot.sound, so the open question is human understanding, not whether the steps check.
- Is grh-lean an official Anthropic release?
- The grh-lean repository sits on Luke Sernau's personal GitHub account, not an Anthropic one, and Anthropic had not announced it when it reached Hacker News. Its README says it was made with colleagues at Anthropic and Claude, and its Apache-2.0 license names Anthropic, PBC as the copyright holder.
- How long does it take to build grh-lean?
- The grh-lean README says a build takes one to two hours on a machine with 12 cores and 24 GB of memory, plus about 85 minutes more if the Mathlib cache is not available. It pins Lean v4.35.0 and Mathlib at commit 56a00585. The project is a research artifact and does not accept contributions.
Try it
git clone https://github.com/lsernau/grh-lean (build takes 1–2 hours on 12 cores with 24 GB RAM)