Lean4
/-- The summable family given by multiplying every series in a summable family by a scalar. -/
@[simps]
def smulFamily [AddCommMonoid V] [SMulWithZero R V] (f : α → R) (s : SummableFamily Γ V α) : SummableFamily Γ V α
where
toFun a := (f a) • s a
isPWO_iUnion_support' := by
refine Set.IsPWO.mono s.isPWO_iUnion_support fun g hg => ?_
simp_all only [Set.mem_iUnion, mem_support, coeff_smul, ne_eq]
obtain ⟨i, hi⟩ := hg
exact Exists.intro i <| right_ne_zero_of_smul hi
finite_co_support'
g := by
refine Set.Finite.subset (s.finite_co_support g) fun i hi => ?_
simp_all only [coeff_smul, ne_eq, Set.mem_setOf_eq, Function.mem_support]
exact right_ne_zero_of_smul hi