All posts

    Essay

    A Riemann hypothesis proof in 17 million lines of Lean, made with Claude

    Levent Alpöge posted a Lean-only proof of the Riemann hypothesis made with Claude, and independent checkers accepted it within a day. Why the verifier matters.

    2 min read
    Levent Alpöge, a mathematician at Anthropic, posted a proof of the Riemann hypothesis on Friday, and almost none of it is written for people. The proof is 17.4 million lines of Lean, produced working with Claude, and within a day independent proof checkers had accepted it. "I believe I have, working with Claude, discovered a proof of the Riemann Hypothesis," he wrote. The problem has been open since 1859 and carries a $1 million Clay prize (https://www.scientificamerican.com/article/anthropic-mathematician-claims-to-prove-riemann-hypothesis-most-famous-problem-in-all-of-math/). There's no traditional paper. The proof spans 175,187 files with no comments, and it also claims the generalized version for Dirichlet L-functions. The Hindu reports that he doesn't yet fully understand every argument Claude used, and Terry Tao expects the digestion to take some time (https://terrytao.wordpress.com/2026/11/20/unforced-euler-singularity-unforced-navier-stokes-singularity-and-the-generalized-riemann-hypothesis/). MIT's Andrew Sutherland compiled every file and confirmed that the theorem proved is Mathlib's own statement of the hypothesis, resting only on Lean's three standard axioms (https://math.mit.edu/~drew/grh/). Lean's kernel replayed every module, two independently written checkers accepted the full exported proof, and a third passed every module. Sutherland ran those checks with Claude Code. One end-to-end run was still going on Saturday morning. The same day, AMS president Ravi Vakil posted a rival proof by Alessandro Masullo, "all human, with no AI", which Brian Conrad had spent months reviewing (https://math216.wordpress.com/2026/11/20/hurried-announcement-alessandro-masullo-grh/). By the time Vakil updated his post about eight hours later, several people had reported problems in it, found with the help of AI models. No one is going to read 17 million lines of Lean, but a small checker written by someone else can, and that's what got this output taken seriously within a day. Math got there first because Lean already existed. I expect AI to compound fastest wherever a cheap, trusted checker exists, like code with real tests or chip design with formal verification, and much slower where checking still takes a wet lab or a courtroom. If you build agents, the verifier deserves at least as much of your attention as the model. The proof's verification notes: https://github.com/leanprover-community/riemann-hypothesis/blob/main/verification/NOTES.md
    Frontier AIFormal verificationAI agentsMathematics