64c3814
==== TABLE OF CONTENTS ====
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/common.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/references.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/01_introduction.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/02_setup.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/03_allocation_data.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/04_allocation_trackers.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/05_allocation_finish.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/06_pilot.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/07_partitions.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/08_travel.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/09_rounding.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/10_transfer.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/main.tex
Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/references.bib
===========================

==== BEGIN Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/common.tex ====
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\renewcommand{\ttdefault}{pcr}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage[a4paper,margin=27mm]{geometry}
\usepackage{microtype,graphicx,booktabs,array,xcolor}
\usepackage[colorlinks=true,linkcolor=blue!45!black,citecolor=blue!45!black,urlcolor=blue!45!black]{hyperref}
\urlstyle{same}
\setlength{\emergencystretch}{2em}
\pdftrailerid{}
\pdfgentounicode=1
\pdfglyphtounicode{parenleftbig}{0028}
\pdfglyphtounicode{parenrightbig}{0029}
\pdfglyphtounicode{bracketleftbig}{005B}
\pdfglyphtounicode{bracketrightbig}{005D}
\pdfglyphtounicode{braceleftbig}{007B}
\pdfglyphtounicode{bracerightbig}{007D}
\pdfglyphtounicode{vextendsingle}{23D0}
\pdfglyphtounicode{parenleftBig}{0028}
\pdfglyphtounicode{parenrightBig}{0029}
\pdfglyphtounicode{parenleftbigg}{0028}
\pdfglyphtounicode{parenrightbigg}{0029}
\pdfglyphtounicode{bracketleftbigg}{005B}
\pdfglyphtounicode{bracketrightbigg}{005D}
\pdfglyphtounicode{floorleftbigg}{230A}
\pdfglyphtounicode{floorrightbigg}{230B}
\pdfglyphtounicode{ceilingleftbigg}{2308}
\pdfglyphtounicode{ceilingrightbigg}{2309}
\pdfglyphtounicode{braceleftbigg}{007B}
\pdfglyphtounicode{bracerightbigg}{007D}
\pdfglyphtounicode{parenleftBigg}{0028}
\pdfglyphtounicode{parenrightBigg}{0029}
\pdfglyphtounicode{bracketleftBigg}{005B}
\pdfglyphtounicode{bracketrightBigg}{005D}
\pdfglyphtounicode{floorleftBigg}{230A}
\pdfglyphtounicode{floorrightBigg}{230B}
\pdfglyphtounicode{ceilingleftBigg}{2308}
\pdfglyphtounicode{ceilingrightBigg}{2309}
\pdfglyphtounicode{braceleftBigg}{007B}
\pdfglyphtounicode{bracerightBigg}{007D}
\pdfglyphtounicode{parenlefttp}{239B}
\pdfglyphtounicode{parenrighttp}{239E}
\pdfglyphtounicode{bracelefttp}{23A7}
\pdfglyphtounicode{braceleftbt}{23A9}
\pdfglyphtounicode{braceleftmid}{23A8}
\pdfglyphtounicode{braceex}{23AA}
\pdfglyphtounicode{parenleftbt}{239D}
\pdfglyphtounicode{parenrightbt}{23A0}
\pdfglyphtounicode{integraltext}{222B}
\pdfglyphtounicode{integraldisplay}{222B}
\pdfglyphtounicode{uniondisplay}{22C3}
\pdfglyphtounicode{intersectiondisplay}{22C2}
\pdfglyphtounicode{hatwide}{0302}
\pdfglyphtounicode{tildewide}{0303}
\pdfglyphtounicode{radicalbig}{221A}
\pdfglyphtounicode{mapsto}{007C} %

\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{remark}[theorem]{Remark}
\newcommand{\R}{\mathbb R}
\newcommand{\N}{\mathbb N}
\newcommand{\Z}{\mathbb Z}
\newcommand{\E}{\mathbb E}
\newcommand{\one}{\mathbf 1}
\DeclareMathOperator{\OPT}{OPT}
\DeclareMathOperator{\cost}{cost}
\DeclareMathOperator{\diam}{diam}
\DeclareMathOperator{\supp}{supp}
\DeclareMathOperator{\Lip}{Lip}
\DeclareMathOperator{\dist}{dist}
\DeclareMathOperator*{\argmin}{arg\,min}
==== END Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/common.tex ====

==== BEGIN Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/references.tex ====
\bibliographystyle{plain}
\bibliography{references}
==== END Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/references.tex ====

==== BEGIN Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/01_introduction.tex ====
\section{Introduction}\label{sec:introduction}

The \(k\)-server problem asks how to move \(k\) servers in a metric
space when requests arrive one at a time. A request is a point that
must be occupied by a server; the cost is the distance moved.
The offline optimum knows all future requests, whereas an online
policy must decide from the revealed prefix. We determine the sharp
worst-case order of the randomized competitive ratio.

More precisely, let \((X,d)\) be a metric space and let
\(s=(s_1,\ldots,s_k)\in X^k\) be the initial positions of \(k\)
labeled servers. Repeated positions are allowed. To serve \(r_t\),
a policy chooses one server and moves it to \(r_t\), leaving all
others fixed. A server already at \(r_t\) can be chosen at zero cost.
For a finite request sequence \(\sigma\), let
\(\cost_{A,s}(\sigma)\) be a policy's total movement and let
\(\OPT_{X,d,k,s}(\sigma)\) be the minimum such cost with full
knowledge of \(\sigma\). Requests are fixed independently of the
policy's random choices, the usual oblivious-adversary model.

\begin{theorem}\label{thm:main}
There is an absolute constant \(C<\infty\) such that, for every
integer \(k\ge2\), every metric space \((X,d)\) with at least \(k+1\)
points, and every \(s\in X^k\), there exist a randomized online policy
\(A\) and a finite \(B\ge0\) satisfying
\begin{equation}\label{eq:main}
 \E\,\cost_{A,s}(\sigma)
 \le C\bigl(\log(k+1)\bigr)^2\OPT_{X,d,k,s}(\sigma)+B
\end{equation}
for every finite request sequence \(\sigma\).
The constant \(C\) is independent of every property of the metric.
The number \(B\) may depend on \((X,d),k,s\), but not on the sequence
or its length. The same policy serves all finite sequences and
horizons. If the initial positions are distinct, one may take \(B=0\).
\end{theorem}

There is no finiteness, boundedness, or discreteness assumption on
\(X\), and no computational-efficiency claim for the policy.
Throughout, logarithms are natural.

\subsection{Context and previous work}

Manasse, McGeoch, and Sleator introduced the \(k\)-server problem as a
common framework for online service problems
\cite{MMS88,MMS90}. They proved the deterministic lower bound \(k\)
on every metric with more than \(k\) points and conjectured that it is
attainable. Koutsoupias and Papadimitriou established the
\((2k-1)\)-competitive work function algorithm \cite{KP95}.
A recent preprint of Coester, Koutsoupias, and Zbysiński announces a
\(k\)-competitive analysis of that algorithm \cite{CKZ26}.
The present paper concerns the different asymptotic behavior made
possible by randomization against oblivious requests.

Paging, the case of a uniform metric, gave the basic reason to expect
such an improvement. Fiat, Karp, Luby, McGeoch, Sleator, and Young
proved a harmonic lower bound and a \(2H_k\)-competitive randomized
marking algorithm \cite{FKLMSY91}; McGeoch and Sleator attained the
exact bound \(H_k=\sum_{i=1}^k i^{-1}\) \cite{MS91}.
For weighted paging, Bansal, Buchbinder, and Naor obtained the optimal
order \(O(\log k)\) through a fractional primal-dual algorithm and
online rounding \cite{BBN12}. These results formed part of the
evidence for the folklore randomized \(k\)-server conjecture, which
predicted \(O(\log k)\) on every metric.

That conjecture was disproved by Bubeck, Coester, and Rabani
\cite[Theorem~11 and Proposition~8]{BCR23}: there exist
\((k+1)\)-point metrics requiring
competitive ratio \(\Omega(\log^2 k)\), even allowing a fixed additive
constant. Their result must be distinguished from a lower bound
on every metric. The latter developed through the decomposition and
metric Ramsey methods of Karloff, Rabani, and Ravid \cite{KRR94},
Blum, Karloff, Rabani, and Saks \cite{BKRS00}, Bartal, Bollobás,
and Mendel \cite{BBM06}, and Bartal, Linial, Mendel, and Naor
\cite{BLMN05}; Bubeck, Coester, and Rabani ultimately obtained the
sharp universal order \(\Omega(\log k)\)
\cite[Corollary~20]{BCR23}.
Theorem~\ref{thm:main} matches the larger, worst-case lower bound.
It establishes the sharp squared-logarithmic order after the negative
resolution of the original logarithmic conjecture.

The main upper-bound approach passes through hierarchically separated
trees. Bartal introduced probabilistic approximation by these
metrics \cite{Bartal96,Bartal98}, and Fakcharoenphol, Rao, and Talwar
obtained expected distortion \(O(\log n)\) for \(n\)-point metrics
\cite{FRT04}. Recursive allocation methods were developed by
Coté, Meyerson, and Poplawski \cite{CMP08} and by Bansal, Buchbinder,
and Naor \cite{BBN10}. Bansal, Buchbinder, Mądry, and Naor then gave
the first polylogarithmic bound for arbitrary finite metrics,
\(O(\log^2 k\,\log^3 n\,\log\log n)\) \cite{BBMN15}.
Bubeck, Cohen, Lee, Lee, and Mądry achieved \(O(\log^2 k)\) on HSTs
using multiscale entropic regularization \cite{BCLLM18}.
The static embedding reduction yields \(O(\log^2 k\log n)\) on
general finite metrics. Its dependence on \(n\) does not give a
bound in \(k\) alone.
Coester and Cosson recently made the HST and finite-metric bounds
polynomial-time, using a total number of random bits independent of the
request length \cite[Theorem~1 and Corollary~2]{CoesterCosson2026}.
Their general finite-metric ratio retains the factor $\log n$.

Changing the embedding as requests arrive is also an established
direction. The dynamic construction of \cite[Section~4]{BCLLM18}
gives \(O(\log^3 k\log(1+\Delta))\) on finite metrics, where
\(\Delta\) is the ratio
of the largest distance to the smallest positive distance.
Lee's evolving, fusible HST framework used heavy-ball nets to merge
clusters near concentrated mass and introduced a fission potential intended
to pay for later splits \cite[Sections~3.1.2--3.2 and~5.3]{Lee18}.
Its general competitive-ratio claim was withdrawn after a gap in
Section~5.3.2 \cite{LeeErratum}. Heavy-ball protection and accounting
for changing partitions are methodological antecedents of our
construction. Here the partition schedule is driven by the posterior
measure of a hidden comparator; it produces a fixed tree of label
strings. We prove the required edit and retained-anchor travel estimates
in Sections~\ref{sec:partitions} and~\ref{sec:travel}, without invoking
a theorem from the withdrawn argument.

Subtree-rank coordinates, internal supermeasures, and
fractional-to-integral transfer already play central roles in
\cite{BBMN15,BCLLM18}. The use of local ball-mass ratios and their
telescoping across scales has a geometric predecessor in measured
descent \cite[Lemma~1.7 and Section~1.3]{KLMN05}.
The distributional estimates are converted into a single policy
by finite minimax and product compactness.


\subsection{Main ingredients}

We first establish a finite distributional bound. Given a known law
of requests, select one offline optimum for each input and use only
its posterior distributions conditional on the revealed prefix.
This does not reveal the realized future.

The construction starts with partitions of the finite metric at several
distance scales. A point's complete tuple of cell labels identifies a
leaf of a fixed tree. The hidden optimum then gives posterior distributions
of the server counts below each tree vertex. We use those distributions to allocate
fractional server mass on the tree, represent that mass by points of
the original metric, and round it to exactly $k$ servers. Changes of
the partitions and of the representatives must be charged along with
movement of mass through the tree. One logarithm comes from the
partition estimate and one from the allocation estimate; rounding
and realization preserve their product.

For exposition we prove the reusable allocation theorem first, then
construct its partition input. The four components are as follows.

\paragraph{Allocation from subtree count distributions.}
On a fixed separated tree, we maintain fractional subtree amounts
with movement \(O(\log(k+1))\) times that of the hidden comparator.
The amounts dominate the serving requirement and are bounded above
by a constant multiple of the posterior expected counts. They may
park at internal vertices, keeping unused mass above children while
their posterior proportions change. The proof uses convex rank functions
and slowly varying proportions. A separate rule for a nearly dominant
child chooses the allocations to the other children first and gives that child
the remaining parent amount, subject to its cap. This fits all children
within their rank bounds without an additional logarithm.
The resulting allocation theorem applies
to general observed hidden trajectories, independently of the later
metric embedding.

\paragraph{A compact variational potential.}
The partition analysis uses a finite-dimensional minimum over
separated auxiliary sites with positive-part capacity constraints.
Concentration forces a nearly full site near the request.
A feasible relocation of that site makes the optimal integrand
have small positive slope there. Ball-mass ratios and inner
moments then telescope over scales, giving a single logarithm in
the measure-motion budget. All geometric radii in this argument
are fixed numerical multiples of the scale.

\paragraph{Partitions adapted to local mass ratios.}
Heavy balls protect highly concentrated requests. Other requests
use chronological rosters in doubling qualification tiers.
Their first-hit loss depends on a local mass ratio rather than on
one worst-case logarithm at every level. Random retirements keep
the rosters bounded; a separate short-lived auxiliary roster pays
the retirement errors. The resulting finite label sets are fixed
independently of the request horizon.

\paragraph{Moving representatives and rounding.}
Fractional mass parked at a tree vertex is represented by an anchor
in the original metric. Retained anchors can move even when no mass
crosses a tree edge. A normalized affine potential and a pointwise
sum of parked-mass coefficients pay this travel without multiplying
the tree movement by another logarithm. A dynamic balanced-rounding
lemma, allowing correlated parent and child states, incurs only an
absolute loss.

These components give two logarithms in total. The final step removes
the finite-metric additive term by independent episodes and reset
blocks, then uses finite-dimensional separation and compactness.
This yields a single policy on all finite inputs of an arbitrary
metric, including unbounded spaces. A matching simulation handles
repeated initial positions.

\subsection{Organization}

Section~\ref{sec:setup} fixes the probabilistic conventions and the
movement accounting. Sections~\ref{sec:allocation},
\ref{sec:proportions}, and~\ref{sec:allocation-finish} prove the
tree allocation theorem. Section~\ref{sec:pilot} develops the
variational potential, and Section~\ref{sec:partitions} constructs
the changing partitions. Sections~\ref{sec:travel}
and~\ref{sec:rounding} control realization and rounding.
Section~\ref{sec:transfer} proves the uniform-policy conclusion.

The geometric and algorithmic estimates are proved below.
The final passage to arbitrary spaces uses the standard compactness
theorem identified in Section~\ref{sec:transfer}; the worst-case lower
bound is the result of Bubeck, Coester, and Rabani cited above.
==== END Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/01_introduction.tex ====

==== BEGIN Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/02_setup.tex ====
\section{Finite laws, posterior motion, and the proof architecture}\label{sec:setup}

We first allow the policy to know a finite input law. This permits
conditional distributions of an offline optimum, while still forbidding
the policy from observing the realized future. The estimate obtained in
this setting must have an additive term uniform in the law and horizon.
Section~\ref{sec:transfer} uses precisely this uniformity to construct
one policy on an arbitrary metric.

\subsection{Matching and lazy simulation}

A configuration is a multiset of \(k\) points, with each repeated
point counted separately. For two configurations \(A=(a_1,\ldots,a_k)\)
and \(C=(c_1,\ldots,c_k)\), put
\[
 \mathsf M(A,C)=\min_{\pi\in S_k}\sum_{i=1}^k d(a_i,c_{\pi(i)}).
\]
This distance ignores the labels when matching configurations; an
actual server retains its label when it moves. A \emph{simulated}
configuration may move several members between requests. Its movement
cost is the matching distance between its successive configurations.
A policy is \emph{strongly lazy} if it does nothing when a server already
occupies the request, and otherwise moves exactly one server to it.

The classical cost-nonincreasing lazy reduction for the same starting
configuration is due to Manasse, McGeoch, and Sleator
\cite[Lemma~1, p.~211]{MMS90}. The matching-potential formulation below
also permits an arbitrary initial mismatch.

\begin{lemma}[Lazy simulation]\label{lem:lazy-simulation}
Suppose a causal sequence of simulated configurations
\(C_0,C_1,\ldots,C_H\) contains the request \(r_t\) at each time
\(t\ge1\). From any actual start \(A_0\), a strongly lazy policy serves
the same requests and satisfies, pathwise,
\[
 \cost(A_0;r_1,\ldots,r_H)
 \le \mathsf M(A_0,C_0)+\sum_{t=1}^H\mathsf M(C_{t-1},C_t).
\]
The conclusion also holds if the matching distances on the right are
replaced by any larger specified movement costs.
\end{lemma}

\begin{proof}
After \(C_t\) is revealed, take a minimum matching from \(A_{t-1}\)
to \(C_t\). If \(A_{t-1}\) does not contain \(r_t\), move the actual
server matched to a chosen occurrence of \(r_t\) in \(C_t\) to that
point. Keeping the same matching after the move shows that
\[
 \text{actual cost at }t+\mathsf M(A_t,C_t)
 \le \mathsf M(A_{t-1},C_t).
\]
If the request was already covered, make no move and the inequality
holds with equality. Composing minimum matchings gives
\[
 \mathsf M(A_{t-1},C_t)
 \le \mathsf M(A_{t-1},C_{t-1})
       +\mathsf M(C_{t-1},C_t).
\]
Summing and discarding the nonnegative final matching distance proves
the claim. Minimum matchings exist because there are only \(k!\)
permutations, even with repeated positions. Fixed orders resolve all
ties, so this procedure is causal.
\end{proof}

The same pathwise inequality applies to any prescribed simulated
trajectory. Causality is needed to obtain an online policy from it;
when comparing two offline optima, only the pathwise inequality is
used.

We use the shorthand
\[
                         \ell=1+\log(k+1).
\]
All unnamed multiplicative constants below are absolute. Constants may
depend on numerical parameters only after those parameters have been
fixed once and for all, independently of \(k\) and the metric.

\begin{proposition}[Finite distributional estimate]\label{prop:finite-law}
There is an absolute \(a<\infty\) with the following property. For every
finite metric \(Y\) of positive diameter, every \(k\ge2\), and every
start \(s\in Y^k\), there is a finite \(D_0=D_0(Y,k,s)\) such that,
for every finite horizon \(H\) and every probability law on \(Y^H\),
there is a causal strongly lazy policy satisfying
\begin{equation}\label{eq:finite-law}
             \E\,\cost\le a\ell^2\E\,\OPT+D_0 .
\end{equation}
The policy may depend on the law and horizon. The number \(D_0\)
does not.
\end{proposition}

Sections~\ref{sec:allocation}--\ref{sec:rounding} prove this
proposition. An additive term in those sections is always bounded by
a fixed finite function of \(Y,k,s\) and the finite structures
constructed from them. It never depends on the law, horizon, number
of histories, or number of updates. We will verify this distinction
again when assembling the estimates.

\subsection{Hidden comparators and the two parts of a posterior update}

Fix the data of Proposition~\ref{prop:finite-law}. For each input,
choose one optimum trajectory of the \(k\) labeled servers, resolving
ties by a fixed order. Such a choice exists: each request has only
\(k\) possible server labels, so a length-\(H\) input has only \(k^H\)
candidate trajectories. The chosen optimum is a hidden random variable
determined by the input. Set
\[
                         Q=\E\,\OPT .
\]
The policy uses conditional laws of this trajectory, not its hidden
realization.

Let \(\mathcal F_t\) contain the request prefix through time \(t\)
and the independent random tape used to construct the partitions.
It is convenient to include that entire tape from time zero. The
rounding procedure will use a separate independent tape that is
excluded from \(\mathcal F_t\). Thus conditioning on \(\mathcal F_t\)
does not alter the true-metric comparator posterior beyond
conditioning on the request prefix.

For any old hidden quantity \(Z_{t-1}\), a step has two logically
different parts:
\[
 \mathcal L(Z_{t-1}\mid\mathcal F_{t-1})
 \xrightarrow{\mathrm{filtering}}
 \mathcal L(Z_{t-1}\mid\mathcal F_t)
 \xrightarrow{\mathrm{drift}}
 \mathcal L(Z_t\mid\mathcal F_t).
\]
Here \(\mathcal L\) denotes a probability law, not the pilot potential
introduced later. During filtering, an affine functional with
coefficients held from time \(t-1\) has zero conditional expected
change. A concave functional has nonpositive conditional expected
change. During drift, the joint conditional law of
\((Z_{t-1},Z_t)\) provides a coupling. For embedded quantities, the
old variable uses the old map and the new variable uses the new map.

All signed filtering estimates are applied over every step, with old
parameters held fixed, \emph{before} selecting resets or partition
edits. In particular, no argument conditions a martingale estimate on
the later event that a reset is necessary.

For probability estimates concerning random radii or retirements, we
use a different conditioning: fix the true input and its comparator
trajectory, and average over the partition tape. The relevant
insertion schedules will then be deterministic. This does not assert
independence after conditioning on the entire tape in \(\mathcal F_t\).

At a fixed finite horizon all relevant random outcomes can be taken
finite. A radius draw need only specify which subset of the finite
space is its ball; a roster lifetime has a finite maximum age.
Only finitely many insertions can occur. More explicitly, preallocate
at most \(H\) insertion slots per level and structure, discretize each radius
at all pairwise distances in \(Y\), and preallocate each entry's
truncated lifetime. This gives a finite-valued relevant tape, even
before the centers of the inserted balls are known. Any unused
portion of an ambient infinite tape is independent and can be ignored;
all fractional states and selected rounding kernels below depend only
on this finite projection and the request prefix. Realizing a kernel
also uses the current rounded state and the independent rounding
randomness. Conditional laws, minimizing choices, and randomized rounding
kernels can therefore be specified
history by history. Arbitrary continuations are assigned to
zero-probability histories.

\subsection{The true-metric measure update}

Write \(x=r_t\), and designate the server moved by the chosen optimum
at this request, including when its movement is zero. Let
\(\mu^{\mathrm{old}}\) be the expected comparator counting measure
at time \(t-1\), conditional on \(\mathcal F_{t-1}\). At the new
conditioning \(\mathcal F_t\), let \(\mu^-\) and \(\mu^+\) be its
counting measures before and after the move, and let \(\nu\) be the
probability law of the designated mover's old position. Then
\begin{equation}\label{eq:measure-update}
 \mu^+=\mu^--\nu+\delta_x,\qquad
 \nu\le\mu^-,\qquad \nu(Y)=1,\qquad
 e_x=\int_Y d(x,y)\,d\nu(y).
\end{equation}
Both counting measures have total mass \(k\), the measure \(\mu^+\)
has at least one unit at \(x\), and
\[
 \E[\mu^-\mid\mathcal F_{t-1}]=\mu^{\mathrm{old}},
 \qquad
 \E\sum_{t=1}^H e_{r_t}=Q.
\]
The expected counting measure of the stationary members is
\(\mu^+-\delta_x=\mu^--\nu\), hence is bounded by \(\mu^+\).
The separate treatment of this stationary measure and the designated
mover will matter in the partition accounting.

\subsection{Scales and a logarithmic telescope}

Balls are closed. Set \(r_0=\diam Y\) and
\[
 r_j=r_0\tau^{-j},\quad 1\le j\le J,\qquad
       40r_J<\min_{p\ne q}d(p,q).
\]
The separation factor \(\tau\ge2\) is a sufficiently large absolute
constant. Its required lower bounds come from tree allocation and
rounding; neither bound depends on \(k,Y,J\). Once it is fixed,
\(J\) depends only on \(Y\).

\begin{lemma}[Ball-mass telescope]\label{lem:scale-logarithms}
Fix \(00.
\]
If \(p\ge1\) is an integer with \(\tau^p a\ge b\), then
\[
                  \sum_j\log(B_j/A_j)\le p\log(K/c).
\]
\end{lemma}

\begin{proof}
Extend \(A_j\) before the coarsest index of the interval by the value
\(K\). Ball inclusion gives \(B_j\le A_{j-p}\) whenever the shifted
index remains in the interval, and the same inequality follows from
\(B_j\le K\) at the coarse boundary. Thus the sum is at most
\(\sum_j(\log A_{j-p}-\log A_j)\). All interior terms cancel, leaving
at most \(p\) coarse-end terms minus at most \(p\) fine-end terms.
Each resulting difference is at most \(\log(K/c)\).
\end{proof}

In every application, \(a,b,c\) are fixed positive constants and
\(K=O(k+1)\), so the bound is \(O(\ell)\). The offset permits its use
with \(1+\mu(B)\) as well as with positive ball masses themselves.
Geometric sums of radii, by contrast, cost an absolute multiple of
their largest radius and introduce no logarithm.

\subsection{Where the two logarithms occur}

The allocation theorem begins with a fixed finite tree and a hidden
trajectory of \(k\) members on its leaves. It constructs subtree
amounts \(q_v\) satisfying
\[
 q_{\mathrm{root}}=k,\qquad
 \sum_{i\text{ child of }v}q_i\le q_v,\qquad
                    q_v\le C_0m_v,
\]
where \(m_v\) is the posterior expected hidden subtree count.
The inequality in conservation allows \emph{parking} at internal
vertices:
\[
                  p_v^\circ=q_v-\sum_iq_i .
\]
All parks together have total mass \(k\). This freedom is useful:
the required leaf still receives at least one unit, but unused mass
need not follow rapidly changing posterior proportions down the tree.
Figure~\ref{fig:parked-tree} illustrates this split and the separate
movement of its representative.

The construction order is important. Partition schedules use only the
true-metric posteriors and chronological ages. They are independent of
the later allocation and rounding. Their bounded simultaneous
occupancy gives a finite set of labels, chosen independently of the
horizon. Full strings of level labels then define a fixed finite
prefix tree. We apply the allocation theorem to that tree, control
the moving representatives using the domination \(q_v\le C_0m_v\),
and round with a further independent tape. Finally
Lemma~\ref{lem:lazy-simulation} returns to the original one-server
movement model.

\begin{figure}[!htbp]
 \centering
 \includegraphics[width=.94\textwidth]{figures/parked_tree.pdf}
 \caption{A subtree amount is split between its children and a park at
 its own vertex. The park is included as one more child target during
 rounding. A fixed tree vertex can have a moving representative in
 the original metric, so its parked mass requires a separate travel
 estimate. The picture records conservation and does not assert that
 the original metric is a Euclidean tree.}
 \label{fig:parked-tree}
\end{figure}

Let \(P\) be expected movement of the mapped hidden comparator on tree
leaves, and put
\[
       V=\E\sum_t\sum_{v\ne\mathrm{root}}
                     r_{|v|-1}|\Delta q_v|.
\]
The main estimates are
\begin{align*}
 P&\le C\ell Q+B_P,\\
 V&\le C\ell P+B_V,\\
 \E\,\cost_{\mathrm{sim}}
   &\le C(V+\ell P+\ell Q)+B_T.
\end{align*}
Their additive terms have the uniform meaning specified above.
Figure~\ref{fig:budget-flow} displays their dependence.

\begin{figure}[!htbp]
 \centering
 \includegraphics[width=.98\textwidth]{figures/budget_flow.pdf}
 \caption{Movement accounting. The partitions and the tree allocation
 each contribute one logarithm. Rounding has an absolute loss.
 Moving the representatives costs \(O(V+\ell P+\ell Q)\), so it
 preserves the final squared logarithm. All additive terms shown
 are uniform in the finite input law and horizon.}
 \label{fig:budget-flow}
\end{figure}

==== END Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/02_setup.tex ====

==== BEGIN Squared-logarithmic-randomized-k-server-on-arbitrary-metrics//source/latex/sections/03_allocation_data.tex ====
\section{Allocation on a separated tree: rank data}
\label{sec:allocation}

We first solve an allocation problem on a fixed finite tree.  The allocation
uses conditional distributions of hidden subtree counts.  Convex functions
of their rank probabilities give compatible lower bounds on the amounts
allocated to subtrees.  A small, size-dependent change in the functions
provides the slack needed to move those amounts slowly.

Let $\mathcal T$ be a finite rooted tree whose leaves have depth $J$.
Write $|v|$ for depth and $i\prec v$ when $i$ is a child of $v$.
Fix $r_j=r_0\tau^{-j}$, where $r_0>0$ and $\tau\ge2$.
Write $d_T$ for the leaf metric: distinct leaves with last common
ancestor of depth $j$ have distance $r_j$.  At time $t$ there are $k$
labeled hidden members at leaves,
and a leaf $x_t$ known to $\mathcal F_t$ is required.  Assume that,
conditional on $\mathcal F_t$, at least one hidden member is at $x_t$
with probability one.  Let $N_v(t)$ be the number in the subtree of $v$,
and put $m_v(t)=\E[N_v(t)\mid\mathcal F_t]$.  The expected sum of
the labeled members' successive traveled distances is denoted by $P$;
it includes their movement from time zero.  All conditional distributions
below are available from the observed history.

\begin{theorem}[Dominated tree allocation]\label{thm:allocation}
There are absolute constants $C_0,C_1$ and $\tau_0$ with the following
property.  For $\tau\ge\tau_0$, the observed histories determine amounts
$q_v(t)$ satisfying
\begin{equation}\label{eq:allocation-constraints}
 q_{\mathrm{root}}=k,\qquad
 0\le q_v\le C_0m_v,\qquad
 \sum_{i\prec v}q_i\le q_v,\qquad q_{x_t}\ge1.
\end{equation}
Moreover, with $\ell=1+\log(k+1)$,
\begin{equation}\label{eq:allocation-bound}
 V:=\E\sum_{t\ge1}\sum_{v\ne\mathrm{root}}
       r_{|v|-1}|q_v(t)-q_v(t-1)|
 \le C_1\ell P+D_{\mathcal T}.
\end{equation}
Here sums stop at the chosen finite horizon.  The finite constant
$D_{\mathcal T}$ depends only on the fixed tree, radii, and $k$;
it can be chosen independently of the input law, horizon, and number of
histories.  No initial allocation is prescribed.
\end{theorem}

The proof occupies Sections~\ref{sec:allocation}--\ref{sec:allocation-finish}.

At a vertex $v$, the local task is to distribute its amount $q_v$ among
the children without violating their serving lower bounds.  We construct
child allowances $d_i$, then remove at least $(\sum_i d_i-q_v)_+$ from
them; additional removals leave mass parked at $v$.  The removal choices
must remain stable under posterior fluctuations.  Section~\ref{sec:proportions}
constructs these choices, and Section~\ref{sec:allocation-finish} proves
that the resulting allocations meet their lower bounds and move slowly.

This section supplies the rank lower bounds and the allowances.  It uses
coarse estimates to control changes of the removal rule's parameters,
and finer estimates for the final allowances.  Only the coarse variation
will be multiplied by logarithmic potential slopes; keeping these two
budgets separate preserves the single factor of $\ell$ in the theorem.

Rank coordinates for subtree occupancies also occur in the assignment
polytope of \cite[Section~3.2]{BCLLM18}. Here they are probabilities of
the hidden comparator's occupancies, conditional on the observed history.
For $1\le a\le k$, define the rank probabilities and their filtered values by
\[
 p_{va}(t)=\Pr(N_v(t)