Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2, p. 11 — the bound αβ\alpha\betaαβ of Theorem 2.2 against adaptive off-line adversaries is tight

Proved
OnlineRandomization.Tightness.tightness

by mikedeng1 · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

competitive-analysisonline-algorithmsp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1randomized-algorithms

Theorem 2.2 shows that a randomized algorithm that is α\alphaα-competitive against adaptive on-line adversaries and β\betaβ-competitive against oblivious adversaries is αβ\alpha\betaαβ-competitive against adaptive off-line adversaries. This statement says the bound αβ\alpha\betaαβ cannot be lowered in general.

Let α,β\alpha, \betaα,β be reals with 1<β≤α1 < \beta \le \alpha1<β≤α, or α=β=1\alpha = \beta = 1α=β=1, and let C<αβC < \alpha\betaC<αβ. Then there exist a request-answer game (a request set RRR, a finite nonempty answer set AAA and real cost functions fnf_nfn​) and a randomized on-line algorithm GGG such that

  1. GGG is α\alphaα-competitive against any adaptive on-line adversary;
  2. GGG is β\betaβ-competitive against any oblivious adversary;
  3. for every randomized on-line algorithm KKK there is an adaptive off-line adversary QQQ against which KKK's competitive ratio is at least CCC:
E[cQ(K)]>0andE[cK(Q)]≥C⋅E[cQ(K)].\mathbb E\bigl[c_Q(K)\bigr] > 0 \qquad\text{and}\qquad \mathbb E\bigl[c_K(Q)\bigr] \ge C \cdot \mathbb E\bigl[c_Q(K)\bigr].E[cQ​(K)]>0andE[cK​(Q)]≥C⋅E[cQ​(K)].

Here competitiveness is with the ratio functions x↦αxx \mapsto \alpha xx↦αx and x↦βxx \mapsto \beta xx↦βx, cK(Q)c_K(Q)cK​(Q) is the algorithm's cost against QQQ, and cQ(K)c_Q(K)cQ​(K) is the adversary's cost, the off-line optimum of the requests it made.

Formalization Note. The page states the range 1≤β≤α1 \le \beta \le \alpha1≤β≤α. Its construction fails at β=1<α\beta = 1 < \alphaβ=1<α (the solution has m<1m < 1m<1 for every ttt, and GGG is then not 111-competitive against oblivious adversaries), so this statement covers 1<β≤α1 < \beta \le \alpha1<β≤α and the trivial case α=β=1\alpha = \beta = 1α=β=1; the case β=1<α\beta = 1 < \alphaβ=1<α is left out. In fact the claim is false there for 1<C<α1 < C < \alpha1<C<α: an algorithm that is 111-competitive against oblivious adversaries answers optimally, almost surely, on every request sequence (its cost is never below the optimum and its expected cost does not exceed it), and an adaptive off-line adversary reaches only finitely many request sequences, so against K=GK = GK=G every adversary has E[cG(Q)]=E[cQ(G)]\mathbb E[c_G(Q)] = \mathbb E[c_Q(G)]E[cG​(Q)]=E[cQ​(G)], a ratio of 1<C1 < C1<C. The positivity E[cQ(K)]>0\mathbb E[c_Q(K)] > 0E[cQ​(K)]>0 excludes the adversary that asks nothing, for which 0≥C⋅00 \ge C \cdot 00≥C⋅0 would hold vacuously. The game's types are existentially quantified in Type; "every algorithm KKK" ranges over randomized algorithms whose coin space is a type in Type, with deterministic algorithms as the one-point case. Costs are real numbers (the paper allows ∞\infty∞). Expectations are Bochner integrals over the coins.


Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.

Preamble
import Mathlib
import Definitions.Def_OnlineRandomization_Tightness_Model
Formal statement
namespace OnlineRandomization.Tightness

open MeasureTheory

/-- Manuscript p. 11, §2, tightness of Theorem 2.2 (construction pp. 12–13), for
`1 < β ≤ α` (and the trivial case `α = β = 1`): for every `C < αβ` there are a request-answer
game and a randomized algorithm `G` that is `α`-competitive against any adaptive on-line
adversary and `β`-competitive against any oblivious adversary, while against every randomized
algorithm `K` some adaptive off-line adversary forces the ratio `C` (with a positive expected
adversary cost). -/
theorem tightness (α β C : ℝ) (hαβ : (1 < β ∧ β ≤ α) ∨ (β = 1 ∧ α = 1)) (hC : C < α * β) :
    ∃ (R A Ω : Type) (_ : Fintype A) (_ : Nonempty A) (_ : MeasurableSpace Ω)
      (F : Game R A) (G : RandAlg R A Ω),
      IsCompetitiveOnline F (fun x => α * x) G ∧
      IsCompetitiveObl F (fun x => β * x) G ∧
      ∀ (Ω' : Type) [MeasurableSpace Ω'] (K : RandAlg R A Ω'),
        ∃ Q : OfflineAdv R A,
          0 < ∫ ω, advCostOffline F (K.alg ω) Q ∂K.μ ∧
          C * ∫ ω, advCostOffline F (K.alg ω) Q ∂K.μ ≤
            ∫ ω, algCostOffline F (K.alg ω) Q ∂K.μ := by sorry

end OnlineRandomization.Tightness
Source
Ben-David, Borodin, Karp, Tardos and Wigderson, On the power of randomization in on-line algorithms, Algorithmica 11 (1994), manuscript p. 11, §2, tightness of Theorem 2.2 (construction pp. 12-13)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 4, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me