Claude helps shorten a Lean proof of the Riemann Hypothesis

Claude helps shorten a Lean proof of the Riemann Hypothesis

A GitHub repository, lsernau/grh-lean, presents a Lean 4 proof of the Riemann Hypothesis and of the Generalized Riemann Hypothesis for Dirichlet L-functions. According to its README, the proof is built on Mathlib and uses only three axioms: propext, Classical.choice and Quot.sound.

The work is not a proof from scratch. It is based on Levent Alpöge's proof, made with Claude, which the README links at https://alpo.ge/remark.pdf. The repository's author describes this version as a shorter one, "produced in collaboration with my colleagues at Anthropic, and Claude."

The code comes in two editions, each a separate Lake project with its own README. The grh/ folder holds a readable edition of about 300,000 lines, with GUIDE.md as the starting point. The grh-compact/ folder covers the same five theorems in about 76,000 lines.

Building it requires Lean v4.35.0 and Mathlib at commit 56a00585. In either folder, the steps are lake exe cache get, lake build and lake env lean scripts/PrintAxioms.lean. A build takes one to two hours on 12 cores with 24 GB of memory, plus about 85 minutes if the Mathlib cache is missing.

The caveat is stated plainly: the proof has passed machine checks only, listed in each folder's README. No mathematician has read it through, and no paper comes with it. The repository is labeled a research artifact that is not maintained and does not accept contributions. The code is under Apache 2.0, with copyright 2026 held by Anthropic, PBC.

Key facts

  • The repository presents a Lean 4 proof of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions, built on Mathlib with only the axioms propext, Classical.choice and Quot.sound.
  • It is a shorter version based on Levent Alpöge's proof with Claude, produced with the author's colleagues at Anthropic and with Claude.
  • A readable edition runs to about 300,000 lines, while a compact edition covers the same five theorems in about 76,000.
  • A build takes one to two hours on 12 cores with 24 GB of memory, and about 85 minutes more without the Mathlib cache.
  • Only machine checks have been passed: no mathematician has read the proof through, and no paper accompanies it.

Why it matters

The claim is very large: a Lean 4 proof of both the Riemann Hypothesis and its generalized form for Dirichlet L-functions. The new element in this repository is length. It offers a shorter version of the proof that Levent Alpöge produced with Claude, and its compact edition comes to about 76,000 lines against about 300,000 for the readable one, roughly a quarter of the size. The README does not give the size of the original proof, so the saving relative to Alpöge's version is unknown.

Who it affects

The most direct audience is people who work with Lean and Mathlib and want to build or inspect the proof themselves. Mathematicians are the other obvious group, since the README says none has yet read it through. Anyone hoping to contribute fixes should note that the repository does not accept contributions.

How to use it

Pick a folder: grh/ for the readable edition, starting at GUIDE.md, or grh-compact/ for the shorter one. You need Lean v4.35.0 and Mathlib at commit 56a00585. Run lake exe cache get, then lake build, then lake env lean scripts/PrintAxioms.lean. Budget one to two hours on 12 cores with 24 GB of memory, and about 85 minutes more if the Mathlib cache is missing. The license is Apache 2.0, with copyright 2026 held by Anthropic, PBC; see LICENSE, plus the NOTICE and ATTRIBUTION.md files in each folder.

How solid is it

The README says the proof has passed machine checks only, and points to each folder's README for the list. It also says no mathematician has read it through and that no paper comes with it. Treat it as a machine-checked result that still lacks human review. The collaboration with Anthropic colleagues is the author's own description, and the README text does not present the repository as an official Anthropic announcement.

Risks and caveats

The repository calls itself a research artifact that is not maintained and not accepting contributions. The required Lean version and Mathlib commit are specific, and a full build is a matter of hours on a fairly capable machine. The README does not list the five theorems in its overview, say how the work was split between people and Claude, or name the Claude model used.

“The proof has passed machine checks only, listed in each folder's README. No mathematician has read it through, and no paper comes with it.”

— Repository README, lsernau/grh-lean