@[simp]
unitsMap_val shows that coercing from (ZMod m)หฃ to ZMod n gives the same result
when going via (ZMod n)หฃ and ZMod m.
theorem
ZMod.unitsMap_surjective
{n m : โ}
[hm : NeZero m]
(h : n โฃ m)
:
Function.Surjective โ(unitsMap h)
Any element of ZMod N has the form u * d where u is a unit and d is a divisor of N.
theorem
ZMod.coe_int_mul_inv_eq_one
{n : โ}
{x : โค}
(h : IsCoprime x โn)
:
โx * (โx)โปยน = 1
theorem
ZMod.coe_int_inv_mul_eq_one
{n : โ}
{x : โค}
(h : IsCoprime x โn)
:
(โx)โปยน * โx = 1
The unit of ZMod m associated with an integer prime to n.
Instances For
@[simp]
theorem
ZMod.coe_unitOfIsCoprime
{m : โ}
(n : โค)
(h : IsCoprime n โm)
:
โ(unitOfIsCoprime n h) = โn