Tag Archives: Luke Sernau

AI-Assisted Rewrite Shrinks Lean Proof of the Riemann Hypothesis to About 76,000 Lines

Original author: Jay
Summary based on the original Chinese article

Mathematician Levent Alpöge, working with Anthropic's Claude, recently released a 17.4-million-line Lean formalization of the Riemann Hypothesis and its generalized version. It was roughly seven times the size of Lean's Mathlib library, spanned more than 175,000 files, and took about 21 hours to compile on a high-end cloud machine. Almost none of it was commented, so it was nearly unreadable for humans.

A community effort called rh-trim confirmed that several independent kernels, written in C#, Rust and Java, accept the proof. It found that the final argument needs only about 6.6% of the material, with the rest building supporting mathematical theory. But simply deleting unreferenced code cut at most 8%, and the trimmed version would not compile.

Anthropic researcher Luke Sernau and colleagues then used Claude to rewrite the proof from scratch as the grh-lean project, released under the Apache 2.0 license. A readable version has about 300,000 lines with documentation and navigation guides. A compact version has roughly 76,000 lines of code across 792 files and builds in one to two hours on an ordinary 12-core, 24 GB machine with a Mathlib cache. It uses no sorry placeholders, relies only on Lean's three standard axioms, and passed checks by Lean's kernel, the official Comparator tool and several independent checkers. The Lean code and documentation were written by Claude, with humans providing direction.

Sernau said he unrolled definitions into a long, flat proof, found simplifications across module boundaries, and then folded them back into abstractions. Some parts needed entirely new arguments, such as removing the dependence on the Vandiver conjecture. He stressed that the proof has only been machine-checked: no mathematician has read it in full, and there is no accompanying paper.

Why it matters

The rewrite moves AI-generated mathematics from something only machines can check toward something human mathematicians might realistically read and judge. Many Chinese and Asian researchers work in math, formal methods and AI, so the shift may open new research and career directions. The mathematical claim still awaits expert review.


Source: 量子位 QbitAI
Original title: 刚刚,黎曼猜想证明代码暴砍了99.5%!只剩7.6万行
Original link: https://www.qbitai.com/2026/11/512819.html
Published: 2026-11-26

This English summary was generated with AI assistance from the original Chinese article; it is not the full text or a translation. Copyright remains with the original author and publisher; see the original link for the full article.

Disclaimer: The views and opinions expressed in this article are solely those of the original author(s) and do not necessarily reflect the views or positions of Overseas Chinese (overseaschinese.org). We republish, translate or summarize it for informational purposes only.