Documentation

CslibFrontier.Computability.QueryComplexity.Randomized.DistributionalCost

Distributional expected query cost #

A deterministic tree's distributionalCost averages its executed query count over an input simplex. The averaging direction of expected-cost Yao holds even without a finite coordinate type: an always-correct randomized tree with a worst-input expected bound supplies a correct pure tree with that distributional bound against every finitely supported input distribution.

Main definitions #

Main results #

References #

noncomputable def Cslib.DecisionTree.distributionalCost {ι : Type u_1} {β : Type u_2} (t : DecisionTree ι β) (ν : Convexity.StdSimplex ℝ (ι → Bool)) :

Expected executed-query cost under a finitely supported input distribution. Coordinate finiteness is unnecessary for this definition.

theorem Cslib.DecisionTree.distributionalCost_eq_sum {ι : Type u_1} {β : Type u_2} (t : DecisionTree ι β) (ν : Convexity.StdSimplex ℝ (ι → Bool)) :
t.distributionalCost ν = ν.sum fun (x : ι → Bool) (w : ℝ) => w * ↑(t.cost x)

Expand the expected cost as a finite weighted sum over inputs.

theorem Cslib.DecisionTree.distributionalCost_mono {ι : Type u_1} {β : Type u_2} {s t : DecisionTree ι β} (h : ∀ (x : ι → Bool), s.cost x ≤ t.cost x) (ν : Convexity.StdSimplex ℝ (ι → Bool)) :

Pointwise domination of executed query costs implies domination of expected costs.

@[simp]
theorem Cslib.DecisionTree.distributionalCost_single {ι : Type u_1} {β : Type u_2} (t : DecisionTree ι β) (x : ι → Bool) :
@[simp]
theorem Cslib.DecisionTree.distributionalCost_leaf {ι : Type u_1} {β : Type u_2} (b : β) (ν : Convexity.StdSimplex ℝ (ι → Bool)) :
theorem Cslib.RandomizedDecisionTree.Computes.exists_distributionalCost_le {ι : Type u_1} {β : Type u_2} {μ : RandomizedDecisionTree ι β} {f : (ι → Bool) → β} {c : ℝ} (hμ : μ.Computes 0 f) (ν : Convexity.StdSimplex ℝ (ι → Bool)) (hc : ∀ (x : ι → Bool), μ.expectedCost x ≤ c) :
∃ (t : DecisionTree ι β), t.Computes f ∧ t.distributionalCost ν ≤ c

An always-correct randomized tree with a worst-input expected bound supplies a correct pure tree with that distributional cost bound against any input distribution.