Anthropic Publishes 76,000-Line Lean Proof of Riemann Hypothesis
Anthropic published a Lean 4 proof of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions on GitHub, built on the Mathlib library and using only three standard axioms. The repository comes in two editions: a readable one of about 300,000 lines with a guide and documentation, and a compact one of about 76,000 lines containing the same five theorems. It builds with Lean v4.35.0 and a pinned Mathlib commit, taking one to two hours on 12 cores with 24 GB of memory. The proof is based on Levent Alpöge's work and was produced with Claude. The repository states plainly that it has passed machine checks only: no mathematician has read it through and no paper accompanies it. It is Apache 2.0 licensed, not maintained, and not accepting contributions.
On November 20, 2026, mathematician Levent Alpöge published a note claiming that he and Claude had found a proof of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions, formalized in Lean, a proof assistant that checks every step mechanically. Zhidaily's November 21 digest reported that the Lean and Mathlib communities certified the statement and proof, and that the library ran to about 17 million lines. This repository is Anthropic's shorter rewrite of that same proof, cut to roughly 76,000 lines in its compact form.
Nothing here is usable as a library or API; the practical value is that a Lean-literate reader can now attempt to audit the argument, since the readable edition separates known mathematics from new material and documents it. Until an independent mathematician reviews it or a paper appears, treat the result as a machine-checked claim rather than an established proof.
Commenters welcomed the readable edition's split between known and new mathematics and its documentation, saying it should make the proof easier to digest. One commenter questioned how realistically a human could read the compact code and confirm it is correct, and another noted the reduction from about 17 million lines to 76,000 — roughly 99.56%.