A shorter version of the Riemann hypothesis proof that mathematician Levent Alpöge previously presented with the AI system Claude has appeared on GitHub. Anthropic researcher Luke Sernau, his colleagues and Claude prepared the new version in Lean 4. According to the repository, it has passed machine checks, but mathematicians have not yet read it in its entirety.
The grh-lean repository contains two editions: a more readable version of about 300,000 lines and a compact version of about 76,000. Both contain the same five theorems, including the Riemann hypothesis and its generalization for Dirichlet L-functions. They are based on the work Alpöge and Claude presented on November 20, 2026.
For comparison, Alpöge's original library contained about 17 million lines of code. That does not make the new version automatically easy for a person to understand: even the compact edition remains a substantial formal text. The reduction does, however, give researchers a more accessible way to study the arguments and may help them understand the mathematical ideas behind the result.
What the computer checked
Lean is a system for expressing mathematical statements and proofs in a form that software can check. The check establishes whether conclusions follow from the given definitions and assumptions under the rules of formal logic. It is also necessary to check separately that the statement expressed in Lean corresponds to the hypothesis the authors intended to prove.
The Lean and Mathlib communities performed such checks on the original work. In a joint statement on November 21, they said they had compared its statement with the vetted formulation of the hypothesis in Mathlib and checked the proof using several tools. The organizations expressed confidence in its correctness. Independent verification results have also been published by Andrew Sutherland at MIT and Michael Rubinstein.
The status of the shorter editions should be considered separately from that of the original. Their repository says they have passed machine checks, but also notes that no mathematician has read the proof all the way through and that there is no accompanying paper. There is therefore substantial evidence of formal correctness, while a detailed human exposition and understanding of the arguments remain tasks for the mathematical community.
Why the hypothesis matters
The Riemann hypothesis was formulated in 1859. It concerns the zeros of the Riemann zeta function: points where the function's value is zero. The hypothesis says that all its nontrivial zeros have a real part equal to one half. This statement is closely connected to how prime numbers are distributed among the natural numbers.
The problem is one of the Clay Mathematics Institute's Millennium Prize Problems. A proof could affect many areas of number theory where mathematicians have previously obtained results assuming the hypothesis is true.
What could it mean in practice?
Prime numbers are distributed unevenly along the number line. Mathematicians know their average density, while the Riemann hypothesis provides a tighter bound on deviations from that average. Imagine a long street: knowing the average density of houses does not tell you how much it varies from block to block. The hypothesis helps bound such deviations for prime numbers.
Tighter guarantees are useful when studying algorithms that work with numbers. For example, Miller's primality test has a proven fast running-time guarantee conditional on the generalized Riemann hypothesis for Dirichlet L-functions. If the proof of that generalization is accepted, the conditional guarantee becomes unconditional. Other primality tests already exist without relying on that hypothesis, so an immediate speedup for computers should not be expected.
Prime numbers are also used in cryptography, but a proof of the hypothesis does not by itself break encryption. RSA security, for example, is connected to the difficulty of factoring a large number. More precise information about the distribution of primes does not in itself provide a fast way to find those factors.
The most valuable practical consequences may come later, if researchers can apply new mathematical methods to other problems. It is too early to predict specific applications.
The shorter formalization also matters to the discussion of AI's role in science. Claude contributed to the original result and the new version, while Lean checks the logical structure of formal proofs. Researchers' next step is to explain the arguments in conventional mathematical language and understand their significance beyond the software checks.
Sources
- grh-lean repository — shorter editions and their verification status.
- Lean FRO and Mathlib Initiative statement — verification of the original formalization and its statement.
- Andrew Sutherland, MIT: verification results — independent checks of the original work.
- Michael Rubinstein: independent verification — build and verification results for the original formalization.
- Clay Mathematics Institute: Riemann's manuscript — the connection between the hypothesis and the distribution of primes.
- Peter Sarnak, Clay Mathematics Institute overview — the generalized hypothesis and Miller's algorithm.
- Clay Mathematics Institute: Riemann hypothesis — the problem and its status as a Millennium Prize Problem.
- Understanding AI: Alpöge and Claude's work — context for the original announcement.
