Riemann Hypothesis Proof Code Slashed by 99.5% to Just 76,000 Lines
Original headline: 刚刚,黎曼猜想证明代码暴砍了99.5%!只剩7.6万行
In one sentence
Anthropic researcher Luke Sernau and Claude refactored and condensed the 17.4-million-line Lean formalization of the Riemann Hypothesis down to 76,000 lines, open-sourcing it under Apache 2.0.
Key points
- Anthropic researcher Luke Sernau and his team used Claude to refactor the 17.4-million-line Lean proof of the Riemann Hypothesis, cutting the code by 99.56% to 76,000 lines.
- The release includes a 300,000-line readable version and a 76,000-line compact version that compiles in 1 to 2 hours on a standard machine, with all code and docs written by Claude.
- The team achieved this by unrolling definitions for cross-module simplification, rolling them back up, and replacing tedious mathematical arguments; the proof passed multiple independent kernel checks but awaits full human mathematician review.
- The project, named grh-lean, is now open-sourced under the Apache 2.0 license, allowing the community to freely use, modify, and distribute it.
In depth
An AI-written overview of the original article, not the article itself.
According to the article, Anthropic researcher Luke Sernau, his colleagues, and Claude compressed a 17.4-million-line Lean formalization of the Riemann Hypothesis by 99.56% to about 76,000 lines. The new open-source release cuts compilation time from 21 hours to 1 to 2 hours on standard hardware, though it has only passed machine verification and awaits full review by mathematicians.
From Unwieldy Giant to Open-Source Release
Days earlier, mathematician Levent Alpöge and Claude released a 17.4-million-line proof of the Riemann Hypothesis and Generalized Riemann Hypothesis across over 175,000 files. A community effort called rh-trim tried to prune dead code, but only achieved an 8% reduction and failed to compile.
Anthropic's team responded with grh-lean, a complete rewrite under the Apache 2.0 license. It offers a 300,000-line readable version with documentation and a 76,000-line compact version. The proof uses no unfinished placeholders, relies only on three standard Lean axioms, and passed multiple independent checkers.
Compression Method and Team Background
The project states that Claude wrote all Lean code and documentation under human guidance. Sernau noted they unrolled nested definitions into a flat proof to simplify across module boundaries before rolling them back up, while replacing cumbersome steps with new arguments.
Luke Sernau, who led the effort, is a former Google DeepMind researcher and the author of the 2023 leaked Google memo "We Have No Moat, And Neither Does OpenAI."
This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.