The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V07. Linear algebra

Mathlib.LinearAlgebra.FreeModule.ModN

11 declarations. Mathlib docs · Source

abbrev ModN E1 #

(G : Type u_1) → [AddCommGroup G] → ℕ → Type u_1

ModN G n denotes the quotient of G by multiples of n

instance ModN.instModuleZMod E0 #

{G : Type u_1} → [inst : AddCommGroup G] → {n : ℕ} → Module (ZMod n) (ModN G n)

def ModN.liftEquiv E1 #

{G : Type u_1} →
  {M : Type u_3} →
    [inst : AddCommGroup G] → {n : ℕ} → [inst_1 : AddMonoid M] → (ModN G n →+ M) ≃ { φ // ∀ (g : G), n • φ g = 0 }

The universal property of ModN G n in terms of monoids: Monoid homomorphisms from ModN G n are the same as monoid homomorphisms from G whose values are n-torsion.

def ModN.liftEquiv' E1 #

{G : Type u_1} →
  {H : Type u_2} →
    [inst : AddCommGroup G] →
      {n : ℕ} →
        [inst_1 : AddCommGroup H] →
          [inst_2 : Module (ZMod n) H] → (ModN G n →ₗ[ZMod n] H) ≃ { φ // ∀ (g : G), n • φ g = 0 }

The universal property of ModN G n in terms of ZMod n-modules: ZMod n-linear maps from ModN G n are the same as monoid homomorphisms from G whose values are n-torsion.

def ModN.mkQ E1 #

{G : Type u_1} → [inst : AddCommGroup G] → (n : ℕ) → G →+ ModN G n

The quotient map G → G / nG.

def ModN.basis E1 #

{G : Type u_1} →
  [inst : AddCommGroup G] →
    {n : ℕ} → [NeZero n] → {ι : Type u_4} → Module.Basis ι ℤ G → Module.Basis ι (ZMod n) (ModN G n)

Given a free module G over ℤ, construct the corresponding basis of G / ⟨n⟩ over ℤ / nℤ.

theorem ModN.basis_apply_eq_mkQ E1 #

∀ {G : Type u_1} [inst : AddCommGroup G] {n : ℕ} [inst_1 : NeZero n] {ι : Type u_4} (b : Module.Basis ι ℤ G) (i : ι),
  (ModN.basis b) i = (ModN.mkQ n) (b i)

theorem ModN.isAddTorsion E1 #

∀ {G : Type u_1} [inst : AddCommGroup G] {n : ℕ} [NeZero n], IsAddTorsion (ModN G n)

The quotient ModN G n is a torsion group.

instance ModN.instFinite E0 #

∀ {G : Type u_1} [inst : AddCommGroup G] {n : ℕ} [NeZero n] [Module.Finite ℤ G], Finite (ModN G n)

instance ModN.instModuleFinite E0 #

∀ {G : Type u_1} [inst : AddCommGroup G] {n : ℕ} [NeZero n] [Module.Finite ℤ G], Module.Finite (ZMod n) (ModN G n)

theorem ModN.natCard_eq E0 #

∀ (G : Type u_1) [inst : AddCommGroup G] (n : ℕ) [NeZero n] [Module.Finite ℤ G] [Module.Free ℤ G],
  Nat.card (ModN G n) = n ^ Module.finrank ℤ G