Lean verification record
Checked Artifact: Wilson's Theorem (mathlib)
Proof Atlas collected build, no-sorry, axiom, and clean-source evidence directly from the pinned upstream declaration.
Verification result
The recorded Lean checks passed
- Build replaypassed with retained transcript
- Unfinished stepsNone found
- Source identityPinned commit and file recorded
- Dependency profileAxiom closure recorded
Reproducibility details
What the checker recorded
- Declaration checked
Nat.prime_iff_fac_equiv_neg_one- Module
Mathlib.NumberTheory.Wilson- Source file checked
Mathlib/NumberTheory/Wilson.lean- Package commit
5e932f97dd25535344f80f9dd8da3aab83df0fe6- Build transcript
- passed · retained with this record
- Unfinished proof steps
- None found by the recorded no-sorry scan
- Axiom closure
- Classical.choice, Quot.sound, propext
- Collection provenance
- Clean source state recorded
ProofAtlas record
What has been checked
Mathlib is the source of the theorem; the local Lean replay and page review are separate.
Evidence boundary
Exact formal statement only
This target indexes Mathlib's equivalence for every natural number n ≠ 1: n is prime exactly when the cast of (n−1)! in ZMod n equals −1. The prime direction includes n = 2, where 1 and −1 are the same residue. The converse handles n = 0 separately before treating the remaining nonprime case. It does not assert a fast primality algorithm, a result for n = 1, or a new proof.
This checker record does not establish novelty, transfer a historical acceptance decision, or authorize publication.