#!/bin/bash # Reproduce the Li–Liu build and axiom audit at the pinned commit. # This is heavy: it clones Mathlib's cache and builds the formalization. set -euo pipefail cd "$(dirname "$0")/.." COMMIT=c55db645f3b4aed00374fe4aa1fcee2428c88c4b URL=https://github.com/subfish-zhou/conditional-goldbach-lean.git WORK="${1:-$PWD/.work/conditional-goldbach-lean}" if [ ! -d "$WORK/.git" ]; then mkdir -p "$(dirname "$WORK")" git clone "$URL" "$WORK" fi git -C "$WORK" fetch --all --tags git -C "$WORK" checkout "$COMMIT" cd "$WORK/formalization" lake update lake exe cache get lake --wfail build python3 scripts/verify_project.py echo echo "Build and audit finished. Record the commit, the Lean/Mathlib versions, and the output hashes."