Lemma 7.2 — Yao's principle for the randomized competitive ratio
ProvedMetricalTaskSystem.Randomized.randomizedRatio_ge_limsupLet be a task system and an initial state. Let the tasks come from a finite alphabet , letter standing for the nonnegative task , and let be a probability measure on infinite letter sequences. Write for expectation under , for the first tasks, and
the infimum over all deterministic on-line algorithms . Suppose that as . Then for every such that some randomized on-line algorithm is expected -competitive,
Equivalently, with the convention .
The lemma turns a lower bound on the expected cost of every deterministic algorithm against one input distribution into a lower bound on the randomized competitive ratio.
Formalization Note The lemma is stated for distributions on sequences over a finite task alphabet, so that is a genuine expectation for every deterministic ; this covers the distribution used in the paper's application. The is taken in the extended reals. The conclusion is stated for each achievable rather than for the real infimum , whose value on an empty set would be .
import Mathlib import Definitions.Def_MetricalTaskSystem_Randomized_Model import Definitions.Def_MetricalTaskSystem_Randomized_RandomizedAlgorithm import Definitions.Def_MetricalTaskSystem_Randomized_TaskDistribution
namespace MetricalTaskSystem.Randomized
open MeasureTheory Filter
/-- **Lemma 7.2** (Borodin–Linial–Saks 1992, p. 759), for task sequences over a finite task
alphabet. Let `(S, d)` be a task system, `U : α → (S → ℝ)` a finite family of nonnegative tasks
and `D` a probability measure on infinite sequences of letters (so on infinite task sequences).
If `E(c₀(Tʲ)) → ∞`, then for every `w` such that some randomized on-line algorithm is expected
`w`-competitive, `limsup_j m_j / E(c₀(Tʲ)) ≤ w`, where `m_j` is the minimum over deterministic
on-line algorithms `A` of `E(c_A(Tʲ))`. This is `w̄(S, d) ≥ limsup_j m_j / E(c₀(Tʲ))` with
`inf ∅ = +∞`. -/
theorem randomizedRatio_ge_limsup {S α : Type} [Fintype S] [DecidableEq S] [Nonempty S]
[Fintype α] [MeasurableSpace α] [MeasurableSingletonClass α]
(d : S → S → ℝ) (hd : IsTaskSystem d)
(U : α → S → ℝ) (hU : ∀ a s, 0 ≤ U a s)
(D : Measure (ℕ → α)) [IsProbabilityMeasure D] (s₀ : S)
(hE : Tendsto (fun j => expOfflineCost d s₀ U D j) atTop atTop)
(R : RandomizedOnlineAlgorithm S) (w : ℝ) (hR : IsExpCompetitive d R w) :
limsup (fun j : ℕ =>
((minDetExpCost d s₀ U D j / expOfflineCost d s₀ U D j : ℝ) : EReal)) atTop
≤ (w : EReal) := by sorry
end MetricalTaskSystem.Randomized
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting.
- is a finite, nonempty type with decidable equality.
- is a finite type of letters with a σ-algebra in which singletons are measurable.
- is a task system on : , for , and .
- assigns to each letter a task with all values .
- is a probability measure on infinite letter sequences , with the product σ-algebra.
- is an initial state.
For , let be the first tasks. Define:
- , the expected optimal off-line cost from ;
- , the infimum over all deterministic on-line algorithms started at .
Both integrals are Bochner integrals, which are if the integrand is not integrable. is a real infimum, which is if the values are not bounded below.
Hypotheses.
- as .
- There is some randomized on-line algorithm that is expected -competitive for . That is, , and there is a constant such that for all initial states, all lengths and all nonnegative task sequences .
Conclusion. In the extended reals,
The conclusion does not mention ; enters only through the existence of the competitiveness bound.
Degenerate cases.
- Division by zero: for any with , the ratio is evaluated as . Since , this can happen for only finitely many , so it does not affect the .
- : .
- Unsatisfiable divergence hypothesis: the hypothesis fails, for example, when all (then for all ). In such cases the theorem says nothing.
- Integrability: all costs are nonnegative, because follows from the task-system axioms and . Each cost depends on only finitely many letters from a finite alphabet, so it takes finitely many values. The integrals are therefore genuine expectations, and is a genuine infimum, .
- Initial states: the competitiveness hypothesis quantifies over all initial states, while the conclusion concerns the single given .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.