Documentation

CslibFrontier.Computability.QueryComplexity.Yao

Yao's minimax principle for decision trees #

The distributional complexity D^ν_ε(f) of f for a distribution ν on the inputs is the least depth of a deterministic decision tree that errs with probability at most ε on inputs drawn from ν (QueryComplexity.distributionalComplexity), specializing Cslib.RandomizedCost.simplexDistributionalComplexity to DecisionTree.randomizedCost. Yao's minimax principle [Yao1977, vonNeumann1928] says that the randomized complexity is the distributional complexity of a hardest distribution: R_ε(f) = max_ν D^ν_ε(f) (QueryComplexity.randomizedComplexity_eq_iSup_distributionalComplexity, QueryComplexity.exists_distributionalComplexity_eq_randomizedComplexity). Both the averaging direction (QueryComplexity.distributionalComplexity_le_randomizedComplexity) and the minimax direction (QueryComplexity.exists_computes_of_forall_exists_distributionalError_le) instantiate the StdSimplex layer of Cslib.RandomizedCost.

Main definitions #

Main results #

References #

noncomputable def Cslib.QueryComplexity.distributionalComplexity {ι : Type u_1} {β : Type u_2} [Finite ι] (ε : NNReal) (ν : Convexity.StdSimplex ℝ (ι → Bool)) (f : (ι → Bool) → β) :

The distributional complexity D^ν_ε(f): the least depth of a decision tree that errs with probability at most the nonnegative budget ε on inputs drawn from ν. The finite coordinate space ensures that the feasible set is nonempty.

theorem Cslib.QueryComplexity.distributionalComplexity_le_depth {ι : Type u_1} {β : Type u_2} {f : (ι → Bool) → β} {ν : Convexity.StdSimplex ℝ (ι → Bool)} {ε : NNReal} {t : DecisionTree ι β} [Finite ι] (h : t.distributionalError ν f ≤ ↑ε) :
theorem Cslib.QueryComplexity.exists_distributionalError_le_depth_eq_distributionalComplexity {ι : Type u_1} {β : Type u_2} {ε : NNReal} [Finite ι] (ν : Convexity.StdSimplex ℝ (ι → Bool)) (f : (ι → Bool) → β) :
∃ (t : DecisionTree ι β), t.distributionalError ν f ≤ ↑ε ∧ t.depth = distributionalComplexity ε ν f

For ε ≥ 0 the distributional complexity is attained: some decision tree of depth D^ν_ε(f) errs with probability at most ε on inputs drawn from ν.

The easy direction of Yao's principle: D^ν_ε(f) ≤ R_ε(f) for every distribution ν on the inputs. To bound R_ε(f) below, it suffices to find a distribution on which every shallow decision tree errs often.

theorem Cslib.QueryComplexity.exists_computes_of_forall_exists_distributionalError_le {ι : Type u_1} {β : Type u_2} {f : (ι → Bool) → β} {d : ℕ} [Finite ι] {ε : ℝ} (h : ∀ (ν : Convexity.StdSimplex ℝ (ι → Bool)), ∃ (t : DecisionTree ι β), t.depth ≤ d ∧ t.distributionalError ν f ≤ ε) :
∃ (μ : RandomizedDecisionTree ι β), μ.Computes ε f ∧ μ.depth ≤ d

The hard direction of Yao's principle, by the minimax theorem: if for every distribution ν on the inputs some decision tree of depth at most d errs with probability at most ε on inputs drawn from ν, then some randomized decision tree of depth at most d computes f with error ε.

R_ε(f) ≤ d exactly when D^ν_ε(f) ≤ d for every distribution ν on the inputs.

Yao's minimax principle: the randomized decision tree complexity is the largest distributional complexity over the distributions on the inputs, R_ε(f) = ⨆ ν, D^ν_ε(f).

Yao's minimax principle, with a hardest distribution: some distribution ν on the inputs has D^ν_ε(f) = R_ε(f).