Build and verification report

ビルド・検証報告

Independent build report on Alpöge’s Lean formal proof of the Riemann HypothesisAlpögeによるRiemann予想のLean形式証明の独立ビルド報告

Statement by the Lean and Mathlib communities (notice added on 2026-11-22)Lean・Mathlib コミュニティの声明(2026-11-22 追記)

On 2026-11-21 the Lean and Mathlib communities published a joint statement, endorsed by the Lean FRO and the Mathlib Initiative, on the proof contained in the project examined here: Lean verification of the Riemann Hypothesis. It says: “We hereby certify that both the statement and the proof of the Riemann Hypothesis are correct.”

2026-11-21,Lean コミュニティと Mathlib コミュニティは,このページが対象とするプロジェクトの証明について,共同声明 Lean verification of the Riemann Hypothesis を公表した(Lean FRO と Mathlib Initiative が賛同).声明には次の一文がある:“We hereby certify that both the statement and the proof of the Riemann Hypothesis are correct.”(リーマン予想の主張と証明がともに正しいことを認定する,という趣旨)

The Comparator setup of the community, with its notes and results, is in the repository leanprover-community/riemann-hypothesis. For the status of the proof, refer to these two sources. This page is a record of what we ran ourselves, and the Comparator run in section 3 is separate from the community's.

コミュニティによる公式の Comparator の設定と,その記録・結果は,リポジトリ leanprover-community/riemann-hypothesis にある.証明の正否については,この 2 つを参照されたい.このページは我々自身が実行した内容の記録であり,3 節の Comparator の実行はコミュニティのものとは別である.

This page reports what an independent party ran on the project and what came out. It consists of 175,187 Lean modules (17,549,402 lines) on top of Mathlib. Its Main.lean states theorem riemannHypothesis : RiemannHypothesis and 4 related theorems.

このページは,独立した第三者がこのプロジェクトに対して何を実行し,どのような結果が出たかを報告する.プロジェクトは 175,187 個の Lean モジュール(17,549,402 行)からなり,Mathlib の上に構築されている.その Main.lean には theorem riemannHypothesis : RiemannHypothesis と,関連する 4 個の定理が述べられている.

We (1) built the project with lake build on RIKYU (RIKEN R-CCS), (2) rebuilt and checked it with Comparator, a checking tool from the Lean FRO, and (3) computed statistics of the file structure and of the network of proof objects (the dependency graph of declarations). The page reports results only; it does not assess the mathematics.

我々は (1) RIKYU (RIKEN R-CCS) 上で lake build によりプロジェクトをビルドし,(2) Lean FRO の検査ツール Comparator により再ビルドと検査を行い,(3) ファイル構造と証明オブジェクトのネットワーク(宣言の依存グラフ)の統計を計算した.このページは結果のみを報告し,数学的内容の評価は行わない.

The report has 9 pages, reached through the tabs at the top:

この報告は 9 ページからなり,上部のタブで移動できる:

  • Overview (this page): the sources and the set-up, the record of the build (step 1), and our runs of the standalone Comparator (step 2).概要(このページ):入手元と環境,ビルドの記録(工程 1),単体の Comparator の実行(工程 2).
  • Official route: our own run of the checking procedure published in the community repository (lake comparator on two exports), with its deviations from that procedure. State: no verdict (time budget).公式手順:コミュニティのリポジトリが公開している検査手順(2 つのエクスポートに対する lake comparator)を我々自身で実行した記録と,その手順との相違点.状態:判定なし(制限時間).
  • Build analysis: statistics of the build logs (time per module and per component, messages, thread scaling) and the file structure of the sources.ビルドの解析:ビルドログの統計(モジュールごと・コンポーネント別の時間,メッセージ,スレッド数に対するスケーリング)と,ソースのファイル構造.
  • Proof analysis: statistics of the network of proof objects (the dependency graph of declarations), maps of it, the use of the sub-theories, and indicators.証明の解析:証明オブジェクトのネットワーク(宣言の依存グラフ)の統計,その可視化,部分理論の使われ方,指標.
  • Parallel build: a later build of another tree. The cleaned-up tree of the community repository was built from scratch at three thread counts; the page gives the times, what changed in the tree, and what the build graph allows.並列ビルド:別のツリーの,後から行ったビルド.コミュニティのリポジトリの整理後のツリーを,3 通りのスレッド数で最初からビルドした.所要時間,ツリーの変化,ビルドグラフから決まる限界を示す.
  • Shorter proof: another project. A shorter Lean proof of the same five theorems, published by other authors in a repository of its own (two editions); our build of both editions and our run of the Comparator set-up that it ships.短縮版:別のプロジェクト.別の作者が独立したリポジトリで公開している,同じ 5 つの定理のより短い Lean の証明(2 つの版).両方の版のビルドと,リポジトリに含まれる Comparator の設定の実行を記録する.
  • Sernau: proof: the same statistics, maps and indicators of the proof network as on the page of the proof analysis, for the compact edition of the shorter proof.Sernau 版の解析:証明の解析のページと同じ証明ネットワークの統計,可視化,指標を,短縮版(圧縮版)について示す.
  • Alpöge vs Sernau: the distributed proof and the shorter proof side by side, by the same analysis of the proof network: size, use of Mathlib, coinciding statements, sub-theories, and how the shortening affects the build and the check.Alpöge 版と Sernau 版:配布された証明と短縮版の証明を,同じ証明ネットワークの解析で並べて比べる.規模,Mathlib の使い方,一致する言明,部分理論,短縮がビルドと検査に与える影響.
  • Methods: tools, definitions and limitations, for all pages.方法:すべてのページに共通の,ツール,定義,制約.

Data assembled: 2026-11-26. Page generated: 2026-11-26.

データ集約日:2026-11-26.ページ生成日:2026-11-26.

Modules built / totalビルド済みモジュール数 / 総数
175,187 / 175,187
build: completeビルド:完了
Error lines in the build logビルドログ中のエラー行
0
0 failed jobs失敗したジョブ 0 件
sorry warnings in the build logビルドログ中の sorry 警告
0
sorry tokens in the sources: 0ソース中の sorry トークン:0
Comparator verdictComparator の判定
Accepted受理
Comparator: acceptedComparator:受理
Procedure of the community repository, run by usコミュニティのリポジトリの手順(我々の実行)
No verdict (time budget)判定なし(制限時間)
Lean paranoid: cannot start on these nodes; not run; nanoda: accepted; Lean default kernel: stopped at the time budget, no resultLean paranoid:このノードでは起動できず,実行せず;nanoda:受理;Lean default kernel:制限時間で停止,結果なし
Axioms used by the main theorems主定理が用いる公理
3
standard axioms only標準公理のみ
Classical.choice, Quot.sound, propext
Constants in the projectプロジェクト内の定数
1,905,921
1,548,655 theorems, 331,347 definitions定理 1,548,655,定義 331,347
Compute for one pass: build, Comparator, analysis1 回分の計算資源(ビルド,Comparator,解析)
104.47 GPU-hours104.47 GPU 時間
90 h 41 min of jobs; 3,343.0 core-hours allocated; 31,341 yen. Trials and unfinished runs are not counted (section 2).ジョブの経過時間 90 時間 41 分;割り当てコア時間 3,343.0;31,341 円.試行と未完了の実行は含まない(第 2 節).
What this report does and does not establishこの報告が示すこと・示さないこと

What it establishes示すこと

  • If the build finishes with 0 errors and Comparator accepts, then the 5 stated theorems are derived in Lean's logic from the permitted axioms (propext, Quot.sound, Classical.choice), as checked by the Lean kernel, and their statements are the ones written in the challenge file.ビルドがエラー 0 件で完了し,かつ Comparator が受理した場合,述べられた 5 個の定理は,許可された公理(propext, Quot.sound, Classical.choice)から Lean の論理の中で導出されており,そのことが Lean カーネルによって検査されている.また定理の言明はチャレンジファイルに書かれたものと一致している.
  • This holds relative to a trusted base: the Lean kernel; the definitions in terms of which the statements are written (those of Mathlib, and those that the challenge file takes from the project's Statements.lean); the toolchain (Lean, Lake, lean4export, Comparator); and the sandbox and machine on which they ran.これは次の信頼基盤に対する相対的な主張である:Lean カーネル,定理の言明を記述している定義(Mathlib の定義,およびチャレンジファイルがプロジェクトの Statements.lean から取り込む定義),ツールチェーン(Lean,Lake,lean4export,Comparator),およびそれらを実行したサンドボックスと計算機.

What it does not establish示さないこと

  • It is not a human review of the proof, and it does not assert that the mathematics is correct or incorrect.これは人間による証明の査読ではなく,数学的内容が正しいとも誤っているとも主張しない.
  • It says nothing about the readability of the code, about the informal argument behind it, or about how the development was produced.コードの可読性,背後にある非形式的な議論,この形式化がどのように作られたかについては何も述べない.
  • The statistics in sections 6 and 7 describe the size and shape of the development; they are not evidence for or against correctness.第 6 節と第 7 節の統計は形式化の規模と形を記述するものであり,正しさを支持する証拠でも否定する証拠でもない.

Status in this editionこの版での状況

  • Build: The build finished: all 175,187 modules were built, with 0 error lines in the log and 0 failed jobs.ビルド:ビルドは完了した.全 175,187 モジュールがビルドされ,ログ中のエラー行は 0 件,失敗したジョブは 0 件であった.
  • Comparator: Comparator ran to the end and accepted the solution: all of its checks passed for the 5 listed theorems. Final line of its output: Your solution is okay!.Comparator:Comparator は最後まで実行され,解答を受理した.列挙した 5 個の定理について,すべての検査に合格した.出力の最終行:Your solution is okay!.
  • Axioms (our own graph analysis): The cones of the 5 main theorems contain 3 axioms, all of them standard axioms of Lean (Classical.choice, Quot.sound, propext), and no axiom is declared in a project module.公理(我々自身のグラフ解析):5 個の主定理のコーンに含まれる公理は 3 個で,すべて Lean の標準公理(Classical.choice, Quot.sound, propext)である.プロジェクトのモジュール内で宣言された公理はない.
  • Both conditions of the first item hold in the data of this edition.この版のデータでは,第 1 項の 2 つの条件はともに満たされている.
  • Separately from the two conditions above, we ran the checking procedure of the community repository ourselves (page Official route, section 4): The job stopped lake comparator at its time budget before it had ended; there is no verdict. Checkers: Lean paranoid: cannot start on these nodes; not run; nanoda: accepted; Lean default kernel: stopped at the time budget, no result.上の 2 つの条件とは別に,コミュニティのリポジトリの検査手順を我々自身で実行している(ページ「公式手順」,第 4 節):ジョブは,lake comparator が終了する前に制限時間で停止させた.判定は出ていない.検査器:Lean paranoid:このノードでは起動できず,実行せず;nanoda:受理;Lean default kernel:制限時間で停止,結果なし.

1Source and setup入手元と環境

The sources were downloaded from the project's site as a gzipped tarball split into parts, and were not modified. The table gives the location, size and checksum of what was downloaded.

ソースは,分割された gzip 圧縮 tar アーカイブとしてプロジェクトのサイトからダウンロードし,変更を加えていない.下の表にダウンロードしたものの場所,サイズ,チェックサムを示す.

Siteサイトhttps://alpo.ge
URL patternURL のパターンhttps://alpo.ge/lean.tar.gz.part{01..14}
Number of parts分割数14
Total size合計サイズ239,275,554 bytes (239 MB)239,275,554 バイト(239 MB)
SHA-256 of the concatenated parts連結したファイルの SHA-2569631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc
Downloaded onダウンロード日2026-11-21

Commands to obtain the same data:

同じデータを取得するコマンド:

for i in {01..14}; do
  curl -fL --retry 3 -O "https://alpo.ge/lean.tar.gz.part${i}" || break
done
cat lean.tar.gz.part* | shasum -a 256
cat lean.tar.gz.part* | tar -xzf -

The Lean projectLean プロジェクト

Lean toolchainLean ツールチェーンleanprover/lean4:v4.33.1
Mathlib revisionMathlib のリビジョン0df444a360eaa60ab8c11dca51a86af692955474
Lake package nameLake パッケージ名tree
Modules (.lean files)モジュール数(.lean ファイル)175,187
Lines行数17,549,402
Source sizeソースのサイズ1.03 GB
Directoriesディレクトリ数3,614

The main theorems主定理

Main.lean states the following 5 theorems. Each line gives the name of a theorem and the proposition it is stated to prove; the last column of the table says where that proposition is defined.

Main.lean には次の 5 個の定理が述べられている.各行は定理の名前と,その定理が証明するとされている命題である.表の最後の列は,その命題がどこで定義されているかを示す.

theorem riemannHypothesis : RiemannHypothesis
theorem riemannZeta_eq_zero_re : RiemannZetaZerosOnLine
theorem LFunction_ne_zero_of_half_lt_re : DirichletLNonvanishingRightOfHalf
theorem LFunction_eq_zero_re : DirichletLZerosOnLine
theorem LFunction_eq_zero_re_of_isPrimitive : PrimitiveDirichletLZerosOnLine
##theorem定理proposition命題proposition defined in命題の定義場所
1riemannHypothesisRiemannHypothesisMathlib
2riemannZeta_eq_zero_reRiemannZetaZerosOnLineStatements.lean
3LFunction_ne_zero_of_half_lt_reDirichletLNonvanishingRightOfHalfStatements.lean
4LFunction_eq_zero_reDirichletLZerosOnLineStatements.lean
5LFunction_eq_zero_re_of_isPrimitivePrimitiveDirichletLZerosOnLineStatements.lean

Main.lean:

Main.lean:

import Statements
import Supplements.Kernels.MainTheoremsAll

theorem riemannHypothesis : RiemannHypothesis := rhOfAll

theorem riemannZeta_eq_zero_re : RiemannZetaZerosOnLine := rhOfAll

theorem LFunction_ne_zero_of_half_lt_re : DirichletLNonvanishingRightOfHalf := allChi

theorem LFunction_eq_zero_re : DirichletLZerosOnLine := claimAll.2.1

theorem LFunction_eq_zero_re_of_isPrimitive : PrimitiveDirichletLZerosOnLine := critAll

Definitions of the propositions that are not taken from Mathlib (Statements.lean):

Mathlib 由来でない命題の定義(Statements.lean):

import Mathlib

def RiemannZetaZerosOnLine : Prop :=
  ∀ s : ℂ, riemannZeta s = 0 → (¬∃ n : ℕ, s = -2 * ((n : ℂ) + 1)) → s ≠ 1 → s.re = 1 / 2

def DirichletLNonvanishingRightOfHalf : Prop :=
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
    1 / 2 < s.re → (χ ≠ 1 ∨ s ≠ 1) → DirichletCharacter.LFunction χ s ≠ 0

def DirichletLZerosOnLine : Prop :=
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
    0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2

def PrimitiveDirichletLZerosOnLine : Prop :=
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive →
    ∀ s : ℂ, 0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2

Machine計算機

SystemシステムRIKYU (RIKEN R-CCS)
NodeノードNVIDIA GB200 NVL4: 2 x 72-core Arm Neoverse-V2 (aarch64), 4 GPUs, 1,691 GiB RAM
Operating systemOSUbuntu 24.04.5, Linux 7.0.0-1025-nvidia-64k (64 KiB pages)
CPU cores allocated per GPUGPU 1 基あたりの割り当て CPU コア数32
Price料金300 yen per GPU-hour1 GPU 時間あたり 300 円

Lean does not use the GPUs. The GPU-hour is the accounting unit of the machine: one GPU is allocated together with 32 CPU cores, so one GPU-hour corresponds to 32 allocated core-hours.

Lean は GPU を使用しない.GPU 時間はこの計算機の課金単位であり,GPU 1 基は CPU 32 コアとともに割り当てられる.したがって 1 GPU 時間は割り当てコア時間 32 に相当する.

2Step 1: build工程 1:ビルド

Method方法

Step 1 is an ordinary build with Lake, the build tool of Lean, on one node of RIKYU (RIKEN R-CCS). The command was lake exe cache get && lake build -v. Lake elaborates the modules in dependency order. While a module is elaborated, each declaration is type-checked by the Lean kernel before it is added to the environment, and the result is written to an .olean file.

工程 1 は,RIKYU (RIKEN R-CCS) の 1 ノード上で,Lean のビルドツール Lake による通常のビルドである.実行したコマンドは lake exe cache get && lake build -v である.Lake は依存関係の順にモジュールをエラボレートする.モジュールのエラボレート中,各宣言は環境に追加される前に Lean カーネルによって型検査され,結果は .olean ファイルに書き出される.

lake exe cache get downloads the prebuilt .olean files of Mathlib, so Mathlib itself was not rebuilt in this step.

lake exe cache get は Mathlib のビルド済み .olean ファイルをダウンロードする.したがってこの工程では Mathlib 自体は再ビルドしていない.

A build that finishes without errors shows that Lean accepted every module. It is a weaker check than step 2, because the project's own build configuration and metaprograms run during the build. The statistics below are computed from the verbose build logs by analysis/build_log_stats.py.

エラーなしで完了したビルドは,Lean がすべてのモジュールを受理したことを示す.ただしビルド中にはプロジェクト自身のビルド設定やメタプログラムが実行されるため,工程 2 より弱い検査である.以下の統計は,詳細ビルドログから analysis/build_log_stats.py により計算した.

Outcome結果

Build: completeビルド:完了

The build finished: all 175,187 modules were built, with 0 error lines in the log and 0 failed jobs.

ビルドは完了した.全 175,187 モジュールがビルドされ,ログ中のエラー行は 0 件,失敗したジョブは 0 件であった.

The build log contains 0 warnings of the form “declaration uses sorry”.

ビルドログには「declaration uses sorry」という形の警告が 0 件含まれる.

State (meta.json)状態(meta.json)complete
Modules built / totalビルド済み / 総モジュール数175,187 / 175,187 (100.0%)
Modules with a “Built” line in the analysed logs解析したログ中に「Built」行のあるモジュール数175,186
Failed jobs失敗したジョブ0
Error linesエラー行0
sorry warningssorry 警告0
Warning messages警告メッセージ491,673
Files with warnings警告のあるファイル数104,045
Wall-clock time実時間6 h 54 min6 時間 54 分
GPU-hours charged課金された GPU 時間13.30
Cost費用3,991 yen3,991 円
Lake jobs in totalLake のジョブ総数183,903
Log lines analysed解析したログの行数2,761,063

The build was run as the following batch jobs; a later job continues where the previous one stopped.

ビルドは次のバッチジョブとして実行した.後のジョブは前のジョブが止まったところから続行する.

run実行job idジョブ IDGPUsGPU 数threadsスレッド数modules at start開始時のモジュール数modules at end終了時のモジュール数elapsed経過時間job stateジョブの状態
20261121-011419-build-pilot37651713203,55818 min 07 s18 分 07 秒stopped at its time budget
20261121-015517-build3766001323,5585,17311 min 01 s11 分 01 秒stopped at its time budget
20261121-020627-build3766112645,173175,1876 h 24 min6 時間 24 分complete (lake build exit code 0)
Per-run figures computed from the logsログから計算した実行ごとの数値
run実行modules built in this runこの実行でビルドしたモジュール数sum of per-module timesモジュールごとの時間の合計coresコア数GPUsGPU 数architectureアーキテクチャelapsed経過時間job stateジョブの状態
20261121-011419-build-pilot3,5547 h 39 min7 時間 39 分321aarch6418 min 06 s18 分 06 秒done
20261121-015517-build1,6163 h 41 min3 時間 41 分321aarch6410 min 59 s10 分 59 秒done
20261121-020627-build170,016391 h 51 min391 時間 51 分642aarch646 h 24 min6 時間 24 分done

Notes

注記

Disk usageディスク使用量

The .olean files of the project occupy 94.6 GB.

プロジェクトの .olean ファイルは合計 94.6 GB である.

The statistics computed from the build logs (progress over time, build time per module and per component, the slowest modules, compiler messages and Lake jobs, the thread-scaling measurement) are on the page Build analysis, section 5.

ビルドログから計算した統計(時間経過,モジュールごと・コンポーネント別のビルド時間,最も遅いモジュール,コンパイラのメッセージと Lake のジョブ,スレッド数に対するスケーリングの測定)は,ページ「ビルドの解析」の第 5 節にある.

Cost費用

Compute for one pass over the project, without trial and error: the build of step 1, the one Comparator run that ended with acceptance, and the analysis of that build. Core-hours are the allocated cores multiplied by the time, not measured CPU time.

試行錯誤を除いた 1 回分の計算資源.ステップ 1 のビルド,受理で終わった 1 回の Comparator,そのビルドの解析の和である.コア時間は割り当てコア数に時間を掛けたものであり,CPU 時間の実測値ではない.

item項目elapsed time of the jobsジョブの経過時間GPU-hoursGPU 時間core-hoursコア時間yen円
Step 1: build of the tree as distributed (one build, continued over three jobs)ステップ 1: 配布時のツリーのビルド(1 回のビルドを 3 ジョブで継続)6 h 54 min6 時間 54 分13.30425.73,991
Step 2: Comparator v4.33.0, the accepted run (one run over 2 jobs: the sandboxed build was begun in a job that stopped at its time limit, and the accepted job continued from the saved build, exported and replayed)ステップ 2: Comparator v4.33.0.受理された実行(1 回の実行を 2 ジョブで.サンドボックス内のビルドは制限時間で止まったジョブで始め,受理されたジョブが保存済みのビルドから続けて,エクスポートと再生を行った)82 h 10 min82 時間 10 分89.542,865.226,861
Step 3: analysis of the build (dependency graph, statistics, kernel-time sample, lean4export measurement; one job)ステップ 3: ビルドの解析(依存グラフ,統計,カーネル時間の標本調査,lean4export の測定.1 ジョブ)1 h 38 min1 時間 38 分1.6352.2489
sum和90 h 41 min90 時間 41 分104.473,343.031,341

All jobs charged for this report came to 197.19 GPU-hours (59,157 yen). That total is larger because it also contains the environment tests, the thread-count experiments, the Comparator runs that stopped at their time limit, and the builds and analyses of other trees. It is not the cost of one check of the project.

この報告で課金された全ジョブの合計は 197.19 GPU 時間(59,157 円)である.こちらには,環境の確認,スレッド数の実験,制限時間で止まった Comparator の実行,別のツリーのビルドと解析が入っているので,上の和より大きい.1 回の検査にかかる費用ではない.

All jobs, trials and unfinished runs included全ジョブの内訳(試行と未完了の実行を含む)
item項目GPU-hoursGPU 時間core-hoursコア時間yen円
Environment and toolchain tests環境と toolchain の確認0.072.321
Step 1: build (three jobs)ステップ 1: ビルド(3 ジョブ)13.30425.73,991
Thread-count experiments (a cancelled 144-thread build, 64- and 96-thread trials)スレッド数の実験(取り消した 144 スレッドのビルド,64・96 スレッドの試行)2.1769.3650
Step 2: Comparator (tool build, pilot, runs)ステップ 2: Comparator(ツールのビルド,試行,本実行)120.313,849.936,092
Step 3: analysis jobsステップ 3: 分析ジョブ1.7355.4519
Community tree (commit f1f6d654): build, graph extraction, clustering and indicators (two runs)コミュニティのツリー(commit f1f6d654): ビルド,グラフの抽出,クラスタ分割,指標(2 回)1.1336.3340
Community procedure, our run (three environment checks; exports and judge)コミュニティの手順の実行(環境の確認 3 回,エクスポートと判定)23.98767.27,193
Diagnosis of the Lean default kernel on the solution export (one job, three allocator settings)解答のエクスポートに対する Lean の既定のカーネルの診断(1 ジョブ,アロケータの設定 3 通り)20.16645.26,049
Community tree after the clean-up (commit 9282d3a1): timing builds at 144, 64 and 32 threads整理後のコミュニティのツリー(commit 9282d3a1): 144・64・32 スレッドの計測ビルド10.34330.83,101
Shorter proof (repository lsernau/grh-lean, commit 72fead10): builds and Comparator runs of the two editions短縮版(リポジトリ lsernau/grh-lean,commit 72fead10): 2 つの版のビルドと Comparator3.621161,088
Comparison of the two versions: dependency graphs, maps, indicators and comparison of the shorter proof (seven short jobs)2 つの版の比較: 短縮版の依存グラフ,地図,指標,比較(短いジョブ 7 本)0.3812.1113
total合計197.196,310.159,157
  • Jobs still running when this page was generated are not included.このページの生成時に実行中だったジョブは含まない.
  • Costs are computed from the elapsed time of each job at 300 yen per GPU-hour (before tax).費用は,各ジョブの経過時間に 1 GPU 時間 300 円(税別)を掛けて計算したものである.

3Step 2: Comparator工程 2:Comparator

This section reports our runs of the standalone Comparator with a challenge file that we wrote. The checking procedure published in the community repository differs from it in the challenge file (it imports Mathlib only), in the tool (lake comparator of Lean v4.36.0, working from two export files) and in the checkers; our run of that procedure is reported separately, on the page Official route (section 4).

この節は,我々が書いたチャレンジファイルを用いた,単体の Comparator の実行を報告する.コミュニティのリポジトリが公開している検査手順は,チャレンジファイル(Mathlib だけを import する),ツール(2 つのエクスポートファイルから動作する Lean v4.36.0 の lake comparator),検査器の点でこれと異なる.その手順を我々が実行した結果は,ページ「公式手順」(第 4 節)に別に報告する.

What Comparator checksComparator が検査すること

Comparator is a tool from the Lean FRO for judging whether a Lean project proves a given list of theorems. It is given a challenge module that states the theorems, a solution module that is claimed to prove them, the names of the theorems, and the list of axioms that may be used. As described in its documentation, it then:

Comparator は,ある Lean プロジェクトが与えられた定理の一覧を証明しているかを判定するための,Lean FRO のツールである.定理を述べたチャレンジモジュール,それらを証明していると主張される解答モジュール,定理の名前,使用を許可する公理の一覧を入力とする.ドキュメントによれば,Comparator は次のことを行う:

Versions and configurationバージョンと設定

ComparatorComparatortag v4.33.0 (commit 3927ad38)
lean4exportlean4exportcommit 15f6055e
landrun (sandbox)landrun(サンドボックス)0.1.18 (commit ec104f6e)
built withビルドに用いたツールチェーンleanprover/lean4:v4.33.1

Configuration file given to Comparator:

Comparator に与えた設定ファイル:

{
  "challenge_module": "Challenge",
  "solution_module": "Main",
  "theorem_names": [
    "riemannHypothesis",
    "riemannZeta_eq_zero_re",
    "LFunction_ne_zero_of_half_lt_re",
    "LFunction_eq_zero_re",
    "LFunction_eq_zero_re_of_isPrimitive"
  ],
  "permitted_axioms": [
    "propext",
    "Quot.sound",
    "Classical.choice"
  ],
  "enable_nanoda": false
}

The 5 theorem names are the main theorems of section 1. The permitted axioms are propext, Quot.sound, Classical.choice. The optional second kernel (nanoda) was not enabled, so the replay uses the Lean kernel only.

5 個の定理名は第 1 節の主定理と一致する.許可した公理は propext, Quot.sound, Classical.choice である.オプションの第 2 のカーネル(nanoda)は有効にしていないため,再生は Lean カーネルのみで行われる.

The challenge module:

チャレンジモジュール:

import Statements

/-!
Challenge file for Comparator (https://github.com/leanprover/comparator).

It states the five theorems of `Main.lean` with `sorry` in place of the proofs. Comparator checks
that `Main` (the solution module) proves exactly these statements, using only the permitted
axioms, and replays the proofs in the Lean kernel.

The trusted base of the statements is Mathlib (`RiemannHypothesis`, `riemannZeta`,
`DirichletCharacter.LFunction`, ...) and the four definitions in `Statements.lean`, which this
file imports unchanged from the distributed project.
-/

theorem riemannHypothesis : RiemannHypothesis := sorry

theorem riemannZeta_eq_zero_re : RiemannZetaZerosOnLine := sorry

theorem LFunction_ne_zero_of_half_lt_re : DirichletLNonvanishingRightOfHalf := sorry

theorem LFunction_eq_zero_re : DirichletLZerosOnLine := sorry

theorem LFunction_eq_zero_re_of_isPrimitive : PrimitiveDirichletLZerosOnLine := sorry

Toy tests of the installation導入環境の動作確認(小さなテスト)

The same Comparator installation was first run on small test projects, to see that it accepts and rejects where it should.

同じ Comparator の導入環境を,まず小さなテストプロジェクトに対して実行し,受理すべきものを受理し拒否すべきものを拒否することを確認した.

caseケースexpected期待される結果observed観測された結果match一致
correct proof of the challengeaccepted受理accepted受理as expected期待どおり
theorem with a different statementrejected拒否rejected拒否as expected期待どおり
proof that uses an extra axiomrejected拒否rejected拒否as expected期待どおり

All 3 toy tests gave the expected outcome.

3 件のテストはすべて期待どおりの結果であった.

The run実行

Stages reported by Comparator, with the time at which each began:

Comparator が報告した段階と,それぞれの開始時刻:

time時刻stage段階
02:09:02Building Challenge
02:09:24Exporting the five theorems, the permitted axioms and the kernel primitives from Challenge
02:09:24Building Main (first job; stopped at 09:26 with 162,328 of 175,187 modules built)
09:36:31Building Main (second job, continuing from the saved build)
11:01:19Lake reports “Build completed successfully (183893 jobs)” for Main (second job)
11:01lean4export starts on Main (seen in the process table; Comparator's own messages after this point are buffered and appear only when it ends)
12:22lean4export has ended; Comparator parses the export
12:50memory of the Comparator process stops growing at 296 GiB (limit of the job: 400 GiB); one thread stays busy
06:54 (22nd)still one busy thread, 18.5 hours of CPU time after the export, memory unchanged; a second copy of the run is started on another node because the time limit of the second job ends at 16:30
16:00 (22nd)the second job reaches its time budget and is stopped: 27.6 hours after the export, without a verdict (Comparator prints its messages only when it ends, so none of the later stages appears in its log)
16:25 (22nd)the third job (started 06:54 on the 22nd, time limit 4 days) has completed the sandboxed build (08:27) and the export, and is in the same single-threaded stage, memory 297 GiB
09:41:46 (25th)the third job ends with exit code 0. Comparator prints its buffered messages: “Exporting …”, “Running Lean default kernel on solution.”, “Lean default kernel accepts the solution”, “Your solution is okay!”. This is 73 h 14 min after Lake reported the end of the sandboxed build in this job (08:27:52 on the 22nd); the memory of the process had stopped growing at about 10:15 on the 22nd
Final line of the output出力の最終行Your solution is okay!
Wall-clock time実時間112 h 42 min112 時間 42 分
GPU-hours charged課金された GPU 時間120.08
Cost費用36,023 yen36,023 円
run実行job idジョブ IDGPUsGPU 数threadsスレッド数elapsed経過時間job stateジョブの状態
20261121-020553-comparator3766092all hardware threads7 h 22 min7 時間 22 分stopped at its time budget while building Main (162,328 of 175,187 modules)
20261121-093008-comparator3777041all hardware threads30 h 32 min30 時間 32 分stopped at its time budget after the sandboxed build and the export; one thread had been busy for 27.6 hours and no verdict was printed
20261122-065433-comparator3814731all hardware threads74 h 47 min74 時間 47 分accepted: continued the sandboxed build saved by the first job, exported, and replayed with the Lean kernel; exit code 0 at 09:41:46 on 25 November, 73 h 14 min after the end of the build

Verdict判定

Comparator: acceptedComparator:受理

Comparator ran to the end and accepted the solution: all of its checks passed for the 5 listed theorems. Final line of its output: Your solution is okay!.

Comparator は最後まで実行され,解答を受理した.列挙した 5 個の定理について,すべての検査に合格した.出力の最終行:Your solution is okay!.

Limitations and remarks制約と補足