Prove2Me
Navigate
MissionsFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The work function of the antipodal extension restricts to the original work function

Proved
KServer.workFnU_antipodal_extension_restrict

by Shuze Chen · Sep 1, 2026 · Mathlib c5ea003 (Lean v4.30.0)

k-servermetric-geometryonline-algorithmswork-function

Let MMM be a metric space with all distances bounded by Δ>0\Delta > 0Δ>0, and let M∪MˉM \cup \bar MM∪Mˉ be its antipodal extension --- the space obtained by adjoining a reflected copy of MMM, with d(pˉ,qˉ)=d(p,q)d(\bar p, \bar q) = d(p,q)d(pˉ​,qˉ​)=d(p,q) and d(p,qˉ)=2Δ−d(p,q)d(p, \bar q) = 2\Delta - d(p,q)d(p,qˉ​)=2Δ−d(p,q). A kkk-server instance on MMM (initial configuration C0C_0C0​, request sequence σ\sigmaσ) is also an instance on the extension. The theorem says that the extension changes nothing about it:

wC0,σM∪Mˉ(X)  =  wC0,σM(X)for every configuration X of points of M,w^{M \cup \bar M}_{C_0, \sigma}(X) \;=\; w^{M}_{C_0, \sigma}(X) \qquad \text{for every configuration } X \text{ of points of } M,wC0​,σM∪Mˉ​(X)=wC0​,σM​(X)for every configuration X of points of M,

where www denotes the (unlabelled) work function. Offline solutions gain nothing by parking servers at antipodes.

Why

One inequality is trivial: an offline schedule in MMM is a schedule in the extension of the same cost, because MMM embeds isometrically. For the other, there is a 111-Lipschitz retraction of the extension onto MMM --- collapse the reflected copy onto the original, xˉ↦x\bar x \mapsto xxˉ↦x. Between two original points the retraction changes nothing; between xˉ\bar xxˉ and yˉ\bar yyˉ​ it preserves the distance by construction; and between xxx and yˉ\bar yyˉ​ it contracts, since d(x,y)≤2Δ−d(x,y)d(x,y) \le 2\Delta - d(x,y)d(x,y)≤2Δ−d(x,y) exactly because Δ\DeltaΔ bounds the diameter. Applying the retraction to every configuration of an extension schedule yields an MMM-schedule of no greater cost that serves the same requests (which lie in MMM and are fixed by the retraction) and ends at the same configuration (which lies in MMM). Hence the two infima coincide.

Role

The Coester--Koutsoupias potential for kkk servers is a minimum of sums of work-function values at configurations mixing original points with antipodes, so it is a functional of the work function on the extension; but the algorithm being analysed, and the competitiveness statement being proved, live on MMM. This identity is the bridge: it lets the offset and update properties, proved for the extension work function, be read as statements about the original work function at every configuration the analysis actually charges --- and it is why adjoining antipodes is a legitimate proof device rather than a change of problem.

Formalization note

The extension is antipodalExtension M Δ hΔ0 hΔ, a MetricSpace structure on the sum type M⊕MM \oplus MM⊕M; the embedding is Sum.inl, applied pointwise to the initial configuration, the requests, and the target configuration. The retraction is Sum.elim id id. The statement is for workFnU, the work function whose final move is a minimum-cost matching; the labelled version of the identity holds as well and is what the proof establishes first, the unlabelled case following by taking the infimum over relabellings, which commutes with the embedding.

Preamble
import Mathlib
import Definitions.Def_KServer_workfunctionU
import Definitions.Def_KServer_antipodal_extension
Formal statement
namespace KServer

theorem workFnU_antipodal_extension_restrict (k : ℕ) (hk : 1 ≤ k) (M : Type) [MetricSpace M]
    (Δ : ℝ) (hΔ0 : 0 < Δ) (hΔ : ∀ x y : M, dist x y ≤ Δ)
    (C₀ : Config k M) (σ : List M) (X : Config k M) :
    @workFnU k (M ⊕ M) (antipodalExtension M Δ hΔ0 hΔ)
        (fun i => Sum.inl (C₀ i)) (σ.map Sum.inl) (fun i => Sum.inl (X i))
      = workFnU C₀ σ X := by sorry

end KServer
Source
Implicit in the use of the antipodal extension in E. Koutsoupias, 'Weak adversaries for the k-server problem', FOCS 1999, and C. Coester, E. Koutsoupias, 'Towards the k-server conjecture: a unifying potential, pushing the frontier to the circle', ICALP 2021, arXiv:2102.10474, Section 'The k-server potential': the potential is evaluated on the extension while the algorithm and its competitiveness live on the original space.

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.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me