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
Merge pull request #61 from p4-negative-fixture
Browse filesP-4 follow-up: commit the negative fixture and record the later-main count
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+1 −0 KNOWN.md View file
| @@ -19,6 +19,7 @@ What is established about this problem, one fact a line, each with where it come | ||
| 19 | 19 | ## Mind |
| 20 | 20 | |
| 21 | 21 | - `main` is listed at commits that changed no file `challenge` or `build` judges, carrying the verdicts of the commit it builds on: 2a5082d, a5556a6, 1b97ecf, d15f130, 15c0347, now 8a800e7 (commit 8a800e7, commit 15c0347, commit d15f130, commit 1b97ecf). |
| 22 | +- The P-4 guide checker checks every local `#L` link, every cited `statement_NNN_*` and every three-cell row label in `GUIDE.md`; run `python3 routes/p4-guide-checker/check_guide.py --summary` from the repository root, and the exit-1 fixture is under `routes/p4-guide-checker/negative-fixture/` (route p4-guide-checker). | |
| 22 | 23 | - `challenge` judges only the 7 challenge files and the build configuration, so it passed on three `little-fish/s1-monotone-in-h` commits whose `lake build` ended exit 1 minutes later; the two commits after them, 8affb11 and ef84964, pass build too (commit 9df1f12, commit 327dfb0, commit eeb60b9). |
| 23 | 24 | - `main` at 97701f6 carries two `challenge` verdicts recorded in the same minute, one failing over `lakefile.toml` and one passing over 7 files, so no single verdict on it is the whole record (commit 97701f6). |
| 24 | 25 | - A count verdict reads success when the commit has no route folder, or the route's folder holds no CERTIFICATE.json: "Nothing to check" is green but measures nothing (commit 9087ed4, commit 0e8a83d, commit 6c65c55, commit fcd1db1). |
+33 −5 routes/p4-guide-checker/README.md View file
| @@ -41,15 +41,43 @@ OK GUIDE.md checks passed | ||
| 41 | 41 | The full per-link run printed 501 lines: 293 resolved-link lines, 103 statement-declaration |
| 42 | 42 | lines, 103 table-row lines, and the two summary lines. Exit status `0`. |
| 43 | 43 | |
| 44 | -A negative fixture (one link pointed at a comment line instead of the declaration) printed | |
| 44 | +## Confirmation at a later `main` | |
| 45 | + | |
| 46 | +The site maintainer ran the same command on a fresh worktree of `origin/main` at | |
| 47 | +`76b2f80` and got the same counts: | |
| 48 | + | |
| 49 | +```text | |
| 50 | +links=293 resolved=293 statements=103 declared=103 table_rows=103 failures=0 | |
| 51 | +``` | |
| 52 | + | |
| 53 | +exit status `0`. The counts above were first measured at `6ec7289`; they did not change | |
| 54 | +on the later `main`. | |
| 55 | + | |
| 56 | +## Negative fixture | |
| 57 | + | |
| 58 | +The exit-1 path is exercised by the committed fixture at | |
| 59 | +`routes/p4-guide-checker/negative-fixture/`. Its `GUIDE.md` points | |
| 60 | +`theorem_not_here` at `Dummy.lean#L1`, which is a comment line; the declaration is on | |
| 61 | +line 2. The fixture also carries | |
| 62 | +`verification/independent-audit/comparator-project/TexAuditComparator/Challenge.lean` | |
| 63 | +as a one-line stub: `main()` exits 2 with `FAIL missing ...` unless that path exists | |
| 64 | +(lines 93–95 of `check_guide.py`), even though the fixture has no `statement_NNN_*` | |
| 65 | +citations to check against it. From the repository root: | |
| 66 | + | |
| 67 | +```bash | |
| 68 | +python3 routes/p4-guide-checker/check_guide.py --root routes/p4-guide-checker/negative-fixture --summary | |
| 69 | +``` | |
| 70 | + | |
| 71 | +Actual output: | |
| 45 | 72 | |
| 46 | 73 | ```text |
| 47 | -FAIL Dummy.lean#L1: expected declaration 'foo', got None (line 1 does not begin a declaration: '-- line one is not a declaration') | |
| 48 | -SUMMARY links=2 resolved=1 statements=1 declared=1 table_rows=1 failures=1 | |
| 49 | -FAIL 1 problem(s) | |
| 74 | +FAIL Dummy.lean#L1: expected declaration 'theorem_not_here', got None (line 1 does not begin a declaration: '-- This line is deliberately not a declaration; the fixture link points here.') | |
| 75 | +SUMMARY links=1 resolved=0 statements=0 declared=0 table_rows=0 failures=1 | |
| 76 | +FAIL 1 problem(s): | |
| 77 | + Dummy.lean#L1: expected declaration 'theorem_not_here', got None (line 1 does not begin a declaration: '-- This line is deliberately not a declaration; the fixture link points here.') | |
| 50 | 78 | ``` |
| 51 | 79 | |
| 52 | -and exited `1`, so the failure path is live, not just the happy path. | |
| 80 | +Exit status `1`; the failing link is named. | |
| 53 | 81 | |
| 54 | 82 | ## What it does not show |
| 55 | 83 | |
+3 −0 routes/p4-guide-checker/negative-fixture/Dummy.lean added View file
| @@ -0,0 +1,3 @@ | ||
| 1 | +-- This line is deliberately not a declaration; the fixture link points here. | |
| 2 | +theorem theorem_not_here : True := by | |
| 3 | + trivial | |
+13 −0 routes/p4-guide-checker/negative-fixture/GUIDE.md added View file
| @@ -0,0 +1,13 @@ | ||
| 1 | +# Negative fixture for `check_guide.py` | |
| 2 | + | |
| 3 | +This link deliberately points at a comment line, not the declaration on the next line: | |
| 4 | + | |
| 5 | +[`theorem_not_here`](Dummy.lean#L1) | |
| 6 | + | |
| 7 | +Run from the repository root: | |
| 8 | + | |
| 9 | +```bash | |
| 10 | +python3 routes/p4-guide-checker/check_guide.py --root routes/p4-guide-checker/negative-fixture --summary | |
| 11 | +``` | |
| 12 | + | |
| 13 | +Expected: `resolved=0 failures=1`, exit status 1, with the link named. | |
+1 −0 routes/p4-guide-checker/negative-fixture/verification/independent-audit/comparator-project/TexAuditComparator/Challenge.lean added View file
| @@ -0,0 +1 @@ | ||
| 1 | +-- Fixture challenge file: the link-only negative test cites no statements. | |
+14 −0 routes/p4-negative-fixture/README.md added View file
| @@ -0,0 +1,14 @@ | ||
| 1 | +--- | |
| 2 | +issue: 60 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | +# p4-negative-fixture | |
| 6 | + | |
| 7 | +Follow-up to P-4, opened after #48 was closed; the checker itself came through #53, and this follow-up through #60. | |
| 8 | + | |
| 9 | +## Result | |
| 10 | + | |
| 11 | +- `routes/p4-guide-checker/negative-fixture/` contains the committed fixture; `GUIDE.md` points at `Dummy.lean#L1`, a comment line, while `theorem_not_here` is declared on line 2. | |
| 12 | +- `python3 routes/p4-guide-checker/check_guide.py --root routes/p4-guide-checker/negative-fixture --summary` prints `resolved=0 failures=1`, names the link, and exits 1. | |
| 13 | +- `routes/p4-guide-checker/README.md` now gives the fixture command, actual output, and the `76b2f80` confirmation of the same 293/103/103/0 counts. | |
| 14 | +- `KNOWN.md` records the tool and its command. | |
