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

62 declarations and 2 deprecated aliases. Mathlib docs · Source

Conditions for rank to be finite

Also contains characterization for when rank equals zero or rank equals one.

theorem linearIndependent_bounded_of_finset_linearIndependent_bounded E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : ℕ},
  (∀ (s : Finset M), (LinearIndependent R fun i ↦ ↑i) → s.card ≤ n) →
    ∀ (s : Set M), LinearIndependent R Subtype.val → Cardinal.mk ↑s ≤ ↑n

If every finite set of linearly independent vectors has cardinality at most n, then the same is true for arbitrary sets of linearly independent vectors.

theorem rank_le E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : ℕ},
  (∀ (s : Finset M), (LinearIndependent R fun i ↦ ↑i) → s.card ≤ n) → Module.rank R M ≤ ↑n

theorem rank_eq_zero_iff E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M],
  Module.rank R M = 0 ↔ ∀ (x : M), ∃ a, a ≠ 0 ∧ a • x = 0

See rank_zero_iff for a stronger version with IsTorsionFree R M.

theorem rank_zero_iff_forall_zero E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M], Module.rank R M = 0 ↔ ∀ (x : M), x = 0

theorem rank_zero_iff E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M], Module.rank R M = 0 ↔ Subsingleton M

See rank_subsingleton for the reason that Nontrivial R is needed. Also see rank_eq_zero_iff for the version without NoZeroSMulDivisor R M.

theorem rank_pos_iff_exists_ne_zero E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M], 0 < Module.rank R M ↔ ∃ x, x ≠ 0

theorem rank_pos_iff_nontrivial E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M], 0 < Module.rank R M ↔ Nontrivial M

theorem rank_pos E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M] [Nontrivial M], 0 < Module.rank R M

theorem Module.finite_of_rank_eq_zero E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M], Module.rank R M = 0 → Module.Finite R M

theorem exists_mem_ne_zero_of_rank_pos E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Nontrivial R]
  {s : Submodule R M}, 0 < Module.rank R ↥s → ∃ b ∈ s, b ≠ 0

theorem Module.finite_of_rank_eq_nat E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Module.Free R M]
  {n : ℕ}, Module.rank R M = ↑n → Module.Finite R M

theorem Module.finite_of_rank_eq_one E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Module.Free R M],
  Module.rank R M = 1 → Module.Finite R M

theorem Module.Basis.finite_index_of_rank_lt_aleph0 E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [StrongRankCondition R]
  {ι : Type u_1} (b : Module.Basis ι R M), Module.rank R M < Cardinal.aleph0 → Finite ι

If a module has a finite dimension, all bases are indexed by a finite type.

theorem Module.Basis.setFinite_index_of_rank_lt_aleph0 E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [StrongRankCondition R]
  {ι : Type u_1} {s : Set ι} (b : Module.Basis (↑s) R M), Module.rank R M < Cardinal.aleph0 → s.Finite

If a module has a finite dimension, all bases are indexed by a finite set.

theorem LinearIndependent.cardinalMk_le_finrank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [StrongRankCondition R]
  [Module.Finite R M] {ι : Type w} {b : ι → M}, LinearIndependent R b → Cardinal.mk ι ≤ ↑(Module.finrank R M)

theorem LinearIndependent.fintype_card_le_finrank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [StrongRankCondition R]
  [Module.Finite R M] {ι : Type u_1} [inst_5 : Fintype ι] {b : ι → M},
  LinearIndependent R b → Fintype.card ι ≤ Module.finrank R M

theorem LinearIndependent.finset_card_le_finrank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [StrongRankCondition R]
  [Module.Finite R M] {b : Finset M}, (LinearIndependent R fun x ↦ ↑x) → b.card ≤ Module.finrank R M

theorem LinearIndependent.lt_aleph0_of_finite E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [StrongRankCondition R]
  {ι : Type w} [Module.Finite R M] {v : ι → M}, LinearIndependent R v → Cardinal.mk ι < Cardinal.aleph0

theorem LinearIndependent.finite E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [StrongRankCondition R]
  [Module.Finite R M] {ι : Type u_1} {f : ι → M}, LinearIndependent R f → Finite ι

theorem LinearIndependent.setFinite E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [StrongRankCondition R]
  [Module.Finite R M] {b : Set M}, (LinearIndependent R fun (x : ↑b) ↦ ↑x) → b.Finite

theorem exists_finset_linearIndependent_of_le_rank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : ℕ},
  ↑n ≤ Module.rank R M → ∃ s, s.card = n ∧ LinearIndepOn R id ↑s

theorem exists_linearIndependent_of_le_rank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : ℕ},
  ↑n ≤ Module.rank R M → ∃ f, LinearIndependent R f

theorem natCast_le_rank_iff E0 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R] {n : ℕ},
  ↑n ≤ Module.rank R M ↔ ∃ f, LinearIndependent R f

theorem natCast_le_rank_iff_finset E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R] {n : ℕ},
  ↑n ≤ Module.rank R M ↔ ∃ s, s.card = n ∧ LinearIndependent R Subtype.val

theorem exists_finset_linearIndependent_of_le_finrank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : ℕ},
  n ≤ Module.finrank R M → ∃ s, s.card = n ∧ LinearIndependent R Subtype.val

theorem exists_linearIndependent_of_le_finrank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : ℕ},
  n ≤ Module.finrank R M → ∃ f, LinearIndependent R f

theorem Module.Finite.not_linearIndependent_of_infinite E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Module.Finite R M]
  [StrongRankCondition R] {ι : Type u_1} [Infinite ι] (v : ι → M), ¬LinearIndependent R v

theorem iSupIndep.subtype_ne_bot_le_rank E1 #

∀ {ι : Type w} {R : Type u} {M : Type v} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M] {V : ι → Submodule R M},
  iSupIndep V → Cardinal.lift.{v, w} (Cardinal.mk { i // V i ≠ ⊥ }) ≤ Cardinal.lift.{w, v} (Module.rank R M)

theorem iSupIndep.subtype_ne_bot_le_finrank_aux E0 #

∀ {ι : Type w} {R : Type u} {M : Type v} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M] [Module.Finite R M] [StrongRankCondition R] {p : ι → Submodule R M},
  iSupIndep p → Cardinal.mk { i // p i ≠ ⊥ } ≤ ↑(Module.finrank R M)

def iSupIndep.fintypeNeBotOfFiniteDimensional E1 #

{ι : Type w} →
  {R : Type u} →
    {M : Type v} →
      [inst : Ring R] →
        [inst_1 : AddCommGroup M] →
          [inst_2 : Module R M] →
            [IsDomain R] →
              [Module.IsTorsionFree R M] →
                [Module.Finite R M] →
                  [StrongRankCondition R] → {p : ι → Submodule R M} → iSupIndep p → Fintype { i // p i ≠ ⊥ }

If p is an independent family of submodules of an R-finite module M, then the number of nontrivial subspaces in the family p is finite.

theorem iSupIndep.subtype_ne_bot_le_finrank E1 #

∀ {ι : Type w} {R : Type u} {M : Type v} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M] [Module.Finite R M] [StrongRankCondition R] {p : ι → Submodule R M},
  iSupIndep p → ∀ [inst_7 : Fintype { i // p i ≠ ⊥ }], Fintype.card { i // p i ≠ ⊥ } ≤ Module.finrank R M

If p is an independent family of submodules of an R-finite module M, then the number of nontrivial subspaces in the family p is bounded above by the dimension of M.

Note that the Fintype hypothesis required here can be provided by iSupIndep.fintypeNeBotOfFiniteDimensional.

theorem Module.exists_nontrivial_relation_of_finrank_lt_card E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Finite R M]
  [StrongRankCondition R] {t : Finset M}, Module.finrank R M < t.card → ∃ f, ∑ e ∈ t, f e • e = 0 ∧ ∃ x ∈ t, f x ≠ 0

If a finset has cardinality larger than the rank of a module, then there is a nontrivial linear relation amongst its elements.

theorem Module.exists_nontrivial_relation_sum_zero_of_finrank_succ_lt_card E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Finite R M]
  [StrongRankCondition R] {t : Finset M},
  Module.finrank R M + 1 < t.card → ∃ f, ∑ e ∈ t, f e • e = 0 ∧ ∑ e ∈ t, f e = 0 ∧ ∃ x ∈ t, f x ≠ 0

If a finset has cardinality larger than finrank + 1, then there is a nontrivial linear relation amongst its elements, such that the coefficients of the relation sum to zero.

theorem Module.finrank_zero_of_subsingleton E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R]
  [Subsingleton M], Module.finrank R M = 0

A (finite-dimensional) space that is a subsingleton has zero finrank.

theorem LinearIndependent.finrank_eq_zero_of_infinite E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R]
  {ι : Type u_1} [Infinite ι] {v : ι → M}, LinearIndependent R v → Module.finrank R M = 0

theorem Module.nontrivial_of_finrank_pos E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R],
  0 < Module.finrank R M → Nontrivial M

A finite-dimensional space is nontrivial if it has positive finrank.

theorem Module.nontrivial_of_finrank_eq_succ E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R] {n : ℕ},
  Module.finrank R M = n.succ → Nontrivial M

A finite-dimensional space is nontrivial if it has finrank equal to the successor of a natural number.

theorem finrank_bot E0 #

∀ (R : Type u) (M : Type v) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R],
  Module.finrank R ↥⊥ = 0

theorem Module.finrank_pos_iff_exists_ne_zero E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [StrongRankCondition R]
  [Module.Finite R M] [IsDomain R] [Module.IsTorsionFree R M], 0 < Module.finrank R M ↔ ∃ x, x ≠ 0

A finite rank torsion-free module has positive finrank iff it has a nonzero element.

theorem Module.finrank_pos_iff E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [StrongRankCondition R]
  [Module.Finite R M] [IsDomain R] [Module.IsTorsionFree R M], 0 < Module.finrank R M ↔ Nontrivial M

An R-finite torsion-free module has positive finrank iff it is nontrivial.

theorem Module.finrank_pos E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [StrongRankCondition R]
  [Module.Finite R M] [IsDomain R] [Module.IsTorsionFree R M] [h : Nontrivial M], 0 < Module.finrank R M

A nontrivial finite-dimensional space has positive finrank.

theorem Module.finrank_eq_zero_iff E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [StrongRankCondition R]
  [Module.Finite R M], Module.finrank R M = 0 ↔ ∀ (x : M), ∃ a, a ≠ 0 ∧ a • x = 0

See Module.finrank_zero_iff for the stronger version with IsTorsionFree R M.

theorem Module.finrank_zero_iff E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [StrongRankCondition R]
  [Module.Finite R M] [IsDomain R] [Module.IsTorsionFree R M], Module.finrank R M = 0 ↔ Subsingleton M

A finite-dimensional space has zero finrank iff it is a subsingleton. This is the finrank version of rank_zero_iff.

theorem Module.finrank_quotient_add_finrank_le E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [StrongRankCondition R]
  [Module.Finite R M] (N : Submodule R M), Module.finrank R (M ⧸ N) + Module.finrank R ↥N ≤ Module.finrank R M

Similar to rank_quotient_add_rank_le but for finrank and a finite M.

theorem Module.finrank_eq_zero_of_rank_eq_zero E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Module.rank R M = 0 → Module.finrank R M = 0

theorem Module.finrank_eq_zero_of_not_faithfulSMul E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  ¬FaithfulSMul R M → Module.finrank R M = 0

theorem Submodule.bot_eq_top_of_rank_eq_zero E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M], Module.rank R M = 0 → ⊥ = ⊤

theorem Submodule.rank_eq_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M] {S : Submodule R M}, Module.rank R ↥S = 0 ↔ S = ⊥

See rank_subsingleton for the reason that Nontrivial R is needed.

theorem Submodule.finrank_eq_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M] [StrongRankCondition R] {S : Submodule R M} [Module.Finite R ↥S],
  Module.finrank R ↥S = 0 ↔ S = ⊥

theorem Submodule.one_le_finrank_iff E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M] [StrongRankCondition R] {S : Submodule R M} [Module.Finite R ↥S],
  1 ≤ Module.finrank R ↥S ↔ S ≠ ⊥

theorem Set.finrank_empty E0 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R],
  Set.finrank R ∅ = 0

theorem finrank_eq_zero_of_basis_imp_not_finite E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Module.Free R M],
  (∀ (s : Set M) (a : Module.Basis (↑s) R M), ¬s.Finite) → Module.finrank R M = 0

theorem finrank_eq_zero_of_basis_imp_false E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Module.Free R M],
  (∀ (s : Finset M) (a : Module.Basis (↑↑s) R M), False) → Module.finrank R M = 0

theorem finrank_eq_zero_of_not_exists_basis E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Module.Free R M],
  (¬∃ s, Nonempty (Module.Basis (↑↑s) R M)) → Module.finrank R M = 0

theorem finrank_eq_zero_of_not_exists_basis_finite E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Module.Free R M],
  (¬∃ s x, s.Finite) → Module.finrank R M = 0

theorem finrank_eq_zero_of_not_exists_basis_finset E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Module.Free R M],
  (¬∃ s, Nonempty (Module.Basis (↥s) R M)) → Module.finrank R M = 0

theorem rank_eq_one E1 #

∀ {R : Type u} {M : Type v} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M] [StrongRankCondition R] (v : M), v ≠ 0 → (∀ (w : M), ∃ c, c • v = w) → Module.rank R M = 1

If there is a nonzero vector and every other vector is a multiple of it, then the module has dimension one.

theorem finrank_eq_one E1 #

∀ {R : Type u} {M : Type v} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [Module.IsTorsionFree R M] [StrongRankCondition R] (v : M),
  v ≠ 0 → (∀ (w : M), ∃ c, c • v = w) → Module.finrank R M = 1

If there is a nonzero vector and every other vector is a multiple of it, then the module has dimension one.

theorem rank_le_one E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [StrongRankCondition R]
  (v : M), (∀ (w : M), ∃ c, c • v = w) → Module.rank R M ≤ 1

theorem finrank_le_one E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [StrongRankCondition R]
  (v : M), (∀ (w : M), ∃ c, c • v = w) → Module.finrank R M ≤ 1

If every vector is a multiple of some v : M, then M has dimension at most one.

theorem Module.finite_finsupp_iff E0 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Type u_1},
  Module.Finite R (ι →₀ M) ↔ IsEmpty ι ∨ Subsingleton M ∨ Module.Finite R M ∧ Finite ι

theorem Module.finite_finsupp_self_iff E0 #

∀ {R : Type u} [inst : Semiring R] {ι : Type u_1}, Module.Finite R (ι →₀ R) ↔ Subsingleton R ∨ Finite ι

Deprecated aliases

NameNew nameSince
Module.Basis.fintypeIndexOfRankLtAleph0Module.Basis.finite_index_of_rank_lt_aleph02026-10-11
Module.Basis.nonempty_fintype_index_of_rank_lt_aleph0Module.Basis.finite_index_of_rank_lt_aleph02026-10-11