Pith.
Menu

Artificial Intelligence · arXiv:2611.38669 v2 · submitted 28 Nov 2026

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

Kunihiko Takamatsu, Katsuhiko Murakami, Sayaka Matsumoto, Tomohiro Akiyama, Shimpei Matsumoto, Katsuyuki Kunida, Satoshi Takahashi, Tokuro Matsuo

show 7 more authors

Sachio Hirokawa, Kazuya Tsuruta, Ryosuke Kozaki, Shuto Nishida, Koma Takamatsu, Ford Lumban Gaol, Masao Mori

The paper says

“At the level of declaration text, the reduction is therefore almost entirely due to rewriting, not to pruning.”

The abstract

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.

from the abstract

Pith says

Holds up. This paper measures how much of a 17-million-line Lean proof of the Riemann Hypothesis survived a week of volunteer consolidation and a condensed rewrite, and finds that the condensed version shares only 0.18% of its declarations with the consolidated branch—almost entirely rewriting, not pruning.

Machine review · 1 Dec 2026 · of version 1 of the paper; version 2 is newer · Full text · 5 minor

Challenge this review Reply to this review
How this review was made

Machine review · deepseek-v4-flash · 1 Dec 2026 · of version 1 of the paper; version 2 is newer · read the full text (88,605 characters) · not checked by a person

The reviewer was given the whole text, 88,605 characters. Not checked: figures, code, what the references say.

How the review went

5 passes by deepseek-v4-flash · 1 Dec 2026

  1. Reader holds up confidence moderate
  2. Skeptic agrees 44 s · 28,083 tokens read, 5,067 written
  3. Referee 5 minor 27 s · 28,174 tokens read, 2,809 written
  4. Check against the paper
  5. Editor wrote the verdict above 9 s · 28,694 tokens read, 748 written

Not run on this paper: the simulated authors' defence.

Pith checked this review's objections against the text of the paper it read.

The test under “What would settle it” is from the skeptic's reading.

Fingerprints, costs and the commands that check them

What would settle it

Independently recompute the reachability bound for version 2 using a different approach: instead of declaration-level E rows, use the module-level U rows to compute a module-level closure, then estimate the declaration lines of modules that are reachable. Compare the resulting bound with the paper's declaration-level bound. If the module-level bound is close (within a few percent), the conclusion is robust.

5 minor objections

  1. §3.2 Section 3.2: The paper reports 26,019 real declarations in the D/U/S index and 26,018 in the D/E graph, with the difference being two congruence lemmas. The matching and reachability results use the D/E graph (denominator 26,018), while the size in Table 1 and elsewhere is given as 26,019. This small inconsistency should be resolved or explicitly stated in a single place so that readers do not have to cross-reference sections to understand which count applies to which analysis.
  2. §4.2 Section 4.2, Table 2: The row for category C40 shows 16 declarations of version (2) and 2 of version (3). The text states that C40 requires a statement of at least 40 characters. Given that version (3) has only 2 such matches, it would be helpful to state explicitly whether those two are among the 47 strict counterparts or are additional (the table suggests they are part of the 47, but the text could be clearer).
  3. §4.4 Section 4.4, Table 4: The column header '(2)/(3)' is ambiguous. It appears to be the ratio of the two columns, but the row for 'Uses per real declaration' shows 29.5 and 28.4, whose ratio is about 1.04, not 33.5. Clarify what this column reports.
  4. §5.2 Section 5.2: The paper states that 'the reachable part is a lower bound on the size that pruning alone can reach' and that 'the difference between the reachable lines of version (2) and the lines of version (3) is a reduction that deletion could not have produced.' This reasoning is sound, but the phrasing 'lower bound' could be misinterpreted. Consider adding a brief reminder that the reachable set is a subset of declarations that cannot be deleted, so the reachable lines are a minimum size after pruning, not a maximum.
  5. §6 Section 6 (Limitations): The paper notes that version (1) was not compiled and that its declarations were source-parsed. It would be helpful to state explicitly whether the source parser used for version (1) is the same as the one used to produce the source-parsed counts for versions (2) and (3) in Table 1, or whether it is a different tool.

A machine wrote this review. Check any line against the paper. If a line is wrong, say so, and the correction goes on the record.

Are you an author of this paper?

Reply on the record, clarify a point, or challenge an error.

A reply is published word for word beside the review once Pith has verified that the paper is yours.

The review in full

The review in brief

This paper traces individual declarations across three versions of a 17-million-line Lean proof of the Riemann Hypothesis, asking whether the dramatic size reduction from the volunteer-consolidated branch (version 2) to the condensed main line (version 3) came from pruning unused code or from rewriting. The answer is clear: only 47 of version 3's 26,018 real declarations (0.18%) have a strict counterpart in version 2 by name and statement, and a matching-free reachability bound shows that pruning alone could remove only 2.83% of version 2's declaration lines. The reduction is almost entirely rewriting. The methodology is careful and transparent: declarations are counted from compiled indexes with an explicit rule for folding auxiliary constants, category counts were recomputed by an independent program with full agreement, and the reachability extraction was validated against an existing cross-file index. Limitations are stated rather than hidden—textual matching is not mathematical identity, version 1 was not compiled, and the results refer to fixed snapshots of a rapidly changing repository. The paper's central claim holds up under these constraints. The soft spots are minor and acknowledged: the matching cannot detect declarations that survived under a different name or with reordered arguments, and the reachability bound is a lower bound, not a deletion plan. The paper is a solid measurement study that will be useful to anyone working with large AI-written formal artifacts, especially those interested in how such proofs can be maintained, checked, or taught. It deserves a serious referee.

The strongest objection

The paper's central claim is supported by two independent lines: textual matching (47 of 26,018 declarations, 0.18%) and a matching-free reachability bound showing pruning could remove only 2.83% of declaration lines while version 3 has 2.67% of the reachable lines. The reachability bound is validated against the existing cross-file index with high agreement (0.028% and 0.080% discrepancy on 1,346 sampled modules). The paper acknowledges that the compiled index misses some uses (invisible uses), which makes the reachability bound conservative and thereby strengthens the rewriting conclusion. The matching fragility is acknowledged and does not carry the claim. I find no load-bearing concern that would undermine the central argument.

The reader's weakest_assumption was about the textual matching, but the reader correctly noted that the reachability bound is independent and carries the headline. My analysis confirms that the reachability bound is well-validated and conservative. The paper's limitations are stated and do not undermine the central claim. Therefore, I agree with the reader's ACCEPT verdict and recommend no change.

The referee's report

The paper provides a rigorous, methodical measurement of how a large AI-assisted formal proof was reduced across three versions. The methodology—declaration-level tracing via compiled indexes, reachability bounds, and use profiles—is transferable to other large formal developments and addresses a question of practical importance for maintaining and checking AI-written proofs. The results are clearly presented and the limitations are honestly discussed. The paper is a valuable contribution to the emerging literature on the engineering of very large formal proofs.

Pith's reading

The paper asks whether a 0.48-million-line condensed Lean proof of the Riemann Hypothesis (version 3) was obtained by pruning a 14.6-million-line volunteer-consolidated version (version 2) or by rewriting it. By tracing every declaration across the two versions using compiled indexes and textual matching, the authors find that only 47 of 26,018 declarations in version 3 (0.18%) have a strict counterpart in version 2, and nine of those are the fixed statements of the challenge. The declarations that disappeared were not the unused ones—their usage profile matches that of version 2 as a whole. The paper also bounds how far pruning alone could have gone: removing every declaration unreachable from the five main theorems would cut version 2's declaration lines by only 2.83%, whereas version 3 has 2.67% of those reachable lines. The reduction is therefore almost entirely due to rewriting, not pruning. This matters for anyone who wants to read, check, or teach the proof: a rewritten version must be understood on its own, not traced back to the original.

What carries the argument. The central mechanism is declaration-level dependency graphs and textual matching of normalized statements across versions. The paper builds compiled indexes of real declarations (excluding compiler-generated auxiliaries) for versions 2 and 3, then matches each declaration by full name, short name plus normalized statement, or statement text alone, using categories A (same full name), B (same short name and statement), C40 (same statement ≥40 characters), and E (same short name ≥15 characters). Reachability from the five main theorems is computed by breadth-first search over declaration-level use edges (E rows) to bound how far pruning alone could go.

Core claim. The paper establishes that the condensed version (version 3) of the Lean proof of the Riemann Hypothesis is almost entirely a rewriting of the volunteer-consolidated version (version 2), not a pruning. Only 47 of 26,018 real declarations in version 3 (0.18%) have a strict counterpart in version 2 by name and normalized statement, and nine of those are the fixed statements of the challenge. The declarations that disappeared were not the unused ones: their usage profile is nearly identical to that of version 2 as a whole. Furthermore, pruning by reachability from the five main theorems could remove only 2.83% of version 2's declaration lines, whereas version 3 has 2.67% of those reachable lines, so the remaining reduction (97.3% of the reachable part) must come from rewriting.

The premise it rests on. The textual matching of full name plus normalized statement may miss declarations that survived but were renamed, had types renamed, or had arguments reordered; however, the paper's headline claim does not rest on matching alone—the independent reachability bound (C3) shows that pruning could not account for the size reduction even if all declarations were traceable.

If the paper is right

The condensed version must be read and understood on its own terms, not as a pruned subset of the original; anyone studying the proof cannot rely on tracing back to the earlier versions.

The rewriting demonstrates that AI-assisted formalization can produce dramatically shorter proofs, suggesting that large AI-generated formal artifacts may benefit from a rewrite pass rather than incremental pruning.

The reachability bound shows that further reduction of version 2 by deletion alone is negligible (at most 2.83% of declaration lines), so any significant size reduction requires rewriting, not just removal of unused code.

The organizational difference—a library with no counted use of the proof-specific part versus the strongly connected namespaces of version 2—may improve maintainability and readability of the proof.

The rewriting likely involved rethinking the proof structure and not just compressing code, given that the number of declarations fell by a factor of 33.5 while mean declaration length stayed constant (13.54 vs 13.60 lines).

The fact that 82.6% of external constants used by version 3 were already used by version 2 suggests the rewriting reused mathematical concepts but reorganized them under new namespaces and with new proofs.

The approach of tracing declarations by name and normalized statement could be applied to other large AI-generated formal proofs to understand how they evolve across versions, especially when human volunteers or AI systems produce condensed rewrites.

The observation that version 3 is close to its own reachability bound (98.44% of declarations reachable) implies that further reduction of this proof would require rewriting again, not deletion.

Check this review

What was read

The passes were given all 88,605 characters of the paper's LaTeX source.

Fingerprint of that text (SHA-256): 7de008e2724a26310308e5da7e628e9c4b8713fa85c59b30678a33e6da433f1b

Pith does not keep that text. Rebuilt from the paper's source or PDF by the same code, it has this fingerprint if it is the same text. From a copy of Pith's code:

PYTHONPATH=. python scripts/review_input_check.py 2611.38669

The passes, in the order they ran

  1. Reader deepseek-v4-flash · medium effort · $0.0098 · instructions of the Reader, fingerprint f9ead7300382…
  2. Skeptic deepseek-v4-flash · medium effort · $0.0026 · instructions of the Skeptic, fingerprint 8f88c0f61488…
  3. Referee deepseek-v4-flash · medium effort · $0.0023 · instructions of the Referee, fingerprint a852d99aea0d…
  4. Editor deepseek-v4-flash · medium effort · $0.0020 · instructions of the Editor, fingerprint e7211f6a3d27…
  5. Circularity check deepseek-v4-flash · medium effort · $0.0019 · instructions of the Circularity check, fingerprint e9946e39d67b…
  6. Summary for the page deepseek-v4-flash · medium effort · temperature 0.2 · $0.0023 · instructions of the Summary for the page, fingerprint e4f56bf568e7…

The passes cost $0.021 in model calls together.

Version stamped on this review: pith-pipeline@v1.4.1-daily-deepseek-or-medium+deepseek/deepseek-v4-flash+p.505d180dcaef

Each link opens a pass's instructions as plain text, the exact bytes its fingerprint was taken over. Every stored set of instructions.

curl -s https://pith.science/methodology/prompts/f9ead730038216984cfb56d7cb34332bdf691828296a1de4245f3d6667d4bf56 | sha256sum

prints the fingerprint of the reader's instructions. The same works for every pass.

The receipt

The review's fingerprint was taken on 1 Dec 2026. The review you are reading still matches it.

Fingerprint of the review (SHA-256): 8d9e951107d217e1261dbbb396d72ed039b8de01eb712f82b19606b09e302c3a

curl -s 'https://pith.science/api/v1/verdicts/2611.38669?form=canonical' | sha256sum

prints the fingerprint of the review as it stands now. The rule, in four steps.

A matching fingerprint shows the review has not changed since that date. It does not show that the review is right.

Reviews like this one: written by deepseek-v4-flash, from the paper's LaTeX source.

Every value above, in the review's public record (JSON)

No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and the review is published here whatever it concludes. Request a human review

How Pith checks papers · The full audit of this paper

The paper

Abstract

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.

A classifier labelled each sentence of the abstract by the part it plays in the paper. The labels are kept beside the review and separate from it: the review read the paper's text, and these labels cover the abstract only. Every quoted sentence is the authors' own. No sentence in this record was written by a model.

abstract compiled · 1 Dec 2026

The main claim

“At the level of declaration text, the reduction is therefore almost entirely due to rewriting, not to pruning.”

Stated as asserted.

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
A Lean 4 proof of the Riemann Hypothesis was released on 20 November 2026 with 175,187 files and 17.4 million lines. background 0.99 0.17 0.02 asserted 1.00
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). background 0.83 0.25 0.04 asserted 1.00
We ask whether the reduction came from pruning or from rewriting, and how far pruning alone could have gone. gap 0.69 0.11 0.03 unclear 0.88
Using compiled indexes and declaration-level dependency graphs, we trace declarations across the versions. method 1.00 0.93 0.02 asserted 0.89
Consolidation kept the names: 92% of the consolidated branch's real declarations have a counterpart of the same name in the original. result 1.00 0.90 0.05 asserted 1.00
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. result 1.00 0.90 0.18 asserted 1.00
The declarations dropped were not the unused ones; their use profile is close to that of the whole branch. result 1.00 0.91 0.04 asserted 1.00
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. result 1.00 0.93 0.13 asserted 0.97
At the level of declaration text, the reduction is therefore almost entirely due to rewriting, not to pruning. result 0.55 0.93 0.90 asserted 0.99
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. result 0.98 0.81 0.04 asserted 1.00
We discuss what this implies for checking and maintaining very large AI-written formal artifacts. interpretation 0.93 0.27 0.03 unclear 0.95

What kind of paper the classifier reports this is: empirical study 0.99 · evidence from analysis of existing data 0.79

What was examined, and what was not

These lists are about the sentence labels. What the review read is said with the review.

Read

  • arXiv listing abstract v1

Not read

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Labelled

  • abstract

Not labelled

  • sections
  • body sentences
  • citations
  • cross-paper relations

The main claim, as probabilities

picked as the main claim 1.00 · how strongly it is stated 0.99

What the abstract itself states, as probabilities

claims first 0.04 · states limitation 0.25 · human participants 0.29 · controlled comparison 0.35 · randomized assignment 0.01 · states quantitative result 0.99 · compares with prior results 0.50 · mentions code or data availability 0.05

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-12-01: 1 request, 8,449 input tokens.

This record as JSON, with every label and the probability the classifier gave it.

Figures (5)
Figure 1 of the paper
Figure 1. Declarations of the three versions. (a) Linear axis; (b) logarithmic
Figure 2 of the paper
Figure 2. Share of declarations of version (2) with a strict counterpart in
Figure 3 of the paper
Figure 3. Declaration lines of the whole of version (2), of its part reachable
Figure 4 of the paper
Figure 4. Dependency structure matrices of namespace groups in (a) version (2) and (b) version (3). A row uses a column; the shade is the logarithm of
Figure 5 of the paper
Figure 5. The 802 modules of version (3), placed by the length of the longest

Figures are the authors', reproduced from the paper.

Challenges and discussion

Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.

No comments yet.

Sign in to comment