Ring-theoretic facts about ZMod n #
We collect a few facts about ZMod n that need some ring theory to be proved/stated.
Main statements #
ZMod.ker_intCastRingHom: the ring homomorphismℤ → ZMod nhas kernel generated byn.ZMod.ringHom_eq_of_ker_eq: two ring homomorphisms intoZMod nwith equal kernels are equal.isReduced_zmod:ZMod nis reduced for all squarefreen.
The ring homomorphism ℤ → ZMod n has kernel generated by n.
theorem ZMod.ringHom_eq_of_ker_eq {n : ℕ} {R : Type u_1} [Ring R] (f g : R →+* ZMod n) (h : RingHom.ker f = RingHom.ker g) :
Two ring homomorphisms into ZMod n with equal kernels are equal.
@[simp]
ZMod n is reduced iff n is square-free (or n=0).