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

56 declarations. Mathlib docs · Source

Dimension of modules and vector spaces

Main definitions

  • The rank of a module is defined as Module.rank : Cardinal. This is defined as the supremum of the cardinalities of linearly independent subsets.

Main statements

  • LinearMap.rank_le_of_injective: the source of an injective linear map has dimension at most that of the target.
  • LinearMap.rank_le_of_surjective: the target of a surjective linear map has dimension at most that of that source.

Implementation notes

Many theorems in this file are not universe-generic when they relate dimensions in different universes. They should be as general as they can be without inserting lifts. The types M, M', ... all live in different universes, and M₁, M₂, ... all live in the same universe.

theorem AddEquivClass.toAddEquiv.congr_simp E1 #

∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : EquivLike F α β] [inst_1 : Add α] [inst_2 : Add β]
  [inst_3 : AddEquivClass F α β] (f f_1 : F), f = f_1 → ↑f = ↑f_1

def Module.rank E3 #

(R : Type u) → (M : Type v) → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [Module R M] → Cardinal.{v}

The rank of a module, defined as a term of type Cardinal.

We define this as the supremum of the cardinalities of linearly independent subsets. The supremum may not be attained, see https://mathoverflow.net/a/263053.

For a free module over any ring satisfying the strong rank condition (e.g. left-Noetherian rings, commutative rings, and in particular division rings and fields), this is the same as the dimension of the space (i.e. the cardinality of any basis).

In particular this agrees with the usual notion of the dimension of a vector space.

See also Module.finrank for a ℕ-valued function which returns the correct value for a finite-dimensional vector space (but 0 for an infinite-dimensional vector space).

theorem Module.rank_def E0 #

∀ (R : Type u) (M : Type v) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Module.rank R M = ⨆ ι, Cardinal.mk ↑↑ι

Alias of _private.Mathlib.LinearAlgebra.Dimension.Basic.0.Module.rank.eq_def.

theorem rank_le_card E1 #

∀ (R : Type u) (M : Type v) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Module.rank R M ≤ Cardinal.mk M

instance nonempty_linearIndependent_set E0 #

∀ (R : Type u) (M : Type v) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Nonempty { s // LinearIndepOn R id s }

theorem LinearIndependent.cardinal_lift_le_rank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R]
  {ι : Type w} {v : ι → M},
  LinearIndependent R v → Cardinal.lift.{v, w} (Cardinal.mk ι) ≤ Cardinal.lift.{w, v} (Module.rank R M)

theorem LinearIndependent.aleph0_le_rank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R]
  {ι : Type w} [Infinite ι] {v : ι → M}, LinearIndependent R v → Cardinal.aleph0 ≤ Module.rank R M

theorem LinearIndependent.cardinal_le_rank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R]
  {ι : Type v} {v : ι → M}, LinearIndependent R v → Cardinal.mk ι ≤ Module.rank R M

theorem LinearIndependent.cardinal_le_rank' E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R]
  {s : Set M}, (LinearIndependent R fun (x : ↑s) ↦ ↑x) → Cardinal.mk ↑s ≤ Module.rank R M

theorem LinearIndepOn.encard_le_toENat_rank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial R]
  {ι : Type u_1} {v : ι → M} {s : Set ι}, LinearIndepOn R v s → s.encard ≤ Cardinal.toENat (Module.rank R M)

theorem Module.exists_set_linearIndependent_of_lt_lift_rank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {c : Cardinal.{w}},
  Cardinal.lift.{v, w} c < Cardinal.lift.{w, v} (Module.rank R M) →
    ∃ s, Cardinal.lift.{w, v} (Cardinal.mk ↑s) = Cardinal.lift.{v, w} c ∧ LinearIndepOn R id s

theorem Module.exists_set_linearIndependent_of_lt_rank E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {c : Cardinal.{v}},
  c < Module.rank R M → ∃ s, Cardinal.mk ↑s = c ∧ LinearIndepOn R id s

theorem Module.le_rank_iff_exists_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 ∧ LinearIndepOn R id ↑s

Note: if the rank of a module is infinite, it may not contain a linear independent subset with cardinality equal to the rank, see https://mathoverflow.net/questions/263020/maximum-cardinal-of-a-set-of-linearly-independent-vectors-in-a-module.

theorem Module.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 ↔ ∃ v, LinearIndependent R v

theorem Module.le_rank_iff_exists_linearMap 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 ↔ ∃ f, Function.Injective ⇑f

theorem rank_subsingleton E0 #

∀ (R : Type u) (M : Type v) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Subsingleton R],
  Module.rank R M = 1

theorem Module.one_le_rank_iff E0 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  1 ≤ Module.rank R M ↔ ∃ f, Function.Injective ⇑f

theorem Module.rank_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.rank R M = 0

theorem lift_rank_le_of_injective_injectiveₛ E1 #

∀ {R : Type u} {R' : Type u'} {M : Type v} {M' : Type v'} [inst : Semiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring R'] [inst_4 : AddCommMonoid M'] [inst_5 : Module R' M'] (i : R' → R)
  (j : M →+ M'),
  Function.Injective i →
    Function.Injective ⇑j →
      (∀ (r : R') (m : M), j (i r • m) = r • j m) →
        Cardinal.lift.{v', v} (Module.rank R M) ≤ Cardinal.lift.{v, v'} (Module.rank R' M')

If M / R and M' / R' are modules, i : R' → R is an injective map non-zero elements, j : M →+ M' is an injective monoid homomorphism, such that the scalar multiplications on M and M' are compatible, then the rank of M / R is smaller than or equal to the rank of M' / R'. As a special case, taking R = R' it is LinearMap.lift_rank_le_of_injective.

theorem lift_rank_le_of_surjective_injective E1 #

∀ {R : Type u} {R' : Type u'} {M : Type v} {M' : Type v'} [inst : Semiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring R'] [inst_4 : AddCommMonoid M'] [inst_5 : Module R' M'] (i : R → R')
  (j : M →+ M'),
  Function.Surjective i →
    Function.Injective ⇑j →
      (∀ (r : R) (m : M), j (r • m) = i r • j m) →
        Cardinal.lift.{v', v} (Module.rank R M) ≤ Cardinal.lift.{v, v'} (Module.rank R' M')

If M / R and M' / R' are modules, i : R → R' is a surjective map, and j : M →+ M' is an injective monoid homomorphism, such that the scalar multiplications on M and M' are compatible, then the rank of M / R is smaller than or equal to the rank of M' / R'. As a special case, taking R = R' it is LinearMap.lift_rank_le_of_injective.

theorem lift_rank_eq_of_equiv_equiv E1 #

∀ {R : Type u} {R' : Type u'} {M : Type v} {M' : Type v'} [inst : Semiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring R'] [inst_4 : AddCommMonoid M'] [inst_5 : Module R' M'] (i : R → R')
  (j : M ≃+ M'),
  Function.Bijective i →
    (∀ (r : R) (m : M), j (r • m) = i r • j m) →
      Cardinal.lift.{v', v} (Module.rank R M) = Cardinal.lift.{v, v'} (Module.rank R' M')

If M / R and M' / R' are modules, i : R → R' is a bijective map which maps zero to zero, j : M ≃+ M' is a group isomorphism, such that the scalar multiplications on M and M' are compatible, then the rank of M / R is equal to the rank of M' / R'. As a special case, taking R = R' it is LinearEquiv.lift_rank_eq.

theorem rank_le_of_injective_injectiveₛ E1 #

∀ {R : Type u} {R' : Type u'} {M M₁ : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Semiring R'] [inst_4 : AddCommMonoid M₁] [inst_5 : Module R' M₁] (i : R' → R) (j : M →+ M₁),
  Function.Injective i →
    Function.Injective ⇑j → (∀ (r : R') (m : M), j (i r • m) = r • j m) → Module.rank R M ≤ Module.rank R' M₁

The same-universe version of lift_rank_le_of_injective_injective.

theorem rank_le_of_surjective_injective E1 #

∀ {R : Type u} {R' : Type u'} {M M₁ : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Semiring R'] [inst_4 : AddCommMonoid M₁] [inst_5 : Module R' M₁] (i : R → R') (j : M →+ M₁),
  Function.Surjective i →
    Function.Injective ⇑j → (∀ (r : R) (m : M), j (r • m) = i r • j m) → Module.rank R M ≤ Module.rank R' M₁

The same-universe version of lift_rank_le_of_surjective_injective.

theorem rank_eq_of_equiv_equiv E1 #

∀ {R : Type u} {R' : Type u'} {M M₁ : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Semiring R'] [inst_4 : AddCommMonoid M₁] [inst_5 : Module R' M₁] (i : R → R') (j : M ≃+ M₁),
  Function.Bijective i → (∀ (r : R) (m : M), j (r • m) = i r • j m) → Module.rank R M = Module.rank R' M₁

The same-universe version of lift_rank_eq_of_equiv_equiv.

theorem CommSemiring.rank_self E1 #

∀ (R : Type u_1) [inst : CommSemiring R], Module.rank R R = 1

TODO: prove that nontrivial commutative semirings satisfy the strong rank condition, following Free sets and free subsemimodules in a semimodule by Yi-Jia Tan, Theorem 3.2.

Rings R that fail the strong rank condition but satisfy rank R R = 1 are expected to exist, see https://mathoverflow.net/questions/317422/rings-that-fail-to-satisfy-the-strong-rank-condition.

theorem lift_rank_le_of_injective_injective E1 #

∀ {R : Type u} {R' : Type u'} {M : Type v} {M' : Type v'} [inst : Ring R] [inst_1 : AddCommGroup M]
  [inst_2 : Module R M] [inst_3 : Ring R'] [inst_4 : AddCommGroup M'] [inst_5 : Module R' M'] (i : R' → R)
  (j : M →+ M'),
  (∀ (r : R'), i r = 0 → r = 0) →
    Function.Injective ⇑j →
      (∀ (r : R') (m : M), j (i r • m) = r • j m) →
        Cardinal.lift.{v', v} (Module.rank R M) ≤ Cardinal.lift.{v, v'} (Module.rank R' M')

If M / R and M' / R' are modules, i : R' → R is a map which sends non-zero elements to non-zero elements, j : M →+ M' is an injective group homomorphism, such that the scalar multiplications on M and M' are compatible, then the rank of M / R is smaller than or equal to the rank of M' / R'. As a special case, taking R = R' it is LinearMap.lift_rank_le_of_injective.

theorem rank_le_of_injective_injective E1 #

∀ {R : Type u} {R' : Type u'} {M M₁ : Type v} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  [inst_3 : Ring R'] [inst_4 : AddCommGroup M₁] [inst_5 : Module R' M₁] (i : R' → R) (j : M →+ M₁),
  (∀ (r : R'), i r = 0 → r = 0) →
    Function.Injective ⇑j → (∀ (r : R') (m : M), j (i r • m) = r • j m) → Module.rank R M ≤ Module.rank R' M₁

The same-universe version of lift_rank_le_of_injective_injective.

theorem Algebra.lift_rank_le_of_injective_injective E1 #

∀ {R : Type w} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {R' : Type w'}
  {S' : Type v'} [inst_3 : CommSemiring R'] [inst_4 : Semiring S'] [inst_5 : Algebra R' S'] (i : R' →+* R)
  (j : S →+* S'),
  Function.Injective ⇑i →
    Function.Injective ⇑j →
      (j.comp (algebraMap R S)).comp i = algebraMap R' S' →
        Cardinal.lift.{v', v} (Module.rank R S) ≤ Cardinal.lift.{v, v'} (Module.rank R' S')

If S / R and S' / R' are algebras, i : R' →+* R and j : S →+* S' are injective ring homomorphisms, such that R' → R → S → S' and R' → S' commute, then the rank of S / R is smaller than or equal to the rank of S' / R'.

theorem Algebra.lift_rank_le_of_surjective_injective E1 #

∀ {R : Type w} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {R' : Type w'}
  {S' : Type v'} [inst_3 : CommSemiring R'] [inst_4 : Semiring S'] [inst_5 : Algebra R' S'] (i : R →+* R')
  (j : S →+* S'),
  Function.Surjective ⇑i →
    Function.Injective ⇑j →
      (algebraMap R' S').comp i = j.comp (algebraMap R S) →
        Cardinal.lift.{v', v} (Module.rank R S) ≤ Cardinal.lift.{v, v'} (Module.rank R' S')

If S / R and S' / R' are algebras, i : R →+* R' is a surjective ring homomorphism, j : S →+* S' is an injective ring homomorphism, such that R → R' → S' and R → S → S' commute, then the rank of S / R is smaller than or equal to the rank of S' / R'.

theorem Algebra.lift_rank_eq_of_equiv_equiv E1 #

∀ {R : Type w} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {R' : Type w'}
  {S' : Type v'} [inst_3 : CommSemiring R'] [inst_4 : Semiring S'] [inst_5 : Algebra R' S'] (i : R ≃+* R')
  (j : S ≃+* S'),
  (algebraMap R' S').comp i.toRingHom = j.toRingHom.comp (algebraMap R S) →
    Cardinal.lift.{v', v} (Module.rank R S) = Cardinal.lift.{v, v'} (Module.rank R' S')

If S / R and S' / R' are algebras, i : R ≃+* R' and j : S ≃+* S' are ring isomorphisms, such that R → R' → S' and R → S → S' commute, then the rank of S / R is equal to the rank of S' / R'.

theorem Algebra.rank_le_of_injective_injective E1 #

∀ {R : Type w} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {R' : Type w'}
  [inst_3 : CommSemiring R'] {S' : Type v} [inst_4 : Semiring S'] [inst_5 : Algebra R' S'] (i : R' →+* R)
  (j : S →+* S'),
  Function.Injective ⇑i →
    Function.Injective ⇑j → (j.comp (algebraMap R S)).comp i = algebraMap R' S' → Module.rank R S ≤ Module.rank R' S'

The same-universe version of Algebra.lift_rank_le_of_injective_injective.

theorem Algebra.rank_le_of_surjective_injective E1 #

∀ {R : Type w} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {R' : Type w'}
  [inst_3 : CommSemiring R'] {S' : Type v} [inst_4 : Semiring S'] [inst_5 : Algebra R' S'] (i : R →+* R')
  (j : S →+* S'),
  Function.Surjective ⇑i →
    Function.Injective ⇑j → (algebraMap R' S').comp i = j.comp (algebraMap R S) → Module.rank R S ≤ Module.rank R' S'

The same-universe version of Algebra.lift_rank_le_of_surjective_injective.

theorem Algebra.rank_eq_of_equiv_equiv E1 #

∀ {R : Type w} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {R' : Type w'}
  [inst_3 : CommSemiring R'] {S' : Type v} [inst_4 : Semiring S'] [inst_5 : Algebra R' S'] (i : R ≃+* R')
  (j : S ≃+* S'),
  (algebraMap R' S').comp i.toRingHom = j.toRingHom.comp (algebraMap R S) → Module.rank R S = Module.rank R' S'

The same-universe version of Algebra.lift_rank_eq_of_equiv_equiv.

theorem LinearMap.lift_rank_le_of_injective E1 #

∀ {R : Type u} {M : Type v} {M' : Type v'} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (f : M →ₗ[R] M'),
  Function.Injective ⇑f → Cardinal.lift.{v', v} (Module.rank R M) ≤ Cardinal.lift.{v, v'} (Module.rank R M')

theorem LinearMap.rank_le_of_injective E3 #

∀ {R : Type u} {M M₁ : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M₁] [inst_4 : Module R M₁] (f : M →ₗ[R] M₁),
  Function.Injective ⇑f → Module.rank R M ≤ Module.rank R M₁

theorem lift_rank_range_le E1 #

∀ {R : Type u} {M : Type v} {M' : Type v'} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (f : M →ₗ[R] M'),
  Cardinal.lift.{v, v'} (Module.rank R ↥f.range) ≤ Cardinal.lift.{v', v} (Module.rank R M)

The rank of the range of a linear map is at most the rank of the source.

theorem rank_range_le E1 #

∀ {R : Type u} {M M₁ : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M₁] [inst_4 : Module R M₁] (f : M →ₗ[R] M₁), Module.rank R ↥f.range ≤ Module.rank R M

theorem lift_rank_map_le E1 #

∀ {R : Type u} {M : Type v} {M' : Type v'} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (f : M →ₗ[R] M') (p : Submodule R M),
  Cardinal.lift.{v, v'} (Module.rank R ↥(Submodule.map f p)) ≤ Cardinal.lift.{v', v} (Module.rank R ↥p)

theorem rank_map_le E1 #

∀ {R : Type u} {M M₁ : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M₁] [inst_4 : Module R M₁] (f : M →ₗ[R] M₁) (p : Submodule R M),
  Module.rank R ↥(Submodule.map f p) ≤ Module.rank R ↥p

theorem rank_map_eq E0 #

∀ {R : Type u} {M M₁ : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M₁] [inst_4 : Module R M₁] {f : M →ₗ[R] M₁},
  Function.Injective ⇑f → ∀ (p : Submodule R M), Module.rank R ↥(Submodule.map f p) = Module.rank R ↥p

theorem Submodule.rank_mono E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {s t : Submodule R M},
  s ≤ t → Module.rank R ↥s ≤ Module.rank R ↥t

theorem LinearEquiv.lift_rank_eq E0 #

∀ {R : Type u} {M : Type v} {M' : Type v'} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (f : M ≃ₗ[R] M'),
  Cardinal.lift.{v', v} (Module.rank R M) = Cardinal.lift.{v, v'} (Module.rank R M')

Two linearly equivalent vector spaces have the same dimension, a version with different universes.

theorem LinearEquiv.rank_eq E0 #

∀ {R : Type u} {M M₁ : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M₁] [inst_4 : Module R M₁] (f : M ≃ₗ[R] M₁), Module.rank R M = Module.rank R M₁

Two linearly equivalent vector spaces have the same dimension.

theorem lift_rank_range_of_injective E1 #

∀ {R : Type u} {M : Type v} {M' : Type v'} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (f : M →ₗ[R] M'),
  Function.Injective ⇑f → Cardinal.lift.{v, v'} (Module.rank R ↥f.range) = Cardinal.lift.{v', v} (Module.rank R M)

theorem rank_range_of_injective E1 #

∀ {R : Type u} {M M₁ : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M₁] [inst_4 : Module R M₁] (f : M →ₗ[R] M₁),
  Function.Injective ⇑f → Module.rank R ↥f.range = Module.rank R M

theorem LinearEquiv.lift_rank_map_eq E0 #

∀ {R : Type u} {M : Type v} {M' : Type v'} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (f : M ≃ₗ[R] M') (p : Submodule R M),
  Cardinal.lift.{v, v'} (Module.rank R ↥(Submodule.map (↑f) p)) = Cardinal.lift.{v', v} (Module.rank R ↥p)

theorem LinearEquiv.rank_map_eq E0 #

∀ {R : Type u} {M M₁ : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M₁] [inst_4 : Module R M₁] (f : M ≃ₗ[R] M₁) (p : Submodule R M),
  Module.rank R ↥(Submodule.map (↑f) p) = Module.rank R ↥p

Pushforwards of submodules along a LinearEquiv have the same dimension.

theorem rank_top E0 #

∀ (R : Type u) (M : Type v) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Module.rank R ↥⊤ = Module.rank R M

theorem rank_range_of_surjective E1 #

∀ {R : Type u} {M : Type v} {M' : Type v'} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (f : M →ₗ[R] M'),
  Function.Surjective ⇑f → Module.rank R ↥f.range = Module.rank R M'

theorem Submodule.rank_le E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (s : Submodule R M),
  Module.rank R ↥s ≤ Module.rank R M

theorem LinearMap.lift_rank_le_of_surjective E1 #

∀ {R : Type u} {M : Type v} {M' : Type v'} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (f : M →ₗ[R] M'),
  Function.Surjective ⇑f → Cardinal.lift.{v, v'} (Module.rank R M') ≤ Cardinal.lift.{v', v} (Module.rank R M)

theorem LinearMap.rank_le_of_surjective E3 #

∀ {R : Type u} {M M₁ : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid M₁] [inst_4 : Module R M₁] (f : M →ₗ[R] M₁),
  Function.Surjective ⇑f → Module.rank R M₁ ≤ Module.rank R M

theorem rank_le_of_isSMulRegular E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {S : Type u_1}
  [inst_3 : CommSemiring S] [inst_4 : Algebra S R] [inst_5 : Module S M] [IsScalarTower S R M] (L L' : Submodule R M)
  {s : S}, IsSMulRegular M s → (∀ x ∈ L, s • x ∈ L') → Module.rank R ↥L ≤ Module.rank R ↥L'

theorem Module.rank_top_le_rank_of_isScalarTower E1 #

∀ (R : Type u) (R' : Type u') (M : Type v) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Semiring R'] [inst_4 : Module R' M] [inst_5 : SMulWithZero R R'] [IsScalarTower R R' M] [FaithfulSMul R R']
  [IsScalarTower R R' R'], Module.rank R' M ≤ Module.rank R M

theorem Module.lift_rank_bot_le_lift_rank_of_isScalarTower E1 #

∀ (R : Type u) (R' : Type u') [inst : Semiring R] [inst_1 : Semiring R'] (T : Type w) [inst_2 : Module R R']
  [inst_3 : NonAssocSemiring T] [inst_4 : Module R T] [inst_5 : Module R' T] [IsScalarTower R' T T] [FaithfulSMul R' T]
  [IsScalarTower R R' T], Cardinal.lift.{w, u'} (Module.rank R R') ≤ Cardinal.lift.{u', w} (Module.rank R T)

theorem Module.rank_bot_le_rank_of_isScalarTower E1 #

∀ (R : Type u) (R' : Type u') [inst : Semiring R] [inst_1 : Semiring R'] (T : Type u') [inst_2 : Module R R']
  [inst_3 : NonAssocSemiring T] [inst_4 : Module R T] [inst_5 : Module R' T] [IsScalarTower R' T T] [FaithfulSMul R' T]
  [IsScalarTower R R' T], Module.rank R R' ≤ Module.rank R T