Documentation

CslibFrontier.Computability.QueryComplexity.YaoExpected

Expected-cost Yao minimax principle #

For a total function on finitely many Boolean coordinates, there is a zero-error randomized decision tree and an input distribution achieving matching upper and lower expected-query-cost bounds. This is the saddle-witness form of [AB07], public draft Theorem 11.17, printed page 216 / PDF 232. Its randomized cost is expected executed queries, not bounded-error depth.

zeroErrorComplexity_eq_iSup_distributionalExpectedComplexity proves the numerical equality; exists_optimal_expectedCost supplies an optimal algorithm and a hard distribution, and exists_computes_distributionalCost_eq supplies an optimal deterministic tree for each input law.

The private finite game has attainable bounded cost profiles as rows. It does not enumerate output labels or require a finite output type. Repeated-query pruning makes these rows cofinal under pointwise domination among all correct deterministic trees.

Main definitions #

Main results #

References #

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

The minimum expected executed-query cost of an everywhere-correct deterministic tree under ν. This keeps zero error on all inputs, including inputs outside the support of ν. Finiteness of the coordinates ensures that correct trees exist.

theorem Cslib.QueryComplexity.distributionalExpectedComplexity_le {ι : Type u_1} {β : Type u_2} [Finite ι] {ν : Convexity.StdSimplex ℝ (ι → Bool)} {f : (ι → Bool) → β} {t : DecisionTree ι β} {c : ℝ} (ht : t.Computes f) (hc : t.distributionalCost ν ≤ c) :

Any everywhere-correct deterministic tree bounds the distributional optimum.

theorem Cslib.QueryComplexity.le_distributionalExpectedComplexity {ι : Type u_1} {β : Type u_2} [Finite ι] {ν : Convexity.StdSimplex ℝ (ι → Bool)} {f : (ι → Bool) → β} {c : ℝ} (hc : ∀ (t : DecisionTree ι β), t.Computes f → c ≤ t.distributionalCost ν) :

A common lower bound on all correct trees bounds the distributional optimum below.

Each input distribution has a correct deterministic tree attaining its optimum.

theorem Cslib.QueryComplexity.exists_optimal_expectedCost {ι : Type u_1} {β : Type u_2} [Finite ι] (f : (ι → Bool) → β) :
∃ (μ : RandomizedDecisionTree ι β) (ν : Convexity.StdSimplex ℝ (ι → Bool)), μ.Computes 0 f ∧ (∀ (x : ι → Bool), μ.expectedCost x ≤ zeroErrorComplexity f) ∧ ∀ (t : DecisionTree ι β), t.Computes f → zeroErrorComplexity f ≤ t.distributionalCost ν

Expected-cost Yao witnesses at the numerical zero-error complexity: an optimal finite-support randomized algorithm and a hardest finite-support input distribution.

The averaging direction of expected-cost Yao: any input distribution lower-bounds the worst-input expected cost of the optimal zero-error randomized algorithm.

Some input distribution attains the zero-error expected complexity.

Expected-cost Yao's minimax principle, Arora–Barak Theorem 11.17: zero-error randomized expected complexity is the maximum optimized distributional expected complexity.