Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.1, p. 15 — an augmented potential function and an oblivious β-competitive H give a deterministic α∘β-competitive algorithm

Proved
OnlineRandomization.Potential.theorem_3_1

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

competitive-analysisderandomizationonline-algorithmsp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1potential-function

Let a request-answer game with finite nonempty answer set AAA and cost functions fnf_nfn​ be given, and let α,β:R→R\alpha, \beta : \mathbb R \to \mathbb Rα,β:R→R be linear (affine) functions, α\alphaα nondecreasing. Suppose that

  1. Φ={Φn}\Phi = \{\Phi_n\}Φ={Φn​} is an augmented potential function for α\alphaα and a randomized online algorithm GGG (Definition 3.1), and
  2. HHH is a randomized online algorithm, a distribution over deterministic algorithms HyH_yHy​, that is β\betaβ-competitive against any oblivious adversary: Ey[fn(r,Hy(r))]≤β(c(r))\mathbb E_y[f_n(r, H_y(r))] \le \beta(c(r))Ey​[fn​(r,Hy​(r))]≤β(c(r)) for every rrr.

Call a deterministic online algorithm M={mn}M = \{m_n\}M={mn​} a potential-rule algorithm if for every r∈Rnr \in R^nr∈Rn and every r′=rt∈Rn+1r' = r t \in R^{n+1}r′=rt∈Rn+1,

Ey[Φn+1(r′,M(r) mn+1(r′),Hy(r′))]≥Ey[Φn(r,M(r),Hy(r))].\mathbb E_y\big[\Phi_{n+1}(r', M(r)\, m_{n+1}(r'), H_y(r'))\big] \ge \mathbb E_y\big[\Phi_n(r, M(r), H_y(r))\big].Ey​[Φn+1​(r′,M(r)mn+1​(r′),Hy​(r′))]≥Ey​[Φn​(r,M(r),Hy​(r))].

Then a potential-rule algorithm exists, and every potential-rule algorithm MMM is α∘β\alpha \circ \betaα∘β-competitive: for every request sequence rrr,

cM(r)≤α(β(c(r))).c_M(r) \le \alpha\big(\beta(c(r))\big).cM​(r)≤α(β(c(r))).

Since MMM is deterministic, this is also α∘β\alpha \circ \betaα∘β-competitiveness against adaptive off-line adversaries. The theorem is a constructive version of the paper's Corollary 2.1: it builds the deterministic algorithm explicitly, answer by answer, from a potential-function analysis of GGG and the algorithm HHH.

Formalization Note The statement has two parts, existence of a potential-rule algorithm and competitiveness of every such algorithm; the second part alone would hold vacuously if no algorithm obeyed the rule. GGG is given in behavioural form; it enters only through property 3 of Φ\PhiΦ. Costs are real-valued (the paper allows +∞+\infty+∞). Monotonicity of α\alphaα is added: the paper only says "linear", but the last step of its proof applies α\alphaα to the inequality Ey[fn(r,Hy(r))]≤β(c(r))\mathbb E_y[f_n(r, H_y(r))] \le \beta(c(r))Ey​[fn​(r,Hy​(r))]≤β(c(r)), which needs α\alphaα nondecreasing (the paper's examples are ratios d>0d > 0d>0). The page's "k1,k2,…,mnk_1, k_2, \dots, m_nk1​,k2​,…,mn​" is read as m1,…,mnm_1, \dots, m_nm1​,…,mn​. The expectations over yyy are Bochner integrals.


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_Potential_AugPotential
Formal statement
namespace OnlineRandomization.Potential

theorem theorem_3_1 {R A Ω : Type*} [Fintype A] [Nonempty A] [MeasurableSpace Ω]
    (F : Game R A) (α β : ℝ → ℝ) (hα : IsLinear α) (hα_mono : Monotone α)
    (hβ : IsLinear β) (g : BehAlg R A) (Φ : List R → List A → List A → ℝ)
    (hΦ : IsAugPotential F α g Φ) (H : RandAlg R A Ω) (hH : IsCompetitiveObl F β H) :
    (∃ M : DetAlg R A, ObeysPotentialRule Φ H M) ∧
      ∀ M : DetAlg R A, ObeysPotentialRule Φ H M → IsCompetitive F (α ∘ β) M := by sorry

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