Granularity of low-degree functions #
An integer-valued function on the cube of degree at most k has Fourier coefficients in
2 ^ (-k) ℤ (BitString.exists_fourierCoeff_eq_intCast_div_two_pow_of_mem_lowDegree): by Möbius
inversion it is an integer combination of the monomials ∏_{i ∈ T} xᵢ of at most k coordinates
(BitString.eq_sum_subsetMobius_smul_monomial, BitString.subsetMobius_eq_zero_of_mem_lowDegree),
and the monomial of T, the indicator of a subcube of codimension #T, has coefficients
± 2 ^ (-#T) on the subsets of T and 0 elsewhere (BitString.fourierCoeff_monomial, from
BitString.fourierCoeff_ite_forall_mem_eq).
A Boolean function of degree at most k, read as signs, is 1 - 2 g for the integer-valued g
reading it as bits, so its coefficients lie in 2 ^ (1 - k) ℤ when k ≥ 1 and in ℤ when k = 0
(BitString.exists_fourierCoeff_signVal_eq_intCast_div_two_pow_of_mem_lowDegree)
O'Donnell, Exercise 1.11(b). Decision trees of depth k compute functions of degree
at most k, so this gives their granularity
(DecisionTree.exists_fourierCoeff_signVal_eq_intCast_div_two_pow_depth_sub_one, in
CslibFrontier.Computability.DecisionTree.Granularity).
Usage #
Open Cslib.BitString. Degree is membership in lowDegree ℝ ι k; for an integer-valued g,
exists_fourierCoeff_eq_intCast_div_two_pow_of_mem_lowDegree g hg S gives an integer z with
coefficient z / 2 ^ k on S, and for a Boolean f,
exists_fourierCoeff_signVal_eq_intCast_div_two_pow_of_mem_lowDegree f hf S gives
z / 2 ^ (k - 1). Every function is in lowDegree ℝ ι (Fintype.card ι) (mem_lowDegree_self),
and a function of the output of a decision tree of depth d is in lowDegree ℝ ι d
(DecisionTree.comp_eval_mem_lowDegree, in CslibFrontier.Computability.QueryComplexity.Degree).
The exact learner of CslibFrontier.MachineLearning.UniformLearning.ExactLowDegree rounds its
estimates to these multiples. Checked clients compute two coefficients of the monomial x₀ x₁,
apply the integer-valued lemma to the conjunction of two bits, on two and on four bits (through
monomial_mem_lowDegree), and apply the Boolean lemma to a decision tree of depth two on four bits
(through DecisionTree.comp_eval_mem_lowDegree), to every Boolean function of three bits and to a
constant, in
CslibFrontierTests/BooleanAnalysisExactLearning.lean.
Main results #
Cslib.BitString.fourierCoeff_monomial: the Fourier coefficients of a monomial.Cslib.BitString.exists_fourierCoeff_eq_intCast_div_two_pow_of_mem_lowDegree: integer-valued functions of degree at mostkare2 ^ (-k)-granular.Cslib.BitString.exists_fourierCoeff_signVal_eq_intCast_div_two_pow_of_mem_lowDegree: Boolean functions of degree at mostkare2 ^ (1 - k)-granular fork ≥ 1(integer coefficients whenk = 0).
References #
The Fourier coefficients of a monomial: reading bits as 0 and 1, the monomial
∏_{i ∈ T} xᵢ, the indicator of the subcube where the bits in T are true, has coefficient
(-1) ^ #S / 2 ^ #T on each subset S of T and 0 on every other set.
Integer-valued functions of low degree are granular: an integer-valued function of degree
at most k has Fourier coefficients in 2 ^ (-k) ℤ, since its coefficients in the monomials are
integers, as in O'Donnell, Exercise 1.9(c) for Boolean functions.
Boolean functions of low degree are granular O'Donnell, Exercise 1.11(b): a
Boolean function of degree at most k, read as signs, has Fourier coefficients in
2 ^ (1 - k) ℤ when k ≥ 1, and in ℤ when k = 0.