Riemann Hypothesis Proof Code Streamlined to 76,000 Lines, Reduced by Over 99%
4 hour ago / Read about 0 minute
Author:小编   

Mathematicians had previously worked with Claude to release a 17.4 million-line Lean formal proof of the Riemann Hypothesis and the Generalized Riemann Hypothesis. Given its massive scale—over 175,000 files—community streamlining efforts could only trim about 8%, and the proof would not compile. Anthropic researcher Luke Sernau and colleagues used Claude to carry out a refactor, releasing a readable version (roughly 300,000 lines of code) and a compact version (about 76,000 lines of pure code), cutting the codebase by 99.56%. The compact version can be built in one to two hours on a 12-core, 24GB RAM machine with the Mathlib cache; the proof contains no sorry, and it passed cross-validation by multiple tools. All code documentation was written by Claude, while humans provided directional guidance, and the project is open-sourced under the Apache 2.0 license. The streamlining approach involved unfolding definitions to expose redundancy, simplifying across modules before encapsulation, and rewriting certain arguments in new ways.