Theorems · Theorem · combinatorics
Finset.inclusion_exclusion_sum_biUnion
- #96 of the 100 theorems: Principle of Inclusion/Exclusion
∀ {ι : Type u_1} {α : Type u_2} {G : Type u_3} [inst : AddCommGroup G] [inst_1 : DecidableEq α] (s : Finset ι)
(S : ι → Finset α) (f : α → G), ∑ a ∈ s.biUnion S, f a = ∑ t, (-1) ^ ((↑t).card + 1) • ∑ a ∈ (↑t).inf' ⋯ S, f aInclusion-exclusion principle for the sum of a function over a union.
The sum of a function f over the union of the S i over i ∈ s is the alternating sum of the
sums of f over the intersections of the S i.
- Cited by
- 2 results in Mathlib
- Foundations
- Depth 83 from the axioms · uses propext, Classical.choice, Quot.sound
- Assumes
- AddCommGroupDecidableEq
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites58
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
- AddCommGroupstatement and proof · cited by 12,871
- AddCommMonoidproof · cited by 12,281
- SetLike.coeproof · cited by 8,199
- Finset.sumstatement and proof · cited by 5,195
- mul_oneproof · cited by 3,885
- Finset.univstatement and proof · cited by 3,473
- add_zeroproof · cited by 2,707
- Finset.prodproof · cited by 2,356
- Finset.cardstatement and proof · cited by 2,327
- Finset.sum_congrproof · cited by 2,323
- MulZeroClass.mul_zeroproof · cited by 2,091
Cited by2
Results whose statement or proof uses this declaration.
- Finset.inclusion_exclusion_sum_inf_complproof · cited by 1
- Finset.inclusion_exclusion_card_biUnionproof · cited by 0