Documentation

CslibFrontier.Computability.PropertyTesting.LinearityLowerBound

Three queries are necessary for one-sided linearity testing #

A decision tree of depth at most two that accepts every parity accepts every table f with f 0 = false. On the path taken by f, at most two points are queried. Their answers agree with a parity, so that parity reaches the same accepting leaf, even when the second query depends on the first answer.

Consequently, any distribution on decision trees with perfect completeness on every parity that rejects such a normalized table with positive probability has a supported tree making at least three queries. The PMF statement has no finite-support assumption. The finite-simplex randomized-decision-tree model has the corresponding lower bound on its worst-case depth. These are supportwise query bounds, with no lower bound on the expected number of queries.

Main results #

References #

The two-point interpolation and indistinguishability argument is elementary and original to this formalization.

theorem Cslib.DecisionTree.eval_eq_true_of_depth_le_two_of_parity_complete {ι : Type u_1} (t : DecisionTree (ι → Bool) Bool) (hd : t.depth ≤ 2) (hcomplete : ∀ (S : Finset ι), t.eval (parityOn S) = true) {f : (ι → Bool) → Bool} (hf : f 0 = false) :
t.eval f = true

A tree that accepts all parities and makes at most two adaptive queries accepts every table that is false at zero.

theorem Cslib.DecisionTree.three_le_card_queries_of_parity_complete {ι : Type u_1} (t : DecisionTree (ι → Bool) Bool) (hcomplete : ∀ (S : Finset ι), t.eval (parityOn S) = true) {f : (ι → Bool) → Bool} (hf : f 0 = false) (hreject : t.eval f ≠ true) [DecidableEq (ι → Bool)] :
3 ≤ (t.queries f).card

Rejecting a normalized table while accepting all parities requires three distinct queried points on that input. This remains true when other paths are longer or positions are repeated.

theorem Cslib.BitString.exists_three_le_depth_of_parity_complete {ι : Type u_1} (μ : PMF (DecisionTree (ι → Bool) Bool)) (hcomplete : ∀ (S : Finset ι), μ.toOuterMeasure {t : DecisionTree (ι → Bool) Bool | t.eval (parityOn S) ≠ true} = 0) {f : (ι → Bool) → Bool} (hf : f 0 = false) (hreject : 0 < μ.toOuterMeasure {t : DecisionTree (ι → Bool) Bool | t.eval f ≠ true}) :
∃ t ∈ μ.support, 3 ≤ t.depth

Perfect completeness on parities and positive rejection of a normalized table force a positive-mass tree of depth at least three. No finite-support hypothesis on μ is needed.

theorem Cslib.RandomizedDecisionTree.three_le_depth_of_parity_complete {ι : Type u_1} (μ : RandomizedDecisionTree (ι → Bool) Bool) (hcomplete : ∀ (S : Finset ι), μ.errorProb (fun (x : (ι → Bool) → Bool) => true) (parityOn S) = 0) {f : (ι → Bool) → Bool} (hf : f 0 = false) (hreject : 0 < μ.errorProb (fun (x : (ι → Bool) → Bool) => true) f) :
3 ≤ μ.depth

In the existing finite-simplex randomized-tree model, a perfectly complete parity tester rejecting a normalized table with positive probability has worst-case query depth at least three.