Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | #!/bin/bash |
| 2 | #SBATCH --job-name=lake-build |
| 3 | #SBATCH --partition=lean |
| 4 | #SBATCH --time=01:00:00 |
| 5 | #SBATCH --cpus-per-task=4 |
| 6 | #SBATCH --mem=16G |
| 7 | # lake build (upstream's build.yml), the sorry and axiom gates, and Comparator, on the pushed commit ($SS_INPUT), in the |
| 8 | # project's Lean image (docker/) with no network. A push gets the build and the gates (main: 17 s, 1 GB at 4 CPUs, |
| 9 | # 12-02). Comparator's replay runs once per maintainer round with BUILD_REPLAY=1 ("replay": "round" in build.json): on |
| 10 | # the production host on 12-02 it exported 4.7 GB in 4 min, nanoda took ~10 min, and Lean's kernel had run 90 min and |
| 11 | # held 62 GB without a verdict when the run was stopped. These limits are the push's, not the replay's. |
| 12 | # The approved checks/build.py and checks/build.json say what is run; the image holds the toolchain, the dependencies |
| 13 | # and a build of the approved main, so only what the commit changed is rebuilt. Logs go beside the job's output. |
| 14 | set -euo pipefail |
| 15 | BUILD_LOGS="$PWD/logs" python3 -I checks/build.py "$SS_INPUT" checks/build.json |