Anthropic researchers shrink Riemann hypothesis proof by 99.5 percent using AI
Anthropic researcher Luke Sernau and colleagues, working with Claude, have reduced a massive 17.4-million-line formal proof of the Riemann hypothesis down to about 76,000 lines. The original proof, created by mathematician Levent Alpöge and Claude, was so massive that it took over 21 hours to compile on high-end AWS hardware.
Background
Earlier, mathematician Levent Alpöge collaborated with Anthropic's Claude to release a 17.4-million-line formal proof of the Riemann hypothesis and generalized Riemann hypothesis in Lean. While it was a major milestone, the massive text contained over 175,000 files with almost no comments, making it nearly impossible for human mathematicians to read and verify directly.
Refactoring Details
Anthropic researcher Luke Sernau and his colleagues stepped in to completely rewrite and restructure the proof with Claude. They released two versions: a readable version with around 300,000 lines of code accompanied by documentation, and a compact version trimmed down to roughly 7,600 lines of pure code across 792 files. Sernau explained that the reduction was achieved by unrolling definitions to find global simplifications across module boundaries, rewriting certain sub-arguments, and then repackaging the code.
Impact
This dramatic shrinkage brings human-readable mathematical understanding much closer, translating the proof to a scale roughly equivalent to a 1,300-page paper. The entire streamlined code relies on standard Lean axioms and has passed independent checks by multiple verification tools. Additionally, the project has been open-sourced under the Apache 2.0 license, allowing the broader mathematical and AI community to freely use and study it.
View selection rationale
Importance 90/100
About this brief
- Content type
- Research summary
- Source type
- Publisher report
- Original source
- QbitAI 量子位 ↗
- Source published
- Process
- AI-assisted discovery, translation, summarisation, classification and scoring; standards and corrections are maintained by the editorial desk.
- Verification
- The original URL and publication metadata are retained. This brief is not independently fact-checked unless explicitly stated.
- Published by
- Polyemergence Editorial Desk
- Conflict disclosure
- No financial or commercial conflict declared.

