Fourier bounds from the number of nonlinear gates #
nonlinearCost I charges one for a nonaffine Boolean operation and zero for an affine one.
For a basis of fan-in at most two, this counts precisely the AND-type gates: XOR, negation,
constants and projections are free. The count is syntactic; an AND gate reading the same wire
twice still costs one. Circuit fanout and reuse of nonlinear intermediate values are unrestricted.
Every affine Boolean function has Fourier norm one, and every Boolean function on at most two
bits has Fourier norm at most two. The joint workspace bound of SpectralNorm therefore gives
Fourier norm at most 2 ^ m for an output of a circuit with nonlinear cost m.
Every output Fourier coefficient is also an integer multiple of 2 ^ (-m). This denominator
invariant can give lower bounds even when the Fourier norm is small; MajorityNonlinear
applies it to majority.
Main definitions #
Cslib.Circuits.Boolean.nonlinearCost: the zero-or-one cost of a Boolean operation.
Main results #
Cslib.Circuits.Circuit.sum_abs_fourierCoeff_signVal_eval_le_two_pow_nonlinearCost: the Fourier norm of any output is at most two to the number of nonaffine gates.Cslib.Circuits.Circuit.exists_fourierCoeff_signVal_eval_eq_intCast_div_two_pow_nonlinearCost: each output coefficient has denominator dividing two to the number of nonaffine gates.
Charge one for a nonaffine Boolean operation, and zero for an affine operation. For fan-in at most two this is the number of AND-type gates, with XOR and negation free.
Exactly the affine operations have zero nonlinear cost.
The Fourier norm of a gate with fan-in at most two is bounded by its nonlinear cost.
A circuit over any Boolean basis of fan-in at most two has output Fourier norm at most
2 ^ m, where m counts nonaffine gates. Affine gates and arbitrary wire reuse are free.
Every Fourier coefficient of a circuit with m nonaffine binary gates is an integer
multiple of 2 ^ (-m). Affine gates, fanout and arbitrary reuse are free.