The areas / V03. Sets, finite structures and big operators
Mathlib.Algebra.BigOperators.Option
6 declarations. Mathlib docs · Source
theorem Finset.sum_insertNone E0 #
∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : Option α → M) (s : Finset α),
∑ x ∈ Finset.insertNone s, f x = f none + ∑ x ∈ s, f (some x)
theorem Finset.prod_insertNone E0 #
∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] (f : Option α → M) (s : Finset α),
∏ x ∈ Finset.insertNone s, f x = f none * ∏ x ∈ s, f (some x)
theorem Finset.add_sum_eq_sum_insertNone E1 #
∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → M) (x : M) (s : Finset α),
x + ∑ i ∈ s, f i = ∑ i ∈ Finset.insertNone s, i.elim x f
theorem Finset.mul_prod_eq_prod_insertNone E1 #
∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] (f : α → M) (x : M) (s : Finset α),
x * ∏ i ∈ s, f i = ∏ i ∈ Finset.insertNone s, i.elim x f
theorem Finset.sum_eraseNone E1 #
∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] (f : α → M) (s : Finset (Option α)),
∑ x ∈ Finset.eraseNone s, f x = ∑ x ∈ s, Option.elim' 0 f x
theorem Finset.prod_eraseNone E1 #
∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] (f : α → M) (s : Finset (Option α)),
∏ x ∈ Finset.eraseNone s, f x = ∏ x ∈ s, Option.elim' 1 f x