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 | |
| 2 | # Verify a route's Lean submission locally. |
| 3 | # |
| 4 | # GOLDBACH_LEAN_PROJECT=/path/to/conditional-goldbach-lean/formalization \ |
| 5 | # scripts/lean-local.sh h-log routes/my-route |
| 6 | # |
| 7 | # This copies UserChallenge.lean and UserSolution.lean into the Li–Liu project. |
| 8 | # Use a disposable copy of that project, or the Docker image. |
| 9 | set -euo pipefail |
| 10 | TARGET="${1:?target id, e.g. h-log or r}" |
| 11 | ROUTE="${2:?route folder, e.g. routes/my-route}" |
| 12 | ROOT="$(cd "$(dirname "$0")/.." && pwd)" |
| 13 | PROJECT="${GOLDBACH_LEAN_PROJECT:?set GOLDBACH_LEAN_PROJECT to the Li-Liu formalization dir}" |
| 14 | |
| 15 | test -d "$PROJECT/ConditionalGoldbach" || { |
| 16 | echo "$PROJECT: not the Li-Liu formalization (no ConditionalGoldbach/)" >&2 |
| 17 | exit 1 |
| 18 | } |
| 19 | test -f "$ROOT/targets/$TARGET/Challenge.lean" || { |
| 20 | echo "unknown target: $TARGET" >&2 |
| 21 | exit 1 |
| 22 | } |
| 23 | test -f "$ROUTE/Solution.lean" || { |
| 24 | echo "$ROUTE/Solution.lean: missing" >&2 |
| 25 | exit 1 |
| 26 | } |
| 27 | |
| 28 | cp "$ROOT/targets/$TARGET/Challenge.lean" "$PROJECT/ConditionalGoldbach/UserChallenge.lean" |
| 29 | cp "$ROUTE/Solution.lean" "$PROJECT/ConditionalGoldbach/UserSolution.lean" |
| 30 | |
| 31 | cd "$PROJECT" |
| 32 | lake build ConditionalGoldbach.UserChallenge |
| 33 | lake build ConditionalGoldbach.UserSolution |
| 34 | lake comparator --config "$ROOT/targets/$TARGET/comparator.json" |
| 35 | |
| 36 | echo |
| 37 | echo "$TARGET: comparator passed. Run #print axioms if you need the axiom list." |