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.Algebra.Module.Submodule.Lattice

74 declarations. Mathlib docs · Source

The lattice structure on Submodules

This file defines the lattice structure on submodules, Submodule.CompleteLattice, with ⊥ defined as {0} and ⊓ defined as intersection of the underlying carrier. If p and q are submodules of a module, p ≤ q means that p ⊆ q.

Implementation notes

This structure should match the AddSubmonoid.CompleteLattice structure, and we should try to unify the APIs where possible.

Bottom element of a submodule

Top element of a submodule

Infima & suprema in a submodule

Note that Submodule.mem_iSup is provided in Mathlib/LinearAlgebra/Span/Defs.lean.

Disjointness of submodules

ℕ-submodules

ℤ-submodules

theorem Submodule.mk.congr_simp E1 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (toAddSubmonoid toAddSubmonoid_1 : AddSubmonoid M) (e_toAddSubmonoid : toAddSubmonoid = toAddSubmonoid_1)
  (smul_mem' : ∀ (c : R) {x : M}, x ∈ toAddSubmonoid.carrier → c • x ∈ toAddSubmonoid.carrier),
  { toAddSubmonoid := toAddSubmonoid, smul_mem' := smul_mem' } = { toAddSubmonoid := toAddSubmonoid_1, smul_mem' := ⋯ }

instance Submodule.instBot E0 #

{R : Type u_1} →
  {M : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Bot (Submodule R M)

The set {0} is the bottom element of the lattice of submodules.

instance Submodule.inhabited' E0 #

{R : Type u_1} →
  {M : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Inhabited (Submodule R M)

theorem Submodule.bot_coe E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M], ↑⊥ = {0}

theorem Submodule.bot_toAddSubmonoid E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  ⊥.toAddSubmonoid = ⊥

theorem Submodule.bot_toAddSubgroup E0 #

∀ {R : Type u_4} {M : Type u_5} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M], ⊥.toAddSubgroup = ⊥

theorem Submodule.mem_bot E0 #

∀ (R : Type u_1) {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {x : M},
  x ∈ ⊥ ↔ x = 0

theorem Submodule.mk_eq_bot E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (carrier : AddSubmonoid M) (smul_mem' : ∀ (c : R) {x : M}, x ∈ carrier.carrier → c • x ∈ carrier.carrier),
  { toAddSubmonoid := carrier, smul_mem' := smul_mem' } = ⊥ ↔ carrier = ⊥

instance Submodule.uniqueBot E0 #

{R : Type u_1} → {M : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Unique ↥⊥

instance Submodule.instOrderBot E0 #

{R : Type u_1} →
  {M : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → OrderBot (Submodule R M)

theorem Submodule.bot_ext_iff E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {x y : ↥⊥},
  x = y ↔ True

theorem Submodule.bot_ext E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (x y : ↥⊥), x = y

theorem Submodule.ne_bot_iff E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (p : Submodule R M), p ≠ ⊥ ↔ ∃ x ∈ p, x ≠ 0

theorem Submodule.nonzero_mem_of_bot_lt E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {p : Submodule R M}, ⊥ < p → ∃ a, a ≠ 0

theorem Submodule.exists_mem_ne_zero_of_ne_bot E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {p : Submodule R M}, p ≠ ⊥ → ∃ b ∈ p, b ≠ 0

def Submodule.botEquivPUnit E1 #

{R : Type u_1} →
  {M : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → ↥⊥ ≃ₗ[R] PUnit.{v + 1}

The bottom submodule is linearly equivalent to punit as an R-module.

theorem Submodule.botEquivPUnit_apply E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (x : ↥⊥),
  Submodule.botEquivPUnit x = PUnit.unit

theorem Submodule.botEquivPUnit_symm_apply E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (x : PUnit.{v + 1}), Submodule.botEquivPUnit.symm x = 0

theorem Submodule.subsingleton_iff_eq_bot E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {p : Submodule R M}, Subsingleton ↥p ↔ p = ⊥

theorem Submodule.nontrivial_iff_ne_bot E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {p : Submodule R M}, Nontrivial ↥p ↔ p ≠ ⊥

instance Submodule.instTop E0 #

{R : Type u_1} →
  {M : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Top (Submodule R M)

The universal set is the top element of the lattice of submodules.

theorem Submodule.top_coe E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M], ↑⊤ = Set.univ

theorem Submodule.coe_eq_univ E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {p : Submodule R M}, ↑p = Set.univ ↔ p = ⊤

theorem Submodule.mem_top E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {x : M}, x ∈ ⊤

theorem Submodule.top_toAddSubmonoid E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  ⊤.toAddSubmonoid = ⊤

theorem Submodule.top_toAddSubgroup E0 #

∀ {R : Type u_4} {M : Type u_5} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M], ⊤.toAddSubgroup = ⊤

theorem Submodule.toAddSubgroup_eq_top E0 #

∀ {R : Type u_4} {M : Type u_5} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {p : Submodule R M},
  p.toAddSubgroup = ⊤ ↔ p = ⊤

theorem Submodule.mk_eq_top E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (carrier : AddSubmonoid M) (smul_mem' : ∀ (c : R) {x : M}, x ∈ carrier.carrier → c • x ∈ carrier.carrier),
  { toAddSubmonoid := carrier, smul_mem' := smul_mem' } = ⊤ ↔ carrier = ⊤

instance Submodule.instOrderTop E0 #

{R : Type u_1} →
  {M : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → OrderTop (Submodule R M)

def Submodule.topEquiv E1 #

{R : Type u_1} → {M : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → ↥⊤ ≃ₗ[R] M

The top submodule is linearly equivalent to the module.

This is the module version of AddSubmonoid.topEquiv.

theorem Submodule.topEquiv_symm_apply_coe E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (x : M),
  ↑(Submodule.topEquiv.symm x) = x

theorem Submodule.topEquiv_apply E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (x : ↥⊤),
  Submodule.topEquiv x = ↑x

instance Submodule.instInfSet E0 #

{R : Type u_1} →
  {M : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → InfSet (Submodule R M)

theorem Submodule.isGLB_sInf E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {S : Set (Submodule R M)}, IsGLB S (sInf S)

instance Submodule.instMin E0 #

{R : Type u_1} →
  {M : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Min (Submodule R M)

instance Submodule.completeLattice E3 #

{R : Type u_1} →
  {M : Type u_3} →
    [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → CompleteLattice (Submodule R M)

theorem Submodule.coe_inf E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {p q : Submodule R M}, ↑(p ⊓ q) = ↑p ∩ ↑q

theorem Submodule.mem_inf E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {p q : Submodule R M} {x : M}, x ∈ p ⊓ q ↔ x ∈ p ∧ x ∈ q

theorem Submodule.coe_sInf E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (P : Set (Submodule R M)), ↑(sInf P) = ⋂ p ∈ P, ↑p

theorem Submodule.coe_finsetInf E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Type u_4}
  (s : Finset ι) (p : ι → Submodule R M), ↑(s.inf p) = ⋂ i ∈ s, ↑(p i)

theorem Submodule.coe_iInf E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Sort u_4}
  (p : ι → Submodule R M), ↑(⨅ i, p i) = ⋂ i, ↑(p i)

theorem Submodule.mem_sInf E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {S : Set (Submodule R M)} {x : M}, x ∈ sInf S ↔ ∀ p ∈ S, x ∈ p

theorem Submodule.mem_iInf E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Sort u_4}
  (p : ι → Submodule R M) {x : M}, x ∈ ⨅ i, p i ↔ ∀ (i : ι), x ∈ p i

theorem Submodule.mem_finsetInf E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Type u_4}
  {s : Finset ι} {p : ι → Submodule R M} {x : M}, x ∈ s.inf p ↔ ∀ i ∈ s, x ∈ p i

theorem Submodule.inf_iInf E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Sort u_4}
  [Nonempty ι] {p : ι → Submodule R M} (q : Submodule R M), q ⊓ ⨅ i, p i = ⨅ i, q ⊓ p i

theorem Submodule.mem_sup_left E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {S T : Submodule R M} {x : M}, x ∈ S → x ∈ S ⊔ T

theorem Submodule.mem_sup_right E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {S T : Submodule R M} {x : M}, x ∈ T → x ∈ S ⊔ T

theorem Submodule.add_mem_sup E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {S T : Submodule R M} {s t : M}, s ∈ S → t ∈ T → s + t ∈ S ⊔ T

theorem Submodule.sub_mem_sup E1 #

∀ {R' : Type u_4} {M' : Type u_5} [inst : Ring R'] [inst_1 : AddCommGroup M'] [inst_2 : Module R' M']
  {S T : Submodule R' M'} {s t : M'}, s ∈ S → t ∈ T → s - t ∈ S ⊔ T

theorem Submodule.mem_iSup_of_mem E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Sort u_4}
  {b : M} {p : ι → Submodule R M} (i : ι), b ∈ p i → b ∈ ⨆ i, p i

theorem Submodule.sum_mem_iSup E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Type u_4}
  [inst_3 : Fintype ι] {f : ι → M} {p : ι → Submodule R M}, (∀ (i : ι), f i ∈ p i) → ∑ i, f i ∈ ⨆ i, p i

theorem Submodule.sum_mem_biSup E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Type u_4}
  {s : Finset ι} {f : ι → M} {p : ι → Submodule R M}, (∀ i ∈ s, f i ∈ p i) → ∑ i ∈ s, f i ∈ ⨆ i ∈ s, p i

theorem Submodule.mem_sSup_of_mem E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {S : Set (Submodule R M)} {s : Submodule R M}, s ∈ S → ∀ {x : M}, x ∈ s → x ∈ sSup S

theorem Submodule.toAddSubmonoid_sSup E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (s : Set (Submodule R M)), (sSup s).toAddSubmonoid = sSup (Submodule.toAddSubmonoid '' s)

theorem Submodule.subsingleton_iff E0 #

∀ (R : Type u_1) {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Subsingleton (Submodule R M) ↔ Subsingleton M

theorem Submodule.nontrivial_iff E0 #

∀ (R : Type u_1) {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Nontrivial (Submodule R M) ↔ Nontrivial M

instance Submodule.instUniqueOfSubsingleton E0 #

{R : Type u_1} →
  {M : Type u_3} →
    [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → [Subsingleton M] → Unique (Submodule R M)

instance Submodule.unique' E0 #

{R : Type u_1} →
  {M : Type u_3} →
    [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → [Subsingleton R] → Unique (Submodule R M)

instance Submodule.instNontrivial E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Nontrivial M],
  Nontrivial (Submodule R M)

theorem Submodule.disjoint_def E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {p p' : Submodule R M}, Disjoint p p' ↔ ∀ x ∈ p, x ∈ p' → x = 0

theorem Submodule.disjoint_def' E1 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {p p' : Submodule R M}, Disjoint p p' ↔ ∀ x ∈ p, ∀ y ∈ p', x = y → x = 0

theorem Submodule.mem_right_iff_eq_zero_of_disjoint E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {p p' : Submodule R M}, Disjoint p p' → ∀ {x : ↥p}, ↑x ∈ p' ↔ x = 0

theorem Submodule.mem_left_iff_eq_zero_of_disjoint E0 #

∀ {R : Type u_1} {M : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {p p' : Submodule R M}, Disjoint p p' → ∀ {x : ↥p'}, ↑x ∈ p ↔ x = 0

theorem Submodule.disjoint_iff_add_eq_zero E1 #

∀ {M : Type u_4} {R : Type u_5} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {N₁ N₂ : Submodule R M},
  Disjoint N₁ N₂ ↔ ∀ {x y : M}, x ∈ N₁ → y ∈ N₂ → x + y = 0 → x = 0 ∧ y = 0

Version of AddSubgroup.disjoint_iff_add_eq_zero for submodules.

def AddSubmonoid.toNatSubmodule E1 #

{M : Type u_3} → [inst : AddCommMonoid M] → AddSubmonoid M ≃o Submodule ℕ M

An additive submonoid is equivalent to a ℕ-submodule.

theorem AddSubmonoid.toNatSubmodule_symm E0 #

∀ {M : Type u_3} [inst : AddCommMonoid M], ⇑AddSubmonoid.toNatSubmodule.symm = Submodule.toAddSubmonoid

theorem AddSubmonoid.coe_toNatSubmodule E0 #

∀ {M : Type u_3} [inst : AddCommMonoid M] (S : AddSubmonoid M), ↑(AddSubmonoid.toNatSubmodule S) = ↑S

theorem AddSubmonoid.toNatSubmodule_toAddSubmonoid E0 #

∀ {M : Type u_3} [inst : AddCommMonoid M] (S : AddSubmonoid M), (AddSubmonoid.toNatSubmodule S).toAddSubmonoid = S

theorem Submodule.toAddSubmonoid_toNatSubmodule E0 #

∀ {M : Type u_3} [inst : AddCommMonoid M] (S : Submodule ℕ M), AddSubmonoid.toNatSubmodule S.toAddSubmonoid = S

def AddSubgroup.toIntSubmodule E1 #

{M : Type u_3} → [inst : AddCommGroup M] → AddSubgroup M ≃o Submodule ℤ M

An additive subgroup is equivalent to a ℤ-submodule.

theorem AddSubgroup.toIntSubmodule_symm E0 #

∀ {M : Type u_3} [inst : AddCommGroup M], ⇑AddSubgroup.toIntSubmodule.symm = Submodule.toAddSubgroup

theorem AddSubgroup.coe_toIntSubmodule E0 #

∀ {M : Type u_3} [inst : AddCommGroup M] (S : AddSubgroup M), ↑(AddSubgroup.toIntSubmodule S) = ↑S

theorem AddSubgroup.toIntSubmodule_toAddSubgroup E0 #

∀ {M : Type u_3} [inst : AddCommGroup M] (S : AddSubgroup M), (AddSubgroup.toIntSubmodule S).toAddSubgroup = S

theorem Submodule.toAddSubgroup_toIntSubmodule E1 #

∀ {M : Type u_3} [inst : AddCommGroup M] (S : Submodule ℤ M), AddSubgroup.toIntSubmodule S.toAddSubgroup = S