Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.2 — composition of adaptive on-line and oblivious guarantees

Proved
OnlineRandomization.Simulation.theorem_2_2

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

competitive-analysisderandomizationonline-algorithmsp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let α\alphaα and β\betaβ be affine cost transformations. Suppose a randomized algorithm GGG is α\alphaα-competitive against every adaptive on-line adversary, and another randomized algorithm HHH is β\betaβ-competitive against every oblivious adversary. Then GGG is α∘β\alpha\circ\betaα∘β-competitive against every adaptive off-line adversary:

E[cG(Q)]≤E[(α∘β)(cQ(G))]for every Q.\mathbb E[c_G(Q)]\leq\mathbb E[(\alpha\circ\beta)(c_Q(G))]\quad\text{for every }Q.E[cG​(Q)]≤E[(α∘β)(cQ​(G))]for every Q.

This links the three adversary models at the paper's exact composed cost transformation.

Formalization Note Applying α\alphaα to an inequality on manuscript p. 11 requires it to be monotone; the Lean statement includes this implicit condition (P3). Costs are real and AAA finite nonempty (P1–P2); the two algorithms have independently measurable coin spaces, with finite-range play costs (P4); lists and adversaries follow P5–P6. The coin types are Lean types at the declaration's universe level.

Preamble
import Definitions.Def_OnlineRandomization_Simulation_Model
Formal statement
namespace OnlineRandomization.Simulation

/-- Manuscript p. 10, Theorem 2.2. -/
theorem theorem_2_2 {R A Ω Ω' : Type*} [Fintype A] [Nonempty A]
    [MeasurableSpace Ω] [MeasurableSpace Ω']
    (F : Game R A) (α β : ℝ → ℝ)
    (hα : IsLinear α) (hαmono : Monotone α) (hβ : IsLinear β)
    (G : RandAlg R A Ω) (H : RandAlg R A Ω')
    (hG : IsCompetitiveOnline F α G)
    (hH : IsCompetitiveObl F β H) :
    IsCompetitiveOffline F (α ∘ β) G := by sorry

end OnlineRandomization.Simulation
Source
Ben-David, Borodin, Karp, Tardos and Wigderson, On the power of randomization in on-line algorithms, Algorithmica 11 (1994), manuscript p. 10, Theorem 2.2
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