Excerpt from the Lean receipt above (full SHA-256 bindings)
{
"schema_version": "mathcase-lean-verification-v3",
"problem_id": "hero-prime-divisibility-r1",
"input_proof": "by intro p n hp h; exact Nat.Prime.dvd_of_dvd_pow hp h",
"problem_statement_sha256": "a4847b7914de65538472cdef088ad69b39d59f66e9e2af81ad852ad836321832",
"proof_sha256": "03602b73efcddecf3f025c5bf6e5b8cfaac5abedc065a9b8c3e0626e4a3e26ca",
"generated_source_sha256": "34b5edc1d9b5bbd5b750e23184edcfaa481de195ed504a28f379b059497caaa9",
"toolchain": "leanprover/lean4:v4.33.1",
"imports": ["Mathlib.Data.Nat.Prime.Basic"],
"allowed_axioms": ["Classical.choice", "Quot.sound", "propext"],
"observed_axioms": ["propext", "Classical.choice", "Quot.sound"],
"kernel_passed": true,
"status": "PASSED"
}
Read the full receipt on GitHub →
Replay the 23-step Collatz proof · Lean core only
Use Git, Python 3 and elan. In a new directory, fetch the checked source and install its Lean version.
git clone https://github.com/DarthCeltic/MathCase.git
cd MathCase
git checkout --detach 491bd436227044a5f6d6b202120e33fa1cefc7fc
elan toolchain install leanprover/lean4:v4.33.1
Windows PowerShell
$env:ELAN_TOOLCHAIN = 'leanprover/lean4:v4.33.1'
python -B scripts/run_public_case.py collatz-parity-envelope-23-14 --lean "$(elan which lean)"
macOS or Linux
python3 -B scripts/run_public_case.py collatz-parity-envelope-23-14 --lean "$(ELAN_TOOLCHAIN=leanprover/lean4:v4.33.1 elan which lean)"
A successful replay checks four Lean files. The download and compile time depend on your machine.
Replay the prime and √2 proofs (fetches pinned Mathlib 0df444a360eaa60ab8c11dca51a86af692955474; needs several GB)
python -B reproduction/prime-sqrt2-source-replay-v1/verify_prime_sqrt2.py --bootstrap ./mathlib4-v4.33.1 --repo . --output ./replay.json
What the hashes do: SHA-256 makes the record tamper-evident and ties each verdict to exact bytes. It does not prove anything by itself; the Lean kernel's check is the proof. A replay recompiles the pinned source with the same toolchain and prints the axioms again, so you can compare the result with the receipt.