Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Stability under changes of the initial configuration

Proved
KServer.workFnU_initial_stability

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

finite-metricinitializationk-serverwork-function

Let k≥1k\ge1k≥1 and let A,BA,BA,B be labelled initial configurations in any metric space. For every finite request sequence σ\sigmaσ,

∣w^A,σ(X)−w^B,σ(X)∣≤∑id(Ai,Bi)|\widehat w_{A,\sigma}(X)-\widehat w_{B,\sigma}(X)|\le \sum_i d(A_i,B_i)∣wA,σ​(X)−wB,σ​(X)∣≤i∑​d(Ai​,Bi​)

for every terminal configuration XXX, and

∣OPT(A,σ)−OPT(B,σ)∣≤∑id(Ai,Bi).|\mathrm{OPT}(A,\sigma)-\mathrm{OPT}(B,\sigma)|\le \sum_i d(A_i,B_i).∣OPT(A,σ)−OPT(B,σ)∣≤i∑​d(Ai​,Bi​).

The bound is independent of the history length. Configurations may have repeated points, and the metric space need not be finite, bounded, or compact. The labelled backward recurrence transports the movement-cost triangle inequality from the empty history to every history. Taking the finite minimum over terminal permutations gives the unordered bound. Approximate offline endpoints then give the offline bound without assuming an optimal schedule exists.

Preamble
import Definitions.Def_KServer_workfunctionU
open KServer
Formal statement
theorem KServer.workFnU_initial_stability (k : ℕ) (hk : 1 ≤ k) (M : Type) [MetricSpace M]
    (A B : Config k M) (σ : List M) :
    (∀ X : Config k M, |workFnU A σ X - workFnU B σ X| ≤ moveCost A B) ∧
      |offlineCost A σ - offlineCost B σ| ≤ moveCost A B := by sorry
Source
A direct consequence of the standard work-function recurrence in E. Koutsoupias, The k-server problem (2009), Section 3.4, https://users.cs.fiu.edu/~giri/teach/6936/S10/K-Server_CSReviews_09.pdf. The recurrence and approximate-endpoint formalizations are credited to Shuze Chen; this initial-stability consequence is proved here.

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