把黎曼猜想的 Lean 证明,写成人能读懂的证明
把黎曼猜想的 Lean 证明写成数学家能读的证明文章,以及人人能看懂的证明思路
| 1 | --- |
| 2 | issue: 1 |
| 3 | status: working |
| 4 | --- |
| 5 | # Source provenance preflight for the declaration atlas |
| 6 | |
| 7 | ## Result (2026-11-22) |
| 8 | |
| 9 | Downloaded the fourteen original source archive parts from the URLs pinned in |
| 10 | ATLAS.md to a private cache outside this clone. Read the compressed bytes in |
| 11 | part01 through part14 order, without extracting or executing source. |
| 12 | |
| 13 | - Observed total: **239,275,554 bytes**. |
| 14 | - Observed SHA-256: `9631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc`. |
| 15 | - Both match ATLAS.md. `provenance.json` records the observed per-part byte counts |
| 16 | and hashes. Those per-part hashes are observations from this run, not independently |
| 17 | authenticated upstream pins. The combined pinned digest is the integrity check. |
| 18 | - `verify_source.py` is the reproducible streaming downloader/checker. It caches |
| 19 | outside git, downloads at most four parts concurrently, and emits the report |
| 20 | only after combined size and hash validation. It never extracts source. |
| 21 | |
| 22 | This is source-byte integrity evidence only. It does not verify the authorship, |
| 23 | license, mathematical claims, Lean build, dependency graph, or declaration atlas. |
| 24 | No source, proof body, archive, olean, real atlas, or fabricated declaration is |
| 25 | included in this route. Metadata is proposed for maintainer review via PR. |
| 26 | |
| 27 | ## Reproduce |
| 28 | |
| 29 | From the repository root, choose a private cache **outside** this repository: |
| 30 | |
| 31 | ```text |
| 32 | python routes/cogito-source-provenance/verify_source.py --cache <private-cache> --download --report <report-path> |
| 33 | ``` |
| 34 | |
| 35 | Repeat offline by omitting `--download`. The cache must contain all fourteen |
| 36 | `lean.tar.gz.part01` through `lean.tar.gz.part14` files. Expected output: |
| 37 | |
| 38 | ```text |
| 39 | source archive: 239275554 bytes, 14 parts, sha256 matches ATLAS.md |
| 40 | No source was extracted; no declaration atlas or Lean build was verified. |
| 41 | ``` |
| 42 | |
| 43 | ## Continuation (2026-11-22) |
| 44 | |
| 45 | Resumed at the operator's request. The working folder and private source cache |
| 46 | are now on drive E. Next, inventory actual source modules and imports before |
| 47 | preparing the pinned Lean environment. No atlas result is claimed yet. |
| 48 | |
| 49 | ## Earlier claim release |
| 50 | |
| 51 | This contribution completes only the source integrity preflight. The atlas task |
| 52 | is not complete: there is no built Lean environment or extracted atlas in this |
| 53 | route. The claim is released rather than left active while awaiting those inputs. |
| 54 | PR #8 retains the tool and evidence for review; it does not close issue #1. |
| 55 | |
| 56 | ## Validation and limitations |
| 57 | |
| 58 | The real download passed size and hash validation. A separate local synthetic |
| 59 | fixture confirmed numeric part ordering, rejection of same-length byte corruption, |
| 60 | and rejection of a missing part. These tests are software checks, not RH evidence. |
| 61 | The supplied fictional `examples/` fixture also passed the project's verifier; |
| 62 | that result is not evidence for this contribution or the RH proof. |
| 63 | |
| 64 | `python verify.py routes/cogito-source-provenance/` outputs `Nothing to check yet`. |
| 65 | The approved project checker does not inspect source-provenance reports or execute |
| 66 | route scripts. No atlas manifest is supplied, so this route cannot satisfy the |
| 67 | atlas task's acceptance criterion. No declaration count or coverage is claimed. |
| 68 | |
| 69 | ## Server check state |
| 70 | |
| 71 | For result commit `a6102892ccb918f1975a4399a420352bd52c5538`, the |
| 72 | commit-status API returned `pending`, `total_count: 0`, `statuses: []`. |
| 73 | The compute API reports approved rules `cccd4b165caf701d02b46db33b5d8a9246c6df2c`, |
| 74 | no pending rule changes, the `verify` gate, and `runners: []`. The approved |
| 75 | verifier files match those used locally. No server verdict has judged this |
| 76 | artifact. A maintainer-controlled runner must be available for the server gate. |
| 77 | |
| 78 | ## Actual source module inventory |
| 79 | |
| 80 | `inventory_source.py` streams the same hash-checked archive. It scans source |
| 81 | module import headers, including Unicode identifiers and nested comments, and |
| 82 | stores the full source-module graph privately outside git. It does not extract |
| 83 | Lean declarations, elaborate types, inspect proof terms, or build the project. |
| 84 | |
| 85 | Observed: **175,187 source modules**, **17,374,215 source lines**, and |
| 86 | **1,030,531,854 source bytes**. The lexical project-module import cone rooted at |
| 87 | `Main` reaches **all 175,187 project modules**. This source import graph therefore |
| 88 | does not offer a smaller module build than the full project. It over-approximates |
| 89 | the dependencies of individual theorems; it says nothing about which results |
| 90 | are new mathematics or necessary proof-term dependencies. |
| 91 | |
| 92 | `Main` directly imports `Statements` and |
| 93 | `Supplements.Kernels.MainTheoremsAll`. Module-family counts and pinned toolchain/ |
| 94 | Mathlib revision are in `module-summary.json`. The 16,940,327-byte compressed graph |
| 95 | is private and not committed. Its digest is in that report for reproducibility. |
| 96 | No source excerpts or declaration types are included. |
| 97 | |
| 98 | Reproduce after placing the fourteen parts in a private cache: |
| 99 | |
| 100 | ```text |
| 101 | python routes/cogito-source-provenance/inventory_source.py --cache <private-cache> --private-graph <private-graph.jsonl.gz> --summary <summary.json> |
| 102 | ``` |
| 103 | |
| 104 | The scanner supports one unescaped import name per import command and rejects |
| 105 | unexpected same-line tokens. The actual full scan succeeded. Synthetic regression |
| 106 | tests cover Unicode imports, nested/line comments, stopping at declarations, and |
| 107 | rejection of unsupported multi-name syntax. This is lexical metadata, not an atlas |
| 108 | accepted by the project checker. |
| 109 | |
| 110 | ## Next |
| 111 | |
| 112 | Build the privately retained, hash-checked source with the pinned Lean 4.33.1 |
| 113 | (`819816b2`) and Mathlib v4.33.1 (`0df444a3`) environment. Run a reviewed Lean |
| 114 | extractor over that built environment, recording module selection, handling of |
| 115 | generated declarations, and direct dependencies. Obtain maintainer rights and |
| 116 | provenance review before publishing extracted types to an external artifact store. |
| 117 | Then stage a hash-checked atlas and request the real `atlas: N declarations, |
| 118 | sha256 ok` check. Issue #1 remains unresolved. |