Prove2Me
Navigate
MissionsFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The dual functional of the work function is quasiconvex with the same alignment

Proved
KServer.workFnU_dual_quasiconvex

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

k-serveronline-algorithmsquasiconvexitywork-function

Fix a point sss and consider the dual functional of a kkk-server work function www,

F(X)  =  w(X)−d(X,sk)  =  w(X)−∑id(xi,s),F(X) \;=\; w(X) - d(X, s^k) \;=\; w(X) - \sum_{i} d(x_i, s),F(X)=w(X)−d(X,sk)=w(X)−i∑​d(xi​,s),

the object at the heart of the Koutsoupias--Papadimitriou duality lemma: its minimisers are where the extended cost of a request at sss is realised, and its minima drive the potential of Coester and Koutsoupias. The theorem says FFF is quasiconvex in the same pairing sense as www itself, with the same alignment: for any two configurations X,YX, YX,Y there is a permutation π\piπ such that for every split of the coordinates into two blocks, the two hybrid configurations H1,H2H_1, H_2H1​,H2​ (taking one block from XXX and the complementary block from Y∘πY \circ \piY∘π, and vice versa) satisfy

F(H1)+F(H2)  ≤  F(X)+F(Y).F(H_1) + F(H_2) \;\le\; F(X) + F(Y).F(H1​)+F(H2​)≤F(X)+F(Y).

Why it is free

Quasiconvexity is a genuine theorem for www --- it encodes the exchange structure of optimal offline solutions. For the dual functional no new argument is needed, because the subtracted term is modular: d(X,sk)d(X, s^k)d(X,sk) is a sum of per-coordinate distances, and each coordinate of XXX and of Y∘πY \circ \piY∘π appears in exactly one of the two hybrids. Hence

d(H1,sk)+d(H2,sk)=d(X,sk)+d(Y,sk)d(H_1, s^k) + d(H_2, s^k) = d(X, s^k) + d(Y, s^k)d(H1​,sk)+d(H2​,sk)=d(X,sk)+d(Y,sk)

exactly (after re-indexing the YYY-part along π\piπ, under which the sum is invariant), and subtracting this identity from the quasiconvexity of www gives the claim --- with the same π\piπ, which is what makes the lemma directly usable: any exchange argument for www runs verbatim for FFF.

Role

In the tree analysis of Coester and Koutsoupias, the anchors of the potential are located greedily with respect to dual functionals: their Lemma 25 finds the first anchor among the minimisers of x↦w(x x2…xk)−d(x,x2)x \mapsto w(x\,x_2\dots x_k) - d(x, x_2)x↦w(xx2​…xk​)−d(x,x2​), an instance of minimising FFF under a containment constraint, and the greedy and substitution lemmas that justify such choices are exchange arguments of exactly the pairing form above. This theorem is what licenses running them against FFF rather than www.

Formalization note

Configurations are functions Fin k→M\mathrm{Fin}\,k \to MFink→M and the hybrids are written with an if i ∈ t selector over a Finset (Fin k); www is workFnU, the work function of the unlabelled configuration. The statement quantifies the split inside the existential, exactly as in the underlying workFnU_quasiconvex, so a single alignment witnesses all splits at once.

Preamble
import Mathlib
import Definitions.Def_KServer_workfunctionU
Formal statement
namespace KServer

theorem workFnU_dual_quasiconvex (k : ℕ) (hk : 1 ≤ k) (M : Type) [MetricSpace M]
    (C₀ : Config k M) (σ : List M) (s : M) (X Y : Config k M) :
    ∃ π : Equiv.Perm (Fin k), ∀ t : Finset (Fin k),
      (workFnU C₀ σ (fun i => if i ∈ t then X i else Y (π i))
          - ∑ i, dist s ((fun i => if i ∈ t then X i else Y (π i)) i))
        + (workFnU C₀ σ (fun i => if i ∈ t then Y (π i) else X i)
          - ∑ i, dist s ((fun i => if i ∈ t then Y (π i) else X i) i))
      ≤ (workFnU C₀ σ X - ∑ i, dist s (X i))
        + (workFnU C₀ σ Y - ∑ i, dist s (Y i)) := by sorry

end KServer
Source
Implicit in C. Coester, E. Koutsoupias, 'Towards the k-server conjecture', ICALP 2021, arXiv:2102.10474, proof of Lemma 25 (quasiGreedy applied to X ↦ w(X) − d(X, x₂²)); quasiconvexity and the dual functional are from E. Koutsoupias, C. H. Papadimitriou, 'On the k-server conjecture', JACM 42 (1995).

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