Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3.1 (“if” direction), p. 14 — an augmented potential function makes G α-competitive against adaptive on-line adversaries

Proved
OnlineRandomization.Potential.lemma_3_1_if

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

adaptive-adversarycompetitive-analysisonline-algorithmsp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1potential-function

Let α:R→R\alpha : \mathbb R \to \mathbb Rα:R→R be linear, α(x)=cx+d\alpha(x) = c x + dα(x)=cx+d, and let GGG be a randomized online algorithm. If there exists an augmented potential function Φ\PhiΦ for α\alphaα and GGG (Definition 3.1), then GGG is α\alphaα-competitive against any adaptive on-line adversary: for every adaptive on-line adversary SSS,

E[cG(S)]≤E[α(cS(G))],\mathbb E\big[c_G(S)\big] \le \mathbb E\big[\alpha(c_S(G))\big],E[cG​(S)]≤E[α(cS​(G))],

where cG(S)=fn(r,a)c_G(S) = f_n(r, a)cG​(S)=fn​(r,a) and cS(G)=fn(r,b)c_S(G) = f_n(r, b)cS​(G)=fn​(r,b) at the final configuration (r,a,b)(r, a, b)(r,a,b) of the play of GGG against SSS.

Lemma 3.1 of the paper is an equivalence; this item is its "if" direction, the one the paper proves. It shows that an augmented potential function is a certificate of competitiveness against the strongest on-line adversary.

Formalization Note GGG is given in behavioural form (next-answer distributions), the play law and expectations are those of the mission's definitions, and α\alphaα stays inside the expectation as on p. 9 of the paper. Costs are real-valued (the paper allows +∞+\infty+∞). Linearity of α\alphaα is the paper's standing convention ("In this paper α and β will mean linear functions", p. 7); it is kept as a hypothesis although the argument with α\alphaα inside the expectation does not use it. The "only if" direction is not stated: the paper gives it only as an informal sketch.

Preamble
import Mathlib
import Definitions.Def_OnlineRandomization_Potential_AugPotential
Formal statement
namespace OnlineRandomization.Potential

theorem lemma_3_1_if {R A : Type*} [Fintype A] (F : Game R A) (α : ℝ → ℝ)
    (hα : IsLinear α) (g : BehAlg R A) (Φ : List R → List A → List A → ℝ)
    (hΦ : IsAugPotential F α g Φ) :
    IsCompetitiveOnlineBeh F α g := 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. 14, Lemma 3.1 ('if' direction; proof pp. 14-15)
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