arXiv Science⌕ Search

arXiv subjects

Kazuya Tsuruta

Publications and source records attributed to Kazuya Tsuruta.

5 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↗

c-trie++: A Dynamic Trie Tailored for Fast Prefix Searches

Given a dynamic set $K$ of $k$ strings of total length $n$ whose characters are drawn from an alphabet of size $σ$, a keyword dictionary is a data structure built on $K$ that provides locate, prefix search, and update operations on $K$. Under the assumption that $α= w / \lg σ$ characters fit into a single machine word $w$, we propose a keyword dictionary that represents $K$ in $n \lg σ+ Θ(k \lg n)$ bits of space, supporting all operations in $O(m / α+ \lg α)$ expected time on an input string of length $m$ in the word RAM model. This data structure is underlined with an exhaustive practical evaluation, highlighting the practical usefulness of the proposed data structure, especially for prefix searches - one of the most elementary keyword dictionary operations.

cs.DS↗

Grammar-compressed Self-index with Lyndon Words

We introduce a new class of straight-line programs (SLPs), named the Lyndon SLP, inspired by the Lyndon trees (Barcelo, 1990). Based on this SLP, we propose a self-index data structure of $O(g)$ words of space that can be built from a string $T$ in $O(n \lg n)$ expected time, retrieving the starting positions of all occurrences of a pattern $P$ of length $m$ in $O(m + \lg m \lg n + occ \lg g)$ time, where $n$ is the length of $T$, $g$ is the size of the Lyndon SLP for $T$, and $occ$ is the number of occurrences of $P$ in $T$.

cs.DS↗

The "Runs" Theorem

We give a new characterization of maximal repetitions (or runs) in strings based on Lyndon words. The characterization leads to a proof of what was known as the "runs" conjecture (Kolpakov \& Kucherov (FOCS '99)), which states that the maximum number of runs $ρ(n)$ in a string of length $n$ is less than $n$. The proof is remarkably simple, considering the numerous endeavors to tackle this problem in the last 15 years, and significantly improves our understanding of how runs can occur in strings. In addition, we obtain an upper bound of $3n$ for the maximum sum of exponents $σ(n)$ of runs in a string of length $n$, improving on the best known bound of $4.1n$ by Crochemore et al. (JDA 2012), as well as other improved bounds on related problems. The characterization also gives rise to a new, conceptually simple linear-time algorithm for computing all the runs in a string. A notable characteristic of our algorithm is that, unlike all existing linear-time algorithms, it does not utilize the Lempel-Ziv factorization of the string. We also establish a relationship between runs and nodes of the Lyndon tree, which gives a simple optimal solution to the 2-Period Query problem that was recently solved by Kociumaka et al. (SODA 2015).

cs.DM↗