Big operators over finite sets of optional values #
This file splits a product or sum over Finset (Option α) into the terms indexed by some
and the possible term indexed by none.
Main results #
Finset.prod_option: split a product into itssometerms and its possiblenoneterm.Finset.sum_option: additive version ofFinset.prod_option.
theorem
Finset.prod_option
{α : Type u_1}
{M : Type u_2}
[DecidableEq α]
[CommMonoid M]
(s : Finset (Option α))
(f : Option α → M)
:
Split a product over optional values into its some terms and its possible none term.