arXiv Science⌕ Search

arXiv subjects

Koma Takamatsu

Publications and source records attributed to Koma Takamatsu.

2 recordsLinked to original sources

Pruned or Rewritten? Tracing Declarations Across Three Versions of a 17-Million-Line Lean Proof of the Riemann Hypothesis, Based on Eduinformatics

A Lean 4 proof of the Riemann Hypothesis was released on 20 November 2026 with 175,187 files and 17.4 million lines. Within a week it existed in three versions: the original release, a branch consolidated by volunteers (47,885 modules, 14.6 million lines), and a condensed rewriting that became the community's main line (802 files, 0.48 million lines, 2.8% of the original). We ask whether the reduction came from pruning or from rewriting, and how far pruning alone could have gone. Using compiled indexes and declaration-level dependency graphs, we trace declarations across the versions. Consolidation kept the names: 92% of the consolidated branch's real declarations have a counterpart of the same name in the original. The condensed version shares almost nothing with the consolidated branch: only 47 of its 26,018 real declarations in the dependency graph (0.18%) match one by name and statement, and the nine full names common to all three versions are the fixed statements of the challenge. The declarations dropped were not the unused ones; their use profile is close to that of the whole branch. Removing every declaration of the consolidated branch that is unreachable from the five main theorems would cut its declaration lines by only 2.8% (deleting whole declarations, without changing the others), whereas the condensed version has 2.7% of the reachable lines. At the level of declaration text, the reduction is therefore almost entirely due to rewriting, not to pruning. The condensed version is also organised differently: it separates a library with no counted use of the proof-specific part, whereas the top-level namespaces of the consolidated branch all depend on one another. We discuss what this implies for checking and maintaining very large AI-written formal artifacts.

cs.AI↗

"Not Used Elsewhere" Is Not "Unused" in a Lean Formalization of the Riemann Hypothesis: Reverse Lookup Against the Compiled Index, Based on Eduinformatics

On 20 November 2026 a Lean 4 proof of the Riemann Hypothesis of about 175,000 files was released, and some 200 volunteers began to consolidate and prune it. Deciding that a declaration is unused, and can be deleted, is a reverse lookup: it is only as reliable as the forward links it is built from. From the compiled files of the consolidated branch (commit e497a66) we built a forward and reverse index of all declarations, 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, so "not used elsewhere" badly overstates "unused"; a deletion based on it broke the build and had to be partly reverted. Restoring the pre-consolidation partition of 174,793 files while holding the use relation fixed leaves this share unchanged (96.7% on the mapped declarations), so the false zeros are not an artifact of the consolidation: helper declarations already sat in the files of their users. We then asked how much a capture-recapture estimate built from source text alone can say about use. When the compiled index serves both as one capture and as the ground truth, the ratio of the Lincoln-Petersen estimate to the truth equals the reciprocal of the text matcher's precision by construction; we make this identity explicit, and report what the comparison still shows: how low the precision of plausible text matchers is, how recall differs between same-file and cross-file uses, and which uses text cannot see at all. We give a procedure for safe deletion based on the compiled index.

cs.AI↗