Sharp work-function potentials for at most two servers or at most k+2 points
ProvedKServer.workFnU_sharp_potential_known_casesFix , a metric space , and an initial configuration . Suppose either , or has at most distinct points. Write for the unordered work function. There exist a real-valued history potential and a real constant such that
for every finite history, next request, and injective configuration .
This packages the established sharp small cases in the common history-potential interface. The initial configuration may have repeated points, and the constant is fixed for all histories. When , the metric can be infinite or unbounded. This theorem does not assert the general sharp potential for larger server counts and larger metric spaces.
Formalization Note Having at most points is expressed by the absence of an injective map from Fin (k + 3) to , so the statement needs no chosen enumeration of .
import Definitions.Def_KServer_workfunctionU open KServer
theorem KServer.workFnU_sharp_potential_known_cases (k : ℕ) (hk : 1 ≤ k) (M : Type) [MetricSpace M]
(C₀ : Config k M)
(hsmall : k ≤ 2 ∨ ¬ ∃ f : Fin (k + 3) → M, Function.Injective f) :
∃ Φ : List M → ℝ, ∃ c : ℝ,
(∀ σ : List M, Φ σ ≤ ((k : ℝ) + 1) * offlineCost C₀ σ + c) ∧
(∀ (l : List M) (r : M) (X : Config k M), Function.Injective X →
workFnU C₀ (l ++ [r]) X - workFnU C₀ l X ≤ Φ (l ++ [r]) - Φ l) := by sorry