跳到正文
hackernews100(pengowray.github.io)· pengowray·· 12 小時前精選品質評分96

互動圖解展示黎曼猜想 Lean 證明由哪些模組組成

Treemap of the Riemann Hypothesis Lean Proof

重點導讀

一份數學證明有 175,187 個 Lean 模組,光看程式碼很難知道各部分在做什麼。

  • 作者做了一張互動圖,把每個模組畫成方塊,依資料夾、大小和數學領域排列,也能檢視模組之間的引用關係與證明步驟出現的位置。文中說,這份形式化證明涵蓋黎曼 ζ 函式和 Dirichlet L 函式。
  • 圖上的數學領域是分類器的預測,證明步驟的位置則是依一份藍圖整理,應當當作閱讀指引。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

推薦理由

這張互動圖把大型 Lean 證明拆成模組、依賴關係與數學領域,並清楚標示哪些內容是分類器預測或讀者解讀。

正文 · 原文

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.

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.

Size by

Colour by

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

      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.
      來源: hackernews100 (pengowray.github.io)
      開啟原文

      讀者討論

      理性交流 · 即時討論