Documentation

CslibFrontier.Foundations.BooleanAnalysis.Granularity

Fourier denominators under Boolean composition #

Suppose every character of a vector of Boolean functions has Fourier coefficients in 2 ^ (-a) ℤ, and a Boolean function φ has coefficients in 2 ^ (-b) ℤ. Adjoining φ of selected coordinates gives coefficients in 2 ^ (-(a + b)) ℤ for every character of the extended vector. Coordinate selections may repeat: character projection cancels repetitions modulo two, so the bound applies to shared circuit workspaces.

Affine Boolean functions have integral Fourier coefficients. Every Boolean function of at most two bits has half-integral Fourier coefficients. These two cases charge only nonlinear gates when the composition result is applied to fan-in-two circuits.

Main results #

theorem Cslib.BitString.exists_fourierCoeff_signVal_eq_intCast_of_isAffine {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hf : IsAffine f) (S : Finset ι) :
∃ (z : ℤ), fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S = ↑z

Every Fourier coefficient of an affine Boolean function, read as signs, is an integer.

theorem Cslib.BitString.exists_fourierCoeff_signVal_eq_intCast_div_two_of_card_le_two {ι : Type u_1} [Fintype ι] [DecidableEq ι] (hι : Fintype.card ι ≤ 2) (f : (ι → Bool) → Bool) (S : Finset ι) :
∃ (z : ℤ), fourierCoeff (fun (x : ι → Bool) => signVal (f x)) S = ↑z / 2

Every Fourier coefficient of a Boolean function of at most two coordinates, read as signs, is an integer divided by two.

theorem Cslib.BitString.exists_fourierCoeff_chi_append_eq_intCast_div_two_pow {ι : Type u_1} {α : Type u_2} {κ : Type u_3} [Fintype ι] [DecidableEq ι] [Fintype α] [DecidableEq α] [Finite κ] (v : (ι → Bool) → κ → Bool) (φ : (α → Bool) → Bool) (args : α → κ) {a b : ℕ} (hv : ∀ (T : Finset κ) (U : Finset ι), ∃ (z : ℤ), fourierCoeff (fun (x : ι → Bool) => chi ℝ T (v x)) U = ↑z / 2 ^ a) (hφ : ∀ (T : Finset α), ∃ (z : ℤ), fourierCoeff (fun (x : α → Bool) => signVal (φ x)) T = ↑z / 2 ^ b) (S : Finset (Option κ)) (U : Finset ι) :
∃ (z : ℤ), fourierCoeff (fun (x : ι → Bool) => chi ℝ S fun (o : Option κ) => o.elim (φ (v x ∘ args)) (v x)) U = ↑z / 2 ^ (a + b)

Adjoining a Boolean function with coefficient denominators dividing 2 ^ b to a vector whose characters have coefficient denominators dividing 2 ^ a gives a common denominator 2 ^ (a + b) for every character of the extended vector. Repeated arguments are allowed.