Hi HN, I'm the author. Upfront: this is strictly an empirical software-engineering look at the 17.37M-line Lean 4 Riemann Hypothesis codebase, not a kernel re-check or a math critique (the Lean/Mathlib community already verified the proof across independent checkers).
Three structural things stood out once we ran static analysis over it:
1. Most "clones" are just forwarding glue: Almost all wrapper shims collapse into one repeated template (~43.5k copies), while actual long proofs are surprisingly diverse (~6% Type-2 duplication).
2. Local popularity != global blast radius: Every file connects cleanly to Main with zero dead files, yet the most directly imported hubs and the highest blast-radius bottlenecks don't overlap at all. One 14-line file (EvalFrameOrd) has just a single direct importer yet sits beneath ~60% of the repo, while the most-imported file (~3k importers) only reaches ~7%.
3. Clean source-level trust surface: Zero lexical hits for sorry, axiom, native_decide, @[extern], etc., with environment calls confined to a few known helper files (BuildAid and CutCptCopy).
Scope & transparency: Pure source-level static Python (no Lean elaborator or post-macro inspection). The scripts were built in a human-AI workflow and checked with deterministic unit tests and conservation invariants rather than line-by-line manual Python audit. All numbers are script-computed, not LLM-estimated. If you spot any bugs or Lean syntax edge cases in the scripts, feel free to open an issue.
3-page PDF (Zenodo): https://doi.org/10.5281/zenodo.24465791