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 #
Cslib.BitString.subsetConvolution: the subset convolution.Cslib.BitString.coveringProduct: the covering product.
Main results #
Cslib.BitString.subsetZeta_coveringProduct: the zeta transform of the covering product is the product of the zeta transforms.Cslib.BitString.coveringProduct_eq_subsetMobius: the inclusion–exclusion formula for the covering product.Cslib.BitString.coveringProduct_eq_subsetConvolution: ranked inputs.
References #
The subset convolution: the value at X is ∑_{A ⊆ X} f A * g (X \ A).
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.
The covering product at U ⊆ S sums over the pairs of subsets of S whose union is U.
The zeta transform turns the covering product into the pointwise product.
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.
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.