Mathlib Map

Theorems · Theorem · number theory

ZMod.wilsons_lemma

∀ (p : ℕ) [inst : Fact (Nat.Prime p)], ↑(p - 1).factorial = -1

Wilson's Lemma: the product of 1, ..., p-1 is -1 modulo p.

Defined in
Mathlib.NumberTheory.Wilson
Cited by
2 results in Mathlib
Foundations
Depth 77 from the axioms · uses propext, Classical.choice, Quot.sound
Assumes
Fact

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites32

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

Cited by2

Results whose statement or proof uses this declaration.