The areas / V07. Linear algebra
Mathlib.Algebra.Module.SpanRank
59 declarations. Mathlib docs · Source
Minimum Cardinality of generating set of a submodule
In this file, we define the minimum cardinality of a generating set for a submodule, which is
implemented as spanFinrank and spanRank.
spanFinrank takes value in ℕ and equals 0 when no finite generating set exists.
spanRank takes value as a cardinal.
Main Definitions
spanFinrank: The minimum cardinality of a generating set of a submodule as a natural number. If no finite generating set exists, it is defined to be0.spanRank: The minimum cardinality of a generating set of a submodule as a cardinal.FG.generators: For a finitely generated submodule, get a set of generating elements with minimal cardinality.
Main Results
-
FG.exists_span_set_card_eq_spanFinrank: Any submodule has a generating set of cardinality equal tospanRank. -
rank_eq_spanRank_of_free: For a ringR(not necessarily commutative) satisfyingStrongRankCondition R, ifMis a freeR-module, then thespanRankofMequals to the rank of M. -
rank_le_spanRank: For a ringR(not necessarily commutative) satisfyingStrongRankCondition R, ifMis anR-module, then thespanRankofMis less than or equal to the rank of M.
Tags
submodule, generating subset, span rank
Remark
Note that the corresponding API - Module.rank is only defined for a module rather than a
submodule, so there is some asymmetry here. Further refactoring might be needed if this difference
creates a friction later on.
def Submodule.spanRank E3 #
{R : Type u_1} →
{M : Type u} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Submodule R M → Cardinal.{u}
The minimum cardinality of a generating set of a submodule as a cardinal.
def Submodule.spanFinrank E3 #
{R : Type u_1} →
{M : Type u} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Submodule R M → ℕ
The minimum cardinality of a generating set of a submodule as a natural number. If no finite
generating set exists, the span rank is defined to be 0.
instance Submodule.instNonemptySubtypeSetEqSpan E0 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M),
Nonempty { s // Submodule.span R s = p }
theorem Submodule.spanRank_toENat_eq_iInf_encard E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M),
Cardinal.toENat p.spanRank = ⨅ s, ⨅ (_ : Submodule.span R s = p), s.encard
theorem Submodule.spanRank_toENat_eq_iInf_finset_card E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M),
Cardinal.toENat p.spanRank = ⨅ s, ↑(↑s).card
theorem Submodule.spanFinrank_eq_iInf E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M),
p.spanFinrank = ⨅ s, (↑s).card
theorem Submodule.spanRank_finite_iff_fg E0 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {p : Submodule R M},
p.spanRank < Cardinal.aleph0 ↔ p.FG
A submodule's spanRank is finite if and only if it is finitely generated.
theorem Submodule.spanFinrank_of_not_fg E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {p : Submodule R M},
¬p.FG → p.spanFinrank = 0
theorem Submodule.fg_iff_spanRank_eq_spanFinrank E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {p : Submodule R M},
p.spanRank = ↑p.spanFinrank ↔ p.FG
A submodule is finitely generated if and only if its spanRank is equal to its spanFinrank.
theorem Submodule.FG.spanRank_eq_spanFinrank E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {p : Submodule R M},
p.FG → p.spanRank = ↑p.spanFinrank
theorem Submodule.FG.spanRank_le_iff E0 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {p : Submodule R M},
p.FG → ∀ (n : ℕ), p.spanRank ≤ ↑n ↔ p.spanFinrank ≤ n
theorem Submodule.FG.spanRank_eq_iff E0 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {p : Submodule R M},
p.FG → ∀ (n : ℕ), p.spanRank = ↑n ↔ p.spanFinrank = n
theorem Submodule.spanRank_span_le_card E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (s : Set M),
(Submodule.span R s).spanRank ≤ Cardinal.mk ↑s
theorem Submodule.spanRank_span_range_of_linearIndependent E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [RankCondition R]
{ι : Type u} {v : ι → M},
Function.Injective v → LinearIndependent R v → (Submodule.span R (Set.range v)).spanRank = Cardinal.mk ι
theorem Submodule.spanRank_span_of_linearIndepOn E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [RankCondition R]
(s : Set M), LinearIndepOn R id s → (Submodule.span R s).spanRank = Cardinal.mk ↑s
theorem Submodule.spanFinrank_span_le_encard E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (s : Set M),
↑(Submodule.span R s).spanFinrank ≤ s.encard
theorem Submodule.spanFinrank_span_le_ncard_of_finite E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {s : Set M},
s.Finite → (Submodule.span R s).spanFinrank ≤ s.ncard
theorem Submodule.exists_span_set_card_eq_spanRank E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M),
∃ s, Cardinal.mk ↑s = p.spanRank ∧ Submodule.span R s = p
Constructs a generating set with cardinality equal to the spanRank of the submodule
theorem Submodule.FG.exists_span_set_encard_eq_spanFinrank E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {p : Submodule R M},
p.FG → ∃ s, s.encard = ↑p.spanFinrank ∧ Submodule.span R s = p
Constructs a generating set with cardinality equal to the spanFinrank of the submodule when
the submodule is finitely generated.
theorem Submodule.FG.exists_span_finset_card_eq_spanFinrank E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {p : Submodule R M},
p.FG → ∃ s, s.card = p.spanFinrank ∧ Submodule.span R ↑s = p
Constructs a generating finset with cardinality equal to the spanFinrank of the submodule
when the submodule is finitely generated.
theorem Submodule.lift_spanRank_le_iff_exists_span_set_card_le E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M)
{a : Cardinal.{max u v}},
Cardinal.lift.{v, u} p.spanRank ≤ a ↔ ∃ s, Cardinal.lift.{v, u} (Cardinal.mk ↑s) ≤ a ∧ Submodule.span R s = p
theorem Submodule.FG.spanRank_le_iff_exists_span_set_card_le E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M)
{a : Cardinal.{u}}, p.spanRank ≤ a ↔ ∃ s, Cardinal.mk ↑s ≤ a ∧ Submodule.span R s = p
For a finitely generated submodule, its spanRank is less than or equal to a cardinal a
if and only if there is a generating subset with cardinality less than or equal to a.
theorem Submodule.spanRank_eq_zero_iff_eq_bot E0 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {I : Submodule R M},
I.spanRank = 0 ↔ I = ⊥
theorem Submodule.spanRank_bot E0 #
∀ {R : Type u_1} [inst : Semiring R], Submodule.spanRank ⊥ = 0
theorem Submodule.spanFinrank_bot E0 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M], ⊥.spanFinrank = 0
theorem Submodule.spanRank_subsingleton E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Subsingleton R]
(p : Submodule R M), p.spanRank = 0
theorem Submodule.spanFinrank_subsingleton E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Subsingleton R]
(p : Submodule R M), p.spanFinrank = 0
def Submodule.generators E1 #
{R : Type u_1} →
{M : Type u} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Submodule R M → Set M
Generating elements for the submodule of minimum cardinality.
theorem Submodule.generators_card E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M),
Cardinal.mk ↑p.generators = p.spanRank
theorem Submodule.FG.generators_ncard E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {p : Submodule R M},
p.FG → p.generators.ncard = p.spanFinrank
theorem Submodule.FG.finite_generators E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {p : Submodule R M},
p.FG → p.generators.Finite
theorem Submodule.span_generators E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M),
Submodule.span R p.generators = p
The span of the generators equals the submodule.
theorem Submodule.FG.generators_mem E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M),
p.generators ⊆ ↑p
The elements of the generators are in the submodule.
theorem Submodule.spanRank_sup_le_sum_spanRank E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{p q : Submodule R M}, (p ⊔ q).spanRank ≤ p.spanRank + q.spanRank
theorem Submodule.spanFinrank_eq_zero_iff_eq_bot E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {p : Submodule R M},
p.FG → (p.spanFinrank = 0 ↔ p = ⊥)
theorem Submodule.spanFinrank_singleton E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {m : M},
m ≠ 0 → (R ∙ m).spanFinrank = 1
theorem Submodule.spanFinrank_eq_one_iff E0 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M),
p.spanFinrank = 1 ↔ p.IsPrincipal ∧ p ≠ ⊥
theorem Submodule.lift_spanRank_map_le E1 #
∀ {R : Type u_1} {S : Type u_2} {M : Type u} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] {L : Type v} [inst_4 : AddCommMonoid L] [inst_5 : Module S L]
[inst_6 : RingHomSurjective σ] (f : M →ₛₗ[σ] L) (p : Submodule R M),
Cardinal.lift.{u, v} (Submodule.map f p).spanRank ≤ Cardinal.lift.{v, u} p.spanRank
theorem Submodule.spanRank_map_le E1 #
∀ {R : Type u_1} {S : Type u_2} {M N : Type u} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : AddCommMonoid N] [inst_5 : Module S N]
[inst_6 : RingHomSurjective σ] (f : M →ₛₗ[σ] N) (p : Submodule R M), (Submodule.map f p).spanRank ≤ p.spanRank
theorem Submodule.spanFinrank_map_le_of_fg E1 #
∀ {R : Type u_1} {S : Type u_2} {M : Type u} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] {L : Type v} [inst_4 : AddCommMonoid L] [inst_5 : Module S L]
[inst_6 : RingHomSurjective σ] (f : M →ₛₗ[σ] L) {p : Submodule R M},
p.FG → (Submodule.map f p).spanFinrank ≤ p.spanFinrank
theorem Submodule.lift_spanRank_map_eq_of_injective E1 #
∀ {R : Type u_1} {S : Type u_2} {M : Type u} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] {L : Type v} [inst_4 : AddCommMonoid L] [inst_5 : Module S L]
[inst_6 : RingHomSurjective σ] (f : M →ₛₗ[σ] L),
Function.Injective ⇑f →
∀ (p : Submodule R M), Cardinal.lift.{u, v} (Submodule.map f p).spanRank = Cardinal.lift.{v, u} p.spanRank
theorem Submodule.spanRank_map_eq_of_injective E1 #
∀ {R : Type u_1} {S : Type u_2} {M N : Type u} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : AddCommMonoid N] [inst_5 : Module S N]
[inst_6 : RingHomSurjective σ] (f : M →ₛₗ[σ] N),
Function.Injective ⇑f → ∀ (p : Submodule R M), (Submodule.map f p).spanRank = p.spanRank
theorem Submodule.spanFinrank_map_eq_of_injective E1 #
∀ {R : Type u_1} {S : Type u_2} {M : Type u} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] {L : Type v} [inst_4 : AddCommMonoid L] [inst_5 : Module S L]
[inst_6 : RingHomSurjective σ] (f : M →ₛₗ[σ] L),
Function.Injective ⇑f → ∀ {p : Submodule R M}, (Submodule.map f p).spanFinrank = p.spanFinrank
theorem Submodule.spanRank_range_le E1 #
∀ {R : Type u_1} {S : Type u_2} {M N : Type u} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : AddCommMonoid N] [inst_5 : Module S N]
[inst_6 : RingHomSurjective σ] (f : M →ₛₗ[σ] N), f.range.spanRank ≤ ⊤.spanRank
theorem Submodule.spanRank_top E0 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M),
⊤.spanRank = p.spanRank
theorem Submodule.spanFinrank_top E1 #
∀ {R : Type u_1} {M : Type u} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (p : Submodule R M),
⊤.spanFinrank = p.spanFinrank
theorem Submodule.spanRank_eq_of_equiv E1 #
∀ {R : Type u_1} {S : Type u_2} {M N : Type u} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : AddCommMonoid N] [inst_5 : Module S N] {σ' : S →+* R}
[inst_6 : RingHomInvPair σ σ'] [inst_7 : RingHomInvPair σ' σ] (e : M ≃ₛₗ[σ] N), ⊤.spanRank = ⊤.spanRank
theorem Submodule.le_spanRank_restrictScalars E1 #
∀ {R : Type u_1} {S : Type u_2} {M : Type u} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : AddCommMonoid M]
[inst_3 : Algebra R S] [inst_4 : Module R M] [inst_5 : Module S M] [inst_6 : IsScalarTower R S M] (N : Submodule S M),
N.spanRank ≤ (Submodule.restrictScalars R N).spanRank
theorem Submodule.spanRank_restrictScalars_eq E0 #
∀ {R : Type u_1} {S : Type u_2} {M : Type u} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : AddCommMonoid M]
[inst_3 : Algebra R S] [inst_4 : Module R M] [inst_5 : Module S M] [inst_6 : IsScalarTower R S M],
Function.Surjective ⇑(algebraMap R S) → ∀ (N : Submodule S M), (Submodule.restrictScalars R N).spanRank = N.spanRank
theorem Ideal.lift_spanRank_map_le E1 #
∀ {R : Type u} [inst : Semiring R] {T : Type v} [inst_1 : Semiring T] (f : R →+* T) (I : Ideal R),
Cardinal.lift.{u, v} (Submodule.spanRank (Ideal.map f I)) ≤ Cardinal.lift.{v, u} (Submodule.spanRank I)
theorem Ideal.lift_spanRank_map_eq_of_ringEquiv E1 #
∀ {R : Type u} [inst : Semiring R] {T : Type v} [inst_1 : Semiring T] (f : R ≃+* T) (I : Ideal R),
Cardinal.lift.{u, v} (Submodule.spanRank (Ideal.map f I)) = Cardinal.lift.{v, u} (Submodule.spanRank I)
theorem Ideal.spanRank_map_le E1 #
∀ {R S : Type u} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) (I : Ideal R),
Submodule.spanRank (Ideal.map f I) ≤ Submodule.spanRank I
theorem Ideal.spanRank_map_eq_of_ringEquiv E0 #
∀ {R S : Type u} [inst : Semiring R] [inst_1 : Semiring S] (f : R ≃+* S) (I : Ideal R),
Submodule.spanRank (Ideal.map f I) = Submodule.spanRank I
theorem Ideal.spanFinrank_map_le_of_fg E1 #
∀ {R : Type u} [inst : Semiring R] {T : Type v} [inst_1 : Semiring T] (f : R →+* T) {I : Ideal R},
I.FG → Submodule.spanFinrank (Ideal.map f I) ≤ Submodule.spanFinrank I
theorem Ideal.spanFinrank_map_eq_of_ringEquiv E0 #
∀ {R : Type u} [inst : Semiring R] {T : Type v} [inst_1 : Semiring T] (f : R ≃+* T) (I : Ideal R),
Submodule.spanFinrank (Ideal.map f I) = Submodule.spanFinrank I
theorem Module.Basis.mk_eq_spanRank E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [RankCondition R]
{ι : Type u_3} (v : Module.Basis ι R M), Cardinal.mk ↑(Set.range ⇑v) = ⊤.spanRank
theorem Submodule.rank_eq_spanRank_of_free E3 #
∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Module.Free R M]
[StrongRankCondition R], Module.rank R M = ⊤.spanRank
theorem Module.finrank_eq_spanFinrank_of_free E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[StrongRankCondition R] [Module.Free R M], Module.finrank R M = ⊤.spanFinrank
theorem Submodule.rank_le_spanRank E3 #
∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[StrongRankCondition R], Module.rank R M ≤ ⊤.spanRank