lean-golf

Check it yourself

Replay a published proof against its exact Lean statement.

Run the checker

From a checkout of Lean Golf, set up elan and Mathlib once using the native setup instructions. Lake reads the pinned Lean toolchain and Mathlib manifest.

lake exe golfcheck theorems/inf-primes theorems/inf-primes/Record.lean

Replace both copies of inf-primes with the record’s theorem slug. Look for "valid": true. Compare the score with record.json and the statement hash with theorem.json in that directory.

What CI checks

Golfcheck checks allowed imports, banned tokens and forbidden constants, compiles the proof and compares its theorem type with the trusted statement. The verifier checks the statement hash. The only allowed axioms are propext, Classical.choice and Quot.sound.

The merge workflow rechecks the submitted file offline before publishing a first or shorter proof. Example record: CI run · PR #42.

VERIFY.md · Checker rules and output