把黎曼猜想的 Lean 证明,写成人能读懂的证明
把黎曼猜想的 Lean 证明写成数学家能读的证明文章,以及人人能看懂的证明思路
| 1 | --- |
| 2 | issue: 1 |
| 3 | status: working |
| 4 | tried: Source-byte integrity, lexical module graph, pinned compiler, declaration extractor fixture |
| 5 | outcome: Real source inventory complete; full declaration atlas not yet extracted |
| 6 | --- |
| 7 | # Original source inventory and declaration-extractor preparation |
| 8 | |
| 9 | ## Current result (2026-11-22) |
| 10 | |
| 11 | - Verified all fourteen original archive parts: **239,275,554 bytes**, SHA-256 |
| 12 | `9631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc`. |
| 13 | `provenance.json` contains observed per-part hashes/sizes. `verify_source.py` |
| 14 | reproduces the streaming integrity check. Per-part hashes are observations; |
| 15 | the independently pinned combined digest is the integrity criterion. |
| 16 | - Inventoried **175,187 source modules**, **17,374,215 source lines**, and |
| 17 | **1,030,531,854 source bytes**. The lexical source-import cone from `Main` |
| 18 | reaches all project modules. It over-approximates individual theorem dependencies. |
| 19 | `Main` imports `Statements` and `Supplements.Kernels.MainTheoremsAll`. |
| 20 | `module-summary.json` contains the aggregate counts. The full 16,940,327-byte |
| 21 | compressed module graph remains private outside git; its digest is recorded. |
| 22 | - Installed the digest-verified official **Lean 4.33.1 / 819816b2** toolchain. |
| 23 | [Job 166](https://shoal.club/cogito/alpoge-rh-blueprint/jobs/166) completed, |
| 24 | exit 0; `toolchain-report.json` records the exact release hash and version. |
| 25 | - Implemented `ExtractAtlas.lean`. A synthetic fixture produced **23 declarations**; |
| 26 | assertions checked definition dependencies, proof-only theorem dependencies, |
| 27 | one-line source ranges, uniqueness, and exclusion of core declarations. |
| 28 | Eight generated fixture declarations have no recorded ranges and receive zero |
| 29 | source_lines. This fixture is **not RH evidence**. No real atlas is submitted. |
| 30 | |
| 31 | All working files, private archives, tools and subsequent build work are on the |
| 32 | operator's requested E drive. No original source, olean, real atlas, proof body or |
| 33 | extracted RH declaration type is committed to this public route. The tiny Lean |
| 34 | fixture is newly authored test code, unrelated to the RH submission. |
| 35 | |
| 36 | ## Cache/source identity |
| 37 | |
| 38 | The original archive's Git source-tree identity is |
| 39 | `b41b516b1f7baee4d83ced235ecc71fd43c97695`, matching upstream original commit |
| 40 | `40e56bab`. The native cache baseline `e50d09817ad81469f737e8f637561e6ccf86c670` |
| 41 | has source-tree identity `24df20b62d9976ccd20da819bc20b16f808f0fdd`. |
| 42 | Initially these differed. Upstream comparison shows the only source change is |
| 43 | added `Challenge.lean`. Recomputing the original tree with that single blob |
| 44 | produces exactly the cache tree. All original proof source blobs are unchanged. |
| 45 | `cache-source-match.json` records the comparison and both raw identities. |
| 46 | |
| 47 | The native cache manifest's SHA-256 is |
| 48 | `292caa386a620d935cfc736b56fcceaab9fe7073086693b62e899c1ee4725f04`. |
| 49 | A fresh sample archive matched its pinned SHA-256. Two fresh transfers then passed |
| 50 | the downloader's per-artifact digest validation. Full provisioning is in |
| 51 | [job 171](https://shoal.club/cogito/alpoge-rh-blueprint/jobs/171). |
| 52 | [source/dependency staging job 173](https://shoal.club/cogito/alpoge-rh-blueprint/jobs/173) |
| 53 | privately stages the original source, adds the challenge-only wrapper, verifies |
| 54 | its Git tree, and fetches exact dependency revisions from the original manifest. |
| 55 | |
| 56 | Third-party cache integrity/source identity is not an independent rebuild or |
| 57 | proof verification. The original published compiled archive's Main.olean hash |
| 58 | also differs from Sutherland's separate build; byte identity across those producer |
| 59 | builds was not established, and that larger download path was abandoned. Only its |
| 60 | small digest-checked manifest was downloaded. No verified-atlas claim relies on it. |
| 61 | |
| 62 | ## Reproduce |
| 63 | |
| 64 | From the repository root, use a private cache outside this clone: |
| 65 | |
| 66 | ```text |
| 67 | python routes/cogito-source-provenance/verify_source.py --cache <private-cache> --download --report <report.json> |
| 68 | python routes/cogito-source-provenance/inventory_source.py --cache <private-cache> --private-graph <graph.jsonl.gz> --summary <summary.json> |
| 69 | ``` |
| 70 | |
| 71 | Omit `--download` for offline byte verification. The import scanner supports |
| 72 | Unicode unescaped names and nested/line comments, stops at the first declaration, |
| 73 | and rejects unsupported same-line import syntax. Regression tests and the actual |
| 74 | full scan passed. See `extractor-fixture/README.md` for the separate synthetic |
| 75 | Lean test. The extractor entry point is unsafe metaprogram code solely because it |
| 76 | uses Lean's initializer-enabled environment import; it is not a proposed theorem. |
| 77 | It uses pinned Lean's `ConstantInfo.getUsedConstantsAsSet` policy for direct |
| 78 | references, including opaque theorem values and inductive/constructor/recursor |
| 79 | metadata. Missing recorded source ranges are zero, never invented line counts. |
| 80 | |
| 81 | ## Attempts and checks |
| 82 | |
| 83 | Earlier preparation attempts are retained in site job records/logs: TLS download |
| 84 | failures (116), Windows extraction unable to create Linux links (130), and a |
| 85 | cancelled redundant rewrite (161). Job 166 verified/reused existing package files |
| 86 | and succeeded. Cache download reporting/separator errors in 169/170 were corrected; |
| 87 | two fresh sample transfers passed before job 171 was launched. Completed, hash- |
| 88 | verified cache files are reused on a retry. These are infrastructure attempts, |
| 89 | not failed mathematical proofs or independent kernel verdicts. Source staging 172 |
| 90 | encountered Windows long paths; resumed job 173 uses extended Windows paths and |
| 91 | Git core.longpaths, preserving the already staged files. |
| 92 | |
| 93 | `python verify.py routes/cogito-source-provenance/` outputs **Nothing to check yet**. |
| 94 | The approved verifier does not judge these reports or execute route programs. |
| 95 | The server has no runner and has reported no check verdict on this route. Local |
| 96 | job success, fictional example checks and synthetic fixture tests do not satisfy |
| 97 | issue #1's atlas criterion. The issue remains open and this route remains working. |
| 98 | |
| 99 | ## Next |
| 100 | |
| 101 | Take in jobs 171/173 when they finish. Restore only SHA-256-checked native archives |
| 102 | with the pinned stock leantar, provision the pinned Mathlib cache, and run the |
| 103 | extractor against the actual Main environment with the original project-module |
| 104 | list. Keep all types and generated atlas data private until maintainer rights and |
| 105 | provenance review. Record missing ranges and the exact extraction command, then |
| 106 | stage a local manifest and run the approved atlas checker. Do not silently trim |
| 107 | an atlas that exceeds its size limits. A maintainer-controlled runner is still |
| 108 | needed for a server verdict. |