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.Finsupp.LSum

45 declarations. Mathlib docs · Source

Sums as a linear map

Given an R-module M, the R-module structure on α →₀ M is defined in Data.Finsupp.Basic.

Main definitions

  • Finsupp.lsum: Finsupp.sum or Finsupp.liftAddHom as a LinearMap;

Tags

function with finite support, module, linear algebra

theorem Submodule.mulRightMap.congr_simp E1 #

∀ {R : Type u_1} [inst : Semiring R] {S : Type u_4} [inst_1 : Semiring S] [inst_2 : Module R S]
  [inst_3 : SMulCommClass R R S] [inst_4 : IsScalarTower R S S] (M : Submodule R S) {N : Submodule R S} {ι : Type u_5}
  (n n_1 : ι → ↥N), n = n_1 → M.mulRightMap n = M.mulRightMap n_1

theorem Submodule.mulLeftMap.congr_simp E1 #

∀ {R : Type u_1} [inst : Semiring R] {S : Type u_4} [inst_1 : Semiring S] [inst_2 : Module R S]
  [inst_3 : SMulCommClass R R S] [inst_4 : SMulCommClass R S S] {M : Submodule R S} (N : Submodule R S) {ι : Type u_5}
  (m m_1 : ι → ↥M), m = m_1 → Submodule.mulLeftMap N m = Submodule.mulLeftMap N m_1

theorem Finsupp.smul_sum E1 #

∀ {α : Type u_1} {β : Type u_2} {R : Type u_3} {M : Type u_5} [inst : Zero β] [inst_1 : AddCommMonoid M]
  [inst_2 : DistribSMul R M] {v : α →₀ β} {c : R} {h : α → β → M}, c • v.sum h = v.sum fun a b ↦ c • h a b

theorem Finsupp.sum_smul_index_semilinearMap' E0 #

∀ {α : Type u_1} {R : Type u_3} {R₂ : Type u_4} {M : Type u_5} {M₂ : Type u_6} [inst : Semiring R]
  [inst_1 : Semiring R₂] [inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : AddCommMonoid M₂]
  [inst_5 : Module R₂ M₂] {σ : R →+* R₂} {v : α →₀ M} {c : R} {h : α → M →ₛₗ[σ] M₂},
  ((c • v).sum fun a ↦ ⇑(h a)) = σ c • v.sum fun a ↦ ⇑(h a)

theorem Finsupp.sum_smul_index_linearMap' E1 #

∀ {α : Type u_1} {R : Type u_3} {M : Type u_5} {M₂ : Type u_6} [inst : Semiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M₂] {v : α →₀ M} {c : R} {h : α → M →ₗ[R] M₂},
  ((c • v).sum fun a ↦ ⇑(h a)) = c • v.sum fun a ↦ ⇑(h a)

instance LinearMap.CompatibleSMul.finsupp_dom E0 #

∀ (R : Type u_7) (S : Type u_8) (M : Type u_9) (N : Type u_10) (ι : Type u_11) [inst : Semiring S]
  [inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid N] [inst_3 : Module S M] [inst_4 : Module S N]
  [inst_5 : SMulZeroClass R M] [inst_6 : DistribSMul R N] [LinearMap.CompatibleSMul M N R S],
  LinearMap.CompatibleSMul (ι →₀ M) N R S

instance LinearMap.CompatibleSMul.finsupp_cod E0 #

∀ (R : Type u_7) (S : Type u_8) (M : Type u_9) (N : Type u_10) (ι : Type u_11) [inst : Semiring S]
  [inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid N] [inst_3 : Module S M] [inst_4 : Module S N] [inst_5 : SMul R M]
  [inst_6 : SMulZeroClass R N] [LinearMap.CompatibleSMul M N R S], LinearMap.CompatibleSMul M (ι →₀ N) R S

def Finsupp.lsum E3 #

{α : Type u_1} →
  {M : Type u_2} →
    {N : Type u_3} →
      {R : Type u_4} →
        {R₂ : Type u_5} →
          (S : Type u_6) →
            [inst : Semiring R] →
              [inst_1 : Semiring R₂] →
                [inst_2 : Semiring S] →
                  [inst_3 : AddCommMonoid M] →
                    [inst_4 : Module R M] →
                      [inst_5 : AddCommMonoid N] →
                        [inst_6 : Module R₂ N] →
                          {σ : R →+* R₂} →
                            [inst_7 : Module S N] →
                              [inst_8 : SMulCommClass R₂ S N] → (α → M →ₛₗ[σ] N) ≃ₗ[S] (α →₀ M) →ₛₗ[σ] N

Lift a family of linear maps M →ₗ[R] N indexed by x : α to a linear map from α →₀ M to N using Finsupp.sum. This is an upgraded version of Finsupp.liftAddHom.

See note [bundled maps over different rings] for why separate R and S semirings are used.

theorem Finsupp.coe_lsum E0 #

∀ {α : Type u_1} {M : Type u_2} {N : Type u_3} {R : Type u_4} {R₂ : Type u_5} (S : Type u_6) [inst : Semiring R]
  [inst_1 : Semiring R₂] [inst_2 : Semiring S] [inst_3 : AddCommMonoid M] [inst_4 : Module R M]
  [inst_5 : AddCommMonoid N] [inst_6 : Module R₂ N] {σ : R →+* R₂} [inst_7 : Module S N] [inst_8 : SMulCommClass R₂ S N]
  (f : α → M →ₛₗ[σ] N), ⇑((Finsupp.lsum S) f) = fun d ↦ d.sum fun i ↦ ⇑(f i)

theorem Finsupp.lsum_apply E0 #

∀ {α : Type u_1} {M : Type u_2} {N : Type u_3} {R : Type u_4} {R₂ : Type u_5} (S : Type u_6) [inst : Semiring R]
  [inst_1 : Semiring R₂] [inst_2 : Semiring S] [inst_3 : AddCommMonoid M] [inst_4 : Module R M]
  [inst_5 : AddCommMonoid N] [inst_6 : Module R₂ N] {σ : R →+* R₂} [inst_7 : Module S N] [inst_8 : SMulCommClass R₂ S N]
  (f : α → M →ₛₗ[σ] N) (l : α →₀ M), ((Finsupp.lsum S) f) l = l.sum fun b ↦ ⇑(f b)

theorem Finsupp.lsum_single E1 #

∀ {α : Type u_1} {M : Type u_2} {N : Type u_3} {R : Type u_4} {R₂ : Type u_5} (S : Type u_6) [inst : Semiring R]
  [inst_1 : Semiring R₂] [inst_2 : Semiring S] [inst_3 : AddCommMonoid M] [inst_4 : Module R M]
  [inst_5 : AddCommMonoid N] [inst_6 : Module R₂ N] {σ : R →+* R₂} [inst_7 : Module S N] [inst_8 : SMulCommClass R₂ S N]
  (f : α → M →ₛₗ[σ] N) (i : α) (m : M), (((Finsupp.lsum S) f) fun₀ | i => m) = (f i) m

theorem Finsupp.lsum_comp_lsingle E0 #

∀ {α : Type u_1} {M : Type u_2} {N : Type u_3} {R : Type u_4} {R₂ : Type u_5} (S : Type u_6) [inst : Semiring R]
  [inst_1 : Semiring R₂] [inst_2 : Semiring S] [inst_3 : AddCommMonoid M] [inst_4 : Module R M]
  [inst_5 : AddCommMonoid N] [inst_6 : Module R₂ N] {σ : R →+* R₂} [inst_7 : Module S N] [inst_8 : SMulCommClass R₂ S N]
  (f : α → M →ₛₗ[σ] N) (i : α), (Finsupp.lsum S) f ∘ₛₗ Finsupp.lsingle i = f i

theorem Finsupp.lsum_symm_apply E0 #

∀ {α : Type u_1} {M : Type u_2} {N : Type u_3} {R : Type u_4} {R₂ : Type u_5} (S : Type u_6) [inst : Semiring R]
  [inst_1 : Semiring R₂] [inst_2 : Semiring S] [inst_3 : AddCommMonoid M] [inst_4 : Module R M]
  [inst_5 : AddCommMonoid N] [inst_6 : Module R₂ N] {σ : R →+* R₂} [inst_7 : Module S N] [inst_8 : SMulCommClass R₂ S N]
  (f : (α →₀ M) →ₛₗ[σ] N) (x : α), (Finsupp.lsum S).symm f x = f ∘ₛₗ Finsupp.lsingle x

def Finsupp.lift E1 #

(M : Type u_2) →
  (R : Type u_4) →
    [inst : Semiring R] →
      [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → (X : Type u_7) → (X → M) ≃+ ((X →₀ R) →ₗ[R] M)

A slight rearrangement from lsum gives us the bijection underlying the free-forgetful adjunction for R-modules.

theorem Finsupp.lift_symm_apply E0 #

∀ (M : Type u_2) (R : Type u_4) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (X : Type u_7)
  (f : (X →₀ R) →ₗ[R] M) (x : X), (Finsupp.lift M R X).symm f x = f fun₀ | x => 1

theorem Finsupp.lift_apply E0 #

∀ (M : Type u_2) (R : Type u_4) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (X : Type u_7)
  (f : X → M) (g : X →₀ R), ((Finsupp.lift M R X) f) g = g.sum fun x r ↦ r • f x

def Finsupp.llift E1 #

(M : Type u_2) →
  (R : Type u_4) →
    (S : Type u_6) →
      [inst : Semiring R] →
        [inst_1 : Semiring S] →
          [inst_2 : AddCommMonoid M] →
            [inst_3 : Module R M] →
              (X : Type u_7) → [inst_4 : Module S M] → [inst_5 : SMulCommClass R S M] → (X → M) ≃ₗ[S] (X →₀ R) →ₗ[R] M

Given compatible S and R-module structures on M and a type X, the set of functions X → M is S-linearly equivalent to the R-linear maps from the free R-module on X to M.

theorem Finsupp.llift_apply E0 #

∀ (M : Type u_2) (R : Type u_4) (S : Type u_6) [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] (X : Type u_7) [inst_4 : Module S M] [inst_5 : SMulCommClass R S M] (f : X → M) (x : X →₀ R),
  ((Finsupp.llift M R S X) f) x = ((Finsupp.lift M R X) f) x

theorem Finsupp.llift_symm_apply E0 #

∀ (M : Type u_2) (R : Type u_4) (S : Type u_6) [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] (X : Type u_7) [inst_4 : Module S M] [inst_5 : SMulCommClass R S M] (f : (X →₀ R) →ₗ[R] M)
  (x : X), (Finsupp.llift M R S X).symm f x = f fun₀ | x => 1

def Finsupp.domLCongr E1 #

{M : Type u_2} →
  {R : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : AddCommMonoid M] →
        [inst_2 : Module R M] → {α₁ : Type u_7} → {α₂ : Type u_8} → α₁ ≃ α₂ → (α₁ →₀ M) ≃ₗ[R] α₂ →₀ M

An equivalence of domains induces a linear equivalence of finitely supported functions.

This is Finsupp.domCongr as a LinearEquiv. See also LinearMap.funCongrLeft for the case of arbitrary functions.

theorem Finsupp.domLCongr_apply E0 #

∀ {M : Type u_2} {R : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α₁ : Type u_7}
  {α₂ : Type u_8} (e : α₁ ≃ α₂) (v : α₁ →₀ M), (Finsupp.domLCongr e) v = (Finsupp.domCongr e) v

theorem Finsupp.domLCongr_refl E0 #

∀ {α : Type u_1} {M : Type u_2} {R : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Finsupp.domLCongr (Equiv.refl α) = LinearEquiv.refl R (α →₀ M)

theorem Finsupp.domLCongr_trans E1 #

∀ {M : Type u_2} {R : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α₁ : Type u_7}
  {α₂ : Type u_8} {α₃ : Type u_9} (f : α₁ ≃ α₂) (f₂ : α₂ ≃ α₃),
  Finsupp.domLCongr f ≪≫ₗ Finsupp.domLCongr f₂ = Finsupp.domLCongr (f.trans f₂)

theorem Finsupp.domLCongr_symm E0 #

∀ {M : Type u_2} {R : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α₁ : Type u_7}
  {α₂ : Type u_8} (f : α₁ ≃ α₂), (Finsupp.domLCongr f).symm = Finsupp.domLCongr f.symm

theorem Finsupp.domLCongr_single E1 #

∀ {M : Type u_2} {R : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α₁ : Type u_7}
  {α₂ : Type u_8} (e : α₁ ≃ α₂) (i : α₁) (m : M), ((Finsupp.domLCongr e) fun₀ | i => m) = fun₀ | e i => m

def Finsupp.lcongr E1 #

{M : Type u_2} →
  {N : Type u_3} →
    {R : Type u_4} →
      {R₂ : Type u_5} →
        [inst : Semiring R] →
          [inst_1 : Semiring R₂] →
            [inst_2 : AddCommMonoid M] →
              [inst_3 : Module R M] →
                [inst_4 : AddCommMonoid N] →
                  [inst_5 : Module R₂ N] →
                    {σ : R →+* R₂} →
                      {σ_inv : R₂ →+* R} →
                        [inst_6 : RingHomInvPair σ σ_inv] →
                          [inst_7 : RingHomInvPair σ_inv σ] →
                            {ι : Type u_7} → {κ : Type u_8} → ι ≃ κ → (M ≃ₛₗ[σ] N) → (ι →₀ M) ≃ₛₗ[σ] κ →₀ N

An equivalence of domain and a linear equivalence of codomain induce a linear equivalence of the corresponding finitely supported functions.

theorem Finsupp.lcongr_single E0 #

∀ {M : Type u_2} {N : Type u_3} {R : Type u_4} {R₂ : Type u_5} [inst : Semiring R] [inst_1 : Semiring R₂]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : AddCommMonoid N] [inst_5 : Module R₂ N] {σ : R →+* R₂}
  {σ_inv : R₂ →+* R} [inst_6 : RingHomInvPair σ σ_inv] [inst_7 : RingHomInvPair σ_inv σ] {ι : Type u_7} {κ : Type u_8}
  (e₁ : ι ≃ κ) (e₂ : M ≃ₛₗ[σ] N) (i : ι) (m : M), ((Finsupp.lcongr e₁ e₂) fun₀ | i => m) = fun₀ | e₁ i => e₂ m

theorem Finsupp.lcongr_apply_apply E0 #

∀ {M : Type u_2} {N : Type u_3} {R : Type u_4} {R₂ : Type u_5} [inst : Semiring R] [inst_1 : Semiring R₂]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : AddCommMonoid N] [inst_5 : Module R₂ N] {σ : R →+* R₂}
  {σ_inv : R₂ →+* R} [inst_6 : RingHomInvPair σ σ_inv] [inst_7 : RingHomInvPair σ_inv σ] {ι : Type u_7} {κ : Type u_8}
  (e₁ : ι ≃ κ) (e₂ : M ≃ₛₗ[σ] N) (f : ι →₀ M) (k : κ), ((Finsupp.lcongr e₁ e₂) f) k = e₂ (f (e₁.symm k))

theorem Finsupp.lcongr_symm_single E1 #

∀ {M : Type u_2} {N : Type u_3} {R : Type u_4} {R₂ : Type u_5} [inst : Semiring R] [inst_1 : Semiring R₂]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : AddCommMonoid N] [inst_5 : Module R₂ N] {σ : R →+* R₂}
  {σ_inv : R₂ →+* R} [inst_6 : RingHomInvPair σ σ_inv] [inst_7 : RingHomInvPair σ_inv σ] {ι : Type u_7} {κ : Type u_8}
  (e₁ : ι ≃ κ) (e₂ : M ≃ₛₗ[σ] N) (k : κ) (n : N),
  ((Finsupp.lcongr e₁ e₂).symm fun₀ | k => n) = fun₀ | e₁.symm k => e₂.symm n

theorem Finsupp.lcongr_symm E0 #

∀ {M : Type u_2} {N : Type u_3} {R : Type u_4} {R₂ : Type u_5} [inst : Semiring R] [inst_1 : Semiring R₂]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : AddCommMonoid N] [inst_5 : Module R₂ N] {σ : R →+* R₂}
  {σ_inv : R₂ →+* R} [inst_6 : RingHomInvPair σ σ_inv] [inst_7 : RingHomInvPair σ_inv σ] {ι : Type u_7} {κ : Type u_8}
  (e₁ : ι ≃ κ) (e₂ : M ≃ₛₗ[σ] N), (Finsupp.lcongr e₁ e₂).symm = Finsupp.lcongr e₁.symm e₂.symm

theorem Submodule.finsuppSum_mem E1 #

∀ (R : Type u_1) {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Type u_4}
  {β : Type u_5} [inst_3 : Zero β] (S : Submodule R M) (f : ι →₀ β) (g : ι → β → M),
  (∀ (c : ι), f c ≠ 0 → g c (f c) ∈ S) → f.sum g ∈ S

def LinearMap.splittingOfFinsuppSurjective E1 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : AddCommMonoid M] →
        [inst_2 : Module R M] → {α : Type u_4} → (f : M →ₗ[R] α →₀ R) → Function.Surjective ⇑f → (α →₀ R) →ₗ[R] M

A surjective linear map to finitely supported functions has a splitting.

theorem LinearMap.splittingOfFinsuppSurjective_splits E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_4}
  (f : M →ₗ[R] α →₀ R) (s : Function.Surjective ⇑f), f ∘ₗ f.splittingOfFinsuppSurjective s = LinearMap.id

theorem LinearMap.leftInverse_splittingOfFinsuppSurjective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_4}
  (f : M →ₗ[R] α →₀ R) (s : Function.Surjective ⇑f), Function.LeftInverse ⇑f ⇑(f.splittingOfFinsuppSurjective s)

theorem LinearMap.splittingOfFinsuppSurjective_injective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_4}
  (f : M →ₗ[R] α →₀ R) (s : Function.Surjective ⇑f), Function.Injective ⇑(f.splittingOfFinsuppSurjective s)

theorem LinearMap.coe_finsupp_sum E0 #

∀ {R : Type u_4} {R₂ : Type u_5} {M : Type u_6} {M₂ : Type u_7} {ι : Type u_8} [inst : Semiring R]
  [inst_1 : Semiring R₂] [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] {σ₁₂ : R →+* R₂} [inst_4 : Module R M]
  [inst_5 : Module R₂ M₂] {γ : Type u_9} [inst_6 : Zero γ] (t : ι →₀ γ) (g : ι → γ → M →ₛₗ[σ₁₂] M₂),
  ⇑(t.sum g) = ⇑(t.sum fun i d ↦ g i d)

theorem LinearMap.finsupp_sum_apply E0 #

∀ {R : Type u_4} {R₂ : Type u_5} {M : Type u_6} {M₂ : Type u_7} {ι : Type u_8} [inst : Semiring R]
  [inst_1 : Semiring R₂] [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] {σ₁₂ : R →+* R₂} [inst_4 : Module R M]
  [inst_5 : Module R₂ M₂] {γ : Type u_9} [inst_6 : Zero γ] (t : ι →₀ γ) (g : ι → γ → M →ₛₗ[σ₁₂] M₂) (b : M),
  (t.sum g) b = t.sum fun i d ↦ (g i d) b

def Submodule.mulLeftMap E1 #

{R : Type u_1} →
  [inst : Semiring R] →
    {S : Type u_4} →
      [inst_1 : Semiring S] →
        [inst_2 : Module R S] →
          [SMulCommClass R R S] →
            [SMulCommClass R S S] →
              {M : Submodule R S} → (N : Submodule R S) → {ι : Type u_5} → (ι → ↥M) → (ι →₀ ↥N) →ₗ[R] S

If M and N are submodules of an R-algebra S, m : ι → M is a family of elements, then there is an R-linear map from ι →₀ N to S which maps { n_i } to the sum of m_i * n_i. This is used in the definition of linearly disjointness.

theorem Submodule.mulLeftMap_apply E0 #

∀ {R : Type u_1} [inst : Semiring R] {S : Type u_4} [inst_1 : Semiring S] [inst_2 : Module R S]
  [inst_3 : SMulCommClass R R S] [inst_4 : SMulCommClass R S S] {M N : Submodule R S} {ι : Type u_5} (m : ι → ↥M)
  (n : ι →₀ ↥N), (Submodule.mulLeftMap N m) n = n.sum fun i n ↦ ↑(m i) * ↑n

theorem Submodule.mulLeftMap_apply_single E0 #

∀ {R : Type u_1} [inst : Semiring R] {S : Type u_4} [inst_1 : Semiring S] [inst_2 : Module R S]
  [inst_3 : SMulCommClass R R S] [inst_4 : SMulCommClass R S S] {M N : Submodule R S} {ι : Type u_5} (m : ι → ↥M)
  (i : ι) (n : ↥N), ((Submodule.mulLeftMap N m) fun₀ | i => n) = ↑(m i) * ↑n

def Submodule.mulRightMap E1 #

{R : Type u_1} →
  [inst : Semiring R] →
    {S : Type u_4} →
      [inst_1 : Semiring S] →
        [inst_2 : Module R S] →
          [SMulCommClass R R S] →
            [IsScalarTower R S S] →
              (M : Submodule R S) → {N : Submodule R S} → {ι : Type u_5} → (ι → ↥N) → (ι →₀ ↥M) →ₗ[R] S

If M and N are submodules of an R-algebra S, n : ι → N is a family of elements, then there is an R-linear map from ι →₀ M to S which maps { m_i } to the sum of m_i * n_i. This is used in the definition of linearly disjointness.

theorem Submodule.mulRightMap_apply E0 #

∀ {R : Type u_1} [inst : Semiring R] {S : Type u_4} [inst_1 : Semiring S] [inst_2 : Module R S]
  [inst_3 : SMulCommClass R R S] [inst_4 : IsScalarTower R S S] {M N : Submodule R S} {ι : Type u_5} (n : ι → ↥N)
  (m : ι →₀ ↥M), (M.mulRightMap n) m = m.sum fun i m ↦ ↑m * ↑(n i)

theorem Submodule.mulRightMap_apply_single E0 #

∀ {R : Type u_1} [inst : Semiring R] {S : Type u_4} [inst_1 : Semiring S] [inst_2 : Module R S]
  [inst_3 : SMulCommClass R R S] [inst_4 : IsScalarTower R S S] {M N : Submodule R S} {ι : Type u_5} (n : ι → ↥N)
  (i : ι) (m : ↥M), ((M.mulRightMap n) fun₀ | i => m) = ↑m * ↑(n i)

theorem Submodule.mulLeftMap_eq_mulRightMap_of_commute E1 #

∀ {R : Type u_1} [inst : Semiring R] {S : Type u_4} [inst_1 : Semiring S] [inst_2 : Module R S]
  [inst_3 : SMulCommClass R R S] [inst_4 : IsScalarTower R S S] [inst_5 : SMulCommClass R S S] {M : Submodule R S}
  (N : Submodule R S) {ι : Type u_5} (m : ι → ↥M),
  (∀ (i : ι) (n : ↥N), Commute ↑(m i) ↑n) → Submodule.mulLeftMap N m = N.mulRightMap m

theorem Submodule.mulLeftMap_eq_mulRightMap E1 #

∀ {R : Type u_1} [inst : Semiring R] {S : Type u_5} [inst_1 : CommSemiring S] [inst_2 : Module R S]
  [inst_3 : SMulCommClass R R S] [inst_4 : IsScalarTower R S S] {M : Submodule R S} (N : Submodule R S) {ι : Type u_6}
  (m : ι → ↥M), Submodule.mulLeftMap N m = N.mulRightMap m