返回资讯中心
外部精选
软件工程
#开发者实时流

开发者发布 grh-lean 手册,向不熟悉 Lean 的数论学生讲解 GRH 形式化证明

来源标题:Show HN: A textbook on the Lean proof of GRH in lsernau/grh-lean, for students

lsernau 发布了配套 lsernau/grh-lean 项目的手册,用数学语言讲解该项目对 Dirichlet L 函数广义黎曼猜想(GRH)的 Lean 4 形式化证明,面向不读 Lean 的数论研究生。手册以 PDF 和 EPUB 电子书形式提供,共 7 卷约 25 万字,从证明纲要到自守形式、theta 对应等背景逐一展开。手册本身不对证明正确性作断言,只说明源码声称的内容以及 Lean 在报告检查成立时所接受的结果。

Hacker News 最新tamnd2026/11/26 · 今天9 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

lsernau/grh-lean is a Lean 4 project that states a proof of the Generalized Riemann Hypothesis for Dirichlet L-functions. This handbook explains that proof as mathematics, for a graduate student in number theory who does not read Lean. It comes as a set of books in PDF and EPUB. The book follows the readable edition grh/ of the source, at the commit in EDITION.

The book does not say in its own voice that the proof is correct. It says what the source claims, what Lean accepts if the reported checks hold, and what each chapter explains. Volume 0 gives the details.

Vol Title Source Words

0 Guide the documents, Statements, Main, every flag 30,000

1 The proof in outline New/Main, New/Reduction 45,000

2 Analytic number theory Lib/Analytic, Reduction/Data/Existence (in part) 30,000

3 Number fields, class field theory and complex multiplication Lib/ClassField, Lib/Cyclotomic, Lib/CM 35,000

4 Unitary groups and automorphic forms Lib/Adelic, Lib/General/Groups 30,000

5 Representations of real, p-adic and finite groups Lib/DiscreteSeries, Lib/GLn, Lib/LocalGL, New/Appendix 40,000

6 The theta correspondence and the Siegel-Weil formula Lib/Weil, Lib/SiegelWeil, Lib/DiscreteSeries/Theta 45,000

7 Cohomology and p-adic Hodge theory Lib/Cohomology, Lib/PadicHodge, Lib/PadicComparison, Lib/General/Geometry, Lib/General/Algebra 45,000

8 Shimura varieties and Galois representations Lib/Shimura, Lib/GaloisRep 40,000

9 Theorem A: short forms New/UpperBound, New/Derivatives (without Sharpness) 45,000

10 Theorem B: enough forms New/Spanning 55,000

11 Theorem C: long forms New/Determinant, New/OneLift, New/Derivatives/Sharpness 60,000

12 Congruences and Selmer groups New/Congruences 45,000

The words are targets. The total is about 545,000 words. Each volume has a plan in content/NN-*/volume.yaml, with its chapters. A volume with no written chapter is not built. ledger/coverage.md shows what is written, and the books are in the releases.

The builder is the Python package ghb. It needs Python 3.11 or later, PyYAML, Pillow and fontTools. A PDF needs pandoc 3.12 and tectonic. An EPUB needs pandoc. The builder reads the source as text and does not build Lean.

git clone https://github.com/lsernau/grh-lean ../grh-lean git -C ../grh-lean checkout "$(awk '/^grh /{print $2}' EDITION)" pip install . python3 -m ghb check --volume all python3 -m ghb build --volume 1 --formats pdf,epub --out /tmp/ghb-out python3 -m ghb ledger --write python3 -m ghb survey

check tests the names, the paths, the links, the front matter and the style of each section. It fails on a problem and reports a warning for a link to a chapter that is not written yet.

build makes the PDF and the EPUB of each volume. --volume takes a number, a list such as 1,9, all, or front for the front pages alone.

ledger --write writes ledger/files.yaml, ledger/decls.yaml and ledger/coverage.md. ledger --diff A B lists what changed in the source between two commits.

survey gives the words and the source files of each volume.

The option --source PATH sets the clone of the source. The default is ../grh-lean.

The brief for a writer is prompts/chapter.md, and the brief for a checker is prompts/review.md. A chapter is a folder content/NN-volume/<chapter>/, with one file for each section. A pull request for a chapter passes ghb check before it merges.

The text is under CC BY 4.0 (LICENSE-CONTENT). The code is under the MIT License (LICENSE). The source lsernau/grh-lean is under the Apache License 2.0. The book quotes Lean names and short statements from it with attribution.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →