Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

A work-function potential bounds every finite k-server game

Proved
KServer.finite_game_bound_of_work_potential

by Wenqian · Sep 6, 2026 · Mathlib c5ea003 (Lean v4.30.0)

competitive-analysisfinite-gamesk-serverwork-function

Let k≥1k\ge 1k≥1, let MMM be any metric space, and fix an initial configuration C0C_0C0​. Write w^l(X)\widehat w_l(X)wl​(X) for the unordered work function after history lll, and write VP,nρV_{P,n}^{\rho}VP,nρ​ for the finite game value with stopping payoff −ρ OPT(C0,l)-\rho\,\mathrm{OPT}(C_0,l)−ρOPT(C0​,l).

Suppose ρ≥0\rho\ge0ρ≥0 and there are a real-valued function Φ\PhiΦ on finite request histories and a real constant ccc such that

Φ(l)≤(ρ+1) OPT(C0,l)+c\Phi(l)\le(\rho+1)\,\mathrm{OPT}(C_0,l)+cΦ(l)≤(ρ+1)OPT(C0​,l)+c

for every history, and

w^lr(X)−w^l(X)≤Φ(lr)−Φ(l)\widehat w_{l r}(X)-\widehat w_l(X)\le\Phi(l r)-\Phi(l)wlr​(X)−wl​(X)≤Φ(lr)−Φ(l)

for every history lll, next request rrr, and configuration XXX whose servers occupy distinct points. Then

∃a∈R∀P⊆M finite∀n∈N,VP,nρ(∅,C0)≤a.\exists a\in\mathbb R\quad\forall P\subseteq M\text{ finite}\quad\forall n\in\mathbb N, \qquad V_{P,n}^{\rho}(\varnothing,C_0)\le a.∃a∈R∀P⊆M finite∀n∈N,VP,nρ​(∅,C0​)≤a.

This is the work-function potential criterion applied to the finite game formulation. It isolates the construction of the potential from the conversion to one bound for all finite request alphabets and horizons. No finiteness, boundedness, compactness, or attainment assumption on MMM is imposed. The potential and its upper-bound constant are hypotheses, rather than assertions that such a potential exists for a specified competitive ratio.

Formalization Note The history-indexed potential may depend on the entire history. Increments are required only at injective configurations, matching the existing injective extended-cost theorem. Spaces too small to admit an injective configuration are covered by the existing covering-configuration theorem.

Preamble
import Definitions.Def_KServer_finite_game
import Definitions.Def_KServer_workfunctionU
open KServer
Formal statement
theorem KServer.finite_game_bound_of_work_potential (k : ℕ) (hk : 1 ≤ k) (M : Type) [MetricSpace M]
    (C₀ : Config k M) (ρ : ℝ) (hρ : 0 ≤ ρ) (Φ : List M → ℝ) (c : ℝ)
    (hupper : ∀ σ : List M, Φ σ ≤ (ρ + 1) * offlineCost C₀ σ + c)
    (hstep : ∀ (l : List M) (r : M) (X : Config k M), Function.Injective X →
      workFnU C₀ (l ++ [r]) X - workFnU C₀ l X ≤ Φ (l ++ [r]) - Φ l) :
    ∃ a : ℝ, ∀ P : Finset M, ∀ n : ℕ,
      finiteGameValue hk P (fun σ => ρ * offlineCost C₀ σ) n [] C₀ ≤ a := by sorry
Source
Application of the work-function potential criterion: E. Koutsoupias, The k-server problem (2009), Section 3.4, Lemma 2, equation (6), and potential discussion, preprint pp. 12-14, https://users.cs.fiu.edu/~giri/teach/6936/S10/K-Server_CSReviews_09.pdf; K. Brilliantov, E. Bamas, E. Abbe, k-server-bench, https://arxiv.org/html/2604.07240v1, Appendix B.2, Theorem 1. Finite-game conclusion uses the proved platform theorem KServer.finite_game_characterization.

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me