Build and verification report
ビルド・検証報告
Methods方法
Tools, definitions and limitations, for all pages of the report.
この報告のすべてのページに共通の,ツール,定義,制約を示す.
This is one of the pages of the report “Independent build report on Alpöge’s Lean formal proof of the Riemann Hypothesis”. Its scope, and the pointer to the statement of the Lean and Mathlib communities, are on the page Overview.
このページは,報告「AlpögeによるRiemann予想のLean形式証明の独立ビルド報告」の一部である.報告の範囲と,Lean・Mathlib コミュニティの声明への案内は,ページ「概要」にある.
Data assembled: 2026-11-26. Page generated: 2026-11-26.
データ集約日:2026-11-26.ページ生成日:2026-11-26.
18Methods, definitions and reproducibility方法・定義・再現性
Toolsツール
The following scripts were used to produce the pages of this report. They are kept in the working repository of this analysis; the public copy contains the pages and the README only.
この報告の各ページの作成には次のスクリプトを使った.スクリプトはこの分析の作業用リポジトリにあり,公開用の複製に含まれるのは報告のページと README だけである.
rikyu/remote/*.sbatch: the batch jobs that ran the build, Comparator and the graph extraction on the machine.rikyu/remote/*.sbatch:ビルド,Comparator,グラフ抽出を計算機上で実行したバッチジョブ.rikyu/remote/comparator_official.sbatch: the batch job that follows the checking procedure of the community repository (environment checks, the two exports,lake comparatorof Lean v4.36.0); section 4.rikyu/remote/comparator_official.sbatch:コミュニティのリポジトリの検査手順に従うバッチジョブ(環境の確認,2 つのエクスポート,Lean v4.36.0 のlake comparator).第 4 節.analysis/build_log_stats.py: reads thelake build -vlogs and the progress logs and writesbuild_stats.json(sections 2 and 5).analysis/build_log_stats.py:lake build -vのログと進捗ログを読み,build_stats.jsonを書き出す(第 2 節と第 5 節).analysis/import_graph.py: reads the.leansources (names, sizes,importlines) and writesimport_graph.json(section 6). It does not run Lean.analysis/import_graph.py:.leanソース(名前,サイズ,import行)を読み,import_graph.jsonを書き出す(第 6 節).Lean は実行しない.analysis/extract(extractdeps): a Lean program that reads the compiled.oleanfiles and writes, for every constant, its kind, module, the sizes of its type and value, and the constants that occur in them.analysis/extract(extractdeps):コンパイル済みの.oleanファイルを読み,各定数について,種類,モジュール,型と値のサイズ,およびそこに現れる定数を書き出す Lean プログラム.analysis/graph_stats.py: computes the statistics of section 7 from that dump and writesgraph_stats.json; its definitions are documented inanalysis/GRAPH_STATS.md.analysis/graph_stats.py:そのダンプから第 7 節の統計を計算し,graph_stats.jsonを書き出す.定義はanalysis/GRAPH_STATS.mdに記載している.analysis/viz_graph.py: computes, from the same dump, the selections drawn in section 8 (skeleton, dominator tree, distances, subcomponent graph) and writesviz.json; its definitions and limitations are documented inanalysis/VIZ.md.analysis/viz_graph.py:同じダンプから,第 8 節で描く対象(骨格,支配木,距離,サブコンポーネントのグラフ)を計算し,viz.jsonを書き出す.定義と制約はanalysis/VIZ.mdに記載している.analysis/theory_map.py: computes, from the same dump, the topics, their use and reach, the network clusters and the layouts of section 9 and writestheory_map.json; its definitions and limitations are documented inanalysis/THEORY_MAP.md.analysis/theory_map.py:同じダンプから,第 9 節のトピック,その使われ方と到達率,ネットワーククラスタ,配置を計算し,theory_map.jsonを書き出す.定義と制約はanalysis/THEORY_MAP.mdに記載している.analysis/importance.py: computes the indicators of section 10 (I1–I8, N1–N3, N5, N6) from a dump of the community tree, on the graph of declarations obtained by merging every auxiliary constant into its declaration, and writesimportance.json. It reuses the dominator, reachability, topic and community code of the two tools above; its definitions and tests are documented inanalysis/IMPORTANCE.md.analysis/importance.py:コミュニティのツリーのダンプから,補助定数をそれぞれの宣言に統合して得られる宣言のグラフの上で,第 10 節の指標(I1〜I8,N1〜N3,N5,N6)を計算し,importance.jsonを書き出す.支配木,到達可能性,トピック,コミュニティの計算には上の 2 つのツールのコードを再利用している.定義とテストはanalysis/IMPORTANCE.mdに記載している.report/make_report.py: generates the nine pages of this report from the ten JSON files; every number on the pages is read from them.report/make_report.py:10 つの JSON ファイルから,この報告の 9 つのページを生成する.ページ上の数値はすべてそこから読み取っている.
Run of the graph analysisグラフ解析の実行
| Targets対象の定理 | riemannHypothesis, riemannZeta_eq_zero_re, LFunction_ne_zero_of_half_lt_re, LFunction_eq_zero_re, LFunction_eq_zero_re_of_isPrimitive |
|---|---|
| Project prefixesプロジェクトの接頭辞 | BuildAid, CompanionTheory, Development, Formalism, GroundTheory, Lemmata, PositivityTheory, ReciprocityTheory, Supplements, Statements, Main |
| Standard axioms標準公理 | propext, Classical.choice, Quot.sound |
| Size of the input dump入力ダンプのサイズ | 1.04 GB |
| Running time実行時間 | 28.3 s28.3 秒 |
| Peak memory最大メモリ使用量 | 2.89 GB |
| Softwareソフトウェア | python 3.12.3, numpy 2.5.5, scipy 1.18.1 |
| Platformプラットフォーム | Linux-7.0.0-1025-nvidia-64k-aarch64-with-glibc2.39 |
Definitions定義
- Module, componentモジュール,コンポーネント
- A module is one
.leanfile, named by its path. A component is the first part of the module name (a top-level directory or file).モジュールは 1 つの.leanファイルであり,そのパスで名づけられる.コンポーネントはモジュール名の先頭の要素(最上位のディレクトリまたはファイル)である. - Fan-out, fan-in, levelファンアウト,ファンイン,階層
- Of a module in the import graph: the number of project modules it imports; the number of project modules that import it; the length of the longest chain of imports below it.import グラフにおけるモジュールについて,それぞれ,import するプロジェクト内モジュールの数,それを import するプロジェクト内モジュールの数,そのモジュールより下の最長の import 鎖の長さ.
- Constant, edge定数,辺
- A constant is a declaration in the compiled environment (theorem, definition, axiom, opaque constant, inductive type, constructor, recursor, quotient primitive). There is an edge from A to B if B occurs in the type or the value of A; self-references are removed and an edge is counted once.定数とは,コンパイルされた環境中の宣言(定理,定義,公理,opaque 定数,帰納型,コンストラクタ,再帰子,商の原始定数)である.B が A の型または値に現れるとき,A から B への辺があるとする.自己参照は除き,1 つの辺は 1 回だけ数える.
- Dependents, in-degree, out-degree被依存元,入次数,出次数
- The dependents of B are the constants A with an edge from A to B; their number is the in-degree of B. The out-degree of A is the number of constants B with an edge from A to B.B の被依存元とは,A から B への辺を持つ定数 A のことで,その数が B の入次数である.A の出次数は,A から B への辺を持つ定数 B の数である.
- Depth, project depth深さ,プロジェクト深さ
- The depth of a constant is the length of the longest dependency path that starts at it, computed after contracting each strongly connected component to a point. The project depth is the largest number of project constants on such a path, not counting the constant itself.定数の深さとは,各強連結成分を 1 点に縮約した上で,その定数から始まる最長の依存パスの長さである.プロジェクト深さは,そのようなパス上にあるプロジェクトの定数の数(自分自身を除く)の最大値である.
- Cone, statement coneコーン,言明のコーン
- The cone of a theorem is the theorem and every constant reachable from it along edges. The statement cone is the set of constants reachable from the constants that occur in its type.定理のコーンとは,その定理と,そこから辺をたどって到達できるすべての定数の集合である.言明のコーンとは,定理の型に現れる定数から到達できる定数の集合である.
- Size (DAG size)サイズ(DAG サイズ)
- The number of distinct nodes of an expression, shared subterms counted once.式の相異なるノードの数.共有されている部分項は 1 回だけ数える.
- Distance from the main theorems主定理からの距離
- The length of the shortest dependency path from one of the main theorems to the constant.いずれかの主定理からその定数への最短の依存パスの長さ.
- Dominator, subtree支配,部分木
- A constant v dominates w if every dependency path from the main theorems to w passes through v (formally: every path from a virtual root that has one edge to each main theorem). The subtree of v in the dominator tree is the set of constants dominated by v, v included.主定理から w へのどの依存パスも v を通るとき,定数 v は w を支配するという(正確には,各主定理へ 1 本ずつ辺を持つ仮想的な根からのすべてのパスについて).支配木における v の部分木とは,v が支配する定数の集合(v 自身を含む)である.
- Topic, used directly, reach, clusterトピック,直接使われる,到達率,クラスタ
- A topic is the set of constants of the modules under one module-name prefix (a directory of the project or an area of a library); every constant lies in exactly one topic. A constant is used directly by another if it occurs in its type or value. The reach of a topic is the number of project constants in the cones of the main theorems, outside the topic, that depend on a constant of the topic directly or indirectly, divided by the number of all such constants outside the topic. A cluster is a community of the undirected graph that joins two project constants of the cones if one occurs in the type or value of the other, found by maximising modularity.トピックとは,1 つのモジュール名の接頭辞(プロジェクトのディレクトリ,またはライブラリの分野)の下にあるモジュールの定数の集合であり,どの定数もちょうど 1 つのトピックに属する.ある定数が別の定数の型または値に現れるとき,前者は後者から直接使われるという.トピックの到達率とは,主定理のコーンに含まれるトピック外のプロジェクトの定数のうち,そのトピックの定数に直接または間接に依存するものの数を,トピック外のそのような定数全体の数で割ったものである.クラスタとは,コーンに含まれるプロジェクトの定数の 2 つを,一方が他方の型または値に現れるときに結んだ無向グラフにおいて,モジュラリティの最大化によって見つけたコミュニティである.
- Declaration graph and indicators (section 10)宣言のグラフと指標(第 10 節)
- A declaration is a constant that is not an auxiliary constant generated by Lean, together with the auxiliary constants that belong to it; A depends on B if a constant of A mentions a constant of B, through a type edge if B is needed for the statement of A and through a value edge otherwise. I1 dominated set: the declarations reached from the main theorems only through the declaration. I2: proof-term nodes of the dominated set ÷ size of the statement with the project declarations needed to state it written out (their types, and their bodies unless they are theorems). I3 bridge: an edge to a declaration with no other dependent in the cones. I4: share of the dependency paths from the main theorems to a declaration without project dependencies that pass through the declaration. I5: direct and transitive dependents. I6: personalised PageRank from the main theorems along dependencies. I7: minimum vertex cover of the direct dependencies from one cluster to another. I8: 1 − Σ (share of the neighbours in each community)². N1: project depth and share of library declarations among the dependencies. N2: project theorems whose statement needs no project declaration. N3: project definitions and inductive types. N5: −log2 of (observed ÷ expected co-occurrence of two library topics among the direct premises of library theorems), smoothed. N6: statements compared by a structural hash that ignores the names of bound variables and universe parameters.宣言とは,Lean が自動生成する補助定数ではない定数と,それに属する補助定数をまとめたものである.A の定数が B の定数に言及するとき,A は B に依存するという.B が A の言明に必要なら型の辺,そうでなければ値の辺とする.I1 支配範囲:主定理からその宣言を通してのみ到達できる宣言.I2:支配範囲の証明項のノード数 ÷ 言明の大きさ(言明を述べるのに必要なプロジェクトの宣言の型と,定理以外ではその本体も書き下して数える).I3 橋:コーンの中に他の被依存元を持たない宣言への辺.I4:主定理から,プロジェクト内の依存先を持たない宣言までの依存経路のうち,その宣言を通るものの割合.I5:直接および推移的な被依存元.I6:主定理を起点とし,依存関係に沿って進む personalized PageRank.I7:あるクラスタから別のクラスタへの直接の依存関係の最小頂点被覆.I8:1 − Σ(各コミュニティに属する隣接宣言の割合)².N1:プロジェクト深さと,依存先に占めるライブラリの宣言の割合.N2:言明がプロジェクトの宣言を必要としないプロジェクトの定理.N3:プロジェクトの定義と帰納型.N5:ライブラリの定理の直接の前提における 2 つのライブラリのトピックの共起について,(観測値 ÷ 期待値)を平滑化したものの −log2.N6:束縛変数と宇宙パラメータの名前を無視する構造的なハッシュによる言明の比較.
- Quantiles分位点
- Nearest-rank quantiles; “99%” is a value such that at least 99% of the items are less than or equal to it.最近順位法による分位点.「99%」は,全体の少なくとも 99% がその値以下となる値である.
Limitations制約
- The statistics describe the structure of the development. They are not evidence about the correctness of the mathematics.統計は形式化の構造を記述するものであり,数学的内容の正しさに関する証拠ではない.
- The import graph and the counts of
sorryandaxiomin section 6 come from a text scan of the sources, not from Lean.第 6 節の import グラフとsorry・axiomの件数は,Lean ではなくソースのテキスト走査によるものである. - Build times per module are the times reported by Lake while many modules were being built in parallel; they depend on the load of the node.モジュールごとのビルド時間は,多数のモジュールを並列にビルドしている間に Lake が報告した時間であり,ノードの負荷に依存する.
- The dependency graph records which constants occur in the elaborated terms. It includes auxiliary constants generated by Lean, and it does not show tactic scripts, notation or comments.依存グラフは,エラボレート後の項にどの定数が現れるかを記録したものである.Lean が自動生成する補助定数を含み,タクティクスクリプト,記法,コメントは反映しない.
- The graph is extracted from the
.oleanfiles of the build of step 1; it is not taken from the environment that Comparator exports in step 2.グラフは工程 1 のビルドで得た.oleanファイルから抽出したものであり,工程 2 で Comparator がエクスポートする環境から取ったものではない. - The indicators of section 10 are computed on another source tree than the other sections (see the notice at the top of that section). They were not compared with randomised graphs, and their dependence on the parameters of the community detection was not measured. The minimum cuts of I7 cover direct dependencies between two clusters only.第 10 節の指標は,他の節とは別のソースツリーについて計算したものである(同節の冒頭の注記を参照).ランダム化したグラフとの比較は行っておらず,コミュニティ検出のパラメータへの依存性も測定していない.I7 の最小カットが対象とするのは,2 つのクラスタの間の直接の依存関係だけである.
- The pages of this report show one edition of the data. Their status sentences reflect the state fields of the data at the time it was assembled.この報告の各ページはデータのある 1 つの版を示す.状態に関する文は,データを集約した時点の状態フィールドを反映している.