From GRH to Goldbach: the spectral bridge
Verify the 2026 conditional proof GRH + S ⇒ Goldbach, settle its finite parts, and attack the hypothesis that is left

| 1 | # Checks |
| 2 | |
| 3 | The project's checks are declared in `scienceslack.json`: |
| 4 | |
| 5 | ```json |
| 6 | "checks": { |
| 7 | "count": { |
| 8 | "path": "checks/verify.sbatch", |
| 9 | "metrics": "count-metrics.json", |
| 10 | "gate": false, |
| 11 | "reads": ["CERTIFICATE.json"] |
| 12 | } |
| 13 | } |
| 14 | ``` |
| 15 | |
| 16 | ## What it verifies |
| 17 | |
| 18 | `verify.py` checks a route's `CERTIFICATE.json` for **E-6** (the example) and **C-1** (Appendix B exactly). |
| 19 | |
| 20 | For **E-6**: |
| 21 | |
| 22 | - `target` is `E-6`, `N` is 30030; |
| 23 | - every pair `[p, q]` has `p <= q`, `p + q = 30030`, and both entries prime; |
| 24 | - no unordered pair repeats; |
| 25 | - the set of pairs equals the set recomputed by the checker; |
| 26 | - the count is 905. |
| 27 | |
| 28 | It prints `E-6: 905` on success. |
| 29 | |
| 30 | For **C-1** it recomputes, in exact rationals with only the standard library, the paper's Appendix B for N = 30030: |
| 31 | the 905 pairs, B-01's 75 edge pairs and E, the 26 proper-prime-power pairs and C_pp/2, N·J, and the identity |
| 32 | N·J/2 − C_pp/2 + E = 905, and compares the certificate's values as fractions (in about 0.1 s). It prints |
| 33 | `C-1: Appendix B exact` on success. |
| 34 | |
| 35 | It writes the metrics file only when `--metrics` is given and the certificate passes. A route with no |
| 36 | `CERTIFICATE.json` passes with "Nothing to check yet" and reports no value. |
| 37 | |
| 38 | A certificate for another target in `docs/submission.md` (C-2 … C-5) exits 0 with "no automatic verifier for |
| 39 | <target> yet": the project has not fixed that schema, and a route must not go red for it. A maintainer reads it. An |
| 40 | unknown target is an error. |
| 41 | |
| 42 | ## Run it locally |
| 43 | |
| 44 | ```bash |
| 45 | python3 checks/verify.py examples/count-30030 |
| 46 | python3 checks/verify.py routes/<name> |
| 47 | python3 scripts/make-certs.sh |
| 48 | ``` |
| 49 | |
| 50 | ## Run it on the platform |
| 51 | |
| 52 | The check runs `checks/verify.sbatch` in the approved version (the commit tagged `checks`), with: |
| 53 | |
| 54 | - the job's working directory — the **approved** version of the project, so `checks/verify.sbatch` and `checks/verify.py` |
| 55 | run from there and a route that edits a checker changes nothing; |
| 56 | - `$SS_INPUT` — the root of the pushed commit; |
| 57 | - `$SS_ROUTE_DIR` — the route's folder; the certificate is read from `$SS_INPUT/$SS_ROUTE_DIR`. |
| 58 | |
| 59 | `verify.sbatch` calls the approved `verify.py` on that folder and writes `count-metrics.json` to the **working |
| 60 | directory**, where the runner looks for the file named by `"metrics"`. Writing it into `$SS_INPUT` loses the score. |
| 61 | |
| 62 | ## The Lean check |
| 63 | |
| 64 | The second check, `lean`, verifies a fixed-statement Lean submission: |
| 65 | |
| 66 | ```json |
| 67 | "lean": { |
| 68 | "path": "checks/lean.sbatch", |
| 69 | "image": "goldbach-lean:4.35", |
| 70 | "metrics": "lean-metrics.json", |
| 71 | "gate": false, |
| 72 | "paths": ["**/*.lean", "**/target.json"], |
| 73 | "reads": ["Solution.lean", "target.json"] |
| 74 | } |
| 75 | ``` |
| 76 | |
| 77 | A route supplies `target.json` (`{"target": "h-log"}`) and `Solution.lean`, read from `$SS_INPUT/$SS_ROUTE_DIR`. The |
| 78 | approved `lean_verify.py` and `targets/` come from the job's working directory, the pinned Li–Liu project from the image |
| 79 | at `/opt/goldbach/formalization`, and the score `lean-metrics.json` is written to the working directory. `lean_verify.py` |
| 80 | copies the **approved** Challenge to `ConditionalGoldbach/UserChallenge.lean`, the route's solution to `ConditionalGoldbach/UserSolution.lean`, builds both, runs `lake comparator`, and parses `#print axioms`. The route never supplies the challenge, comparator, lakefile, or toolchain. |
| 81 | |
| 82 | **Not declared yet.** `scienceslack.json` declares the `lean` check only once a runner has the toolchain (no public |
| 83 | image is published: build it from `docker/lean-check.Dockerfile`). Until then a maintainer reruns a route's solution |
| 84 | with `scripts/lean-local.sh` or `scripts/lean-docker.sh check not-r routes/<name>`. |
| 85 | |
| 86 | The image is built from `docker/lean-check.Dockerfile`. See `docs/lean-verification.md`. |
| 87 | |
| 88 | `gate` is `false` in the initial repository so a missing image cannot block merges. After building the image and passing the `end-to-end` target as a smoke test, set it to `true`. |
| 89 | |
| 90 | ## Add a new check |
| 91 | |
| 92 | 1. Add a script under `checks/` that exits 0 on success and 1 on the first error. |
| 93 | 2. Print a clear last line, or write the metrics file named in `scienceslack.json` with `{"score": ..., "subtasks": {...}}`. |
| 94 | 3. Add an entry under `checks` in `scienceslack.json`. |
| 95 | 4. Open a pull request; the maintainers approve the rules by moving the `checks` tag. |
| 96 | |
| 97 | Do not add a check that only repeats the expected number. It must recompute the claim or verify a certificate/proof. |