← News

ResearchSources: arXiv · 30 Nov 2026

Lean 4 Riemann Hypothesis cleanup shows "not used elsewhere" overstates "unused"

Researchers indexed declarations in a large Lean 4 proof of the Riemann Hypothesis and found most declarations unused by other files still serve their own file, so naive deletion broke the build.

In plain words

A Lean 4 proof is a very large, machine-checked mathematical proof split into many files. Volunteers pruning it need to know which helper definitions are safe to delete. The authors show that a declaration not used by any other file is usually still used within its own file, so a simple "unused elsewhere" test is misleading and a deletion based on it broke the build.

What was announced

On 20 November 2026, a Lean 4 proof of the Riemann Hypothesis of roughly 175,000 files was released, and about 200 volunteers began consolidating and pruning it. The authors built a forward and reverse index of all declarations from the compiled files of the consolidated branch, commit e497a66, covering 47,780 of 47,885 modules. Of the 454,574 declarations that no other file uses, 96.5% are used inside their own file, meaning "not used elsewhere" badly overstates "unused". A deletion based on that assumption broke the build and had to be partly reverted.

To check whether consolidation caused this pattern, the authors restored the pre-consolidation partition of 174,793 files while keeping the use relation fixed; the share stayed at 96.7% on the mapped declarations, so the false zeros are not an artifact of consolidation, since helper declarations already sat in the files of their users. They also examined capture-recapture estimates built from source text alone, making explicit that when the compiled index serves as both one capture and the ground truth, the Lincoln-Petersen estimate's ratio to truth equals the reciprocal of the text matcher's precision by construction. The comparison still reveals how low text-matcher precision is, how recall differs between same-file and cross-file uses, and which uses text cannot see at all. The paper offers a procedure for safe deletion based on the compiled index.

What it does not show

  • The evidence is the paper's abstract only; the full article's methods and results were not available for verification.
  • The findings come from a single commit (e497a66) of one consolidated branch and are not independently confirmed.
  • The abstract reports that a deletion broke the build but does not specify which declarations or how far the revert went.

Sources

Source-support review completed 1 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 1 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.