Build and verification report
ビルド・検証報告
Parallel build: the cleaned-up tree of the community repository並列ビルド:コミュニティのリポジトリの整理後のツリー
The community repository has reorganised the sources since the distribution. We built one of its later commits from scratch on one node, at 144, 64 and 32 threads, and measured the time. The page shows the times, what changed in the tree, and the limit that the build graph sets. This is a later build of another tree: the record of the first build (step 1) on the overview page is unchanged.
コミュニティのリポジトリでは,配布のあとにソースの整理が進んでいる.その後のコミットの 1 つを,1 ノードの上で,144,64,32 スレッドで最初からビルドし,時間を測った.所要時間,ツリーの変化,ビルドグラフから決まる限界を示す.これは別のツリーの,後から行ったビルドであり,概要のページにある最初のビルド(工程 1)の記録は変えていない.
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.
11Timing builds of the cleaned-up tree of the community repositoryコミュニティのリポジトリの整理後のツリーの計測ビルド
Summary要約
Since the distribution, the community repository leanprover-community/riemann-hypothesis has reorganised the sources of the project. A public post by a developer of Lean reports that the reorganised tree compiles much faster on one large machine, and names the commit. We built that commit (9282d3a1) ourselves on RIKYU (RIKEN R-CCS), from scratch, at three thread counts. This page gives our own measurements only; the figures of the post are not repeated here.
コミュニティのリポジトリ leanprover-community/riemann-hypothesis では,配布のあとにプロジェクトのソースの整理が進んでいる.Lean の開発者による公開の投稿が,整理後のツリーは大きな機械 1 台で以前よりはるかに速くコンパイルできると報告し,コミットを示している.我々はそのコミット(9282d3a1)を,RIKYU (RIKEN R-CCS) で,3 通りのスレッド数で最初からビルドした.このページに載せるのは我々自身の計測だけである(投稿の数値は載せていない).
This is a later build of another tree. The record of the first build (Overview, section 2) and the statistics computed from it (Build analysis) are unchanged. Comparator was not run on this tree: the page says that the build completed and how long it took, nothing more. As everywhere in this report, it does not assess the mathematics.
これは別のツリーの,後から行ったビルドである.最初のビルドの記録(概要,第 2 節)と,そこから計算した統計(ビルドの解析)は変えていない.このツリーに対して Comparator は実行していない.このページが述べるのは,ビルドが完了したことと,その所要時間だけである.この報告の他の部分と同じく,数学的内容の評価は行わない.
lake build at 144 threads (one node)144 スレッド(1 ノード)での lake build9282d3a1, Lean v4.37.0-rc1, from scratchコミット 9282d3a1,Lean v4.37.0-rc1,最初から- All three builds completed. In each,
lake buildended with exit code 0, with 0 failed jobs, 0 error lines and 0sorrywarnings in the log; 59,868 modules were compiled.3 本のビルドはすべて完了した.どのビルドでもlake buildは終了コード 0 で終わり,ログ中の失敗したジョブは 0 件,エラー行は 0 件,sorryの警告は 0 件だった.コンパイルしたモジュールは 59,868 個である. - Times. 144 threads: 57 min 49 s; 64 threads: 1 h 40 min; 32 threads: 2 h 29 min.所要時間.144 スレッド:57 分 49 秒,64 スレッド:1 時間 40 分,32 スレッド:2 時間 29 分.
- More cores help less than in proportion. From 64 to 144 threads the build became 1.74 times faster for 2.25 times the cores, which is 1.60 per doubling. From 32 to 64 threads it was 1.48 times for 2 times the cores.コアを増やしても,比例しては速くならない.64 スレッドから 144 スレッドでは,コア数 2.25 倍に対して 1.74 倍速くなった.コア数 2 倍あたりに直すと 1.60 倍である.32 スレッドから 64 スレッドでは,コア数 2 倍に対して 1.48 倍だった.
- The same build uses more CPU time when it has more cores: 78.7 core-hours at 32 threads, 117.8 at 144.同じビルドでも,コアが多いほど CPU 時間を多く使う.32 スレッドでは 78.7 コア時間,144 スレッドでは 117.8 コア時間だった.
- The tree changed, not the build tool. The build is an ordinary
lake build. Against the distributed tree, the number of modules went from 175,187 to 59,869, the files that import all of Mathlib from 136,003 to 45, and the sum of the module times from 399 to 115 core-hours.変わったのはツリーであり,ビルドの道具ではない.ビルドは通常のlake buildである.配布時のツリーと比べると,モジュール数は 175,187 から 59,869 に,Mathlib 全体を import するファイルは 136,003 から 45 に,モジュール時間の和は 399 から 115 コア時間になった. - The end of the build does not shrink with more cores. At 144 threads, the last 8 minutes used at most 10 cores: a few heavy modules that import one another have to be compiled one after the other. The longest such chain takes 36 min 14 s.ビルドの終盤は,コアを増やしても縮まない.144 スレッドでは,最後の 約 8 分に使われたコアは 10 個以下だった.互いに import し合う少数の重いモジュールを,順に処理するしかないためである.そのような鎖で最長のものは 36 分 14 秒かかる.
What changed in the treeツリーで何が変わったか
The commit built here is 9282d3a102c4aff0e6026746db2a8990f5d9cddd of 2026-11-25. It is 123 first-parent merges after f1f6d654 (2026-11-22), the commit of the community repository used on the page Proof analysis for the indicators. The numbers of files below were counted by us in the public history of the repository.
ここでビルドしたコミットは 2026-11-25 の 9282d3a102c4aff0e6026746db2a8990f5d9cddd である.ページ「証明の解析」の指標に用いたコミュニティのリポジトリのコミット f1f6d654(2026-11-22)から,first-parent で 123 個のマージを経ている.以下のファイル数は,リポジトリの公開の履歴から我々が数えたものである.
.lean files under src/ in the community repository, after each first-parent merge that changed it noticeably. In less than three days it went from 164,464 to 59,869.図 29. コミュニティのリポジトリの src/ にある .lean ファイルの数(数が目立って変わった first-parent のマージごと).3 日足らずで 164,464 から 59,869 になった.Data tableデータ表
| merge or commitマージまたはコミット | hours after f1f6d654f1f6d654 からの時間 | .lean files.lean ファイル |
|---|---|---|
| f1f6d654 (22 November)f1f6d654(11 月 22 日) | 0.0 | 164,464 |
| #68#68 | 3.9 | 164,283 |
| #66: Lean 4.36.0, module system, unreachable modules removed#66:Lean 4.36.0,module 形式,到達しないモジュールの削除 | 10.6 | 149,396 |
| #185: Lean 4.37.0-rc1, imports minimised#185:Lean 4.37.0-rc1,import の最小化 | 27.8 | 149,217 |
| #221#221 | 35.9 | 148,230 |
| #324: thin wrappers removed, modules merged#324:薄いラッパーの削除とモジュールの結合 | 43.4 | 62,159 |
| #539#539 | 43.9 | 62,074 |
| #438: unused modules removed#438:使われないモジュールの削除 | 46.2 | 60,790 |
| 9282d3a1 (the commit built here)9282d3a1(ここでビルドしたコミット) | 62.9 | 59,869 |
Four groups of changes account for almost all of this. The descriptions are those of the pull requests and commit messages of the community repository; we did not repeat these steps.
この変化のほとんどは,次の 4 つの変更による.説明はコミュニティのリポジトリのプルリクエストとコミットメッセージによるもので,我々がこれらの操作をやり直したわけではない.
- #66: Lean 4.36.0 and the module system. The sources were moved to Lean 4.36.0 and converted to the module system, in which a file states which of its imports are visible to the files that import it; modules that
Maindoes not reach were removed.#66:Lean 4.36.0 と module 形式.ソースを Lean 4.36.0 に移し,module 形式(そのファイルを import する側に見せる import を,ファイル自身が指定する形式)に変換した.Mainから届かないモジュールを削除した. - #185: Lean 4.37.0-rc1 and smaller imports. The commit messages describe the removal of 75,894 option overrides from the sources, the minimisation of the imports of every file, and the rewriting of the proofs of the 166 slowest modules.#185:Lean 4.37.0-rc1 と import の最小化.コミットメッセージによれば,ソース中の 75,894 個のオプションの上書き指定を削除し,各ファイルの import を最小化し,最も遅い 166 モジュールの証明を書き換えた.
- #324: fewer and larger modules. Modules that consist of one theorem proved by naming another declaration were removed (148,230 → 126,176 files), and small modules imported by exactly one other module were merged into that module, up to a limit on its length (126,176 → 62,159 files). The repository contains the two scripts,
scripts/collapse_wrappers.pyandscripts/clump.py.#324:モジュールを減らし,大きくする.別の宣言の名前を挙げるだけで証明される定理 1 つからなるモジュールを削除し(148,230 → 126,176 ファイル),ちょうど 1 つのモジュールからしか import されない小さなモジュールを,行数の上限の範囲で,その 1 つに結合した(126,176 → 62,159 ファイル).この 2 つのスクリプト(scripts/collapse_wrappers.py,scripts/clump.py)はリポジトリにある. - #438: unused modules removed.#438:使われないモジュールの削除.
Between the two commits, lakefile.toml differs only in the revision of Mathlib and in two libraries that had become empty; the options passed to Lean are the same. The build was not made faster by a build option.
2 つのコミットの間で,lakefile.toml の違いは Mathlib の版と,空になった 2 つのライブラリの削除だけで,Lean に渡すオプションは同じである.ビルドのオプションによって速くなったのではない.
The table compares the two trees as they were built. In the distributed tree, 136,003 of the 175,187 files (78%) began with import Mathlib, which loads the whole library. In 9282d3a1, 45 files do; the others import the Mathlib modules they need, 34 lines per file on average.
表は,ビルドした 2 つのツリーを比べたものである.配布時のツリーでは,175,187 ファイルのうち 136,003 ファイル(78%)が,ライブラリ全体を読み込む import Mathlib で始まっていた.9282d3a1 では 45 ファイルで,残りは必要な Mathlib のモジュールだけを import している(1 ファイルあたり平均 34 行).
| quantity量 | distributed tree (Lean v4.33.1)配布時のツリー(Lean v4.33.1) | 9282d3a1 (Lean v4.37.0-rc1)9282d3a1(Lean v4.37.0-rc1) | ratio比 |
|---|---|---|---|
| .lean files under src/src/ にある .lean ファイル | 175,187 | 59,869 | 0.34 times0.34 倍 |
| lines of sourceソースの行数 | 17,549,402 | 16,060,240 | 0.92 times0.92 倍 |
| size of the sources (MB)ソースの大きさ(MB) | 1,031 | 1,058 | 1.03 times1.03 倍 |
| files in the module systemmodule 形式のファイル | 0 | 59,868 | — |
files that import all of Mathlib (import Mathlib)Mathlib 全体を import するファイル(import Mathlib) | 136,003 | 45 | — |
| imports between files of the project (edges)プロジェクト内の import(辺) | 720,138 | 367,789 | 0.51 times0.51 倍 |
| depth of the import graph (modules)import グラフの深さ(モジュール) | 182 | 94 | 0.52 times0.52 倍 |
| work: sum of the module times (core-hours)仕事量:モジュール時間の和(コア時間) | 399.5 | 114.8 | 0.29 times0.29 倍 |
| mean time of a moduleモジュール 1 つの時間の平均 | 8.3 s8.3 秒 | 6.9 s6.9 秒 | 0.83 times0.83 倍 |
| median time of a moduleモジュール 1 つの時間の中央値 | 6.7 s6.7 秒 | 4.4 s4.4 秒 | 0.66 times0.66 倍 |
| modules that take 60 s or more60 秒以上かかるモジュール | 577 | 264 | 0.46 times0.46 倍 |
| longest chain of imports (minutes)最長の依存の鎖(分) | 49.1 | 36.2 | 0.74 times0.74 倍 |
The module times are those printed by Lake in the log of each build: for the distributed tree the build of step 1 (64 threads; times are in the logs for 173,570 of its modules), for 9282d3a1 the build at 144 threads. The two builds ran under different load and with different versions of Lean, so the ratio of the work is indicative. We did not separate the effect of the new version of Lean from the effect of the changes in the tree.
モジュール時間は,それぞれのビルドのログに Lake が出力した値である.配布時のツリーは工程 1 のビルド(64 スレッド.時間がログにあるのは 173,570 モジュール),9282d3a1 は 144 スレッドのビルドによる.2 つのビルドは負荷も Lean の版も違うので,仕事量の比は目安である.Lean の版が新しくなった効果と,ツリーの変化の効果は,分けていない.
How the builds were runビルドの方法
- Sources. The compute node fetched commit
9282d3a1from GitHub. It has 59,869.leanfiles undersrc/.ソース.計算ノードが GitHub からコミット9282d3a1を取得した.src/の.leanファイルは 59,869 個である. - Steps. Lean v4.37.0-rc1 was installed, the compiled files of Mathlib were fetched from its cache (
lake exe mathlib/cache get; Mathlib was not compiled), andlake build -vwas run withLAKE_ARTIFACT_CACHE=false. No compiled file of the project was fetched: every module of the project was compiled in the job.手順.Lean v4.37.0-rc1 を入れ,Mathlib のコンパイル済みファイルをそのキャッシュから取得し(lake exe mathlib/cache get.Mathlib はコンパイルしていない),LAKE_ARTIFACT_CACHE=falseを設定してlake build -vを実行した.プロジェクトのコンパイル済みファイルは取得していない.プロジェクトのモジュールは,すべてジョブの中でコンパイルした. - Place. The build directory was on the local NVMe disk of the node and was empty at the start; nothing was saved or resumed.場所.ビルドのディレクトリはノードのローカル NVMe ディスクに置き,開始時は空だった.途中の保存や再開はしていない.
- Threads.
LEAN_NUM_THREADS, the number of modules Lake compiles at the same time, was set to the number of allocated cores (1 GPU = 32 cores, 2 GPU = 64 cores, 4 GPU = 144 cores). The three jobs ran on different nodes at overlapping times; each thread count was run once.スレッド数.Lake が同時にコンパイルするモジュールの数LEAN_NUM_THREADSを,割り当てたコア数にした(1 GPU = 32 コア,2 GPU = 64 コア,4 GPU = 144 コア).3 つのジョブは別々のノードで,重なる時間帯に実行した.どのスレッド数も 1 回だけ実行した. - Measurement. The time is the wall-clock time of
lake build, from its start to its end. Every 15 seconds the job recorded the number of.oleanfiles written, the number ofleanprocesses, and the CPU time used by the job (from its control group).計測.時間はlake buildの開始から終了までの実時間である.ジョブは 15 秒ごとに,できた.oleanファイルの数,leanプロセスの数,ジョブが使った CPU 時間(コントロールグループの値)を記録した. - Machine. RIKYU (RIKEN R-CCS): one compute node with 144 cores (Neoverse-V2, aarch64). Lake version 5.0.0-src+0b77e12 (Lean version 4.37.0-rc1).計算機.RIKYU (RIKEN R-CCS) の計算ノード 1 台(144 コア,Neoverse-V2,aarch64).Lake version 5.0.0-src+0b77e12 (Lean version 4.37.0-rc1).
Results結果
| threadsスレッド | GPUsGPU | lake build, wall-clocklake build の実時間 | cores in use, mean使用コア数の平均 | share of the allocated cores割り当てコアに対する割合 | time to 90% of the filesファイルの 90% までの時間 | time for the last 10%残り 10% の時間 | CPU time (core-hours)CPU 時間(コア時間) |
|---|---|---|---|---|---|---|---|
| 144 | 4 | 57 min 49 s57 分 49 秒 | 122.5 | 85% | 44 min 43 s44 分 43 秒 | 13 min 06 s13 分 06 秒 | 117.8 |
| 64 | 2 | 1 h 40 min1 時間 40 分 | 61.5 | 96% | 1 h 28 min1 時間 28 分 | 11 min 54 s11 分 54 秒 | 102.8 |
| 32 | 1 | 2 h 29 min2 時間 29 分 | 31.7 | 99% | 2 h 17 min2 時間 17 分 | 12 min 24 s12 分 24 秒 | 78.7 |
“Cores in use” is the CPU time of the job divided by the wall-clock time of lake build; it includes Lake itself.
「使用コア数」は,ジョブの CPU 時間を lake build の実時間で割ったもので,Lake 自身の分を含む.
| threadsスレッド | exit code of lake buildlake build の終了コード | failed jobs失敗したジョブ | error linesエラー行 | sorry warningssorry の警告 | modules compiledコンパイルしたモジュール | warning lines警告の行 | smallest free memory of the nodeノードの空きメモリの最小値 |
|---|---|---|---|---|---|---|---|
| 144 | 0 | 0 | 0 | 0 | 59,868 | 257,313 | 1,402 GiB |
| 64 | 0 | 0 | 0 | 0 | 59,868 | 257,313 | 1,447 GiB |
| 32 | 0 | 0 | 0 | 0 | 59,868 | 257,313 | 1,499 GiB |
59,868 of the 59,869 files were compiled. The remaining one is Challenge.lean, the statement file of the Comparator set-up of the repository; it is not imported by Main and is not part of the default build target.
59,869 ファイルのうち 59,868 個をコンパイルした.残りの 1 つは,リポジトリの Comparator の設定で言明を述べるファイル Challenge.lean で,Main からは import されず,既定のビルド対象に入っていない.
.olean files written (one per compiled module) against the time since the start of lake build.図 30. 3 本のビルドの進み方:できた .olean ファイルの数(コンパイルしたモジュール 1 つにつき 1 個)と,lake build の開始からの時間.Samples taken every 15 seconds, drawn once per minute.
15 秒ごとの標本を 1 分ごとに描いた.
Increase of the CPU time of the job (control group) in each minute, divided by 60 seconds.
ジョブの CPU 時間(コントロールグループ)の 1 分ごとの増分を 60 秒で割った値.
The build at 144 threads has two parts. For about 50 minutes nearly all cores were busy; 99% of the files were written by 48 min 25 s. In the remaining 8 minutes at most 10 cores were busy. With fewer cores this last part is shorter or absent: the modules of the chain are finished one by one while the other work is still going on.
144 スレッドのビルドは 2 つの部分に分かれる.開始から 約 50 分はほぼ全コアが使われ,ファイルの 99% は 48 分 25 秒までにできた.残りの 約 8 分に使われたコアは 10 個以下である.コアが少ないと,この終盤は短いか,現れない.鎖の上のモジュールが,ほかの仕事が終わる前に順に片づいていくためである.
After the build, the build directory held 211 GiB: 140.6 GiB of .setup.json files, in which Lake lists the imports of each module (about 2.3 MiB each), 51.3 GiB of .olean.private files and 9.2 GiB of .olean files.
ビルド後のビルドディレクトリは 211 GiB だった.内訳は,Lake がモジュールごとに import の一覧を書く .setup.json が 140.6 GiB(1 つ 約 2.3 MiB),.olean.private が 51.3 GiB,.olean が 9.2 GiB である.
Threads and speedスレッド数と速さ
Data tableデータ表
| threadsスレッド | lake build, wall-clocklake build の実時間 | speed relative to 32 threads32 スレッドに対する速さの比 | cores relativeコア数の比 |
|---|---|---|---|
| 32 | 2 h 29 min2 時間 29 分 | 1.00 | 1.00 |
| 64 | 1 h 40 min1 時間 40 分 | 1.48 | 2.00 |
| 144 | 57 min 49 s57 分 49 秒 | 2.58 | 4.50 |
- 32 → 64 threads: 1.48 times faster for 2 times the cores (1.48 per doubling).32 → 64 スレッド:コア数 2 倍に対して 1.48 倍(2 倍あたり 1.48 倍).
- 64 → 144 threads: 1.74 times faster for 2.25 times the cores (1.60 per doubling).64 → 144 スレッド:コア数 2.25 倍に対して 1.74 倍(2 倍あたり 1.60 倍).
- 32 → 144 threads: 2.58 times faster for 4.50 times the cores (1.55 per doubling).32 → 144 スレッド:コア数 4.50 倍に対して 2.58 倍(2 倍あたり 1.55 倍).
The shortfall from proportionality has two parts.
比例から外れる分は,2 つに分けられる.
- The same build takes more CPU time. The CPU time of the job was 78.7 core-hours at 32 threads, 102.8 core-hours at 64 threads, 117.8 core-hours at 144 threads. At 144 threads the build did 1.5 times the computation of the build at 32 threads. In all three builds the load of the node (threads waiting to run) was two to two and a half times the number of allocated cores: a
leanprocess uses several threads, and they compete for the cores. Competition for memory bandwidth is another possible cause. We did not separate the two.同じビルドに使う CPU 時間が増える.ジョブの CPU 時間は,32 スレッドで 78.7 コア時間,64 スレッドで 102.8 コア時間,144 スレッドで 117.8 コア時間だった.144 スレッドのビルドは,32 スレッドのビルドの 1.5 倍の計算をしている.どのビルドでも,ノードの負荷(実行待ちのスレッド数)は割り当てたコア数の 2〜2.5 倍あった.leanプロセス 1 つが複数のスレッドを使い,それらがコアを取り合っている.メモリ帯域の取り合いも原因として考えられる.この 2 つは切り分けていない. - Cores are idle at the end. The mean share of the allocated cores in use was 99% at 32 threads, 96% at 64 threads, 85% at 144 threads.終盤にコアが空く.割り当てたコアのうち使われていた割合の平均は,32 スレッドで 99%,64 スレッドで 96%,144 スレッドで 85% だった.
Together: 4.50 times the cores, divided by 1.50 for the larger CPU time and multiplied by 0.86 for the lower share in use, gives 2.58, the measured ratio of 2.58.
合わせると,コア数 4.50 倍を,CPU 時間の増加の 1.50 で割り,使用率の低下の 0.86 を掛けて,2.58 倍になる.実測の比は 2.58 倍である.
On the distributed tree with Lean v4.33.1, short trials had shown the opposite at 144 threads: the build rate fell to about 176 modules per minute, below the rate at 96 threads (Build analysis, section 5). That did not happen here: at 144 threads, 59,868 modules were compiled in 57 min 49 s, about 1,036 per minute on average. The version of Lake, the number of modules and the size of the import closures all differ between the two cases; we did not isolate the cause.
配布時のツリーと Lean v4.33.1 では,短い試行で,144 スレッドにすると逆の結果が出ていた.ビルド速度は毎分 約 176 モジュールに落ち,96 スレッドのときより遅かった(ビルドの解析,第 5 節).今回はそれが起きなかった.144 スレッドで,59,868 モジュールを 57 分 49 秒でコンパイルしており,平均で毎分 約 1,036 モジュールである.2 つの場合では,Lake の版,モジュール数,import の閉包の大きさがどれも違う.原因は切り分けていない.
What the build graph allowsビルドグラフから決まる限界
Lake compiles one module (one .lean file) per lean process, and starts a module when all the modules it imports are done. The time of a build is therefore set by three things: the total work (the sum of the module times), the longest chain of modules that import one another, and the fixed cost of each module (starting the process and loading its imports).
Lake は,モジュール(.lean ファイル)1 つを lean プロセス 1 つでコンパイルし,import するモジュールがすべてできてから,そのモジュールを始める.したがってビルドの時間は,仕事量の合計(モジュール時間の和),互いに import し合うモジュールの最長の鎖,モジュールごとの固定費(プロセスの起動と import の読み込み),の 3 つで決まる.
From the import graph and the module times of the build at 144 threads we simulated a build in which a free core takes a module that is ready, in two orders: the module that became ready first, and the module with the longest chain of work still depending on it. The simulation contains neither the work of Lake itself nor the change of the module times with the load.
import のグラフと,144 スレッドのビルドのモジュール時間から,空いたコアが準備のできたモジュールを取るビルドを模擬した.取る順序は 2 通りで,先に準備ができたものからと,それに依存する仕事の鎖が最も長いものからである.模擬には,Lake 自身の処理も,負荷によるモジュール時間の変化も入っていない.
| modules at the same time同時に動かせる数 | 9282d3a1: simulated, first ready first9282d3a1:模擬(準備ができた順) | 9282d3a1: simulated, longest chain first9282d3a1:模擬(最長の鎖を優先) | 9282d3a1: measured9282d3a1:実測 | distributed tree: simulated, first ready first配布時のツリー:模擬(準備ができた順) | distributed tree: simulated, longest chain first配布時のツリー:模擬(最長の鎖を優先) |
|---|---|---|---|---|---|
| 32 | 3 h 49 min3 時間 49 分 | 3 h 36 min3 時間 36 分 | 2 h 29 min2 時間 29 分 | 12 h 36 min12 時間 36 分 | 12 h 29 min12 時間 29 分 |
| 64 | 2 h 05 min2 時間 05 分 | 1 h 48 min1 時間 48 分 | 1 h 40 min1 時間 40 分 | 6 h 24 min6 時間 24 分 | 6 h 16 min6 時間 16 分 |
| 144 | 1 h 08 min1 時間 08 分 | 48 min 40 s48 分 40 秒 | 57 min 49 s57 分 49 秒 | 2 h 57 min2 時間 57 分 | 2 h 48 min2 時間 48 分 |
| 192 | 56 min 04 s56 分 04 秒 | 36 min 43 s36 分 43 秒 | — | 2 h 16 min2 時間 16 分 | 2 h 07 min2 時間 07 分 |
| 288 | 45 min 36 s45 分 36 秒 | 36 min 14 s36 分 14 秒 | — | 1 h 35 min1 時間 35 分 | 1 h 25 min1 時間 25 分 |
| 576 | 36 min 29 s36 分 29 秒 | 36 min 14 s36 分 14 秒 | — | 1 h 01 min1 時間 01 分 | 49 min 06 s49 分 06 秒 |
| 1,152 | 36 min 14 s36 分 14 秒 | 36 min 14 s36 分 14 秒 | — | 50 min 34 s50 分 34 秒 | 49 min 06 s49 分 06 秒 |
| no limit制限なし | 36 min 14 s36 分 14 秒 | 36 min 14 s36 分 14 秒 | — | 49 min 06 s49 分 06 秒 | 49 min 06 s49 分 06 秒 |
The simulation of 9282d3a1 uses the module times measured at 144 threads, which are longer than under a lighter load; its rows for fewer threads therefore do not match the measured times. The simulation of the distributed tree uses the times of the build of step 1 (64 threads).
9282d3a1 の模擬は 144 スレッドで測ったモジュール時間を使っている.この時間は負荷が軽いときより長いので,スレッドの少ない行は実測と合わない.配布時のツリーの模擬は,工程 1 のビルド(64 スレッド)の時間を使っている.
- The longest chain takes 36 min 14 s and has 48 modules. Its 7 slowest modules (329, 306, 220, 205, 187, 145, 135 s) make up 70% of it. The idle end of the build at 144 threads is the end of this chain.最長の鎖は 36 分 14 秒で,48 モジュールからなる.時間のかかる上位 7 モジュール(329,306,220,205,187,145,135 秒)が,鎖の 70% を占める.144 スレッドのビルドの終盤でコアが空くのは,この鎖の終わりの部分である.
- The length of the chain depends on the load under which it was measured. With the module times of each build, the same chain takes 36 minutes (144 threads), 35 minutes (64 threads), 26 minutes (32 threads). Under a lighter load a module takes less time, so with enough cores the lower limit of the build is closer to the smallest of these values.鎖の長さは,測ったときの負荷で変わる.それぞれのビルドのモジュール時間で計算すると,同じ鎖は,144 スレッドで 36 分,64 スレッドで 35 分,32 スレッドで 26 分かかる.負荷が軽いほどモジュール 1 つの時間が短いので,コアを十分に増やしたときのビルドの下限は,このうち最も小さい値に近いと考えられる.
- The measured 57.8 minutes at 144 threads lie between the two simulations: 67.5 minutes when the module that became ready first is taken, 48.7 minutes when the longest chain is preferred.144 スレッドの実測(57.8 分)は,2 つの模擬の値の間にある.準備ができた順に取る模擬は 67.5 分,最長の鎖を優先する模擬は 48.7 分だった.
- The distributed tree was limited by the work, not by the chain. Its longest chain takes 49 minutes and its work is 399 core-hours. The simulation at 64 threads gives 6 h 24 min, close to the time of the 64-thread job that did most of the build of step 1 (Overview, section 2).配布時のツリーのビルドは,鎖ではなく仕事量で決まっていた.最長の鎖は 49 分,仕事量は 399 コア時間である.64 スレッドの模擬は 6 時間 24 分で,工程 1 のビルドの大部分を行った 64 スレッドのジョブの時間に近い(概要,第 2 節).
Measured: number of lean processes, mean of the 15-second samples of each minute. The simulated build ends later than the measured one: Lake does not take the modules in the simulated order.
実測は lean プロセスの数で,15 秒ごとの標本の 1 分ごとの平均.模擬のビルドは実測より遅く終わる.Lake がモジュールを取る順序は,模擬の順序と同じではない.
The 8 slowest modules on the longest chain最長の鎖の上で時間のかかるモジュール(上位 8)
| moduleモジュール | time at 144 threads (s)144 スレッドでの時間(秒) |
|---|---|
Development. | 329 |
Development. | 306 |
Development. | 220 |
Development. | 205 |
Development. | 187 |
Development. | 145 |
Development. | 135 |
Development. | 81 |
Cost, and what was not checked費用と,確認していないこと
| threadsスレッド | run実行 | jobジョブ | started開始 | GPUsGPU | elapsed time of the jobジョブの経過時間 | GPU-hoursGPU 時間 | cost (yen)費用(円) |
|---|---|---|---|---|---|---|---|
| 144 | 20261126-021844-build-bench144 | 396430 | 2026-11-26 02:18 | 4 | 1 h 03 min1 時間 03 分 | 4.20 | 1,260 |
| 64 | 20261126-022525-build-bench64 | 396432 | 2026-11-26 02:25 | 2 | 1 h 47 min1 時間 47 分 | 3.55 | 1,066 |
| 32 | 20261126-022527-build-bench32 | 396433 | 2026-11-26 02:25 | 1 | 2 h 35 min2 時間 35 分 | 2.58 | 775 |
| sum和 | 5 h 25 min5 時間 25 分 | 10.34 | 3,101 |
The time of a job also contains the download of the sources, of the toolchain and of the Mathlib cache, before lake build starts.
ジョブの時間には,lake build を始める前の,ソース,toolchain,Mathlib のキャッシュの取得が入っている.
- Fewer cores were cheaper. The job with the fewest cores cost the least, because the same build used less CPU time and left fewer cores idle. These jobs are in the table of all jobs on the overview page; they are not part of the compute for one pass shown there.コアが少ないほど安かった.コアが最も少ないジョブが最も安い.同じビルドに使う CPU 時間が少なく,空くコアも少ないためである.これらのジョブは概要のページの全ジョブの内訳に入っているが,同じページに示す 1 回分の計算資源には入っていない.
- Comparator was not run on this tree. The builds show that the tree compiles without errors and without
sorrywarnings. They do not compare its statements with a challenge file and do not check its axioms.このツリーに対して Comparator は実行していない.ビルドが示すのは,このツリーがエラーなし,sorryの警告なしでコンパイルできることである.言明を課題のファイルと比べることも,公理を調べることもしていない. - Each thread count was run once, so the times carry no estimate of their run-to-run variation.どのスレッド数も 1 回しか実行していない.したがって,実行ごとのばらつきは分からない.
- Causes were not separated. We did not measure how much of the change against the distributed tree comes from the new version of Lean and how much from the changes in the tree, nor why the CPU time of the build grows with the number of cores.原因は切り分けていない.配布時のツリーとの違いのうち,Lean の版によるものとツリーの変化によるものの割合は測っていない.コア数とともにビルドの CPU 時間が増える理由も調べていない.
- One machine. All times are for one kind of node; other processors and other numbers of cores were not measured. The jobs with fewer than all cores of a node were allocated part of a node, and the rest of that node was available to other jobs.計算機は 1 種類.時間はすべて 1 種類のノードでのものである.ほかのプロセッサやコア数では測っていない.ノードの全コアより少ないコアで実行したジョブは,ノードの一部を割り当てられており,同じノードの残りはほかのジョブが使える状態だった.