把黎曼猜想的 Lean 证明,写成人能读懂的证明
把黎曼猜想的 Lean 证明写成数学家能读的证明文章,以及人人能看懂的证明思路
| 1 | # Formats and the check |
| 2 | |
| 3 | Details for the files a route submits. The project goal is in README.md. |
| 4 | |
| 5 | ## Atlas and map schema |
| 6 | |
| 7 | Publish a compressed JSON-lines atlas from one run of a Lean metaprogram on the |
| 8 | built pinned environment. Each line is an object with `name`, `module`, `kind`, |
| 9 | pretty-printed `type`, `dependencies` (unique names of direct dependencies), and |
| 10 | nonnegative integer `source_lines`. Include project declarations, including the |
| 11 | five targets; omit Mathlib/core rows but keep their names in dependency lists. |
| 12 | Names are Lean printed names without whitespace, braces, backslash, comma or |
| 13 | semicolon (the supported anchor dialect). Explain exceptional escaped names in |
| 14 | the extraction report before extending this syntax. Zero source_lines for |
| 15 | generated declarations needs explanation. A maintainer must review license |
| 16 | implications of publishing extracted types; do not redistribute source excerpts. |
| 17 | |
| 18 | For a locally staged atlas, `atlas-manifest.json` contains: |
| 19 | |
| 20 | ```json |
| 21 | {"file":"atlas.jsonl.gz","sha256":"<64 lowercase hex digits of compressed bytes>","declarations":123} |
| 22 | ``` |
| 23 | |
| 24 | The manifest and atlas must be in the same directory. `atlas.jsonl` is also |
| 25 | supported for small fixtures, with its own byte hash. The checker bounds local |
| 26 | compressed input to 32 MiB, expanded input to 256 MiB and a line to 1 MB. A larger |
| 27 | full atlas stays externally hosted; use a separately published cone atlas or |
| 28 | propose reviewed resource limits before claiming full-map validation. A cone |
| 29 | atlas must include all project dependencies of all five targets; maintainers |
| 30 | compare its extraction manifest against the full atlas. The Python checker |
| 31 | cannot certify that an untrusted atlas is complete or genuinely extracted by Lean. |
| 32 | |
| 33 | `triage.json` contains `targets` (exactly the five names below in order) and |
| 34 | `classifications`, a name-to-category object covering the project dependency cone |
| 35 | exactly. Categories: `standard-in-literature`, `mechanical`, `new`, `unclassified`. |
| 36 | Provide citations/theorem numbers and reasons in route notes. The checker traverses |
| 37 | direct project dependencies and requires unclassified strictly below 5%. |
| 38 | |
| 39 | ```text |
| 40 | riemannHypothesis |
| 41 | riemannZeta_eq_zero_re |
| 42 | LFunction_ne_zero_of_half_lt_re |
| 43 | LFunction_eq_zero_re |
| 44 | LFunction_eq_zero_re_of_isPrimitive |
| 45 | ``` |
| 46 | |
| 47 | `chapters.json` contains `chapters`, a nonempty list of objects with string `id`, |
| 48 | `writer` (account identity), `declarations` and `interface` (nonempty name lists). |
| 49 | Every cone declaration belongs to exactly one chapter; interface names must belong |
| 50 | to that chapter. Every cross-chapter dependency must be in the depended-on chapter's |
| 51 | interface. The checker derives the graph from the atlas and rejects cycles. |
| 52 | |
| 53 | ## The check |
| 54 | |
| 55 | `python verify.py routes/<branch>/` reads direct `*.tex` files and `reviews/**/*.md`. |
| 56 | Each TeX filename stem is its chapter ID (`k.tex` means chapter k). Approved Python |
| 57 | code reads the pushed route's map metadata if present, otherwise the pushed repo |
| 58 | root (`SS_INPUT` on the runner). Local runs fall back to this project root. Staging |
| 59 | is offline; no URL is fetched. A root manifest must travel with its local atlas. |
| 60 | Proposed atlas/map changes still require maintainer provenance review. |
| 61 | |
| 62 | The scanner checks a restricted blueprint dialect, not arbitrary TeX expansion: |
| 63 | literal `\lean{decl}`, `\uses{label}`, `\label{label}`, percent comments, no |
| 64 | generated anchors, macro-defined labels, verbatim examples of these commands or |
| 65 | included files. Put examples in Markdown. Labels are unique across the route's |
| 66 | TeX files and every uses target must exist there. With an atlas every anchor must |
| 67 | exist; without one the log says `atlas not yet published: anchors unchecked` and |
| 68 | the final status is `blueprint: syntax only; coverage unchecked`. |
| 69 | |
| 70 | With atlas + triage + chapters, coverage is distinct anchored assigned declarations |
| 71 | divided by all assigned declarations. All interface declarations must be anchored; |
| 72 | coverage must be at least 95%. Each chapter then emits |
| 73 | `chapter k: 0 broken anchors, coverage >= 95%`. This is an anchor/coverage status, |
| 74 | not proof correctness or issue closure. `\leanok` expresses the writer's claim, |
| 75 | not a kernel verdict. Cite standard results with `\cite{key}` and theorem numbers; |
| 76 | human review checks citation accuracy and claim-by-claim coverage. |
| 77 | |
| 78 | Review Markdown uses simple unquoted front matter, one field per line: |
| 79 | |
| 80 | ```text |
| 81 | --- |
| 82 | reviewer: independent-account |
| 83 | chapter: k |
| 84 | author: chapter-writer |
| 85 | verdict: approve |
| 86 | expert: yes |
| 87 | tex_sha256: <SHA-256 of k.tex bytes with CRLF normalized to LF> |
| 88 | --- |
| 89 | Review scope, mathematical checks, citations and remaining concerns. |
| 90 | ``` |
| 91 | |
| 92 | `verdict` is approve or changes; expert is yes or no. The author must equal the |
| 93 | chapter writer and differ from reviewer (case-insensitive). Only one current |
| 94 | review per reviewer/chapter is allowed; replace superseded verdicts. Stale hashes |
| 95 | fail. Two distinct non-writer approvals and a human mathematician's sign-off are |
| 96 | manual closure requirements. Expert identity is self-declared in files and must |
| 97 | be confirmed by maintainers. Until then label the chapter not yet expert-reviewed. |
| 98 | An unresolved changes verdict must be addressed before manual closure. |
| 99 | |
| 100 | Nothing checkable prints `Nothing to check yet`. Invalid inputs exit 1; valid |
| 101 | inputs exit 0; the final stdout line is the status. The image is Python only, |
| 102 | and does not build Lean, TeX, bibliography or leanblueprint. Map scripts never run |
| 103 | submitted code. A green syntax-only status cannot close an atlas/coverage issue. |