Documentation

CslibFrontier.Foundations.BooleanAnalysis.LowDegreePhase

Low-degree agreement with multiplicative bit characters #

Smolensky's counting argument [Smo87] extends from ±1 parity characters (BitString.chi) to multiplicative characters phaseChar ω S x = ∏ i ∈ S, ω ^ (x i).toNat for any ω ≠ 0, 1 in a field F: in characteristic q, a primitive p-th root of unity (p ≠ q) satisfies both ω ≠ 0 and ω ≠ 1.

On the cube, ω ^ b.toNat = 1 + (ω - 1) · bitVal F b, so every coordinate factor has degree at most one (phaseChar_mem_lowDegree), every monomial expands into phaseChar functions, and every single-coordinate factor has inverse ω⁻¹ (1 + ω - ω ^ b.toNat) of degree at most one. Hence if a function Q of degree at most D agrees with phaseChar ω univ (ω ^ weight x) on a set G, every function on G agrees with one of degree at most |ι| / 2 + D (exists_agree_of_phaseChar), bounding #G by the dimension bound card_le_of_forall_exists_agree (card_agree_phaseCharOn_univ_le, card_agree_phaseChar_le).

Main definitions #

Main results #

References #

Multiplicative characters phaseChar #

def Cslib.BitString.phaseChar {R : Type u_1} [CommRing R] {ι : Type u_2} (ω : R) (S : Finset ι) (x : ι → Bool) :
R

The multiplicative character of a set S of coordinates with base ω : R: the product of ω ^ (x i).toNat over i ∈ S. At ω = -1 this is BitString.chi.

theorem Cslib.BitString.phaseChar_apply {R : Type u_1} [CommRing R] {ι : Type u_2} (ω : R) (S : Finset ι) (x : ι → Bool) :
phaseChar ω S x = ∏ i ∈ S, ω ^ (x i).toNat

Evaluating phaseChar ω S at x.

@[simp]
theorem Cslib.BitString.phaseChar_empty {R : Type u_1} [CommRing R] {ι : Type u_2} (ω : R) (x : ι → Bool) :
phaseChar ω ∅ x = 1

The multiplicative character of the empty set is 1.

theorem Cslib.BitString.phaseChar_union {R : Type u_1} [CommRing R] {ι : Type u_2} [DecidableEq ι] (ω : R) {S T : Finset ι} (hST : Disjoint S T) (x : ι → Bool) :
phaseChar ω (S ∪ T) x = phaseChar ω S x * phaseChar ω T x

Multiplicative characters multiply across disjoint coordinate sets.

theorem Cslib.BitString.phaseChar_univ_eq_pow_weight {R : Type u_1} [CommRing R] {ι : Type u_2} [Fintype ι] (ω : R) (x : ι → Bool) :

On all coordinates of a finite cube, phaseChar ω univ x equals ω ^ weight x.

theorem Cslib.BitString.phaseChar_mem_lowDegree {R : Type u_1} [CommRing R] {ι : Type u_2} (ω : R) (S : Finset ι) :

The multiplicative character of S has degree at most #S.

Dimension and agreement bounds over a field #

theorem Cslib.BitString.card_le_of_forall_exists_agree {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] {H : ℕ} (G : Finset (ι → Bool)) (hG : ∀ (f : (ι → Bool) → F), ∃ p ∈ lowDegree F ι H, ∀ x ∈ G, p x = f x) :
G.card ≤ {S : Finset ι | S.card ≤ H}.card

If every function agrees on G with a function of degree at most H, then G has at most as many points as there are sets of at most H coordinates.

theorem Cslib.BitString.exists_agree_of_phaseChar {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] {ω : F} (hω0 : ω ≠ 0) (hω1 : ω ≠ 1) {D : ℕ} {Q : (ι → Bool) → F} (hQ : Q ∈ lowDegree F ι D) (G : Finset (ι → Bool)) (hG : ∀ x ∈ G, Q x = phaseChar ω Finset.univ x) (f : (ι → Bool) → F) :
∃ p ∈ lowDegree F ι (Fintype.card ι / 2 + D), ∀ x ∈ G, p x = f x

If Q has degree at most D and agrees with phaseChar ω univ (ω ≠ 0, 1) on G, every function agrees on G with a function of degree at most |ι| / 2 + D.

theorem Cslib.BitString.card_agree_phaseCharOn_univ_le {F : Type u_1} [Field F] {ι : Type u_2} [Fintype ι] [DecidableEq ι] [DecidableEq F] {ω : F} (hω0 : ω ≠ 0) (hω1 : ω ≠ 1) {D : ℕ} {Q : (ι → Bool) → F} (hQ : Q ∈ lowDegree F ι D) :
{x : ι → Bool | Q x = phaseChar ω Finset.univ x}.card ≤ {S : Finset ι | S.card ≤ Fintype.card ι / 2 + D}.card

A function of degree at most D agrees with phaseChar ω univ (ω ≠ 0, 1) on at most as many inputs as there are sets of at most |ι| / 2 + D coordinates.

theorem Cslib.BitString.card_agree_phaseChar_le {F : Type u_1} [Field F] [DecidableEq F] {ω : F} (hω0 : ω ≠ 0) (hω1 : ω ≠ 1) {n D : ℕ} {Q : BitString n → F} (hQ : Q ∈ lowDegree F (Fin n) D) :
{x : BitString n | Q x = ω ^ weight x}.card ≤ {S : Finset (Fin n) | S.card ≤ n / 2 + D}.card

A function of degree at most D agrees with x ↦ ω ^ weight x (ω ≠ 0, 1) on at most as many inputs as there are sets of at most n / 2 + D coordinates.