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 | # Lean image |
| 2 | |
| 3 | The default verification is **remote**: a route submits `target.json` and `Solution.lean`, and the project's runner checks them. You do not need Lean on your machine. |
| 4 | |
| 5 | **No image is published yet (2026-11-27)**: build it locally from `lean-check.Dockerfile` (below). Once published, the image will be hosted on **Hugging Face**: |
| 6 | |
| 7 | ``` |
| 8 | registry.hf.co/<hf-org>/goldbach-lean:4.35 |
| 9 | ``` |
| 10 | |
| 11 | Pin the digest (for example `registry.hf.co/<hf-org>/goldbach-lean@sha256:<digest>`) in `checks.lean.image` and in this file. Tags move; digests do not. |
| 12 | |
| 13 | ## Pull and use |
| 14 | |
| 15 | ```bash |
| 16 | export GOLDBACH_LEAN_IMAGE=registry.hf.co/<hf-org>/goldbach-lean:4.35 |
| 17 | scripts/lean-docker.sh setup # anonymous pull; build if absent |
| 18 | scripts/lean-docker.sh check h-log routes/me # same Challenge/comparator as the platform |
| 19 | scripts/lean-docker.sh shell # inspect the image |
| 20 | ``` |
| 21 | |
| 22 | `check` runs with `--network none` and mounts the repository at `/work` read-only. The verifier copies the approved Challenge and your Solution into `/opt/goldbach/formalization/ConditionalGoldbach/` inside the container and writes scratch files under `/tmp`; it does not write to the mounted repository and never sees a token. |
| 23 | |
| 24 | ## Build and publish to Hugging Face |
| 25 | |
| 26 | ```bash |
| 27 | # 1. build locally |
| 28 | scripts/lean-docker.sh build |
| 29 | |
| 30 | # 2. log in to the HF registry (token with write scope) |
| 31 | docker login registry.hf.co -u <hf-user> -p <hf-token> |
| 32 | |
| 33 | # 3. tag and push |
| 34 | scripts/lean-docker.sh publish registry.hf.co/<hf-org>/goldbach-lean:4.35 |
| 35 | |
| 36 | # 4. make the Hugging Face repository public, then verify anonymously |
| 37 | docker logout registry.hf.co |
| 38 | docker pull registry.hf.co/<hf-org>/goldbach-lean:4.35 |
| 39 | docker image inspect --format '{{index .RepoDigests 0}}' \ |
| 40 | registry.hf.co/<hf-org>/goldbach-lean:4.35 |
| 41 | ``` |
| 42 | |
| 43 | Write the digest into `scienceslack.json`: |
| 44 | |
| 45 | ```json |
| 46 | "checks": { |
| 47 | "lean": { |
| 48 | "image": "registry.hf.co/<hf-org>/goldbach-lean@sha256:<digest>" |
| 49 | } |
| 50 | } |
| 51 | ``` |
| 52 | |
| 53 | Confirm the exact registry path when you create the Hugging Face repository; the `<hf-org>` placeholder is not a valid namespace. |
| 54 | |
| 55 | ## License before publishing |
| 56 | |
| 57 | The Li–Liu repository has **no declared license**. A public image containing its Lean code redistributes that code. Before publishing the Li layer: |
| 58 | |
| 59 | 1. ask the Li–Liu authors for permission or a license, or |
| 60 | 2. publish a **toolchain-only** image (Lean + Mathlib + cache, no Li–Liu code) and build the Li layer privately on the runner or locally from the user's clone. |
| 61 | |
| 62 | Do not publish the Li layer without permission. |
| 63 | |
| 64 | ## When not to use this |
| 65 | |
| 66 | - You are happy with the remote check: just push `target.json` + `Solution.lean`. |
| 67 | - You already have Lean 4.35 and the pinned Li–Liu project: use `scripts/lean-local.sh`. |
| 68 | - You have no Docker and no Lean: use the remote check. |