Theorems · Theorem · combinatorics
Finset.sum_card_eq_sum_biUnion_card
∀ {α : Type u_2} {β : Type u_3} [inst : Fintype α] [inst_1 : DecidableEq α] [inst_2 : DecidableEq β] (B : α → Finset β)
(s : Finset α), ∑ j ∈ s, (B j).card = ∑ x ∈ s.biUnion B, {j | j ∈ s ∧ x ∈ B j}.cardGiven a finite collection of finite subsets $B_1, \ldots, B_k$ and, for every $x \in \bigcup_i B_i$, let $C_x$ be the set of indices of the $B_i$'s that contain $x$. Then, $\sum_i |B_i| = \sum_x |C_x|$.
- Cited by
- 1 results in Mathlib
- Foundations
- Depth 79 from the axioms · uses propext, Classical.choice, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites11
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Finsetstatement and proof · cited by 13,712
- Fintypestatement and proof · cited by 7,736
- Finset.sumstatement and proof · cited by 5,195
- Finset.univstatement and proof · cited by 3,473
- Finset.cardstatement and proof · cited by 2,327
- Finset.sum_congrproof · cited by 2,323
- Finset.filterstatement and proof · cited by 949
- Finset.biUnionstatement and proof · cited by 217
- Finset.bipartiteBelowproof · cited by 24
- Finset.bipartiteAboveproof · cited by 22
- Finset.sum_card_bipartiteAbove_eq_sum_card_bipartiteBelowproof · cited by 5
Cited by1
Results whose statement or proof uses this declaration.
- Finset.exists_mem_exists_mem_inf'_card_ltproof · cited by 0