Treemap of the Riemann Hypothesis Lean Proof pengowray.github.io · 175 points · ...
HN Best 30 @best30
Treemap of the Riemann Hypothesis Lean Proof pengowray.github.io · 175 points · 71 comments · HN thread
TL;DR A visualizer page maps the 175,187-module Lean 4 formalization of the Riemann Hypothesis and its Dirichlet L-function generalization, released by Levent Alpöge on 20 November 2026 and written with Claude. The page shows module sizes, import structure, tactic usage and how the proof steps from Alpöge's timeline map onto the code. Commenters mostly debate whether the enormous size reflects real content or padding, and whether the release was responsible.
- The Lean source has 175,187 modules and about 17.4 million lines; the page's script reports a longest import chain of 203.
- Statements.lean defines four propositions; Main.lean proves them and Mathlib's RiemannHypothesis by citing theorems from the other modules.
- Much of the size comes from re-formalized long-known results; algebra alone is about 13% of the modules.
- Each module imports about 4.3 other project modules on average, and 136,003 modules import all of Mathlib.
- The page reports that the statements cover Riemann zeta and Dirichlet L-functions but not Dedekind zeta or automorphic L-functions.
- The page's module-level counts differ from kernel-level declaration counts (1,484,729 in nanoda runs) because Lean generates auxiliary declarations.
Discussion The thread is a mix of technical interest in the map and a heated argument about the proof's release. Early comments discuss whether the 17 million lines are mostly redundant re-proofs of known mathematics, with some expecting the code to shrink substantially. Others discuss Lean package management, Mathlib's coverage, and the idea of proof golfing. A large subthread debates whether Anthropic should have published a human-readable version first, with some calling the release disrespectful and others defending it as the normal way to share a formal result. The mood is curious and skeptical, with several sharp exchanges about the author and AI companies.
- Size is inflated by re-formalized known mathematics (many): Several commenters argue the line count mostly reflects long-proven theorems being reproved and vendored instead of imported from Mathlib. They expect the proof to be refactored and shrunk significantly.
- Release is sloppy and unfair to mathematicians (many): Critics say the author did not understand or check the output and left the cleanup to others, and that a readable exposition from Anthropic would have been better. Some see the release as marketing ahead of a possible IPO.
- Formal proofs of this size are normal and expected (some): Defenders note that first formal proofs are often far from optimal and that cleanup typically follows, citing examples of bounds improved years later. They argue the criticism is premature.
- Dismissing the work as LLM output is unfair (some): Some commenters push back on the tone of the criticism and call the reaction rooted in self-pity or contrarianism, arguing the proof is a significant public result open to verification.
- Mathlib and package infrastructure need to grow (some): Commenters point out that a verified package registry would help, but the main limit is the number of people formalizing mathematics, not tooling. Some suggest alternative foundations like cubical HoTT.
- Hypothesis naming will persist despite proof (a few): A commenter asks why it is still called a hypothesis, and others reply that names like Poincaré conjecture and Fermat's last theorem persist after proof, so the name will likely stay.
Links from the comments
- Lean page on Mathlib use cases, cited in discussion of dependencies.
- Tau Ceti project, an effort to formalize and reuse mathematical results in Lean.
- Another Riemann Hypothesis proof-shortening effort mentioned in the thread.
- Site a commenter says is running a shortest-proof competition.
- Statement signed by mathematicians about AI misalignment in mathematics, shared as context.
#Lean4 #RiemannHypothesis #formalMath #AIProofs #Mathlib #dataVisualization