The duality property for proper configurations
ProvedKServer.workFnU_duality_injectiveFix a metric space , servers, an initial configuration , a request sequence and one further request . Write , and call a configuration proper when it is injective and avoids — in the classical language, a -element set not containing .
Statement. Let be a proper configuration minimising among proper configurations. Then also minimises among proper configurations, and it maximises among all injective configurations.
Status (updated). The case , which is the one the -point argument needs, is settled: it is now a step inside the proof of refworkFnU_growth_card_add_two_inj, and the milestone refcard_add_two_competitive is proved. What remains open here is the statement above for an arbitrary metric space, which is strictly more than that argument gives.
How the case goes, and why it does not generalise. On a space with exactly points an injective configuration is the complement of a pair, so writing and
the recurrence collapses to an edge recurrence — the two-evader problem. Let minimise over the edges missing . For the four points are distinct, and quasiconvexity applied to the two injective configurations and yields one of the two exchanges
from which follows in one line. The essential point — and the answer to the difficulty recorded below — is that for these two configurations the quasiconvexity hybrids can be kept injective: they differ in exactly two points, so choosing the hybrid index set to be the complement of a reachability set under "the point I contribute is the point the other configuration contributes here" makes both hybrids injective, misses from one and from the other, and keeps every commonly occupied point in both.
That repair uses twice: it needs the two configurations to differ in exactly two points, and it needs the counting step that forces exactly one of to be missing from the first hybrid. On a larger space two injective configurations can differ in up to points and the hybrids genuinely fail to be injective, so the general statement still needs a different idea.
Why the unrestricted duality lemma does not suffice. In this model a configuration is a labelled map , so it may place two servers on the same point, and workFnU extends the classical work function from -element sets to multisets. Exact dynamic programming shows that the minimum of over all configurations is sometimes attained only at multisets with a repeat: on -point spaces this happened at roughly 2% of steps for , 20% for and 28% for . So the global minimiser is not in general the complement of an edge, and KServer.workFnU_duality cannot be quoted.
A neighbouring guess, that the global minimiser can always be taken injective and -avoiding, is false, and instructively so: at the work function is , whose only minimiser of is itself, so a non-injective is an immediate counterexample. Exact DP over non-injective confirms it (56–92 failing steps per cell tested), while the restricted statement above survived all steps of the same sweep.
Formalization Note Both conclusions are stated as universally quantified inequalities rather than memberships, so no minimiser is asserted to exist; on a finite metric space, which is the case of interest, one does. A proof of the general case needs either a form of quasiconvexity whose hybrids stay injective for configurations differing in more than two points, or a route that does not pass through quasiconvexity at all.
import Mathlib import Definitions.Def_KServer_workfunctionU
namespace KServer
theorem workFnU_duality_injective (k : ℕ) (hk : 1 ≤ k) (M : Type) [MetricSpace M]
(C₀ : Config k M) (σ : List M) (r : M) (A : Config k M)
(hAinj : Function.Injective A) (hAr : ∀ i, A i ≠ r)
(hA : ∀ X : Config k M, Function.Injective X → (∀ i, X i ≠ r) →
workFnU C₀ σ A - ∑ i, dist r (A i) ≤ workFnU C₀ σ X - ∑ i, dist r (X i)) :
(∀ X : Config k M, Function.Injective X → (∀ i, X i ≠ r) →
workFnU C₀ (σ ++ [r]) A - ∑ i, dist r (A i)
≤ workFnU C₀ (σ ++ [r]) X - ∑ i, dist r (X i)) ∧
(∀ X : Config k M, Function.Injective X →
workFnU C₀ (σ ++ [r]) X - workFnU C₀ σ X
≤ workFnU C₀ (σ ++ [r]) A - workFnU C₀ σ A) := by sorry
end KServer