Mathlib.Data.ZMod.QuotientRing
10 declarations. Mathlib docs · Source
ZMod n and quotient groups / rings
This file relates ZMod n to the quotient ring ℤ ⧸ Ideal.span {(n : ℤ)}.
Main definitions
ZMod.quotient_span_nat_equiv_zmodandZMod.quotientSpanEquivZMod:ZMod nis the ring quotient ofℤbyn ℤ : Ideal.span {n}(wheren : ℕandn : ℤrespectively)
Tags
zmod, quotient ring, ideal quotient
def Int.quotientSpanNatEquivZMod E1 #
(n : ℕ) → ℤ ⧸ Ideal.span {↑n} ≃+* ZMod n
ℤ modulo the ideal generated by n : ℕ is ZMod n.
def Int.quotientSpanEquivZMod E1 #
(a : ℤ) → ℤ ⧸ Ideal.span {a} ≃+* ZMod a.natAbs
ℤ modulo the ideal generated by a : ℤ is ZMod a.natAbs.
theorem Int.quotientSpanNatEquivZMod_comp_Quotient_mk E0 #
∀ (n : ℕ), (↑(Int.quotientSpanNatEquivZMod n)).comp (Ideal.Quotient.mk (Ideal.span {↑n})) = Int.castRingHom (ZMod n)
theorem Int.quotientSpanNatEquivZMod_comp_castRingHom E0 #
∀ (n : ℕ),
(↑(Int.quotientSpanNatEquivZMod n).symm).comp (Int.castRingHom (ZMod n)) = Ideal.Quotient.mk (Ideal.span {↑n})
theorem Int.quotientSpanEquivZMod_comp_Quotient_mk E0 #
∀ (n : ℤ), (↑n.quotientSpanEquivZMod).comp (Ideal.Quotient.mk (Ideal.span {n})) = Int.castRingHom (ZMod n.natAbs)
theorem Int.quotientSpanEquivZMod_comp_castRingHom E0 #
∀ (n : ℤ), (↑n.quotientSpanEquivZMod.symm).comp (Int.castRingHom (ZMod n.natAbs)) = Ideal.Quotient.mk (Ideal.span {n})
instance Int.instFiniteQuotientIdealSpanSingletonSetOfNeZero E0 #
∀ {n : ℤ} [NeZero n], Finite (ℤ ⧸ Ideal.span {n})
def ZMod.prodEquivPi E3 #
{ι : Type u_2} →
[inst : Fintype ι] →
(a : ι → ℕ) → Pairwise (Function.onFun Nat.Coprime a) → ZMod (∏ i, a i) ≃+* ((i : ι) → ZMod (a i))
The Chinese remainder theorem, elementary version for ZMod. See also
Mathlib/Data/ZMod/Basic.lean for versions involving only two numbers.
theorem ZMod.prodEquivPi_apply E0 #
∀ {ι : Type u_2} [inst : Fintype ι] (a : ι → ℕ) (coprime : Pairwise (Function.onFun Nat.Coprime a))
(b : ZMod (∏ i, a i)) (i : ι), (ZMod.prodEquivPi a coprime) b i = (ZMod.castHom ⋯ (ZMod (a i))) b
def ZMod.equivPi E1 #
(n : ℕ) → n ≠ 0 → ZMod n ≃+* ((p : ↥n.primeFactors) → ZMod (↑p ^ n.factorization ↑p))
The Chinese remainder theorem, version for ZMod n.