Lean and Mathlib Communities Certify Formal Proof of Riemann Hypothesis Created with Claude
November 24, 2026 · 2 min read
Also published in Português (Brasil)
The Lean and Mathlib communities have issued a joint statement certifying a formal proof of the Riemann Hypothesis submitted by mathematician Levent Alpöge. The communities stated they have full confidence in the correctness of the proof.
Alpöge collaborated with the AI model Claude to complete the research. He reported that as the proof neared completion, the mathematical reasoning capabilities of Claude exceeded his expectations. In the early stages, Alpöge determined the direction and combined two different mathematical ideas while guiding Claude to explore suitable mathematical contexts. Later, Claude's derivation speed surpassed that of the researcher, including a specific suggestion to set the chain length of theta lifts to the square root of X when attempting to generalize the Stepanov method.
The formal proof consists of approximately 17 million lines of code divided into 14 compressed packages, accompanied by a four page explanatory document. Alpöge previously attempted to have Claude organize the proof into a human readable text version, but the resulting draft exceeded 250,000 pages, which he decided not to publish due to its size.
Verification records from a mathematician at the Massachusetts Institute of Technology show that the proof involves 175,187 modules, all of which compiled successfully with zero errors. The Lean and Mathlib communities used the Riemann Hypothesis definition from the Mathlib library and employed tools including comparator and con-leche to confirm the theorem matched the original hypothesis. Dozens of community members successfully compiled the code and reproduced the original proof export files.
To ensure reliability, the communities used the official Lean kernel and proof checkers such as con-leche and con-ron, as well as independent checkers developed by third parties in different programming languages. These checks were performed on static proof data to avoid potential interference from malicious programs in the source code. The verification records also cover five main theorems, including the classic Riemann Hypothesis and generalized results for Dirichlet L functions.
Independent verification work also utilized Claude Code. While the formal proof is certified, Alpöge acknowledged that the scale of the proof is too large and extremely difficult to read, expressing a hope to simplify the reasoning into a traditional paper in the future.