Newshot

黎曼猜想的 Lean 证明验证文件

Translation(model translation, not the source's own text)

Lean 版黎曼假设证明的验证文件

于 2026 年 11 月 20 日在 alpo.ge/remark.pdf 上公布。

Andrew Sutherland(MIT),使用 Claude Code 运行检查。页面最后更新于 2026-11-21 12:55 UTC。以下结果为该时间点的结果,随着其余检查完成,本页面将持续更新。

摘要

已发布的 Lean 源码编译无错误,五个主要定理仅依赖三条标准公理,每个模块都已通过 Lean 内核重放,两个独立编写的内核 nanoda 和 con-leche 接受完整的导出证明,lean4lean 接受每个已编译模块。con-leche 的 --compare 模式是 Comparator 语句匹配的独立实现,它对照挑战文件确认了全部五个定理。lake comparator 运行和导出的 Lean 内核重放仍在进行中。

检查项结果详情
全部 175,187 个模块编译(Lean v4.33.1,Mathlib v4.33.1)通过零错误;于 16:43:21 UTC 完成
Main.lean 中五个定理的 #print axioms通过仅 propext、Classical.choice、Quot.sound(audit.log)
Lean 核心之外未声明任何公理通过环境中 15 条公理,全部位于 Init
Mathlib 文件与官方缓存完全一致通过8,322 个 Mathlib 及 378 个依赖 .olean 文件,逐字节一致
每个模块的 leanchecker 内核重放通过175,187 / 175,187;零拒绝;约 18:17 UTC 完成
挑战导出与 Deicyde/riemann-hypothesis CI 发布的导出一致匹配sha256 bd484ac9…b2b9
nanoda(独立 Rust 内核)处理完整导出接受19:05:45 UTC 退出码 0;80 线程用时 27 分 42 秒(nanoda.log)
Lean 默认内核与 Lean paranoid 内核处理导出运行中单线程;尚无结论
lake comparator(Lean v4.36.0)端到端运行中语句比较和公理检查已在一次运行中通过;内核仍在进行
con-leche master(cd2eceab)处理完整导出接受在 --verified 模式下接受了 1,468,418 条声明;21:19:04 UTC 退出码 0;64 线程用时 3 分 15 秒(log)
con-leche --compare(分支 compare,5dc36dc1):对照挑战与解答接受全部五个定理“由解答证明成立”;接受了 51,692 条挑战声明;21:19:12 UTC 退出码 0(log)
lean4lean(67f63b0c,使用 Lean v4.33.1 构建)逐模块处理已编译文件通过175,187 / 175,187;约 21:55 UTC 完成。175,182 个在默认设置下通过。五个在 decide + 内核计算上触发了 lean4lean 的默认步数限制(“确定性超时”),在提高限制后重新运行并通过(timeouts,带标志重跑)
Lean v4.36.0 捆绑的 con-leche 和 con-ron拒绝处理退出码 2,并非拒绝:这些较旧的二进制不支持证明中的一种自反归纳类型。上文中的 con-leche master 支持。(log,log)
Lean v4.36.0 捆绑的 lean4lean不适用无法读取 v4.33 核心库(unknown constant 'Decidable.intro')

已验证的内容

五个定理,在提交的 Main.lean 中证明。它们的语句如下,与挑战文件中的完全一致,该文件仅导入 Mathlib。其中所有数学概念(riemannZeta、DirichletCharacter、DirichletCharacter.LFunction、IsPrimitive)均来自 Mathlib。

  1. 黎曼假设,使用 Mathlib 自身的定义(Mathlib/NumberTheory/LSeries/RiemannZeta.lean):ζ 的每个非平凡零点 −2、−4、−6、… 之外的零点,实部均为 1/2。条件 s ≠ 1 在此出现,是因为 Mathlib 在其极点处给 ζ 赋予了一个约定值。

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

theorem riemannHypothesis : RiemannHypothesis
      
  1. 同一语句用提交者自己的话写出。Lean 按定义接受二者相等。

文章标题:黎曼猜想的 Lean 证明的验证文件

正文:


        theorem riemannZeta_eq_zero_re :
  ∀ s : ℂ, riemannZeta s = 0 → (¬∃ n : ℕ, s = -2 * ((n : ℂ) + 1)) → s ≠ 1 → s.re = 1 / 2
      
  1. 对每个 Dirichlet L-函数,临界线右侧没有零点。对每个模数 N ≥ 1 以及每个模 N 的 Dirichlet 特征 χ,无论本原与否,只要 Re s > 1/2,就有 L(χ, s) ≠ 0。唯一被排除的情形是 s = 1 处的平凡特征,此时 L-函数取其极点。

        theorem LFunction_ne_zero_of_half_lt_re :
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
    1 / 2 < s.re → (χ ≠ 1 ∨ s ≠ 1) → DirichletCharacter.LFunction χ s ≠ 0
      
  1. 对每个 Dirichlet L-函数,临界带内的零点都落在临界线上。

        theorem LFunction_eq_zero_re :
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
    0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2
      
  1. 对本原特征同样成立,这也是 Dirichlet L-函数的广义黎曼猜想通常的表述形式。

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

范围。这里的“GRH”指 Dirichlet L-函数:所有模数与所有特征。Dedekind zeta 函数、Hecke L-函数以及一般的自守 L-函数不在已检查的陈述之列。

算术推论

作为一项不依赖 Mathlib 对 zeta 函数定义的检验,该证明与 kimihiro64/Robin1984(提交 acab1a3)结合,后者是在相同 Lean 和 Mathlib 版本上对 Robin 与 Lagarias 判据的独立形式化。同时导入两者可得到两个关于除数和的定理,不含任何假设,也不提及 zeta(ArithSolution.lean;仅陈述见 ArithChallenge.lean,后者只导入 Mathlib):


        theorem robin_inequality :
    ∀ n : ℕ, 5040 < n →
      ((ArithmeticFunction.sigma 1 n : ℕ) : ℝ) <
        Real.exp Real.eulerMascheroniConstant * (n : ℝ) * Real.log (Real.log (n : ℝ))

theorem lagarias_inequality :
    ∀ n : ℕ, 0 < n →
      ((ArithmeticFunction.sigma 1 n : ℕ) : ℝ) ≤
        (harmonic n : ℝ) + Real.exp (harmonic n : ℝ) * Real.log (harmonic n : ℝ)
      
单独构建 Robin1984(其与 RH 的三条等价关系)结果详情
Robin1984 使用 lake build 构建通过4,435 个作业,退出码 0
con-leche master 与 --compare接受69,293 条声明被接受;三条定理均针对其自身的 challenge 得到证明( 日志 )
未修改的 Comparator v4.33.0 搭配该仓库自身配置通过nanoda 接受,Lean 默认内核接受,“Your solution is okay!”;退出码 0,时间 03:31:06 UTC( 日志摘要 )
基于导出的 lake comparator(Lean v4.36.0)通过Lean paranoid 内核、nanoda 与 Lean 默认内核均接受;“Your solution is okay!”;退出码 0,时间 04:16:52 UTC( 日志摘要 )
两个不等式(RH 证明与 Robin1984 结合)结果详情
robin_inequality 与 lagarias_inequality 编译通过;#print axioms通过仅 propext 、Classical.choice 、Quot.sound ( 审计 )
con-leche master 处理完整合并导出接受在 --verified 模式下接受 1,472,825 条声明;退出码 0,时间 02:29:56 UTC( 日志 )
con-leche --compare 对照 ArithChallenge接受两条定理均“由解所证明”;退出码 0,时间 02:29:06 UTC( 日志 )
nanoda 处理完整合并导出接受退出码 0,时间 02:56:46 UTC;64 线程下耗时 33 分 46 秒( 日志 )
lake comparator(Lean v4.36.0)处理合并导出运行中陈述比较与公理检查已通过;其 Lean 内核阶段在 62 GB 的导出上是单线程的,预计需耗费许多小时,与主证明的情形相同

文章标题:黎曼猜想的 Lean 证明的验证文件

正文: 合并导出为 61,752,134,938 字节,sha256 44651dcc482a6e06e8d626994221aff638e422fded189bf856e0c31176926f0d;其 challenge 导出的 sha256 为 088a57c9e7454fa5279a86a825e551828ac8431694855aadd1f6e6a6eb37bb1d。这些陈述仍然依赖 Mathlib 对除数和、欧拉常数、调和数、exp 和 log 的定义,以及 Robin1984 证明,这就是为什么该证明也经过了同样的检查。

下载

导出的证明:lean4export 在模块 Main 上的输出。解包后为 61,570,595,788 字节。

导出的 challenge:带有 sorry 证明的五条陈述,仅导入 Mathlib。解包后为 350,862,970 字节。

较小的文件:

  • comparator.json:Comparator 配置,指明可处理此证明的检查器
  • SHA256SUMS:本页所有内容的哈希值
  • audit.log 和 Audit.lean:公理审计及其生成文件
  • project-oleans.sha256:每个已编译文件(175,187 个)的 sha256(29 MB)。这些哈希值取决于构建目录;请参阅下面的说明。
  • nanoda.log:nanoda 运行的耗时和退出状态
  • con-leche-master.log 和 con-leche-compare.log:两次 con-leche 运行

自行检查

安装 Lean v4.36.0 后,无需构建任何内容。你需要大约 100 GB 内存和 70 GB 磁盘空间。


        zstd -d --long=30 solution.ndjson.zst      # --long=30 is required
zstd -d --long=27 challenge.ndjson.zst
sha256sum solution.ndjson challenge.ndjson  # compare with the hashes above

lake comparator --config comparator.json \
  --challenge-from-export challenge.ndjson --solution-from-export solution.ndjson
      

仅 nanoda 在 80 个线程上就花了约 28 分钟。Lean 内核是单线程的,耗时更长。

最快的独立检查是从源码构建的 con-leche(Lean v4.36.0,构建约需两分钟)。它需要约 50 GB 内存,在 64 个线程上耗时不到四分钟:


        git clone https://github.com/leanprover/con-leche && cd con-leche
git checkout compare        # 5dc36dc1; master (cd2eceab) for the plain check
lake build con-leche
.lake/build/bin/con-leche --compare challenge.ndjson solution.ndjson
      

来源

项目值
源归档lean.tar.gz,由 alpo.ge 的 14 个部分合并而成;239,275,554 字节 sha256 9631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc
源镜像Deicyde/riemann-hypothesis,除其添加的 Comparator 文件外,与归档逐字节相同
Lean / MathlibLean v4.33.1(commit 819816b2);Mathlib 标签 v4.33.1(0df444a3)
导出器lean4export 标签 v4.33.0(15f6055e),使用 Lean v4.33.1 构建;目标列表同 Deicyde 的 export-targets.txt
Judge 及额外内核Lean v4.36.0:lake comparator、leanchecker、leanchecker-paranoid、nanoda_bin
lean4leandigama0/lean4lean 位于 67f63b0c,使用 Lean v4.33.1 构建;在编译后的 .olean 文件上运行,而非导出文件
con-lecheleanprover/con-leche master 位于 cd2eceab,分支 compare 位于 5dc36dc1,二者均使用 Lean v4.36.0 构建
Main.oleansha256 9146dfb4148e24d2252e04c50742f3e49dd126dfcc5006d10bf5f873ddf796ad
所有已编译文件的清单sha256 375cbee2fc3fc0f5088ef2e6dc9a5ac5530924310dc62422ec65aac9dc4c1d25 仅对构建目录 /home/ubuntu/grh/src/lean 有效;请参阅下面的说明
构建目录归档的 lean/ 目录在每台构建机器上都位于 /home/ubuntu/grh/src/lean,因此每个源文件都以 /home/ubuntu/grh/src/lean/src/<Module/Path>.lean 的形式传给 Lean

注意事项

  • 构建在无沙箱的云机器上运行,并通过直接调用 lean 来编译每个文件,输入与 lake 所提供的相同(模块名、包名和 lakefile 的选项),而非通过 lake build。

文章标题:黎曼猜想 Lean 证明的验证文件

正文:

  • 每个文件的 .olean 哈希取决于构建目录。在 Lean v4.33.1 中,编译后的文件会将每条 linter 消息与其源文件的绝对路径一起存储。在我们编译的 175,187 个文件中,98,219 个包含路径 /home/ubuntu/grh/src/lean/src/…;其余 76,968 个(包括 Main.olean)不含路径。因此,只有在源码树位于 /home/ubuntu/grh/src/lean 的构建中,才能完整复现 project-oleans.sha256 及其 sha256。对于任何其他路径下的构建,只有不产生 linter 消息的模块文件应当匹配。我们检查了:在另一台机器、另一路径下对 240 个模块执行 lake build,得到 168 个文件与清单一致、72 个不同;这 72 个全部包含该构建的路径,而 168 个一致的文件均不含路径。另外,在同一目录下分别通过 lake build 和我们的直接调用两种方式编译的 77 个模块,字节完全相同。我们尚未将完整集合与 lake build 的结果进行比对。
  • 导出的证明(solution.ndjson)是独立内核所检查的产物。应当跨构建比较的是它的哈希;我们尚未考察导出格式能否携带源路径。
  • 该导出是由那个非沙箱构建产生的。我们本人尚未将其 sha256 与沙箱 lake build 产生的导出进行比对。
  • 检查通过表明:按照 Mathlib 的定义在 Lean 中写出的形式化陈述,依据所使用的内核,可由三条标准公理推出。这依赖于那些内核,以及 Mathlib 的定义符合其预期含义。

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗