Prove2Me
Navigate
MissionsFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The envelope minimizer can be taken to contain the last request

Proved
KServer.workFnU_mcshane_request

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

k-servermetric-geometryonline-algorithmswork-function

Let a kkk-server instance in MMM (all distances ≤Δ\le \Delta≤Δ) end with the request rrr, and view it in the antipodal extension M∪MˉM \cup \bar MM∪Mˉ. By the McShane envelope theorem the extension work function at any configuration ZZZ --- antipodal coordinates allowed --- is the attained minimum

wext(Z)  =  min⁡X⊆M(w(X)+d(X,Z))w^{\mathrm{ext}}(Z) \;=\; \min_{X \subseteq M} \bigl( w(X) + d(X, Z) \bigr)wext(Z)=X⊆Mmin​(w(X)+d(X,Z))

over configurations of original points. This theorem sharpens the attainment: the minimiser can moreover be taken to contain the last request,

wext(Z)  =  w(X)+d(X,Z)for some X⊆M with r∈X.w^{\mathrm{ext}}(Z) \;=\; w(X) + d(X, Z) \qquad \text{for some } X \subseteq M \text{ with } r \in X.wext(Z)=w(X)+d(X,Z)for some X⊆M with r∈X.

Why

Take any envelope minimiser XXX. Because rrr is the last request, XXX resolves: some server xjx_jxj​ satisfies w(X)=w(X−xj+r)+d(xj,r)w(X) = w(X - x_j + r) + d(x_j, r)w(X)=w(X−xj​+r)+d(xj​,r). Replacing xjx_jxj​ by rrr changes the matching cost to ZZZ in one coordinate only, and by the triangle inequality d(r,Zj)≤d(r,xj)+d(xj,Zj)d(r, Z_j) \le d(r, x_j) + d(x_j, Z_j)d(r,Zj​)≤d(r,xj​)+d(xj​,Zj​) the increase is at most the d(xj,r)d(x_j, r)d(xj​,r) that resolution just saved. So X−xj+rX - x_j + rX−xj​+r is again a minimiser, and it contains rrr.

Role

This is the exact form in which the tree analysis of Coester and Koutsoupias consumes the envelope. Their Lemma 26 opens by writing, for the all-antipodes configuration,

w(yˉ k)  =  w(a1⋯ak−1 r)+d((a1,…,ak−1,r), yˉ k)"for some ai∈V",w(\bar y^{\,k}) \;=\; w(a_1 \cdots a_{k-1}\, r) + d\bigl((a_1, \dots, a_{k-1}, r),\, \bar y^{\,k}\bigr) \quad \text{"for some } a_i \in V\text{"},w(yˉ​k)=w(a1​⋯ak−1​r)+d((a1​,…,ak−1​,r),yˉ​k)"for some ai​∈V",

with the aia_iai​ original tree vertices and rrr present --- both facts unstated there, and both supplied by this theorem. Having the aia_iai​ in VVV is what lets the four-point condition of the tree metric, valid only for original points, act on them in the ensuing case analysis; having rrr present is what the case analysis pivots on. The same expansion, at other antipodal configurations, recurs throughout their multi-ray and circle arguments.

Formalization note

The extension is antipodalExtension on M⊕MM \oplus MM⊕M with original points embedded by Sum.inl; d(X,Z)d(X,Z)d(X,Z) is the movement cost of the embedded configuration, and www is workFnU. No finiteness of MMM is assumed. The membership of rrr is recorded as an index jjj with Xj=rX_j = rXj​=r; combined with permutation invariance of the work function the minimiser can then be normalised to any desired position of rrr.

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

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

end KServer
Source
C. Coester, E. Koutsoupias, 'Towards the k-server conjecture: a unifying potential, pushing the frontier to the circle', ICALP 2021, arXiv:2102.10474, Section on trees, proof of Lemma 26: the expansion w(ȳ^k) = w(a₁…a_{k−1}r) + kΔ − Σ aᵢy − ry 'for some a₁,…,a_{k−1} ∈ V', here derived rather than asserted.

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