#!/bin/bash #SBATCH --job-name=lean-verify #SBATCH --time=30:00 # Verify a route's fixed-statement Lean submission with the approved Challenge, comparator and axiom audit. # # The approved project (this checkout) supplies checks/lean_verify.py, targets/ and the comparator configuration; the # route supplies only target.json and Solution.lean. The pinned Li-Liu project comes from the image, never from the # route. # # The score file is written to the job's working directory, where the runner looks for the "metrics" file named in # scienceslack.json. set -euo pipefail REPO="$(cd "$(dirname "$0")" && pwd)" WORK="$(mktemp -d)" trap 'rm -rf "$WORK"' EXIT python3 "$REPO/checks/lean_verify.py" \ --route "$SS_INPUT/${SS_ROUTE_DIR:-.}" \ --approved "$REPO" \ --project "${GOLDBACH_LEAN_PROJECT:-/opt/goldbach/formalization}" \ --work "$WORK" \ --metrics lean-metrics.json