Science1 min read

Treemap of the Riemann Hypothesis Lean Proof

By · Published by Everything Blog

In short

The formal proof relies on Statements.lean to define four central propositions and Main.lean to prove them alongside Mathlib's RiemannHypothesis. An interactive treemap tool visualizes the immense repository, which encompasses 175,187 modules and import chains stretching up to 203 levels deep. Automated classifiers and language models categorized the 746 directories into mathematical fields using project identifiers. Because the original source archive lacks an open license, the tracking interface documents structural metadata, tactics, and module names without hosting the underlying code directly.

Key points

  • The formalization proves claims for Dirichlet L-functions but explicitly excludes Dedekin…: The formalization proves claims for Dirichlet L-functions but explicitly excludes Dedekind zeta functions and automorphic L-functions.
  • Visualizations map proof steps to an announced timeline using an external blueprint creat…: Visualizations map proof steps to an announced timeline using an external blueprint created by GitHub user jae-63.
  • Because the original archive declares no license, the visualization platform records stru…: Because the original archive declares no license, the visualization platform records structural data rather than hosting the code.

Sources checked by our analysis pipeline: 1

The Lean proof of the Riemann Hypothesis, as a treemap

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 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.

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…

Science