Local rings modulo prime powers #
For a positive power of a prime, a residue is a unit exactly when its reduction
modulo the prime is nonzero. Mathlib's instance in Mathlib.RingTheory.ZMod.LocalRing makes the
prime-power ring local; in that local ring, equality in the residue field is equality after
reduction modulo the prime. The statements include the prime two and exclude the exponent-zero
trivial ring.
Main declarations #
ZMod.isUnit_prime_pow_iff_castHom_ne_zero: the unit criterion under reduction.ZMod.residue_eq_residue_iff_castHom_eq: equality in the residue field is equality after reduction modulo the prime.
theorem
ZMod.residue_eq_residue_iff_castHom_eq
(p k : ℕ)
[Fact (Nat.Prime p)]
[IsLocalRing (ZMod (p ^ k))]
(hk : 0 < k)
(x y : ZMod (p ^ k))
:
For a positive prime power, two residues have the same image in the local-ring residue field exactly when their reductions modulo the prime are equal.