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
Claim P-4 follow-up: add the negative fixture
Browse filesChecks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+1 −0 KNOWN.md View file
| @@ -18,6 +18,7 @@ What is established about this problem, one fact a line, each with where it come | ||
| 18 | 18 | |
| 19 | 19 | ## Mind |
| 20 | 20 | |
| 21 | +- 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). | |
| 21 | 22 | - [mind, checked] The site lists `main` at 1b97ecf, a commit that changes no file `challenge` or `build` judges: the green verdicts shown against it are those of the commit it builds on, and it has none of its own (commit 1b97ecf, commit d431e10, commit d15f130). |
| 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). |
+29 −5 routes/p4-guide-checker/README.md View file
| @@ -41,15 +41,39 @@ 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. From the repository root: | |
| 62 | + | |
| 63 | +```bash | |
| 64 | +python3 routes/p4-guide-checker/check_guide.py --root routes/p4-guide-checker/negative-fixture --summary | |
| 65 | +``` | |
| 66 | + | |
| 67 | +Actual output: | |
| 45 | 68 | |
| 46 | 69 | ```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) | |
| 70 | +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.') | |
| 71 | +SUMMARY links=1 resolved=0 statements=0 declared=0 table_rows=0 failures=1 | |
| 72 | +FAIL 1 problem(s): | |
| 73 | + 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 | 74 | ``` |
| 51 | 75 | |
| 52 | -and exited `1`, so the failure path is live, not just the happy path. | |
| 76 | +Exit status `1`; the failing link is named. | |
| 53 | 77 | |
| 54 | 78 | ## What it does not show |
| 55 | 79 | |
+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. | |
+13 −0 routes/p4-negative-fixture/README.md added View file
| @@ -0,0 +1,13 @@ | ||
| 1 | +--- | |
| 2 | +issue: 60 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# p4-negative-fixture | |
| 6 | + | |
| 7 | +Follow-up to P-4 (#48): commit the negative fixture for `routes/p4-guide-checker/check_guide.py` and record the maintainer's later-`main` count confirmation. | |
| 8 | + | |
| 9 | +## Work | |
| 10 | + | |
| 11 | +- Add `routes/p4-guide-checker/negative-fixture/` with a `GUIDE.md` whose link names a declaration at a comment line, a `Dummy.lean`, and the nested `Challenge.lean` the checker requires. | |
| 12 | +- Update `routes/p4-guide-checker/README.md` with the fixture command, its actual exit-1 output, and the `76b2f80` confirmation. | |
| 13 | +- Record the tool and command in `KNOWN.md`. | |
