goldbach-spectral-bridge
Li and Liu's GRH + S ⇒ Goldbach in Lean, checked against the paper by Comparator: clean it up together, and settle S
Add V-10 reading of the recorded Comparator run
Browse filesChecks
ci/docs
Details
+7 −4 routes/v10-comparator-116/README.md View file
| @@ -9,9 +9,12 @@ V-10: read `k3/comparator_output.txt` of | ||
| 9 | 9 | `Visio-Vanitas/buchstab-switching@cca80480105d17764982ca80fcbb9c41e76e1eed` |
| 10 | 10 | line by line and say what each block certifies. |
| 11 | 11 | |
| 12 | +The note is `V10-READING.md`. It reads all 166 lines, records every command | |
| 13 | +and exit code, the Lean/Lake versions, both export hashes, and separates the | |
| 14 | +two important blocks: the three-kernel acceptance of the solution export and | |
| 15 | +the self-challenge rejection on `sorryAx`. It also says what the log does | |
| 16 | +not show: the exported statements are the paper's (V-9/#115). | |
| 17 | + | |
| 12 | 18 | ## Next |
| 13 | 19 | |
| 14 | -Read the log, map each command to its exit code and the exported statement | |
| 15 | -hashes, then write `V10-READING.md` with the two important blocks: the | |
| 16 | -`--inadvisably-no-sandbox` all-kernel acceptance and the challenge rehearsal | |
| 17 | -that fails on `sorryAx`. | |
| 20 | +Open the PR and leave the second-reader review to the site. | |
+76 −0 routes/v10-comparator-116/V10-READING.md added View file
| @@ -0,0 +1,76 @@ | ||
| 1 | +# V-10 reading of `k3/comparator_output.txt` | |
| 2 | + | |
| 3 | +Source: `Visio-Vanitas/buchstab-switching` at | |
| 4 | +`cca80480105d17764982ca80fcbb9c41e76e1eed`, path | |
| 5 | +`k3/comparator_output.txt`, 166 lines, SHA-256 | |
| 6 | +`F543459F367572BD9FD2E29B2930C5507240BA3401A9A350F7EFDF097609121A`. | |
| 7 | +It is the Windows Lean 4.37.0-rc1 log produced by | |
| 8 | +`k3/comparator/run_comparator.sh`; it was read end to end. The log is | |
| 9 | +`comparator_output.txt` as committed at that pin, not a rerun made here. | |
| 10 | + | |
| 11 | +## Blocks, commands and exit codes | |
| 12 | + | |
| 13 | +| Lines | Command | Exit | What it records | | |
| 14 | +|---|---:|---:|---| | |
| 15 | +| 1-7 | `lean --version`; `lake --version` | 0; 0 | Lean 4.37.0-rc1, x86_64-w64-windows-gnu, commit `0b77e129...`; Lake 5.0.0-src. | | |
| 16 | +| 8-15 | `lake build BuchstabSwitching` | 0 | The library builds: `Build completed successfully (8197 jobs)`, after replaying `BuchstabSwitching.Main`. The three `info` lines for the Main declarations give their axiom lists, but this block is a build, not a `sorry` or axiom audit. | | |
| 17 | +| 16-45 | `lake env lean AxiomsCheckK3.lean` | 0 | The printed declarations depend on `[propext, Classical.choice, Quot.sound]`, except `not_dvd_of_dvd_sub`, `allSlabs_verified` and `asymptoticCert_verified`, which use `[propext]` only. No `sorryAx` is printed. | | |
| 18 | +| 46-122 | `lake env lean BuchstabSwitching/Sieve/AxiomsAudit.lean` | 0 | The sieve/analytic declarations printed in this second audit use the same three standard axioms (or `propext` alone); no `sorryAx`. | | |
| 19 | +| 123-144 | nine `lake env lean --root=comparator -o .lake/comparator/...` commands, one per `ChallengeK3*.lean` module | 0 each | The challenge modules elaborate and their `.olean` files are produced. `ChallengeK3Reduction.lean` reports `declaration uses 'sorry'` at lines 78, 90, 97 and 103; these are the challenge's intentional holes, not a proof. | | |
| 20 | +| 145-146 | `leanexport ChallengeK3Reduction -- ... > .lake/exp/red-challenge.export` | 0 | The challenge-side export is written. Its SHA-256 is `fb9d35f3f8ea4e9ab0da06ca105a6148eb58dba3675374062c9a4122455d82a5`. | | |
| 21 | +| 147-148 | `leanexport BuchstabSwitching -- ... > .lake/exp/red-solution.export` | 0 | The solution-side export is written. Its SHA-256 is `a8dc22765c2c2c4b1ecddee7546b13055576e996e758d6750ba372a955540934`. | | |
| 22 | +| 150 | `external kernels available: ...` | n/a | The host has `leanchecker-paranoid.exe`, `leanchecker.exe` and `nanoda_bin.exe`. The comparator below names and runs the paranoid, nanoda and default kernels; `leanchecker.exe` is listed but not one of the three named runs. | | |
| 23 | +| 151-160 | `lake comparator --inadvisably-no-sandbox --config ... --challenge-from-export ... --solution-from-export ...` | 0 | The solution export is checked against the challenge export. The log says `Lean paranoid kernel accepts the solution`, `nanoda kernel accepts the solution`, `Lean default kernel accepts the solution`, and `Your solution is okay!`. | | |
| 24 | +| 161-166 | The same command with `--solution-from-export red-challenge.export` (self-challenge) | 1 | The challenge export used as a solution is rejected: `error: Illegal axiom detected: 'sorryAx'`. | | |
| 25 | + | |
| 26 | +The commands in lines 123-148 are those of `k3/comparator/run_comparator.sh`, | |
| 27 | +not commands typed by the reader. The two export hashes and the toolchain | |
| 28 | +version are copied from lines 3, 6, 149 and 150; the four theorem names being | |
| 29 | +compared are in `k3/comparator/reduction.json`: | |
| 30 | + | |
| 31 | +- `BuchstabSwitching.even_eq_prime_add_omegaMult_le_three` | |
| 32 | +- `BuchstabSwitching.all_even_one_plus_three_of_premises` | |
| 33 | +- `BuchstabSwitching.External.externalPremises_of_classical` | |
| 34 | +- `BuchstabSwitching.all_even_one_plus_three_of_classical` | |
| 35 | + | |
| 36 | +with permitted axioms `propext`, `Quot.sound` and `Classical.choice`. | |
| 37 | + | |
| 38 | +## What the passing comparator run shows | |
| 39 | + | |
| 40 | +Within the caveat printed by the command itself, the pair at lines 151-160 | |
| 41 | +shows that **Comparator's own three-kernel check accepts the exported | |
| 42 | +`BuchstabSwitching` solution against the exported `ChallengeK3Reduction` | |
| 43 | +challenge**, for the four named targets and the permitted axioms. The | |
| 44 | +`Your solution is okay!` line is Comparator's verdict; the three preceding | |
| 45 | +lines name the kernels that produced it. | |
| 46 | + | |
| 47 | +The `--inadvisably-no-sandbox` warning, `WARNING: Sandbox disabled, this run is | |
| 48 | +not trustworthy`, is a warning about the execution environment: Comparator was | |
| 49 | +not run inside its sandbox. It is not a report that the kernel checks failed or | |
| 50 | +were skipped. It does mean this log cannot be quoted as a sandboxed run; the | |
| 51 | +verdict is the tool's verdict under that explicitly flagged mode. | |
| 52 | + | |
| 53 | +The self-challenge at lines 161-166 is the control. The challenge export | |
| 54 | +contains the `sorry` holes seen at lines 140-143. Using it as the solution | |
| 55 | +produces `Illegal axiom detected: 'sorryAx'` and exit 1. The pair therefore | |
| 56 | +shows both sides of the check: the exported solution is accepted, and a | |
| 57 | +`sorry`-based export is not accepted merely because it is the challenge. | |
| 58 | + | |
| 59 | +## What it does not show | |
| 60 | + | |
| 61 | +- It does not show that the exported statements are the paper's statements. | |
| 62 | + That is the statement-level reading in V-9 (#115); Comparator compares Lean | |
| 63 | + declarations, not their prose meaning. | |
| 64 | +- It does not show that the four target names are all the paper claims, or that | |
| 65 | + every declaration in `BuchstabSwitching` was exported. The target list is | |
| 66 | + `k3/comparator/reduction-export-targets.txt`. | |
| 67 | +- It does not show that the challenge is proved: the challenge deliberately | |
| 68 | + contains `sorry`, and the self-challenge is designed to be rejected. | |
| 69 | +- It does not show that the run was sandboxed, or that the host was | |
| 70 | + trustworthy; the command says the opposite about the sandbox. | |
| 71 | +- It does not make the build in the separate 8,197-job rerun (#79) unnecessary; | |
| 72 | + this log records the build that was run for this Comparator artefact. | |
| 73 | + | |
| 74 | +The log has no line that says the solution is the paper's theorem; the closest | |
| 75 | +it gets is the four target names in the Comparator config. That is exactly why | |
| 76 | +the statement reading has to stay separate. | |
