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.Dimension.DivisionRing

12 declarations. Mathlib docs · Source

Dimension of vector spaces

In this file we provide results about Module.rank and Module.finrank of vector spaces over division rings.

Main statements

For vector spaces (i.e. modules over a division ring), we have

  • rank_quotient_add_rank_of_divisionRing: if V₁ is a submodule of V, then Module.rank (V/V₁) + Module.rank V₁ = Module.rank V.
  • DivisionRing.hasRankNullity: The rank-nullity theorem for division rings.
  • Submodule.rank_span_le_rank: The K-rank of the K-span of an R-submodule M of V is at most the R-rank of M.

See also Mathlib/LinearAlgebra/Dimension/ErdosKaplansky.lean for the Erdős-Kaplansky theorem.

theorem Module.Basis.finite_ofVectorSpaceIndex_of_rank_lt_aleph0 E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V],
  Module.rank K V < Cardinal.aleph0 → (Module.Basis.ofVectorSpaceIndex K V).Finite

If a vector space has a finite dimension, the index set of Basis.ofVectorSpace is finite.

theorem rank_quotient_add_rank_of_divisionRing E3 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] (p : Submodule K V),
  Module.rank K (V ⧸ p) + Module.rank K ↥p = Module.rank K V

Also see rank_quotient_add_rank.

instance DivisionRing.hasRankNullity E3 #

∀ {K : Type u} [inst : DivisionRing K], HasRankNullity.{u₀, u} K

theorem rank_add_rank_split E1 #

∀ {K : Type u} {V V₁ V₂ V₃ : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  [inst_3 : AddCommGroup V₁] [inst_4 : Module K V₁] [inst_5 : AddCommGroup V₂] [inst_6 : Module K V₂]
  [inst_7 : AddCommGroup V₃] [inst_8 : Module K V₃] (db : V₂ →ₗ[K] V) (eb : V₃ →ₗ[K] V) (cd : V₁ →ₗ[K] V₂)
  (ce : V₁ →ₗ[K] V₃),
  ⊤ ≤ db.range ⊔ eb.range →
    cd.ker = ⊥ →
      db ∘ₗ cd = eb ∘ₗ ce →
        (∀ (d : V₂) (e : V₃), db d = eb e → ∃ c, cd c = d ∧ ce c = e) →
          Module.rank K V + Module.rank K V₁ = Module.rank K V₂ + Module.rank K V₃

This is mostly an auxiliary lemma for Submodule.rank_sup_add_rank_inf_eq.

theorem Submodule.rank_span_le_rank E3 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {R : Type u_1}
  [inst_3 : CommRing R] [Nontrivial R] [inst_5 : SMulWithZero R K] [FaithfulSMul R K] [IsScalarTower R K K]
  [inst_8 : Module R V] [IsScalarTower R K V] (M : Submodule R V),
  Module.rank K ↥(Submodule.span K ↑M) ≤ Module.rank R ↥M

The K-rank of the K-span of an R-submodule M of V is at most the R-rank of M.

theorem Submodule.rank_span_le_rank_span E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {R : Type u_1}
  [inst_3 : CommRing R] [Nontrivial R] [inst_5 : SMulWithZero R K] [FaithfulSMul R K] [IsScalarTower R K K]
  [inst_8 : Module R V] [IsScalarTower R K V] (s : Set V),
  Module.rank K ↥(Submodule.span K s) ≤ Module.rank R ↥(Submodule.span R s)

The K-rank of the K-span of a set s in V is at most the R-rank of the R-span of s.

theorem Submodule.finrank_span_le_finrank E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {R : Type u_1}
  [inst_3 : CommRing R] [Nontrivial R] [inst_5 : SMulWithZero R K] [FaithfulSMul R K] [IsScalarTower R K K]
  [inst_8 : Module R V] [IsScalarTower R K V] (M : Submodule R V),
  M.FG → Module.finrank K ↥(Submodule.span K ↑M) ≤ Module.finrank R ↥M

The K-rank of the K-span of a finitely generated R-submodule M of V is at most the R-rank of M. This is the Module.finrank version of Submodule.rank_span_le_rank.

theorem Submodule.finrank_span_le_finrank_span E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {R : Type u_1}
  [inst_3 : CommRing R] [Nontrivial R] [inst_5 : SMulWithZero R K] [FaithfulSMul R K] [IsScalarTower R K K]
  [inst_8 : Module R V] [IsScalarTower R K V] {s : Set V},
  s.Finite → Module.finrank K ↥(Submodule.span K s) ≤ Module.finrank R ↥(Submodule.span R s)

The K-rank of the K-span of a finite set s in V is at most the R-rank of the R-span of s. This is the Module.finrank version of Submodule.rank_span_le_rank_span.

theorem Submodule.rank_span_eq_rank_of_linearIndepOn E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {R : Type u_1}
  [inst_3 : CommRing R] [Nontrivial R] [inst_5 : SMulWithZero R K] [FaithfulSMul R K] [IsScalarTower R K K]
  [inst_8 : Module R V] [IsScalarTower R K V] (M : Submodule R V),
  (∀ s ⊆ ↑M, LinearIndepOn R id s → LinearIndepOn K id s) → Module.rank K ↥(Submodule.span K ↑M) = Module.rank R ↥M

If every R-linearly independent subset of M is K-linearly independent, then the K-rank of the K-span of M equals the R-rank of M.

theorem Submodule.finrank_span_eq_finrank_of_linearIndepOn E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {R : Type u_1}
  [inst_3 : CommRing R] [Nontrivial R] [inst_5 : SMulWithZero R K] [FaithfulSMul R K] [IsScalarTower R K K]
  [inst_8 : Module R V] [IsScalarTower R K V] (M : Submodule R V),
  (∀ s ⊆ ↑M, LinearIndepOn R id s → LinearIndepOn K id s) →
    Module.finrank K ↥(Submodule.span K ↑M) = Module.finrank R ↥M

If every R-linearly independent subset of M is K-linearly independent, then the K-rank of the K-span of M equals the R-rank of M.

This is the Module.finrank version of Submodule.rank_span_eq_rank_of_linearIndepOn; see also Submodule.finrank_span_eq_finrank for an equality in a different setting.

theorem Submodule.linearIndepOn_of_finrank_le_finrank_span E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {R : Type u_1}
  [inst_3 : CommRing R] [Nontrivial R] [inst_5 : SMulWithZero R K] [FaithfulSMul R K] [IsScalarTower R K K]
  [inst_8 : Module R V] [IsScalarTower R K V] (M : Submodule R V),
  M.FG →
    Module.finrank R ↥M ≤ Module.finrank K ↥(Submodule.span K ↑M) →
      ∀ {s : Set V}, s ⊆ ↑M → LinearIndepOn R id s → LinearIndepOn K id s

If the R-rank of a finitely generated R-module M is at most the K-rank of the K-span of M, then every R-linearly independent subset of M is K-linearly independent.

theorem Submodule.finrank_span_eq_finrank_iff E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {R : Type u_1}
  [inst_3 : CommRing R] [Nontrivial R] [inst_5 : SMulWithZero R K] [FaithfulSMul R K] [IsScalarTower R K K]
  [inst_8 : Module R V] [IsScalarTower R K V] (M : Submodule R V),
  M.FG →
    (Module.finrank K ↥(Submodule.span K ↑M) = Module.finrank R ↥M ↔
      ∀ s ⊆ ↑M, LinearIndepOn R id s → LinearIndepOn K id s)

The K-rank of the K-span of a finitely generated M is equal to the R-rank of M if and only if every R-linearly independent subset of M is K-linearly independent. See also Submodule.finrank_span_eq_finrank for an equality in a different setting.