Treemap of the Riemann Hypothesis Lean Proof

82 points by pengowray 8 hours ago on hackernews | 32 comments

On 20 November 2026 Levent Alpöge released a Lean 4 formalization, written with Claude, that states and proves the Riemann Hypothesis and its generalization to Dirichlet L-functions. The source is 175,187 modules (a module is one .lean file). This page shows what is in them.

The values ζ(½ + it) in the complex plane, for t from 0 to 60. The curve passes through 0 once for each zero of ζ on the critical line.

The statement

These two files are the whole claim. Statements.lean defines four propositions. Main.lean proves them, and Mathlib's own RiemannHypothesis, by citing theorems from the other 175,185 modules. Point at a symbol to see how to say it and what type it has.

Statements.lean
Main.lean

In words: every zero of the Riemann zeta function, other than the trivial zeros −2, −4, −6, … , has real part ½. For every Dirichlet character χ, every zero of L(s, χ) with real part strictly between 0 and 1 has real part ½.

Map of every module

Each rectangle is one module. Modules are grouped by directory, and a larger rectangle means more of the chosen size measure.

Scroll over the map to zoom, drag to move, click a module to read its code.

Highlight modules that mention

Terms come from Alpöge's announcement and from standard number theory. A module is counted if the term's identifier appears in its text, not counting import lines.

Highlight a step of Alpöge's timeline

Where each step appears to live in the Lean code, according to a blueprint of the proof by GitHub user jae-63. ● found clearly   ◐ names and position fit   ○ weak evidence. The number is how many modules match. Point at a step to see it on the map; click to keep it highlighted.

    What takes up the space

      By top-level library

      Why so many modules

      Modules by length
      How much of each module repeats the module before it in the same directory

      Areas of mathematics

      Each module's field is predicted by a classifier from the Mathlib and project identifiers it uses. The prediction agrees with a language model's reading of the module about half the time (details under Sources and method). Point at a row to see where that field sits on the map.

      The line under each field lists objects and theorems named in the labels that a language model gave to each of 746 directories after reading a digest of its identifiers. Treat them as a guide, not a census.

      How modules depend on each other

      A comment on Hacker News reported 204 modules "not referenced anywhere", without a list or a method. In the import graph no module is unreferenced: every module except Main.lean is imported by at least one other module. The comment may be counting something that imports do not show, such as declarations that nothing uses.

      Imports between fields. Each row shows where that field's imports go. Point at a square to see those modules on the map.

      Import graph of the main directories

      Scroll the graph sideways to see all of it.

      Longest import chain

      Modules that the most other modules depend on

      Numbers and tactics

      Colour the map by or by .

      Modules with the largest share of digit characters

      Tactics used

      Point at a bar to see what the tactic does and which modules use it.

      Who has checked the proof

      What each of these public pages reported when read on 23 November 2026. None of the checks were run in building this page.

      The Lean statements cover the Riemann zeta function and Dirichlet L-functions. They do not cover Dedekind zeta functions or automorphic L-functions.

      Sources and method

      • The Lean source is from Alpöge's announcement. The page reads it from the mirror 1337isnot1337/riemann-hypothesis-solved at commit 6193bb5. The archive declares no licence, so this site does not store the Lean files; it stores module names and counts, and loads code from the mirror when you open a module.
      • All counts on this page come from a script that reads every file once. Its totals match the independent checks above: 175,187 files, 17,374,215 lines, longest import chain 203.
      • Declarations are counted by matching keywords such as theorem and def at the start of a line. Lean's kernel sees more declarations (1,484,729 in the nanoda runs) because Lean generates auxiliary ones.
      • The proof steps on the map follow jae-63's blueprint, which matched Alpöge's timeline to Lean names by search and partial reading. It is one reader's interpretation.