Documentation

CslibFrontier.Computability.DecisionTree.Evasive

The parity criterion for evasiveness #

A function is evasive when every decision tree computing it queries all variables on some input. If the top Fourier coefficient f̂([n]) of f, read as signs, is nonzero, then f is evasive in this strong per-input sense (DecisionTree.exists_queries_eq_univ_of_fourierCoeff_univ_ne_zero), so its decision tree complexity is the number of variables (DecisionTree.complexity_eq_card_of_fourierCoeff_univ_ne_zero). For n ≥ 1 the characters χ_{[n]}(x) = (-1) ^ |x| sum to 0, so 2 ^ n f̂([n]) = -2 (e - o), where e and o count the inputs of even and of odd weight on which f is true. So this is the parity criterion of Rivest and Vuillemin Rivest and Vuillemin: a function whose true inputs of even and of odd weight are not equinumerous is evasive.

The proof is an induction on the tree, over the subcubes of inputs agreeing with a base point a off a set S of free coordinates. On the subcube, the sum of (-1) ^ f(x) χ_S(x) vanishes at a leaf when S is nonempty, and at a node querying a free coordinate i it splits into the two half-cubes with i fixed, so some half carries a nonzero sum for the subtree followed there. Hence some input of the subcube is followed along a path querying all of S.

Main results #

References #

theorem Cslib.DecisionTree.exists_queries_eq_univ_of_fourierCoeff_univ_ne_zero {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → Bool) → Bool} (hf : BitString.fourierCoeff (fun (x : ι → Bool) => BitString.signVal (f x)) Finset.univ ≠ 0) {t : DecisionTree ι Bool} (ht : t.Computes f) :
∃ (x : ι → Bool), t.queries x = Finset.univ

The parity criterion for evasiveness Rivest and Vuillemin: if the top Fourier coefficient of f, read as signs, is nonzero, then every decision tree computing f queries every variable on some input.

A function with a nonzero top Fourier coefficient has decision tree complexity equal to the number of variables.