Theorems · Theorem · number theory
ZMod.cast_sub_one
∀ {R : Type u_1} [inst : Ring R] {n : ℕ} (k : ZMod n), (k - 1).cast = (if k = 0 then ↑n else k.cast) - 1- Defined in
- Mathlib.Data.ZMod.Basic
- Cited by
- 1 results in Mathlib
- Foundations
- Depth 59 from the axioms · uses propext, Classical.choice, Quot.sound
- Assumes
- Ring
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites10
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Ringstatement and proof · cited by 7,463
- Nat.cast_oneproof · cited by 2,501
- ZModstatement and proof · cited by 1,024
- Int.cast_oneproof · cited by 371
- zero_subproof · cited by 335
- ZMod.caststatement and proof · cited by 87
- Int.cast_subproof · cited by 78
- Nat.cast_subproof · cited by 54
- Fin.coe_sub_oneproof · cited by 1
- ZMod.cast_neg_oneproof · cited by 1
Cited by1
Results whose statement or proof uses this declaration.
- Subgroup.transferTransversal_apply''proof · cited by 1