Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

A work-function growth bound at injective configurations extends to all configurations

Proved
KServer.workFnU_growth_transfer_injective_start

by Zexuan Liu · Sep 7, 2026 · Mathlib c5ea003 (Lean v4.30.0)

k-serveronline-algorithmswork-function

Fix a metric space MMM, k≥1k\ge1k≥1 servers, and an initial configuration C0C_0C0​ occupying kkk distinct points. Let σ1,σ2\sigma_1,\sigma_2σ1​,σ2​ be request sequences and u∈Ru\in\mathbb Ru∈R.

Statement. If

w^σ2(X)  ≤  w^σ1(X)+ufor every injective configuration X,\widehat w_{\sigma_2}(X)\;\le\;\widehat w_{\sigma_1}(X)+u\qquad\text{for every \emph{injective} configuration }X,wσ2​​(X)≤wσ1​​(X)+ufor every injective configuration X,

then the same inequality holds for every configuration XXX, degenerate ones included.

Role. The work-function growth bounds that drive the kkk-server upper bounds --- the 3 OPT3\,\mathrm{OPT}3OPT bound for two servers, the (k+1) OPT(k+1)\,\mathrm{OPT}(k+1)OPT bound on spaces of k+1k+1k+1 and of k+2k+2k+2 points, and the 2k OPT2k\,\mathrm{OPT}2kOPT bound of Koutsoupias--Papadimitriou on general spaces --- are all of the form "one step of the work function grows by at most utu_tut​ at every configuration", and their classical proofs give the bound only at configurations occupying kkk distinct points. This principle upgrades any such bound to all configurations at once, so the two formulations coincide whenever the servers start at distinct points.

Proof idea. Given an arbitrary target YYY and ε>0\varepsilon>0ε>0, choose an injective XXX with w^σ1(X)+∥X−Y∥≤w^σ1(Y)+ε\widehat w_{\sigma_1}(X)+\lVert X-Y\rVert\le\widehat w_{\sigma_1}(Y)+\varepsilonwσ1​​(X)+∥X−Y∥≤wσ1​​(Y)+ε, which is possible because for an injective start the work function is the Lipschitz extension of its injective restriction. Then

w^σ2(Y)  ≤  w^σ2(X)+∥X−Y∥  ≤  w^σ1(X)+u+∥X−Y∥  ≤  w^σ1(Y)+u+ε,\widehat w_{\sigma_2}(Y)\;\le\;\widehat w_{\sigma_2}(X)+\lVert X-Y\rVert\;\le\;\widehat w_{\sigma_1}(X)+u+\lVert X-Y\rVert\;\le\;\widehat w_{\sigma_1}(Y)+u+\varepsilon,wσ2​​(Y)≤wσ2​​(X)+∥X−Y∥≤wσ1​​(X)+u+∥X−Y∥≤wσ1​​(Y)+u+ε,

using the Lipschitz property, then the hypothesis at XXX, then the choice of XXX; letting ε→0\varepsilon\to0ε→0 finishes.

The hypothesis on C0C_0C0​ is necessary: for a degenerate start the conclusion acquires an additive slack proportional to the distance from C0C_0C0​ to the nearest injective configuration.

Preamble
import Mathlib
import Definitions.Def_KServer_workfunctionU
Formal statement
namespace KServer

theorem workFnU_growth_transfer_injective_start (k : ℕ) (hk : 1 ≤ k) (M : Type) [MetricSpace M]
    (C₀ : Config k M) (hC₀ : Function.Injective C₀) (σ₁ σ₂ : List M) (u : ℝ)
    (h : ∀ X : Config k M, Function.Injective X →
        workFnU C₀ σ₂ X ≤ workFnU C₀ σ₁ X + u) :
    ∀ X : Config k M, workFnU C₀ σ₂ X ≤ workFnU C₀ σ₁ X + u := by sorry

end KServer
Source
E. Koutsoupias, The k-server problem (survey), Computer Science Review 3 (2009) 105-118, https://doi.org/10.1016/j.cosrev.2009.04.002, Section 3.4 (the Extended Cost Lemma and the work-function growth bounds, stated there for configurations as k-point sets). Original observation supplying the missing bridge between the set-valued classical formulation and the `Fin k -> M` formalization of this mission.

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