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.Finite.CardQuotient

5 declarations. Mathlib docs · Source

Cardinal of quotient of free finite ℤ-modules by submodules of full rank

Main results

  • Submodule.natAbs_det_basis_change: let b be a ℤ-basis for a module M over ℤ and let bN be a basis for a submodule N of the same dimension. Then the cardinal of M ⧸ N is given by taking the determinant of bN over b.

theorem Submodule.natAbs_det_equiv E1 #

∀ {M : Type u_1} [inst : AddCommGroup M] [Module.Free ℤ M] [Module.Finite ℤ M] (N : Submodule ℤ M) {E : Type u_2}
  [inst_3 : EquivLike E M ↥N] [inst_4 : AddEquivClass E M ↥N] (e : E),
  (LinearMap.det (N.subtype ∘ₗ (↑e).toIntLinearMap)).natAbs = Nat.card (M ⧸ N)

Let e : M ≃ N be an additive isomorphism (therefore a ℤ-linear equiv). Then an alternative way to compute the cardinality of the quotient M ⧸ N is given by taking the determinant of e. See natAbs_det_basis_change for a more familiar formulation of this result.

theorem Submodule.natAbs_det_basis_change E3 #

∀ {M : Type u_1} [inst : AddCommGroup M] [Module.Free ℤ M] [Module.Finite ℤ M] {ι : Type u_2} [inst_3 : Fintype ι]
  [inst_4 : DecidableEq ι] (b : Module.Basis ι ℤ M) (N : Submodule ℤ M) (bN : Module.Basis ι ℤ ↥N),
  (b.det (Subtype.val ∘ ⇑bN)).natAbs = Nat.card (M ⧸ N)

Let b be a basis for M over ℤ and bN a basis for N over ℤ of the same dimension. Then an alternative way to compute the cardinality of M ⧸ N is given by taking the determinant of bN over b.

theorem AddSubgroup.index_eq_natAbs_det E1 #

∀ {E : Type u_1} [inst : AddCommGroup E] {ι : Type u_2} [inst_1 : DecidableEq ι] [inst_2 : Fintype ι]
  (bE : Module.Basis ι ℤ E) (N : AddSubgroup E) (bN : Module.Basis ι ℤ ↥N), N.index = (bE.det fun x ↦ ↑(bN x)).natAbs

theorem AddSubgroup.relIndex_eq_natAbs_det E1 #

∀ {E : Type u_1} [inst : AddCommGroup E] (L₁ L₂ : AddSubgroup E) (H : L₁ ≤ L₂) {ι : Type u_2} [inst_1 : DecidableEq ι]
  [inst_2 : Fintype ι] (b₁ : Module.Basis ι ℤ ↥(AddSubgroup.toIntSubmodule L₁))
  (b₂ : Module.Basis ι ℤ ↥(AddSubgroup.toIntSubmodule L₂)), L₁.relIndex L₂ = (b₂.det fun i ↦ ⟨↑(b₁ i), ⋯⟩).natAbs

theorem AddSubgroup.relIndex_eq_abs_det E1 #

∀ {E : Type u_1} [inst : AddCommGroup E] [inst_1 : Module ℚ E] (L₁ L₂ : AddSubgroup E),
  L₁ ≤ L₂ →
    ∀ {ι : Type u_2} [inst_2 : DecidableEq ι] [inst_3 : Fintype ι] (b₁ b₂ : Module.Basis ι ℚ E),
      L₁ = AddSubgroup.closure (Set.range ⇑b₁) →
        L₂ = AddSubgroup.closure (Set.range ⇑b₂) → ↑(L₁.relIndex L₂) = |b₂.det ⇑b₁|