Boolean Möbius Inversion #
This file formalizes the Boolean Möbius inversion formula, also known as the Möbius inversion formula for the Boolean lattice.
Main Results #
booleanMobiusInversion: Given functionsaandbon subsets of a finite setSwhereb I = ∑ J ⊆ I, a Jfor allI ⊆ S, we havea I = ∑ J ⊆ I, (-1)^|I \ J| * b JalternatingSum_superset_eq_iverson_a: ForP ⊆ Q, we have∑_{I : P ⊆ I ⊆ Q} (-1)^|I| = (-1)^|P| * [P = Q]alternatingSum_superset_eq_iverson_b: ForP ⊆ Q, we have∑_{I : P ⊆ I ⊆ Q} (-1)^|Q \ I| = [P = Q]
References #
- Source:
AlgebraicCombinatorics/tex/SignedCounting/InclusionExclusion2.tex- Section:
subsec.sign.pie.moeb-bool - Theorem
thm.pie.moeb - Lemma
lem.pie.two-sets-altsum
- Section:
Tags #
inclusion-exclusion, Möbius inversion, Boolean lattice, alternating sum
Alternating Sums over Supersets #
These lemmas establish the key combinatorial identities needed for the Boolean Möbius inversion formula.
The key insight is that for P ⊆ Q, the sum ∑_{I : P ⊆ I ⊆ Q} (-1)^|I| equals
(-1)^|P| when P = Q and 0 otherwise. The proof uses the bijection from
(Q \ P).powerset to Icc P Q (via Icc_eq_image_powerset) and then applies
Mathlib's sum_powerset_neg_one_pow_card.
Lemma lem.pie.two-sets-altsum (a): For P ⊆ Q finite sets,
∑_{I : P ⊆ I ⊆ Q} (-1)^|I| = (-1)^|P| * [P = Q]
When P ≠ Q, the sum is 0. When P = Q, the only term is (-1)^|Q|.
The proof uses the bijection I ↦ I ∩ (Q \ P) from {I : P ⊆ I ⊆ Q} to
(Q \ P).powerset, and then applies sum_powerset_neg_one_pow_card.
Label: eq.lem.pie.two-sets-altsum.a
Lemma lem.pie.two-sets-altsum (b): For P ⊆ Q finite sets,
∑_{I : P ⊆ I ⊆ Q} (-1)^|Q \ I| = [P = Q]
This follows from part (a) by the identity |Q \ I| ≡ |Q| + |I| (mod 2).
Label: eq.lem.pie.two-sets-altsum.b
Boolean Möbius Inversion #
The main theorem states that if b I = ∑_{J ⊆ I} a J for all I ⊆ S, then
we can recover a from b via a I = ∑_{J ⊆ I} (-1)^|I \ J| b J.
This is a fundamental result in combinatorics, generalizing the inclusion-exclusion principle.
A helper lemma for swapping sums over pairs (J, P) with P ⊆ J ⊆ Q to pairs (P, J) with P ⊆ J ⊆ Q.
Boolean Möbius inversion formula (Theorem thm.pie.moeb): Let S be a finite set and A an additive abelian group. For each subset I of S, let a_I and b_I be elements of A.
If b I = ∑_{J ⊆ I} a J for all I ⊆ S,
then a I = ∑_{J ⊆ I} (-1)^|I \ J| b J for all I ⊆ S.
Label: thm.pie.moeb, eq.thm.pie.moeb.ass, eq.thm.pie.moeb.claim
Alternative formulation of Boolean Möbius inversion using (-1)^|I \ J| as an integer. This is sometimes more convenient for computation.