Results about big operators with values in a (semi)ring #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
We prove results about big operators that involve some interaction between multiplicative and additive structures on the values being combined.
The product over a sum can be written as a sum over the product of sets, finset.pi
.
finset.prod_univ_sum
is an alternative statement when the product is over univ
.
The product of f a + g a
over all of s
is the sum
over the powerset of s
of the product of f
over a subset t
times
the product of g
over the complement of t
∏ i, (f i + g i) = (∏ i, f i) + ∑ i, g i * (∏ j < i, f j + g j) * (∏ j > i, f j)
.
∏ i, (f i - g i) = (∏ i, f i) - ∑ i, g i * (∏ j < i, f j - g j) * (∏ j > i, f j)
.
∏ i, (1 - f i) = 1 - ∑ i, f i * (∏ j < i, 1 - f j)
. This formula is useful in construction of
a partition of unity from a collection of “bump” functions.
Summing a^s.card * b^(n-s.card)
over all finite subsets s
of a finset
gives (a + b)^s.card
.
A sum over all subsets of s ∪ {x}
is obtained by summing the sum over all subsets
of s
, and over all subsets of s
to which one adds x
.
A product over all subsets of s ∪ {x}
is obtained by multiplying the product over all subsets
of s
, and over all subsets of s
to which one adds x
.
A sum over powerset s
is equal to the double sum over sets of subsets of s
with
card s = k
, for k = 1, ..., card s
A product over powerset s
is equal to the double product over sets of subsets of s
with
card s = k
, for k = 1, ..., card s
.