Documentation

CslibFrontier.Foundations.BooleanAnalysis.Mobius

Boolean Möbius reconstruction #

A polynomial of degree at most q, evaluated at a Boolean assignment, is reconstructed from its values on subsets of at most q coordinates. Summing this identity permits the polynomial to depend on the original assignment. Coefficients may lie in any commutative ring.

The proof uses the existing Boolean low-degree span; it introduces no multilinear polynomial representation. It follows Lemma 3.3, equation (3.10), p24 of OpenAI, The Exponential Time Hypothesis is False.

The Möbius transform on the subsets of a set (Cslib.BitString.subsetMobius) inverts subset sums (Cslib.BitString.sum_powerset_subsetMobius). Applied to the values of a function on the indicators of subsets, it gives the function's coefficient at a monomial (Cslib.BitString.subsetMobius_monomial), so it vanishes above the degree (Cslib.BitString.subsetMobius_eq_zero_of_mem_lowDegree). This is the subset inversion in the proof of Lemma D.2, p. 56 of [OAI26k].

Main definitions #

Main results #

The Möbius transform on the subsets of a set #

def Cslib.BitString.subsetMobius {ι : Type u_1} {M : Type u_3} [AddCommGroup M] (f : Finset ι → M) (S : Finset ι) :
M

The Möbius transform on the subsets of S of a function f on finite sets, ∑_{T ⊆ S} (-1) ^ (#S - #T) • f T. It inverts subset sums (Cslib.BitString.sum_powerset_subsetMobius). When f T is the value of a function on the cube at the indicator of T, it is the coefficient of that function at the monomial of S (Cslib.BitString.subsetMobius_monomial).

theorem Cslib.BitString.map_subsetMobius {ι : Type u_1} {M : Type u_3} [AddCommGroup M] {N : Type u_4} [AddCommGroup N] (φ : M →+ N) (f : Finset ι → M) (S : Finset ι) :
φ (subsetMobius f S) = subsetMobius (fun (T : Finset ι) => φ (f T)) S

An additive map commutes with the subset Möbius transform.

theorem Cslib.BitString.subsetMobius_add {ι : Type u_1} {M : Type u_3} [AddCommGroup M] (f g : Finset ι → M) (S : Finset ι) :
subsetMobius (fun (T : Finset ι) => f T + g T) S = subsetMobius f S + subsetMobius g S

The subset Möbius transform is additive.

theorem Cslib.BitString.sum_powerset_subsetMobius {ι : Type u_1} {M : Type u_3} [AddCommGroup M] (f : Finset ι → M) (T : Finset ι) :
∑ S ∈ T.powerset, subsetMobius f S = f T

Möbius inversion on the subsets of a set: summing the subset Möbius transform of f over the subsets of T gives back f T.

theorem Cslib.BitString.subsetMobius_monomial {ι : Type u_1} {R : Type u_2} [CommRing R] [DecidableEq ι] (U S : Finset ι) :
subsetMobius (fun (T : Finset ι) => monomial R U fun (i : ι) => decide (i ∈ T)) S = if U = S then 1 else 0

The subset Möbius transform of a monomial: at the indicators of subsets, the monomial of U has transform 1 at U and 0 at every other set.

theorem Cslib.BitString.subsetMobius_eq_zero_of_mem_lowDegree {ι : Type u_1} {R : Type u_2} [CommRing R] [DecidableEq ι] {D : ℕ} {f : (ι → Bool) → R} (hf : f ∈ lowDegree R ι D) {S : Finset ι} (hS : D < S.card) :
subsetMobius (fun (T : Finset ι) => f fun (i : ι) => decide (i ∈ T)) S = 0

The subset Möbius transform vanishes above the degree: for a function of degree at most D, the transform of its values at the indicators of subsets vanishes at every set of more than D elements.

theorem Cslib.BitString.subsetMobius_sub {ι : Type u_1} {M : Type u_3} [AddCommGroup M] (f g : Finset ι → M) (S : Finset ι) :
subsetMobius (fun (T : Finset ι) => f T - g T) S = subsetMobius f S - subsetMobius g S

The subset Möbius transform commutes with subtraction.

theorem Cslib.BitString.subsetMobius_sum {ι : Type u_1} {M : Type u_3} [AddCommGroup M] {κ : Type u_4} (s : Finset κ) (f : κ → Finset ι → M) (S : Finset ι) :
subsetMobius (fun (T : Finset ι) => ∑ k ∈ s, f k T) S = ∑ k ∈ s, subsetMobius (f k) S

The subset Möbius transform commutes with finite sums.

theorem Cslib.BitString.subsetMobius_const_mul {ι : Type u_1} {R : Type u_2} [CommRing R] (c : R) (f : Finset ι → R) (S : Finset ι) :
subsetMobius (fun (T : Finset ι) => c * f T) S = c * subsetMobius f S

The subset Möbius transform commutes with multiplication by a constant.

theorem Cslib.BitString.subsetMobius_bitVal_mul {ι : Type u_1} {R : Type u_2} [CommRing R] [DecidableEq ι] (i : ι) (f : Finset ι → R) (S : Finset ι) :
subsetMobius (fun (T : Finset ι) => bitVal R (decide (i ∈ T)) * f T) S = if i ∈ S then subsetMobius f S + subsetMobius f (S.erase i) else 0

Multiplying by a bit shifts the transform. Multiplying the values f T by the bit of i at the indicator of T gives the transform μ S + μ (S \ {i}) at the sets containing i, and 0 elsewhere, where μ is the transform of f.

theorem Cslib.BitString.eq_sum_subsetMobius_of_local {ι : Type u_1} {R : Type u_2} [CommRing R] [Fintype ι] [DecidableEq ι] {I : Finset ι} {g : (ι → Bool) → R} (hg : ∀ (x y : ι → Bool), (∀ v ∈ I, x v = y v) → g x = g y) (x : ι → Bool) :
g x = ∑ S ∈ I.powerset, subsetMobius (fun (T : Finset ι) => g fun (v : ι) => decide (v ∈ T)) S * if ∀ v ∈ S, x v = true then 1 else 0

A local function in the monomials of its scope: if g depends only on the coordinates in I, then g x is the sum over the subsets S ⊆ I of the subset Möbius transform of T ↦ g 1_T at S, times the monomial of S at x.

theorem Cslib.BitString.eq_sum_subsetMobius_smul_monomial {ι : Type u_1} {R : Type u_2} [CommRing R] [Fintype ι] [DecidableEq ι] (g : (ι → Bool) → R) :
g = ∑ S : Finset ι, subsetMobius (fun (T : Finset ι) => g fun (i : ι) => decide (i ∈ T)) S • monomial R S

Monomial expansion on the cube. Every function on a finite cube is the combination of the monomials with coefficients the subset Möbius transform of its values at indicators of sets: the case I = univ of Cslib.BitString.eq_sum_subsetMobius_of_local.

theorem Cslib.BitString.mem_lowDegree_iff_subsetMobius_eq_zero {ι : Type u_1} {R : Type u_2} [CommRing R] [Finite ι] [DecidableEq ι] {D : ℕ} {g : (ι → Bool) → R} :
g ∈ lowDegree R ι D ↔ ∀ (S : Finset ι), D < S.card → subsetMobius (fun (T : Finset ι) => g fun (i : ι) => decide (i ∈ T)) S = 0

Low degree through the Möbius transform. A function on a finite cube has degree at most D exactly when the subset Möbius transform of its values vanishes on every set of more than D elements.

theorem Cslib.BitString.eq_zero_of_subsetMobius_eq_zero {ι : Type u_1} {R : Type u_2} [CommRing R] [Finite ι] [DecidableEq ι] {g : (ι → Bool) → R} (hg : ∀ (S : Finset ι), subsetMobius (fun (T : Finset ι) => g fun (i : ι) => decide (i ∈ T)) S = 0) :
g = 0

A function on a finite cube whose subset Möbius transform vanishes everywhere is zero.

theorem Cslib.BitString.lowDegree_reconstruction {ι : Type u_1} {R : Type u_2} [CommRing R] [Fintype ι] {q : ℕ} {f : (ι → Bool) → R} (hf : f ∈ lowDegree R ι q) (x : ι → Bool) :
f x = ∑ E ∈ Finset.univ.powerset with E.card ≤ q, if ∀ i ∈ E, x i = true then ∑ U ∈ E.powerset, (-1) ^ (E.card - U.card) * f fun (i : ι) => decide (i ∈ U) else 0

A low-degree function on the cube is reconstructed from its subset evaluations.

theorem Cslib.BitString.eval_mem_lowDegree {ι : Type u_1} {R : Type u_2} [CommRing R] (p : MvPolynomial ι R) {q : ℕ} (hp : p.totalDegree ≤ q) :
(fun (x : ι → Bool) => (MvPolynomial.eval fun (i : ι) => bitVal R (x i)) p) ∈ lowDegree R ι q

The values of a polynomial of total degree at most q on the cube, read through bitVal, lie in lowDegree R ι q.

theorem Cslib.BitString.sum_eval_eq_restricted_subsets {ι : Type u_1} {R : Type u_2} [CommRing R] [Fintype ι] (q : ℕ) (p : (ι → Bool) → MvPolynomial ι R) (hp : ∀ (x : ι → Bool), (p x).totalDegree ≤ q) :
∑ x : ι → Bool, (MvPolynomial.eval fun (i : ι) => bitVal R (x i)) (p x) = ∑ E ∈ Finset.univ.powerset with E.card ≤ q, ∑ U ∈ E.powerset, (-1) ^ (E.card - U.card) * ∑ x : ι → Bool with ∀ i ∈ E, x i = true, (MvPolynomial.eval fun (i : ι) => bitVal R (decide (i ∈ U))) (p x)

Boolean Möbius reconstruction for an assignment-dependent polynomial family, over any commutative ring (Lemma 3.3, equation (3.10) of the cited manuscript). The polynomial evaluated at 1_U is still p x, indexed by the original assignment in the restricted inner sum.