The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V03. Sets, finite structures and big operators

Mathlib.Algebra.BigOperators.Group.Finset.Powerset

8 declarations. Mathlib docs · Source

theorem Finset.prod_powerset_insert E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Finset α} {a : α} [inst : CommMonoid β] [inst_1 : DecidableEq α],
  a ∉ s →
    ∀ (f : Finset α → β), ∏ t ∈ (insert a s).powerset, f t = (∏ t ∈ s.powerset, f t) * ∏ t ∈ s.powerset, f (insert a t)

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.

theorem Finset.sum_powerset_insert E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Finset α} {a : α} [inst : AddCommMonoid β] [inst_1 : DecidableEq α],
  a ∉ s →
    ∀ (f : Finset α → β), ∑ t ∈ (insert a s).powerset, f t = ∑ t ∈ s.powerset, f t + ∑ t ∈ s.powerset, f (insert a t)

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.

theorem Finset.prod_powerset_cons E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Finset α} {a : α} [inst : CommMonoid β] (ha : a ∉ s) (f : Finset α → β),
  ∏ t ∈ (Finset.cons a s ha).powerset, f t = (∏ t ∈ s.powerset, f t) * ∏ t ∈ s.powerset.attach, f (Finset.cons a ↑t ⋯)

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.

theorem Finset.sum_powerset_cons E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Finset α} {a : α} [inst : AddCommMonoid β] (ha : a ∉ s) (f : Finset α → β),
  ∑ t ∈ (Finset.cons a s ha).powerset, f t = ∑ t ∈ s.powerset, f t + ∑ t ∈ s.powerset.attach, f (Finset.cons a ↑t ⋯)

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.

theorem Finset.prod_powerset E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : CommMonoid β] (s : Finset α) (f : Finset α → β),
  ∏ t ∈ s.powerset, f t = ∏ j ∈ Finset.range (s.card + 1), ∏ t ∈ Finset.powersetCard j s, f t

A product over powerset s is equal to the double product over sets of subsets of s with #s = k, for k = 0, ..., #s.

theorem Finset.sum_powerset E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : AddCommMonoid β] (s : Finset α) (f : Finset α → β),
  ∑ t ∈ s.powerset, f t = ∑ j ∈ Finset.range (s.card + 1), ∑ t ∈ Finset.powersetCard j s, f t

A sum over powerset s is equal to the double sum over sets of subsets of s with #s = k, for k = 0, ..., #s

theorem Finset.prod_powersetCard E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : CommMonoid β] (n : ℕ) (s : Finset α) (f : ℕ → β),
  ∏ t ∈ Finset.powersetCard n s, f t.card = f n ^ s.card.choose n

A product over Finset.powersetCard which only depends on the size of the sets is constant.

theorem Finset.sum_powersetCard E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : AddCommMonoid β] (n : ℕ) (s : Finset α) (f : ℕ → β),
  ∑ t ∈ Finset.powersetCard n s, f t.card = s.card.choose n • f n

A sum over Finset.powersetCard which only depends on the size of the sets is constant.