Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Work functions are preserved by isometric embeddings

Proved
KServer.workFnU_isometry_embedding

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

finite-reductionk-servermetric-geometrywork-function

Let k≥1k\ge1k≥1, and let e:M→Ne:M\to Ne:M→N preserve distances between metric spaces. For every initial configuration, finite request sequence, and terminal configuration in MMM,

w^eC0,eσN(eX)=w^C0,σM(X).\widehat w^{N}_{eC_0,e\sigma}(eX)=\widehat w^{M}_{C_0,\sigma}(X).weC0​,eσN​(eX)=wC0​,σM​(X).

Surjectivity is not required. Although schedules in NNN may use additional points, they cannot improve the work function for these data. The backward recurrence eliminates requests one by one, using only replacement of a terminal coordinate by a request; at the empty sequence the value is the distance from the initial configuration. Each operation is preserved by the embedding. Taking the finite infimum over terminal permutations proves the unordered assertion. The initial and terminal configurations may have repetitions, and the spaces need not be finite or compact.

Preamble
import Definitions.Def_KServer_workfunctionU
open KServer
Formal statement
theorem KServer.workFnU_isometry_embedding (k : ℕ) (hk : 1 ≤ k) (M N : Type)
    [MetricSpace M] [MetricSpace N] (e : M → N)
    (he : ∀ x y, dist (e x) (e y) = dist x y)
    (C₀ : Config k M) (σ : List M) (X : Config k M) :
    workFnU (fun i => e (C₀ i)) (σ.map e) (fun i => e (X i)) =
      workFnU C₀ σ X := by sorry
Source
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 two recurrence inequalities are reused from Shuze Chen's proved formalizations. Finite-support consequence of the recurrence, proved here. Compare the X-lazy schedule observation in Y. Emek, P. Fraigniaud, A. Korman, A. Rosen, On the Additive Constant of the k-server Work Function Algorithm (2009), Section 2, https://arxiv.org/pdf/0902.1378. The exact uniform-constant transfer below is a separate argument.

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