Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2, p. 13 — in the mates game an adaptive off-line adversary forces every algorithm to pay MMM while paying 111

Proved
OnlineRandomization.Tightness.offline_forces_ratio

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

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

Let t≥1t \ge 1t≥1 be an integer and 1≤m≤M1 \le m \le M1≤m≤M. In the mates game with parameters t,m,Mt, m, Mt,m,M, for every randomized on-line algorithm KKK there is an adaptive off-line adversary QQQ such that

E[cK(Q)]=MandE[cQ(K)]=1.\mathbb E\bigl[c_{K}(Q)\bigr] = M \qquad\text{and}\qquad \mathbb E\bigl[c_Q(K)\bigr] = 1 .E[cK​(Q)]=MandE[cQ​(K)]=1.

The adversary makes an arbitrary first request, reads the algorithm's answer a1a_1a1​, requests the mate of a1a_1a1​ and stops: the algorithm pays MMM, and the off-line optimum of the two requests is 111. Hence every on-line algorithm has competitive ratio at least MMM against adaptive off-line adversaries in this game; this is the second bullet of the tightness claim.

Formalization Note. "Every algorithm" is every randomized on-line algorithm whose coin space is a type in Type (deterministic algorithms are the case of a one-point coin space). The adversary's cost is the off-line optimum c(r‾)c(\underline r)c(r​) of the request sequence, as on p. 8; the hypothesis 1≤m≤M1 \le m \le M1≤m≤M makes that optimum 111. The game uses the disclosed pin f0=0f_0 = 0f0​=0, f1≡1f_1 \equiv 1f1​≡1.

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

open MeasureTheory

/-- Manuscript p. 13: in the mates game with `1 ≤ m ≤ M`, against every randomized on-line
algorithm `K` there is an adaptive off-line adversary `Q` (it sets `r₂` to the mate of `a₁`)
whose expected cost is `1` while the algorithm's expected cost is `M`. -/
theorem offline_forces_ratio (t : ℕ) [NeZero t] (m M : ℝ) (hm : 1 ≤ m) (hmM : m ≤ M)
    (Ω : Type) [MeasurableSpace Ω] (K : RandAlg (Fin t × Bool) (Fin t × Bool) Ω) :
    ∃ Q : OfflineAdv (Fin t × Bool) (Fin t × Bool),
      ∫ ω, algCostOffline (matesGame t m M) (K.alg ω) Q ∂K.μ = M ∧
      ∫ ω, advCostOffline (matesGame t m M) (K.alg ω) Q ∂K.μ = 1 := 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. 13, §2 ("Finally, regardless of how an on-line algorithm chooses a1, ...")
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