Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 3.1, p. 15 — the expected augmented potential at the end of a play is nonnegative

Proved
OnlineRandomization.Potential.potential_nonneg_on_play

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

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

Let Φ\PhiΦ be an augmented potential function for a function α\alphaα and a randomized online algorithm GGG (Definition 3.1), and let SSS be an adaptive on-line adversary. Let (r,a,b)(r, a, b)(r,a,b) be the random final configuration of the play of GGG against SSS, of random length nnn. Then

E[Φn(r,a,b)]≥0.\mathbb E\big[\Phi_n(r, a, b)\big] \ge 0 .E[Φn​(r,a,b)]≥0.

This is the first step of the "if" direction of Lemma 3.1: combined with property 2 of Definition 3.1 it bounds the algorithm's expected cost by the adversary's.

Formalization Note GGG is given in behavioural form (next-answer distributions gn+1g_{n+1}gn+1​) and the expectation is the finite sum over the law of the final configuration; see the definitions of the mission. Costs are real-valued (the paper allows +∞+\infty+∞). No hypothesis on α\alphaα is needed or assumed.

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

theorem potential_nonneg_on_play {R A : Type*} [Fintype A] (F : Game R A) (α : ℝ → ℝ)
    (g : BehAlg R A) (Φ : List R → List A → List A → ℝ) (hΦ : IsAugPotential F α g Φ)
    (S : OnlineAdv R A) :
    0 ≤ pexp (behPlay g S) (fun z => Φ z.1 z.2.1 z.2.2) := 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 pp. 14-15, §3, proof of Lemma 3.1 ('if' part), first sentence
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