English
For any set s and submodule N of a module over R', the product of s with N equals the product of span(s) with N, i.e., (Ideal.span s) • N = s • N.
Русский
Для множества s и подмодуля N над R' имеем: (Ideal.span s) • N = s • N.
LaTeX
$$$\\left( \\mathrm{Ideal}.span\,s \\right) \\cdot N = s \\cdot N$$$
Lean4
theorem coe_span_smul {R' M' : Type*} [CommSemiring R'] [AddCommMonoid M'] [Module R' M'] (s : Set R')
(N : Submodule R' M') : (Ideal.span s : Set R') • N = s • N :=
set_smul_eq_of_le _ _ _
(by
rintro r n hr hn
induction hr using Submodule.span_induction with
| mem _ h => exact mem_set_smul_of_mem_mem h hn
| zero => rw [zero_smul]; exact Submodule.zero_mem _
| add _ _ _ _ ihr ihs => rw [add_smul]; exact Submodule.add_mem _ ihr ihs
| smul _ _ hr =>
rw [mem_span_set] at hr
obtain ⟨c, hc, rfl⟩ := hr
rw [Finsupp.sum, Finset.smul_sum, Finset.sum_smul]
refine Submodule.sum_mem _ fun i hi => ?_
rw [← mul_smul, smul_eq_mul, mul_comm, mul_smul]
exact mem_set_smul_of_mem_mem (hc hi) <| Submodule.smul_mem _ _ hn) <|
set_smul_mono_left _ Submodule.subset_span