Big-operator lemmas #
Auxiliary material for the formalization of M. Stoll, Galois groups over ℚ of some iterated polynomials, Arch. Math. 59 (1992), 239-244; upstreaming candidates for Mathlib.
theorem
Finset.sum_mul_ite_const
{ι : Type u_1}
{R : Type u_2}
[CommSemiring R]
(s : Finset ι)
(p : ι → Prop)
[DecidablePred p]
(g : ι → R)
(c : R)
:
Factor a constant out of an indicator-weighted sum: ∑ g x · [p x]·c = c · ∑_{p x} g x.