Documentation

CslibFrontier.Foundations.BooleanAnalysis.CoveringProduct

Covering product and subset convolution #

For f g : Finset ι → R, the subset convolution at X is ∑_{A ⊆ X} f A * g (X \ A), the sum over the ordered partitions of X into two parts, and the covering product at X is the sum of f A * g B over the pairs A, B ⊆ X with A ∪ B = X.

The zeta transform turns the covering product into the pointwise product (subsetZeta_coveringProduct), so by Möbius inversion the covering product is the Möbius transform of the pointwise product of the zeta transforms (coveringProduct_eq_subsetMobius); this is the inclusion–exclusion identity of [BHKK07], quoted as the identity before the preprocessing algorithm in the proof of [CIMY26], Theorem 2.2. In the ranked case, where f is supported on sets with t₁ elements, g on sets with t₂ elements and #X = t₁ + t₂, every covering pair is a partition, so the two products agree at X (coveringProduct_eq_subsetConvolution). That is the reduction of [CIMY26], Problem 2.1, to covering products.

The algorithm computing selected entries is in CslibFrontier.Algorithms.Lean.TrimmedYates.

Main definitions #

Main results #

References #

def Cslib.BitString.subsetConvolution {ι : Type u_1} {R : Type u_2} [DecidableEq ι] [CommSemiring R] (f g : Finset ι → R) (X : Finset ι) :
R

The subset convolution: the value at X is ∑_{A ⊆ X} f A * g (X \ A).

def Cslib.BitString.coveringProduct {ι : Type u_1} {R : Type u_2} [DecidableEq ι] [CommSemiring R] (f g : Finset ι → R) (X : Finset ι) :
R

The covering product: the value at X is the sum of f A * g B over the pairs of subsets A, B ⊆ X with A ∪ B = X.

theorem Cslib.BitString.coveringProduct_eq_sum_of_subset {ι : Type u_1} {R : Type u_2} [DecidableEq ι] [CommSemiring R] (f g : Finset ι → R) {U S : Finset ι} (hU : U ⊆ S) :
coveringProduct f g U = ∑ A ∈ S.powerset, ∑ B ∈ S.powerset, if A ∪ B = U then f A * g B else 0

The covering product at U ⊆ S sums over the pairs of subsets of S whose union is U.

theorem Cslib.BitString.subsetZeta_coveringProduct {ι : Type u_1} {R : Type u_2} [DecidableEq ι] [CommSemiring R] (f g : Finset ι → R) (S : Finset ι) :

The zeta transform turns the covering product into the pointwise product.

theorem Cslib.BitString.coveringProduct_eq_subsetMobius {ι : Type u_1} {R : Type u_2} [DecidableEq ι] [CommRing R] (f g : Finset ι → R) :

Inclusion–exclusion for the covering product ([BHKK07]): the covering product is the Möbius transform of the pointwise product of the zeta transforms, (f *_c g) X = ∑_{S ⊆ X} (-1) ^ #(X \ S) * f̂ S * ĝ S.

theorem Cslib.BitString.coveringProduct_eq_subsetConvolution {ι : Type u_1} {R : Type u_2} [DecidableEq ι] [CommSemiring R] {f g : Finset ι → R} {t₁ t₂ : ℕ} (hf : ∀ (A : Finset ι), f A ≠ 0 → A.card = t₁) (hg : ∀ (B : Finset ι), g B ≠ 0 → B.card = t₂) {X : Finset ι} (hX : X.card = t₁ + t₂) :

Ranked inputs. If f is supported on sets with t₁ elements, g on sets with t₂ elements and #X = t₁ + t₂, then the covering product at X is the subset convolution at X: a cover of X by a t₁-set and a t₂-set is a partition.