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
| 1 | # Lean image |
| 2 | |
| 3 | `lean.Dockerfile` builds the image the `build` check runs in. Tag: `shoal-goldbach-lean:c55db645` |
| 4 | (`scienceslack.json` names it). Build it on the runner's machine, from a checkout of the project's main as the context: |
| 5 | |
| 6 | ```bash |
| 7 | git clone <the project's repository> /tmp/goldbach-main |
| 8 | git -C /tmp/goldbach-main checkout <main's commit> |
| 9 | docker build -f /tmp/goldbach-main/docker/lean.Dockerfile -t shoal-goldbach-lean:c55db645 /tmp/goldbach-main |
| 10 | ``` |
| 11 | |
| 12 | The build needs the network (the Lean release, Mathlib's cache, goldbach-lean and LeanArchitect). The check runs the |
| 13 | image with `--network none`: it copies a commit's tree to a scratch directory, gives it `/opt/proof/.lake`, and runs |
| 14 | `lake build` and `lake comparator --config comparator.json`. |
| 15 | |
| 16 | The image holds the toolchain (v4.35.0, which ships `lake comparator`, its exporter, `nanoda_bin` and `leanchecker`), |
| 17 | bubblewrap for Comparator's sandbox, and a full build of the approved main: the library, the Comparator project and |
| 18 | the open statements. Rebuild it under a new tag, and change the tag in `scienceslack.json` in the same pull request, |
| 19 | when main's `lean-toolchain` or `lake-manifest.json` changes; the check refuses a commit whose toolchain the image |
| 20 | does not have. |
