Documentation

Mathlib.Data.ZMod.QuotientRing

ZMod n and quotient groups / rings #

This file relates ZMod n to the quotient ring ℤ ⧸ Ideal.span {(n : ℤ)}.

Main definitions #

Tags #

zmod, quotient ring, ideal quotient

modulo the ideal generated by n : ℕ is ZMod n.

Instances For
    def Int.quotientSpanEquivZMod (a : ) :
    Ideal.span {a} ≃+* ZMod a.natAbs

    modulo the ideal generated by a : ℤ is ZMod a.natAbs.

    Instances For
      noncomputable def ZMod.prodEquivPi {ι : Type u_3} [Fintype ι] (a : ι) (coprime : 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.

      Instances For
        noncomputable def ZMod.equivPi (n : ) (hn : n 0) :
        ZMod n ≃+* ((p : n.primeFactors) → ZMod (p ^ n.factorization p))

        The Chinese remainder theorem, version for ZMod n.

        Instances For