1 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.
Theorem 1.1. 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
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.
There is no finiteness, boundedness, or discreteness assumption on X, and no computational-efficiency claim for the policy. Throughout, logarithms are natural.
1.1 Context and previous work
Manasse, McGeoch, and Sleator introduced the k-server problem as a common framework for online service problems [25, 26]. 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 [20]. A recent preprint of Coester, Koutsoupias, and Zbysiński announces a k-competitive analysis of that algorithm [13]. 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 [16]; McGeoch and Sleator attained the exact bound H_k=\sum_{i=1}^k i^{-1} [27]. For weighted paging, Bansal, Buchbinder, and Naor obtained the optimal order O(\log k) through a fractional primal-dual algorithm and online rounding [3]. 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 [10, Theorem 11 and Proposition 8]: 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 [18], Blum, Karloff, Rabani, and Saks [8], Bartal, Bollobás, and Mendel [6], and Bartal, Linial, Mendel, and Naor [7]; Bubeck, Coester, and Rabani ultimately obtained the sharp universal order \Omega(\log k) [10, Corollary 20]. Theorem 1.1 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 [4, 5], and Fakcharoenphol, Rao, and Talwar obtained expected distortion O(\log n) for n-point metrics [15]. Recursive allocation methods were developed by Coté, Meyerson, and Poplawski [14] and by Bansal, Buchbinder, and Naor [2]. 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) [1]. Bubeck, Cohen, Lee, Lee, and Mądry achieved O(\log^2 k) on HSTs using multiscale entropic regularization [11]. 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 [12, Theorem 1 and Corollary 2]. 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 [11, Section 4] 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 [24, Sections 3.1.2–3.2 and 5.3]. Its general competitive-ratio claim was withdrawn after a gap in Section 5.3.2 [23]. 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 7 and 8, without invoking a theorem from the withdrawn argument.
Subtree-rank coordinates, internal supermeasures, and fractional-to-integral transfer already play central roles in [1, 11]. The use of local ball-mass ratios and their telescoping across scales has a geometric predecessor in measured descent [21, Lemma 1.7 and Section 1.3]. The distributional estimates are converted into a single policy by finite minimax and product compactness.
1.2 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.
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.
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.
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.
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.
1.3 Organization
Section 2 fixes the probabilistic conventions and the movement accounting. Sections 3, 4, and 5 prove the tree allocation theorem. Section 6 develops the variational potential, and Section 7 constructs the changing partitions. Sections 8 and 9 control realization and rounding. Section 10 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 10; the worst-case lower bound is the result of Bubeck, Coester, and Rabani cited above.
2 Finite laws, posterior motion, and the proof architecture
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 10 uses precisely this uniformity to construct one policy on an arbitrary metric.
2.1 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
This distance ignores the labels when matching configurations; an actual server retains its label when it moves. A simulated configuration may move several members between requests. Its movement cost is the matching distance between its successive configurations. A policy is 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 [26, Lemma 1, p. 211]. The matching-potential formulation below also permits an arbitrary initial mismatch.
Lemma 2.1 (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,
The conclusion also holds if the matching distances on the right are replaced by any larger specified movement costs.
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
If the request was already covered, make no move and the inequality holds with equality. Composing minimum matchings gives
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.
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
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.
Proposition 2.2 (Finite distributional estimate). 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
The policy may depend on the law and horizon. The number D_0 does not.
Sections 3–9 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.
2.2 Hidden comparators and the two parts of a posterior update
Fix the data of Proposition 2.2. 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
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:
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, 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.
2.3 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
Both counting measures have total mass k, the measure \mu^+ has at least one unit at x, and
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.
2.4 Scales and a logarithmic telescope
Balls are closed. Set r_0=\diam Y and
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.
Lemma 2.3 (Ball-mass telescope). Fix 0<a<b, a nonnegative measure \mu, and an offset c_0\ge0. On a consecutive finite interval of scale indices suppose
If p\ge1 is an integer with \tau^p a\ge b, then
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).
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.
2.5 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
where m_v is the posterior expected hidden subtree count. The inequality in conservation allows parking at internal vertices:
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 1 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 2.1 returns to the original one-server movement model.
Figure 1: 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.
Let P be expected movement of the mapped hidden comparator on tree leaves, and put
The main estimates are
Their additive terms have the uniform meaning specified above. Figure 2 displays their dependence.
Figure 2: 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.
3 Allocation on a separated tree: rank data
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.
Theorem 3.1 (Dominated tree 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
Moreover, with \ell=1+\log(k+1),
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.
The proof occupies Sections 3–5.
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 4 constructs these choices, and Section 5 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 [11, Section 3.2]. 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
Thus \E[p^-_{va}(t)\mid\mathcal F_{t-1}]=p_{va}(t-1). The drift of this coordinate is \delta_t p_{va}=p_{va}(t)-p^-_{va}(t), rather than its entire change between successive observations. For the star at an internal vertex v, put
These local budgets satisfy
Indeed, for two integer counts n,n'\in\{0,\ldots,k\},
Use the coupling of successive hidden configurations and conditional expectation to bound each rank drift by the corresponding indicator change. A nonroot vertex of depth d receives weight at most r_{d-1}+r_d when all stars are summed. If one labeled member moves between leaves with last common ancestor of depth j, its indicators change on the two paths strictly below that ancestor. Its total charge is at most
The root count is constant. Summing over the members proves (3.4).
3.1 Explicit rank functions and compatible lower bounds
Lemma 3.2 (Rank functions). There are absolute constants p_*,s_*,\epsilon_*>0, with p_*<s_*<1, and functions l^\beta:[0,1]\to[0,1] for 3\le\beta\le3+\epsilon_* such that:
- 1.
l^\beta is convex and nonincreasing, equals 1-\beta p on [0,p_*], is positive on [0,s_*), and is zero on [s_*,1];
- 2.
l^\beta is affine and nonincreasing in \beta, and the square roots \sqrt{l^\beta} have a common absolute Lipschitz constant;
- 3.
if g(p)=-\partial_\beta l^\beta(p), then
\frac1{96}l^\beta(p)\le g(p)\le l^\beta(p) \qquad(p\in[p_*/4,1]). \tag{3.5}
One may take p_*=1/24, s_*=5/8, and \epsilon_*=1/100.
Proof. Set t_*=s_*-p_*=7/12 and
For 0\le z\le1/100 define
The identities
show that both values and first derivatives match at p_*. They also show that g is p on the first interval and (s_*-p)^2(c_*'+d_*'(p-p_*)) on the second.
Writing x=s_*-p, the middle expression for l^{3+z} is
Its two coefficients are nonnegative, with A_*-zb_*'>2. Consequently it is positive before the cutoff, has nonpositive p-derivative, and has positive second derivative. Its value and first derivative are zero at the cutoff. Together with the matching at p_*, this proves global convexity and monotonicity. On the first interval the function is bounded away from zero, so its square root has bounded derivative. On the middle interval its square root is x\sqrt{A_*-zb_*'+zd_*'x}, which also has bounded derivative, uniformly in z. The matching and cutoff give the global Lipschitz bound.
For p\in[p_*/4,p_*], the quotient g(p)/l^{3+z}(p)=p/(1-(3+z)p) lies between 1/96 and 1. On the middle interval the quotient is
It is at least c_*'/A_*=1/21 and at most b_*'/(A_*-(1/100)b_*')<1. Beyond the cutoff both functions vanish. This proves (3.5).
Fix also the broader size function
Its square root is Lipschitz. Both kinds of functions vanish at one and have value one at zero.
The next comparison is a majorization argument in the sense of Karamata [17]. We include the convex-hinge proof to specify the direction of the comparison and the role of the padded coordinates.
Lemma 3.3 (Superadditivity). For every internal vertex v and every allowed \beta,
No independence between child counts is required.
Proof. Suppose there are d children. Pool their dk rank probabilities and sort them increasingly, obtaining a vector x. Let y be the parent’s k increasingly ordered rank probabilities followed by (d-1)k ones. Their total sums agree and equal dk-m_v. If the first n coordinates of x contain n_i coordinates from child i, those coordinates can be chosen as the first n_i of that child. Since N_v=\sum_iN_i, conditional expectation gives
The last identity also holds for n>k, precisely because of the padding. For every real b, an increasing vector z satisfies
Thus the sum of every convex hinge (b-p)_+ on x is no larger than its sum on y. Affine functions have equal sums. Every convex piecewise linear function is an affine function plus a nonnegative linear combination of these hinges. Approximating a continuous convex function by its linear interpolants proves the same comparison for that function. Apply it to l^\beta and l^{\mathrm{siz}}; the padded ones contribute zero. Finally convexity and the endpoint values give l^{\mathrm{siz}}(p)\le1-p, and \sum_a(1-p_{va})=m_v.
From now on set c_*=10^{-4}; thus 100c_*<l^{\mathrm{siz}}(s_*)=1/36. Choose an absolute c_\beta>0 so small that c_\beta(1+\log(1/c_*))\le\epsilon_*/2, and define
It belongs to [3,3+\epsilon_*/2], because M_v\le k and \log(k/c_*)/\ell\le1+\log(1/c_*). The invariant propagated down the tree will be
Superadditivity gives compatible child lower bounds at the parent’s parameter \beta_v. Since M_i\le M_v, the child’s own parameter satisfies \beta_i\ge\beta_v, and its required bound is no larger. The resulting difference is the slack available for choosing slowly varying child amounts. We will estimate this difference in terms of the relative child sizes. At the root all ranks are zero, M_{\mathrm{root}}=k, and the lower bound is k. At a required leaf p_{v1}=0, so the lower bound is at least one.
3.2 A rank tracker with a bounded affine potential
The input to a star may fluctuate substantially when information is revealed. The following tracker charges only drift, using signed filtering changes before it decides whether to refresh.
Lemma 3.4 (Rank tracking). Let p_t,p_t^-\in[0,1] obey \E[p_t^-\mid\mathcal F_{t-1}]=p_{t-1}, and let \mathcal E=\E\sum_t|p_t-p_t^-|. If f\ge0 has an absolutely bounded Lipschitz constant for \sqrt f, then for 0<\xi<1/2 there is a held estimate \widehat f_t with
In particular zeros are tracked exactly. A held estimate \widehat p_t refreshed when |p_t-\widehat p_{t-1}|>\delta has expected number of refreshes at most \delta^{-2}(\mathcal E+1).
Proof. Initialize a reference p^\circ=p_0 and hold f(p^\circ) until the displayed factor comparison fails, then replace p^\circ by p_t. With the reference held, use
This is affine in p, lies in [0,1], and has slope of absolute value at most one. At every step, first evaluate its change from p_{t-1} to p_t^- and then from p_t^- to p_t, holding the old reference. The former change has conditional expectation zero, and the latter is at most |p_t-p_t^-|. A reference reset then decreases \Phi by exactly (p_t-p^\circ)^2. Telescoping gives
For two nonnegative values a,b failing factor 1+\xi comparison,
The inequality includes the case in which exactly one value is zero. The Lipschitz bound for \sqrt f therefore implies (p_t-p^\circ)^2\ge c\xi|f(p_t)-f(p^\circ)| at every reset, proving (3.10). The same potential proves the absolute-threshold claim, since every reset then releases more than \delta^2. Filtering was evaluated at every step before the reset test; no expectation was restricted to a selected reset event.
Apply the absolute tracker with threshold p_*/8 to every child rank. A rank is called core when its held estimate is at most p_*/2. After the update, every core rank has p\le5p_*/8, every noncore rank has p>3p_*/8, and every rank with p<p_*/4 is core. Let K_t count the changed core flags in this star at step t, and set
We call f_i^\beta the noncore, or flex, contribution. The core ranks lie in the affine part of every rank function, so
For the second bound, a core rank contributes at least l^{\mathrm{siz}}(5p_*/8)>0 to M_i. Any positive l^\beta(p) has p<s_*, where l^{\mathrm{siz}}(p)\ge1/36 and l^\beta(p)\le1. These termwise bounds prove the assertion with an absolute constant. In particular,
Also, if the old flags are held while the ranks are filtered and drifted, the resulting old-flag sum always satisfies B_i\le n_i^{\mathrm{old}}, even if those old flags no longer describe small current probabilities. This elementary bound will be used at wholesale changes.
3.3 Coarse data, active epochs, and parameter gaps
We now describe a schedule local to a star. Its estimates are computed from the final, post-filtering and post-drift, ranks on each step. All elementary term trackers persist throughout the entire process, including times when a child is inactive and times when the schedule below is restarted.
Choose a sufficiently small absolute size tolerance \delta_s>0, for example 10^{-3}. Track every term of M_i by Lemma 3.4 with this tolerance, and let \widehat M_i be their sum. A child is either inactive, with a_i=0, or active. Turn an inactive child on when \widehat M_i\ge5c_*, setting a_i=\widehat M_i. Turn an active child off when \widehat M_i\le2c_*. Otherwise, during an active period hold a_i until factor 1+\delta_s comparison with \widehat M_i fails, then replace a_i by \widehat M_i. Initialize with the same rules, using either admissible state in the overlap. These choices ensure
By (3.14), an inactive child has no core ranks or positive rank lower bounds.
We also hold an accurate estimate of X_v=\max(M_v,c_*). For this purpose take a possibly smaller absolute tolerance \delta_p, track the parent size terms, and clip their sum below at c_*, obtaining \widehat X_v. Hold H_v equal to its last reference value, refreshing upon failure of factor 1+\delta_p comparison. Then
Put
Here X_v^{\mathrm{low}}\le X_v\le k, and X_v^{\mathrm{low}}\ge X_v/(1+\delta_p)^4. Thus, for any prescribed small absolute \epsilon>0, choosing \delta_p sufficiently small gives
The parameter stays in the allowed interval and changes only when H_v is refreshed.
An epoch starts with a wholesale change, performed initially and whenever \beta^+ changes or the cumulative \ell_1 variation of the held size vector since the epoch started exceeds A/100. Here A=\sum_i a_i at the start is held for that epoch. Empty to nonempty or nonempty to empty changes always start a new epoch. At a wholesale change, choose a dominant index o if some a_o\ge0.85A and A>0. It is unique. Keep that mark until the next wholesale change. All other active indices, or all active indices when there is no mark, are called regular. With a dominant index the regular indices are also called sides. No elementary size or rank tracker is restarted at an epoch boundary.
During a marked epoch, let T_{\mathrm{side}}=\sum_{i\ne o}a_i. Set U=T_{\mathrm{side}} at its start. Subsequently hold U until factor 1+\delta_s comparison with T_{\mathrm{side}} fails, then refresh it to that side total. This includes transitions to or from zero. When sides exist set u=U/A; otherwise set u=0. For active children define
The empty active domain needs none of these parameters.
Finally prepare a coarse scale for a marked child. Independently of the fine estimates used below, track every child rank value l^3(p_{ia}) with tolerance \delta_s, and write its estimate as \widehat l^{\mathrm{coarse}}_{ia}. With a dominant index set
set D=0 when no dominant index exists. All these term trackers run on every child and every rank even when their estimates are not currently used in D.
Here is a precise inventory of the coarse charges. Write a_i^-,a_i^+ for the old and new held sizes on a step, and similarly for other held quantities; these superscripts in this inventory refer to step-end states, not to the filtered hidden configuration. Let \mathcal W_v be the wholesale steps after initialization, \mathcal H_v the steps at which H_v is refreshed, and \mathcal U_v the non-wholesale steps at which U is refreshed. Define the nonnegative charge
The side totals in this expression use the unchanged dominant mark on a non-wholesale step. A wholesale change of U, including a change of mark, is covered by the wholesale total in the preceding term.
Lemma 3.5 (Coarse budgets and parameter gaps). The data above satisfy, for an absolute constant C and a finite D_v^{\mathrm{data}} depending only on the fixed star and k,
The constant is uniform in the law and horizon. Every active child obeys
for an absolute c_g>0. If a dominant index and sides are present, then 0<u<1/4, and with H=1+\log(1/u) every side satisfies h_i\ge cH for an absolute c>0. In addition, n_i+B_i+\sup_\beta f_i^\beta\le C a_i at active children, and all these quantities vanish at inactive children.
Proof. We give the amortization details because paying a large size on every small refresh would not suffice. Lemma 3.4, summed over the fixed collection of size terms, bounds the expected total variation of their estimates by CE_v plus a fixed initialization constant. It bounds \E\sum_tK_t in the same way. Constants may depend on the fixed absolute tolerances but never on k or the degree.
For a scalar estimate x held at a reference b>0, a factor 1+\delta failure gives
The last difference is bounded by the variation of x since its previous reference setting; these intervals are disjoint. This pays all active to active changes of a_i and all changes of H_v. Turning a child on after an off period costs its new size, and is paid by the variation from a previous value at most 2c_* to a value at least 5c_*. The first such event may instead use an initialization charge. For a turn-off, if the last held size exceeds 4c_*, variation since that setting pays it because the new estimate is at most 2c_*. Otherwise the charge is at most 4c_* and is paid by the traversal from at least 5c_* at the start of this on period to at most 2c_* at its end. Each on period and each off period is used only once in these latter arguments. They overlap the scalar refresh intervals only a bounded number of times. This proves the budget for all changed-a_i charges. Clipping the parent sum below at c_* does not increase its variation, so the same argument applies to H_v.
When \beta^+ changes, the old and new active totals are at most C(X_v^-+X_v^+)\le C(H_v^-+H_v^+), and are therefore paid by that parent refresh. For a wholesale event from the vector-variation test, let R be the cumulative variation since the previous epoch started and let A be that epoch’s initial total. The old total is at most 1.01A, the new total is at most 1.01A+R, and R>A/100. Their sum is consequently at most 203R. The intervals of variation assigned to successive epochs are disjoint. If A=0, the new total is at most R, and the same conclusion holds. Discarding unused variation credit when a parent refresh intervenes cannot increase its total use. This proves the wholesale budget.
On a fixed marked epoch, variation of T_{\mathrm{side}} is at most \sum_i|\Delta a_i|. The scalar relative-refresh argument pays every U refresh by variation since its previous setting. The actual old side total is within factor 1+\delta_s of that reference, so the old plus new side totals have the same bound. A zero crossing is included: the variation then pays the positive reference or positive new total. Setting U at a wholesale change is paid by the wholesale total. Thus all its asserted charges are covered.
At a non-wholesale step the dominant index is unchanged. The variation of (3.19) is at most the summed variation of its coarse term estimates plus CK_t: a changed flag inserts or removes one term, each at most one. At a wholesale step, its old and new values are at most C(a_o^-+a_o^+), interpreted as zero when that mark is absent; this follows from the relative estimates and (3.13). The wholesale totals pay these changes. This proves (3.21).
For the gaps, at every state of an epoch with A>0 the current active total is in [0.99A,1.01A]. In an unmarked epoch every child has a_i\le0.86A. In a marked epoch the marked size is at least 0.84A, and the side total is at most 0.16A; in particular the mark stays active. Therefore every regular child has a_i\le0.86A. By (3.15) and superadditivity,
For x=A/a_i\ge1/0.86, the logarithm of the last expression is at least c(1+\log x) for an absolute c>0. To see the uniformity, the ratio to 1+\log x is continuous and positive on this interval and tends to one as x\to\infty; on a sufficiently large tail it is at least 1/2, and on the remaining compact interval it has a positive minimum. This proves the regular comparison. For the dominant child, use the first inequality in (3.23), the comparisons T_{\mathrm{side}}\asymp U, and a_o\le1.01A to obtain
Here u\le(1+\delta_s)0.16<1/4, so \log(1+cu)\ge c'u. If no sides exist, u=0 and the claimed inequality is automatic.
At every active child M_i\ge c_* and M_v\ge M_i, so the clipping in (3.8) is inactive at both vertices. Hence
which proves the gap in (3.22). Active held sizes have an absolute positive lower bound and A\le1.1k, proving h_i\le C\ell. On a side, a_i\le T_{\mathrm{side}}\le(1+\delta_s)uA, whence
The final bounds on core and flex data follow from (3.13), B_i\le n_i, and (3.15). Inactivity was addressed in (3.14).
3.4 Fine caps and their separate budget
The proportions constructed in the next section will use only the coarse data above and the raw core sums B_i. The following finer estimates enter only the final allocations. Keeping their variation out of the proportion potentials is necessary for the single factor of \ell in Theorem 3.1.
The parameter gap at a regular child leaves room to track its flex contribution between f_i^{\beta_i} and f_i^{\beta_v}. A marked child can have an arbitrarily smaller gap as its side mass tends to zero. We therefore use a small upper approximation at that child; Section 4 explains how this asymmetry changes the removal rule.
Lemma 3.6 (Caps). Given a sufficiently small absolute \epsilon_b>0, the remaining absolute tolerances can be chosen so that there are caps d_i=n_i+b_i, zero on inactive children, with
Here c_D,C_D>0 are absolute, fixed independently of \epsilon_b and the fine tolerances; in particular D=0 if and only if T=0. At every child d_i\le C M_i\le C m_i. Their variation away from wholesale changes satisfies
where D_v^{\mathrm{cap}} is uniform in the law and horizon. At wholesale changes the old plus new caps are bounded by C times the old plus new active totals.
Proof. For every rank, at both endpoint parameters 3 and 3+\epsilon_*, run separate relative trackers with tolerance \rho/\ell, where \rho>0 is a small absolute constant to be selected. Interpolate their estimates by the convex coefficients expressing \beta^+ between these endpoints, and sum over the current noncore ranks at child i. Call the result \widetilde f_i. The affinity in \beta and the relative endpoint estimates imply
Every noncore rank has p>3p_*/8, so (3.5) applies to it. Together with (3.17), this yields
For example, f_i^{\beta_v}-f_i^{\beta^+} =(\beta^+-\beta_v)\sum_{\mathrm{noncore}}g(p_{ia}) \le(\epsilon/\ell)f_i^{\beta_v}. If the true sum is zero then both endpoint estimates, and therefore the interpolated sum, are exactly zero, since all the functions have the same cutoff.
For a regular child, h_i\ge1 and the parameter gap gives
Choose an absolute 0<\lambda_b\le\min\{\gamma/4,\epsilon_b/4,1/4\}, and then choose \rho,\epsilon so small that the e in (3.26) is at most \lambda_b/4. Define
For a regular child the upper estimate is at most f_i^{\beta_v}, because e\le\lambda_b; the lower estimate is at least (1-(\lambda_b+e)/\ell)f_i^{\beta_v}, which dominates (3.27). For a dominant child, (1+\lambda_b/\ell)(1-e/\ell)\ge1, whereas (1+\lambda_b/\ell)(1+e/\ell)\le1+\epsilon_b/\ell. This proves the cap comparisons.
On the noncore range (3.5) also gives
The coarse tracker defining D therefore satisfies
These choices give the claimed c_D,C_D and show that their values precede all fine choices. The bound d_i\le C M_i follows from (3.13) and the relative estimates.
It remains to account for variation. Lemma 3.4 with tolerance \rho/\ell pays the summed variation of all endpoint estimates by C\ell E_v plus a fixed constant. On a non-wholesale step, \beta^+ and the dominant mark are unchanged, so their interpolation coefficients and the factors 1\pm\lambda_b/\ell are fixed. Changes of the noncore sets cost at most CK_t, as does the variation of n_i. An inactive child has zero true endpoint values and hence zero endpoint estimates; setting its cap to zero therefore adds no variation beyond the same term and flag changes. This proves (3.25). At a wholesale step, d_i^-+d_i^+\le C(a_i^-+a_i^+), including zero inactive values, and summing proves the remaining statement.
All the additive terms in this section arise from bounded potentials and bounded initialization charges for a fixed number of rank trackers. There are only k ranks per vertex of the fixed finite tree. The term trackers are never reinitialized when an epoch changes or a tree label reappears. Thus their total additive allowance is uniform over every law and horizon. The coarse allowance (3.21) and the fine allowance (3.25) are separate: only the former will be multiplied by the O(\ell) slopes of the next section’s potentials.
The remaining construction starts from the caps d_i and distributes the required reduction \bigl(\sum_i d_i-q_v\bigr)_+ between children. The star’s parameters, flags, and proportion trackers can all be updated from its own rank inputs before q_v is known. The actual allocations are then propagated from the root downwards.
4 Slow proportions with changing domains
We continue the construction at one fixed star v, using the parameters of Lemmas 3.5 and 3.6. The caps d_i will be reduced to fit the parent amount. This section constructs proportions for those reductions. The construction depends only on the star’s observed rank posteriors and held parameters; the parent amount q_v is not an input.
Write I for the active children, and extend all vectors by zero to the fixed set of children when comparing different times. Recall that B_i is the sum of the current rank probabilities over the core flags, S=\sum_i B_i, and inactive children have no core flags. If a dominant child o is marked, the other active children are called sides. For regular children and for a marked child with sides, respectively, the held parameters satisfy
The last assertion follows from e^{-h_i}\le a_i/A and the comparison of U with the side total. These facts hold throughout each epoch. When I is empty there is no proportion to choose. When I=\{o\}, we use \alpha_o=1, u=h_o=0, and no side vector. Both potentials below are then defined to be zero. In particular, we never evaluate a denominator with u=0.
4.1 Removal constraints and the simplex tracker
Fix a sufficiently small absolute c_t>0 and put \eta_i=c_t h_i/\ell. For a nonempty active domain we require
This is automatic on a singleton domain.
To see the role of the tolerance \eta_i, temporarily fix any parent amount q_v\ge L_v^{\beta_v}. Removing the excess R_0=(\sum_i d_i-q_v)_+ in proportions \alpha would give q_i=d_i-R_0\alpha_i. The cap bounds and superadditivity imply
where e_o=0 without a marked child. For S>0, a regular child’s removal is therefore at most (\beta_v+e_o/S)(1+\eta_i)B_i. The term \beta_v B_i is already allowed by the core decomposition L_i^{\beta_v}=n_i-\beta_v B_i+f_i^{\beta_v}. The parameter gap \beta_i-\beta_v pays the extra coefficient, provided S is at least a fixed multiple of the dominant flex mass, which is comparable to D. At the marked child the error e_o itself can be subtracted from its upper cap, since \alpha_o\le1.
When S is small relative to D, the ratio e_o/S need not be controlled. We then choose side removals \omega_i first and give the marked child the remaining parent amount, capped by d_o. Superadditivity bounds its uncapped remaining amount below by
It therefore suffices to bound the total signed shortfall of the side removals below \beta_v B_i by a small multiple of uD/\ell; the marked child’s flex slack pays this error. The removals must also stay below \beta_iB_i to preserve the side lower bounds. The side tracker below constructs w so that \omega_i=Dw_i has both properties. Section 5 verifies the two output rules, including their zero cases, and chooses between them by overlapping comparisons of S and D.
Near dominance also changes the simplex tracker itself. The marked child’s parameter gap can be only of order u/\ell, forcing \eta_o=c_tu/\ell. Its potential must remain effective as u\downarrow0; the different denominator below ensures this. We will also normalize its primitive at \alpha_o=1, so changing u costs in proportion to the side sizes rather than the full dominant size.
On every nonsingleton domain set, for y\ge0,
Lemma 4.1 (Uniform denominator estimates). For every nonsingleton domain above,
for every \alpha in its unit simplex. A summand at \alpha_i=0 means its continuous extension, which is zero. All constants are uniform as u tends to zero.
Proof. The regular integral equals 1. For the marked child, split at 1:
Since \log(1/u)=H-1 and \log(1+H/u)\le H-1+\log(1+H)\le2H, these bounds are absolute.
For the second assertion put y_i=\log(1/\alpha_i) at positive coordinates. If i is regular and y_i\le4h_i, its contribution is at most 25\alpha_i h_i. If y_i>4h_i, then h_i\ge1 and
Thus the regular tail is at most C without a marked child and at most Cu with one. Without a marked child, \sum_i\alpha_i h_i\ge1, which pays this tail.
With a marked child use the elementary inequality e^{-y}y(1+y)\le C(1-e^{-y}), valid for all y\ge0. It follows, including the endpoint \alpha_o=0, that
By (4.1), \sum_i\alpha_i h_i bounds this last expression up to an absolute factor. It also bounds u up to an absolute factor: its dominant contribution is \alpha_o u, and its side contribution is at least cH(1-\alpha_o)\ge cu(1-\alpha_o). This pays the regular tail and completes the proof.
For held parameters and a nonnegative vector B, with S=\sum_i B_i, define
The improper integrals at zero converge by y=\log(1/s) and Lemma 4.1. Consequently these functions extend continuously to the whole simplex. No convexity in \alpha is asserted or needed.
We record the bounds needed when parameters change. Uniformly in \alpha,
Here and below changing B also changes S to its sum. Indeed the coefficient of B_i in its own B_i/s integral is bounded by C\ell\int_0^\infty dy/F_i(y). The sum of the coefficients of S in the regular components has absolute value at most C\ell\sum_i\alpha_i\le C\ell, because F_i\ge h_i\ge1. The marked component’s S coefficient is bounded by C\ell\int_{\alpha_o}^1 ds/(sF_o(\log(1/s)))\le C\ell. This proves (4.6) without a factor depending on the number of active children.
The component bounds are
For the second bound, let L=\log(1/\alpha_o), allowing L=\infty. The change of variables in (4.5) gives
For 0\le y\le L, the absolute numerator is at most S(1-\alpha_o)+B_{\rm side}+\eta_o S. Since \eta_o=c_tu/\ell, Lemma 4.1 proves the bound. The base point 1 is responsible for this cancellation; it permits parameter changes to be charged to side sizes even when the dominant size is much larger.
Lemma 4.2 (Simplex update). Choose C_\alpha sufficiently large after fixing c_t. For any old vector \alpha^0 in the same simplex, a global minimizer
satisfies (4.2) and
The same assertions hold with the automatic singleton rule.
Proof. Continuity and compactness give a global minimizer, and comparison with \alpha^0 gives (4.9). If S=0, then every B_i=0, the potential vanishes identically, and feasibility is automatic. We may retain \alpha^0. Suppose henceforth that S>0 and the domain is nonsingleton. For a positive coordinate write
for the derivative of its primitive. If \alpha_i=0 and B_i>0, the inward derivative is -\infty: the negative term has size proportional to 1/(sF_i(\log(1/s))), which tends to infinity as s\downarrow0.
There must be a coordinate with derivative less than -2S, with this convention at zero. Otherwise all zero coordinates have B_i=0, and the inequalities \gamma_i\ge-2S give
There is a fixed bound \eta_i\le\eta_{\max}, so, with T_\alpha=\sum_i\alpha_i h_i,
The extra sum in (4.10) is at most CT_\alpha/(C_\alpha\ell) by (4.4). Choose C_\alpha so this is less than half the displayed deficit. Since T_\alpha>0 on every nonsingleton domain, this is a contradiction, however small u and T_\alpha may be.
If a coordinate violates (4.2), it is positive and has strictly positive primitive derivative. Transfer a small amount \varepsilon from it to a coordinate whose derivative is below -2S. These coordinates are distinct and the transfer stays in the simplex. The primitive sum decreases at a rate greater than 2S, whereas the movement penalty can increase by at most 2S\varepsilon. At a zero receiving coordinate the one-sided derivative -\infty gives the same strict improvement for sufficiently small \varepsilon. This contradicts global minimality and proves feasibility.
4.2 The side tracker
When a dominant child has sides, choose a sufficiently small absolute c_w>0 and define
Both numbers are positive. Fix an absolute C_w larger than 2\sup_i(\beta^++\theta_i), with an additional positive margin. The supremum is bounded absolutely by (4.1) and the fixed parameter interval. The side domain is w_i\ge0, \sum_iw_i\le C_w. We require
The total additive slack has the useful bound
With no sides, w is the zero vector and all these statements use empty sums. When no dominant child is marked, set D=0 for the sole purpose of writing the side movement term.
For fixed side parameters define
These potentials are continuous and affine in (B,D). For explicit bounds, set L_i=\log(1+w_i/z_i). Integration gives
Since a_i/A<1 for a side, h_i=1+\log(A/a_i), and therefore
Also 0\le z_iL_i\le w_i and 0\le w_i-z_iL_i\le w_i. It follows that
In the second line the coefficient of D is bounded by C\ell\sum_iw_i\le C\ell, and the coefficient of each B_i is bounded by C\ell. Thus no factor counts the sides.
Lemma 4.3 (Side update). Choose the absolute multiplier C'_w sufficiently large after fixing the small constants. For every old vector w^0 in the side domain, a global minimizer
satisfies (4.11), and
This holds for arbitrary nonnegative B,D with S=\sum_iB_i, without a requirement that they arise from ranks.
Proof. Compactness gives existence and comparison with w^0 gives the payment. Suppose first that D>0, and abbreviate b=\beta^+, \theta=\theta_i, z=z_i, and s=w_i. At an upper violation, B_i<Ds/(b+\theta). The numerator in (4.13) is consequently greater than
Because b+\theta has an absolute upper bound, a large C'_w makes the primitive derivative greater than 2D. The violating coordinate is positive and can be decreased while remaining in the side domain. The penalty changes by at most D times this decrease, a contradiction to minimality.
Having proved upper feasibility, assume S\le2D. Then
Thus every coordinate has room for a small increase. At a lower violation, B_i>D(s+\theta z)/b. Substitution makes the same numerator strictly less than
The derivative is therefore less than -2D when C'_w is large. Increasing this coordinate strictly improves the objective, again a contradiction. This proves the lower inequality.
If D=0, the upper inequality is automatic. The lower inequality is required only when S=0, in which case every B_i=0 and it too is automatic. The potential need not vanish when D=0<S, but minimization and its payment remain valid. If both D=S=0, the potential vanishes, and retaining the old side vector is allowed. The empty side domain consists of its unique zero vector.
4.3 Adaptive parameters and domains
The preceding updates will run at every step on which they are defined, regardless of which output rule is subsequently used. We now justify their total movement under all the changes from Section 3.
We use explicitly the following coarse charges, whose expected total is at most CE_v+D_v by (3.21): the number of changed core flags; the sum of old and new a_i at changed size coordinates; the old and new total active sizes at wholesale refreshes; the old and new side totals at changes of U; and |\Delta D| off wholesale steps. Here D_v is finite and may depend on the fixed star and k, but is independent of the input law and horizon. Absolute constants may absorb the fixed coarse tolerances. The finely tracked caps b_i are not arguments of either proportion potential.
Lemma 4.4 (Adaptive proportion movement). There is a causal update schedule satisfying (4.2) and (4.11) after every step, such that
Vectors are extended by zero to the fixed child set. The side term is zero without a dominant child. The simplex term includes the automatic singleton state; an empty active domain contributes zero. The finite constant D'_v is uniform in the law and horizon.
Proof. We give the schedule and its entire accounting. All comparisons below are made on a finite set of child and rank indices.
Filtering and drift precede every update decision. At the start of step t, hold the old proportion states, old parameters, old D, and old core flags. First evaluate the potentials with the filtered old hidden counts, and then with the new hidden counts under the new conditioning, still using those old flags and parameters. With these quantities held, each potential is affine in the rank probabilities: for G^w, its term linear in the held D is simply constant on these two legs. The signed expected filtering change is therefore zero. By (4.6) and (4.15), the absolute drift change is at most C\ell times the sum of absolute child-rank drifts. Summed over all steps, its expectation is at most C\ell E_v. These statements concern all steps before selecting any refresh or domain-change events.
Denote the input at the end of this evaluation by \overline B: it uses the final rank probabilities and the old flags. Thus \overline B_i\le n_i^{\rm old} even if filtering made the current ranks very different. We now compute the new flags, sizes, and all other held parameters by the rules already given.
Wholesale steps. At a wholesale step reinitialize the proportion domains, choose any vector in each new compact domain, and apply the appropriate minimizing updates; use the automatic rules for empty or singleton domains. The absolute old potential, evaluated at \overline B and old D, is at most C\ell times the old total active size. To see this for G^\alpha, sum (4.7) and use \sum_i\overline B_i\le\sum_i n_i^{\rm old}\le C\sum_i a_i^{\rm old}. For G^w, use (4.15), \|w\|_1\le C_w, and D^{\rm old}\le C\sum_i a_i^{\rm old}. The new potential is bounded by the corresponding new total. Thus the entire potential jump at this step is bounded by its coarse wholesale charge times C\ell. No movement at this step is included in (4.18).
Preparing a non-wholesale domain change. On a non-wholesale step A, \beta^+, and the presence and identity of the dominant mark are fixed. Empty/nonempty active transitions are wholesale, and a marked dominant coordinate cannot disappear within its epoch. Let I^- and I^+ be the old and new active domains. Define the synthetic input on the fixed child set by
If K_t is the number of changed core flags, then
For common indices, the first discrepancy is just the sum over changed flags, and each rank probability lies in [0,1]. For an index leaving the active domain, all its new flags are zero, so every old flag there is changed. For an entering index, all its old flags were zero, so every new flag there is changed. These observations prove all three bounds.
Replace \overline B by B^* and old D by D^{\rm new}, holding the old domains and their other parameters. The input slope bounds charge this potential change to C\ell(K_t+|D^{\rm new}-D^{\rm old}|). Run the minimizing updates on the old domains with inputs (B^*,S^*,D^{\rm new}). Denote the resulting vectors by \alpha^1,w^1. Lemmas 4.2 and 4.3 apply because their feasibility proofs use only nonnegativity of these inputs and the held parameter bounds. They pay
by decreases of the respective potentials.
Next delete departing coordinates and insert zero coordinates at entering indices. If S^*>0, a departing coordinate has B_i^*=0, so (4.2) forces \alpha_i^1=0. Deletion and zero insertion then preserve the simplex and cause no movement. If S^*=0, every B_i^*=0, the alpha potential is zero, and we may redistribute the simplex mass to any vector in the new nonempty domain at zero weighted cost. If D^{\rm new}>0, the upper inequality in (4.11) forces w_i^1=0 at each departing side. If D^{\rm new}=0, deletion of side coordinates has zero weighted cost, and their primitive components vanish because B_i^*=D^{\rm new}=0 there. Inserting a coordinate at zero always gives zero component potential. Write \alpha^2,w^2 for the vectors on the new domains after this operation.
Changing the held parameters. Continue to use B^* and D^{\rm new}. At common regular coordinates the prepared state satisfies
The assertions also hold at inserted zero coordinates, and at S^*=0 or D^{\rm new}=0 with the evident zero left side. The regular parameters h_i,\eta_i,F_i and, on sides, \theta_i,z_i change only if a_i changes. Bound the absolute old and new component values using (4.7), (4.15), and (4.22). Their jump is at most C\ell B_i^*\le C\ell n_i^{\rm new}\le C\ell a_i^{\rm new}, which is paid by the old-plus-new size charge at that coordinate. Departing and inserted components have already been seen to give zero extra jump.
For a change in u, the prepared alpha vector satisfies
The first inequality follows by summing prepared side feasibility when S^*>0 and is automatic when S^*=0; the last uses the new core-size bound and the epoch comparison of total size with A. Applying the dominant component bound on both sides of the parameter change shows that its jump is at most
This is a side-total charge, not a dominant-size charge. It includes the appearance of the first side or disappearance of the last side. To spell out these endpoints, on a singleton domain the potential is zero. If S^*>0, preparation forces all mass onto o when the common side input is zero, and the dominant primitive at \alpha_o=1 is zero. If S^*=0, the whole alpha potential is zero. Thus assigning the singleton potential to be zero is compatible with the estimates on both sides of either transition. The side vector on an empty side domain is its unique zero vector.
The final update and its movement weight. With the new domains and parameters now installed, replace B^* by B^{\rm new}, paying at most C\ell K_t by (4.20) and the input slope bounds. Run the two minimizing updates once more, now starting at \alpha^2,w^2 and using the final inputs. This pays S^{\rm new}\|\alpha^{\rm new}-\alpha^2\|_1 and D^{\rm new}\|w^{\rm new}-w^2\|_1.
The triangle inequality converts these payments to the differences between the final and old states. The alpha vectors at all these substeps have norm one, hence any two are at distance at most two. The domain-transition movement has weight zero at S^*. Writing \delta=S^{\rm new}-S^*\ge0, we obtain
The first error is at most 4K_t. The second inequality needs no change of weight, since both side updates used D^{\rm new}. These statements also cover zero weights and singleton states.
Telescoping and uniformity. Let \mathcal G_t=G_t^\alpha+G_t^w after the final update. On non-wholesale steps the sum of the paid minimizing movements is at most \mathcal G_{t-1}-\mathcal G_t, plus the signed old-parameter filtering/drift change and the parameter/input charges just listed. On wholesale steps the same inequality holds with no movement term and with the wholesale charge. Summing over all steps retains the zero expected filtering sum; it does not condition that assertion on an adaptively selected subset of steps. Expected drift costs at most C\ell E_v, and all remaining changes cost at most C\ell times the coarse charges. Equation (4.23) therefore gives (4.18), apart from the initial and terminal potential magnitudes.
Those magnitudes have a uniform finite bound. At a valid state, \sum_iB_i\le\sum_i n_i\le Ck, D\le Ck, \|\alpha\|_1\le1, and \|w\|_1\le C_w. The component bounds give |\mathcal G_t|\le C\ell k, including arbitrarily small positive u. Only the fixed collection of rank and parameter trackers contributes the other finite initialization allowances. Their states persist through all epochs and inactive intervals; no new allowance is assigned when a label or coordinate returns. Thus D'_v is independent of the number of steps, histories, refreshes, and domain changes. The schedule uses only current observed posteriors and prior states. Global minimizers can be selected by fixed tie-breaking on the compact finite-dimensional domains, so it is causal.
5 Feasible outputs and completion of the allocation bound
The proportion vectors now satisfy the constraints needed for the two removal rules described in Section 4. We define the outputs, choose the absolute constants that preserve every child’s lower bound, and prove their movement estimate. A hysteresis rule will keep changes between the two formulas within the same movement budget.
All notation in this section is local to a star with parent v, unless a sum over stars is displayed. In particular, S=\sum_i B_i, d_i=n_i+b_i, and T=f_o^{\beta_v} when a dominant child o exists. Inactive coordinates, including their caps and outputs, are zero. We extend proportion vectors by zero to the fixed child set when comparing two times. A marked child persists throughout its epoch; changes of its identity, and transitions between empty and nonempty active sets, occur only at wholesale steps.
5.1 The output rules and the choice of constants
The local data and proportion updates of Sections 3 and 4 do not use the current parent allocation. Perform all of those updates first. Once q_v has been obtained in the top-down traversal, put
If there is no active child, put every child output equal to zero. Otherwise there are two possible rules:
Rule II is defined only when a dominant child exists. With no dominant child we always use Rule I. With a dominant child, the allowed ranges are
At initialization and after a wholesale refresh, choose either rule in its allowed range, with a fixed tie rule. On other steps retain the old rule unless it leaves its allowed range. Thus an I-to-II switch occurs only at S<D/2, and an II-to-I switch only at S>2D. The ranges cover all S,D\ge0, including S=D=0.
We specify the dependencies among the absolute constants before verifying these formulas. The rank functions, coarse size tolerances, and parameter gaps give fixed constants
where the last comparison includes the assertion that D and T vanish together. Write c_g for the constant in (3.22). At noncore ranks the parameter derivative is bounded below by a fixed positive multiple of the rank function. Consequently there is an absolute c_s>0 such that, for a dominant child,
Indeed the core contribution to this difference is (\beta_o-\beta_v)B_o\ge0. Affinity in the parameter and the derivative comparison give f_o^{\beta_v}-f_o^{\beta_o} \ge c_f(\beta_o-\beta_v)f_o^{\beta_v}, and the gap is at least c_g u/\ell. This proof also covers T=0 and u=0.
Let C_z be an absolute constant for which (4.12) reads \sum_{i\ne o}\theta_i z_i\le C_z c_wu/\ell. Choose c_t,c_w,\epsilon_b>0 so small that
These choices involve only previously fixed absolute constants. Next choose the cap margin \lambda_b, the parameter error \epsilon, and the fine tracking tolerance \rho as in Lemma 3.6, decreasing \epsilon further so that \epsilon\le c_g/4. It follows that every side satisfies
Here h_i\ge1 on regular coordinates. The cap proof permits arbitrarily small final choices of \epsilon,\rho after \lambda_b is fixed. The bounded-domain constant C_w and the potential multipliers in Section 4 may now be taken sufficiently large. For instance the required bound on C_w uses only \beta^++\theta_i\le\beta_{\max}+1. This order fixes every local constant independently of k, the degree, the depth, and the separation ratio \tau. We choose \tau only after proving the local movement estimate.
Lemma 5.1 (Feasibility of the outputs). Suppose q_v\ge L_v^{\beta_v}. The selected output rule satisfies
with an absolute constant C. In particular every child output is nonnegative. The conclusions include empty active sets, empty side sets, and vanishing values of S,D,T.
Proof. Superadditivity at the single parameter \beta_v gives
Inactive children have no core ranks and no positive lower-bound terms, so their required lower bounds and their outputs are both zero. For active children, expand L_i^{\beta_v}=n_i-\beta_vB_i+f_i^{\beta_v}. Set e_o=b_o-T when a dominant child exists, and e_o=0 otherwise. Lemma 3.6 implies
To obtain the second inequality, subtract (5.8) from \sum_i d_i: regular flex caps contribute nonpositive errors, and only the dominant cap can contribute the error e_o.
First consider Rule I with S>0. If there is a dominant child, (5.4) and D\ge c_DT give
The same bound on the error holds with error zero when there is no dominant child. At a regular child, (4.2) and (5.9) yield
By \eta_i=c_th_i/\ell, \eta_i\le1, and (5.6),
Thus R_0\alpha_i\le\beta_iB_i, and the lower cap bound gives q_i\ge n_i-\beta_iB_i+f_i^{\beta_i}=L_i^{\beta_i}. For the dominant coordinate use \alpha_o\le1 on the error term:
Here h_o=u, so the same small choice of c_t works even for arbitrarily small positive u, and gives equality in the relevant error when u=0. Since b_o-e_o=T\ge f_o^{\beta_o}, this proves the dominant lower bound as well.
If S=0 in Rule I, the presence of a dominant child forces D=0 by its allowed range, and therefore T=e_o=0. Without a dominant child the error is zero by definition. In either case (5.9) gives R_0=0, so no division by S is used: the outputs are their caps. At regular children the cap lower bound suffices, and at the dominant child B_o=T=0 gives the claim. For any nonempty active set, the simplex identity gives
Every hole is nonnegative, so q_i\le d_i; the proved lower bound ensures nonnegativity.
Now consider Rule II. Its side holes satisfy, by (4.11) and (5.7),
The side lower bounds follow from b_i\ge f_i^{\beta_i}, exactly by subtracting these holes from n_i+b_i. Write q_o^{\mathrm{rem}}=q_v-\sum_{i\ne o}(d_i-Dw_i) for the uncapped remaining amount. The upper flex caps on the sides and (5.8) imply
The second line uses the lower inequality of (4.11), which applies because Rule II has S\le2D, together with \beta^+\ge\beta_v. The last line uses (5.5) and (5.6). Independently, d_o=n_o+b_o\ge n_o+f_o^{\beta_o}\ge L_o^{\beta_o}. Taking the smaller of these two admissible dominant amounts preserves its lower bound. It also gives the parent budget and the upper cap.
For completeness, when D=0 in Rule II its range forces S=0, and the comparison with T forces T=0. All side holes vanish and (5.9) gives R_0=0; thus the dominant cap also fits within the remaining budget. When there are no sides, u=0, the side sums are empty, and both rules simply give q_o=\min\{d_o,q_v\}. No side denominator or proportion is needed in this case. An empty active set was already assigned zero outputs. Finally the cap estimate d_i\le CM_i, together with M_i\le m_i, proves the claimed domination in every case.
5.2 Paying for changes of rule
We next bound the cost of the hysteresis rule without assuming that the absolute variation of the posterior sum S is small. Fix a finite horizon and let \mathcal W_v be the wholesale steps for this star. The coarse charge C_{v,t} in (3.21) pays core-flag changes, the variation of D, and, on wholesale steps, the old plus new active size totals. All of its coefficients are absolute. Define the switch charge
There is a fixed finite constant D_v^{\mathrm{sw}}, independent of the hidden-process law and horizon, for which
Here is the full potential accounting for this claim. At the end of a step use
Start every step by holding the old rule, mark, flags, and D fixed. On this frozen state, the filtering change of \Psi_v is either zero or the filtering change of the sum of the old flagged rank posteriors. Write F_{v,t} for this signed change. The tower property gives
On the subsequent drift leg, still with those old data fixed, the increase is at most the sum of the absolute child-rank drifts at that step. Denote this nonnegative sum by e_{v,t}; it has \E\sum_t e_{v,t}\le E_v.
On a non-wholesale step, changing the core flags changes the old-rule potential by at most the number of changed flags, since each current rank posterior lies in [0,1]. Updating D changes it by at most |\Delta D|. The other local updates leave this potential unchanged. With the new inputs now in place, an I-to-II switch changes the potential from D_t to S_t<D_t/2, a drop of at least D_t/2. An II-to-I switch changes it from S_t to D_t<S_t/2, a drop of at least S_t/2.
On a wholesale step we do not claim switch credit. The old frozen value of S, even after filtering and drift, is at most the old number of core flags, and that number is bounded by a constant times the old active size total. The old held D has the same size bound. The newly chosen potential is likewise bounded by a constant times the new active size total. Thus the entire reset of this potential costs at most C C_{v,t}. We obtain on every step the single inequality
Importantly, F_{v,t} is included on every step before the wholesale and switch tests; it is never multiplied by the indicator of an event chosen from the new posteriors. Taking expectations, summing, and using \Psi_v(t)\ge0 gives (5.12) from (3.21). The initial value is at most Ck, uniformly over valid states. This proves the asserted independence of law and horizon for this additional constant.
5.3 The local movement estimate
Lemma 5.2 (Movement on a star). For the outputs above and a fixed star v, there is a finite D_v^{\mathrm{out}}, depending only on its fixed finite structure and k, such that
Here C_{\mathrm{par}} and C are absolute, independent of k, degree, depth, and \tau. In fact the output estimates below allow C_{\mathrm{par}}=1.
Proof. Compare the vectors of holes \zeta_i=d_i-q_i, adding cap variation at the end. By Lemma 5.1 these vectors are nonnegative. In Rule I one has
In Rule II let \omega_i=Dw_i on the sides and W_{\mathrm{side}}=\sum_{i\ne o}\omega_i. The definition of the dominant output gives the exact identities
Indeed before replacing the signed excess by its positive part the dominant hole equals (\sum_i d_i-q_v-W_{\mathrm{side}})_+, and W_{\mathrm{side}}\ge0 allows that replacement. These identities remain valid when D, S, or the side set vanishes.
Suppress the time index and use superscripts -,+ for old and new step-end values. On a non-wholesale step the dominant mark, if any, is the same at both times. First suppose both times use Rule I and the active sets are nonempty. Adding and subtracting R_0^+\alpha^-, and using \|\alpha^-\|_1=1, gives
The last bound follows from (5.9) and (5.10), with the zero case proved in Lemma 5.1. If the active sets are empty at both times the hole change is zero. A change between empty and nonempty is wholesale and is treated below.
If both times use Rule II, the positive-part map is 1-Lipschitz, so (5.18) gives
For the first line, the change in the side-hole total is at most \|\Delta\omega\|_1; the other copy is the change of the side vector itself. For the second, use \Delta(Dw)=D^+\Delta w+(\Delta D)w^- and \|w^-\|_1\le C_w. Inserting or deleting a side causes no extra term because these vectors have been extended by zero.
At an I-to-II switch, S^+<D^+/2, so (5.9) and T^+\le D^+/c_D show R_0^+\le C D^+. The new hole total is at most \max\{R_0^+,C_wD^+\}\le C D^+. The old total is R_0^-, which is at most R_0^++|\Delta R_0|. Nonnegativity of the two hole vectors therefore yields
At an II-to-I switch, S^+>2D^+, whence D^+\le S^+/2 and R_0^+\le C S^+. The old total is at most R_0^-+C_wD^-, while the new total is R_0^+. Using R_0^-\le R_0^++|\Delta R_0| and D^-\le D^++|\Delta D| gives
These two arguments bound the full change across a switch without requiring the unused rule to have held at the preceding inputs.
Finally, positive part is 1-Lipschitz in (5.1), and therefore
Combining all the non-wholesale cases gives one useful pointwise bound, with a single copy of the parent movement:
Only defined tracker terms are included. In particular they are zero for an empty active set, and the side term is zero without sides or a dominant child.
At a wholesale step use the actual output domination directly:
There is no per-child or per-epoch initialization charge here; the sum of sizes is exactly the wholesale quantity already paid. Take expectations and sum (5.25) over non-wholesale steps and (5.26) over wholesale steps. The fine cap budget (3.25), the proportion budget (4.18), the coarse budget (3.21), and (5.12) give (5.16). Cap movement is added once; it is never used as an input to a potential having an O(\ell) input slope. The coefficient of the parent variation in (5.25) is one, which proves the claimed absolute bound on C_{\mathrm{par}}.
5.4 Uniform initialization and the tree sum
We record why the finite constants just used are uniform over laws and horizons. For a fixed star there are finitely many rank trackers, namely k ranks per child and the ranks used at the parent. Each elementary reference potential is p(1-p)+(p-p^\circ)^2 with p,p^\circ\in[0,1], and hence has a fixed bounded range. Its tracking tolerance is fixed once k is fixed. This bounds all initial and terminal reference allowances uniformly over the posteriors. Superadditivity gives \sum_i M_i\le k; active size totals and core counts are at most Ck, and D\le Ck. The coarse refresh accounting thus has a uniform finite initialization allowance as well.
For the proportion potentials, \|\alpha\|_1=1 and \|w\|_1\le C_w. The regular component estimates in Section 4 sum to C\ell k, and the dominant component estimate has that same bound uniformly as u tends to zero. The side-potential components sum to C\ell(D\|w\|_1+S)\le C\ell k. Their signed terminal values therefore have a uniform finite lower bound, as required for their telescopes. The switch potential is nonnegative and bounded by Ck. These bounds use finitely many fixed tracker coordinates and one pair of endpoints for each telescope, never the number of histories, requests, or epochs. Wholesale reinitializations are paid jumps within those same telescopes. Trackers remain attached to the fixed vertices even while their coordinates are inactive; reusing a vertex label never creates a new unpaid endpoint allowance.
Initialize the star data at time zero with the stated tracking rules, run the proportion minimizations, and choose a valid regime. Set q_{\rm root}=k and propagate the outputs top down. The root has L_{\rm root}^{\beta_{\rm root}}=k, since its hidden count is always k. Lemma 5.1 therefore proves by induction, at initialization and after each step,
for one absolute C_0, enlarging it to cover the root. At the required leaf x, its hidden count is at least one almost surely under the current posterior. Hence p_{x1}=0, l^{\beta_x}(0)=1, and q_x\ge1. All choices have used only the observed history and its conditional laws.
It remains to sum the movement estimate. Multiply (5.16) for an internal vertex v by r_{|v|}, and sum over the fixed finite tree. Every nonroot vertex appears exactly once as a child, with weight r_{|v|-1}, so the left-hand side is the quantity V in Theorem 3.1. The root has no movement. At every other internal vertex the parent term has weight r_{|v|}=r_{|v|-1}/\tau. Thus
The rank-drift coupling (3.4) bounds the middle sum by 6P, uniformly for \tau\ge2. Choose any absolute \tau\ge\max\{2,2C_{\mathrm{par}}\}; it may be enlarged later to meet the independent rounding requirement. Absorbing the first term yields
The constants multiplying movement have no dependence on the depth, degree, number of leaves, or k. The finite additive constant may depend on the fixed tree, its radii, and k, but the uniform endpoint bounds above show that it is independent of the law and horizon. This proves Theorem 3.1.
6 A compact potential for partition edits
The partitions change with the posterior counting measure. We will pay their edits by decreases of a potential, so we must first bound its increases when a comparator member moves. A Lipschitz estimate at each scale would charge the same movement once per level. The improvement comes from local concentration: when almost all nearby mass lies close to the request, a minimizing integrand has a much smaller positive slope there. The errors in this slope estimate sum to one logarithm through ball-mass ratios.
The potential is a minimum of linear functions of the measure. This makes filtering inexpensive by concavity. To control physical movement, we analyze the minimizing functions themselves: concentration forces an auxiliary site of nearly unit weight near the request, and relocating that site bounds its displacement. These two properties give the required slope estimate.
We use the true-metric measures from Section 2. Thus, after the new request x has been revealed,
and both counting measures have total mass k. The radii are r_j=r_0\tau^{-j}, 1\le j\le J, with \tau\ge2. The expectation of the sum of the quantities e_x is Q.
6.1 The finite-dimensional minimization
A template consists of fixed numbers 0<\sigma\le1, R\ge256, and L\ge0. Put
All distances in the definitions of the following scalar functions are dimensionless:
In particular, b is one on [0,\sigma] and zero on [2\sigma,\infty); a is one on [\sigma,R]; and G is zero on [0,D_*] and one on [2D_*,\infty). Their Lipschitz constants are, respectively, 1/\sigma, at most 2/\sigma, and 1/D_*. At radius r abbreviate a_s(p)=a(d(s,p)/r), and use the same convention for b_s,G_s.
Let \mathcal Z_r be the set of vectors z=(z_s)_{s\in Y} satisfying
Here (u)_+=\max\{u,0\}. For g:Y\to[0,1] with r\Lip(g)\le L, define
The two terms in F_z^g favor a site near concentrated mass. A site at s cancels part of the residual cost inside B(s,\sigma r), while its surcharge grows quadratically with distance from s until that distance reaches \sigma r. The large surcharge makes a site at intermediate distance from a concentration expensive. The factors involving g allow a partition edit to lower the contribution of a site near the request. We will measure that decrease using the old minimizing site vector, with g chosen from the partition structures.
The site vector is an auxiliary object, with no prescribed total weight. Its capacity constraints bound the total weight of nearby sites by one. The gradual cutoff G will let us move a site and repair those constraints by reducing neighboring weights. The separation condition has a different role: it makes the positive supports of the residual bumps b_s disjoint, so that this repair has a cost independent of the number of sites. The template superscript on \mathcal L_r is suppressed when it is fixed.
Lemma 6.1 (Compactness, concavity, and uniform bounds). For every nonnegative measure \mu on the finite space Y, the minimum in (6.5) exists. For fixed g, the function \mu\mapsto\mathcal L_r(\mu,g) is concave, and
Every feasible integrand satisfies
Moreover, the positive supports of the functions b_s with z_s>0 are pairwise disjoint.
Proof. Testing capacity at p=s gives 0\le z_s\le1. For each pair with d(s,s')<5\sigma r, the separation condition is exactly the closed equation z_sz_{s'}=0. Thus \mathcal Z_r is a closed subset of the finite cube [0,1]^Y, containing zero. It is compact, and the objective is continuous. Although this set need not be convex, a minimum therefore exists.
At every point p, the weights of all centers in B(p,D_*r) sum to at most one, because G_s(p)=0 there. Every center contributing to a_s(p) or b_s(p) lies in that ball. It follows that
These inequalities give the bound 514=2+512 for the integrand, its nonnegativity, and the lower bound in (6.6). Taking z=0 gives the upper bound for the minimum.
If d(p,q)\le r, every center contributing at either endpoint belongs to B(p,(2R+1)r)\subset B(p,D_*r), so all its weights together sum to at most one. The residual term in (6.4) consequently has Lipschitz bound (L+2/\sigma)/r, and the surcharge term has bound 1024/(\sigma r). If d(p,q)>r, the bound 514 on the range already implies the claimed Lipschitz bound, since \Lambda\ge1026. Finally, if b_s(p) and b_{s'}(p) are both positive, then d(s,s')<4\sigma r, contrary to separation for two positive weights.
For nonnegative measures \mu_0,\mu_1 and 0\le\theta\le1, every feasible z satisfies
Taking the minimum proves concavity. Convexity of \mathcal Z_r was not used.
6.2 The three local optimality estimates
Fix, for this template, constants satisfying
They may be decreased for the applications below. For a point x and a measure \mu with M:=\mu(B(x,\gamma r))>0, write
In particular 0\le t\le\gamma. The shell ratio h measures mass outside the inner ball, whereas t measures how tightly the inner mass is centered at x. Both errors matter: even when h=0, the mass in the inner ball need not lie at x. In this subsection h denotes only the shell ratio, not a partition tier.
Lemma 6.2 (Local structure and positive slope). Assume h\le\delta, and let z be any minimizer in (6.5). Then the following assertions hold.
- 1.
A center s with \sigma r/4\le d(s,x)\le Rr/2 has z_s=0.
- 2.
There is a unique positive center s with d(s,x)<\sigma r/4. Its weight z_s and normalized displacement w=d(s,x)/r satisfy
z_s\ge\tfrac34,\qquad 1-z_s\le\frac{512\gamma}{\sigma^2}t+514h, \qquad w\le(5+L)(h+t). \tag{6.10} - 3.
If d(x,y)<\sigma r/8, then
[F_z^g(x)-F_z^g(y)]_+ \le C_{\mathrm{loc}}(h+t)\frac{d(x,y)}r, \tag{6.11}where one admissible constant is
C_{\mathrm{loc}} =(L+1024/\sigma)(514+8/\sigma) +\frac{1024(5+L)}{\sigma^2}. \tag{6.12}
Proof. We perform the calculations in units of r; integrals of F therefore omit the common factor r in the potential.
Deleting a middle-distance site. For \sigma/4\le d(s,x)/r\le R/2 and p\in B(x,\gamma r), the distance d(s,p)/r is at least \sigma/4-\gamma and less than R. Consequently
The support of b_s is inside B(x,D_1r). The coefficient of z_s in the integral objective is therefore at least
Decreasing a weight preserves both constraints in (6.3). A positive such weight would contradict minimality, proving the first assertion.
Inserting a unit site. Clear all weights at centers in B(x,5D_*r), and put weight one at x. Separation holds, since every retained center is farther than 5D_*r. To check capacity, consider a test point p where the new site’s contribution is positive. Then d(p,x)<2D_*r. Every old center contributing positively at that test satisfies d(s',p)<2D_*r, because z_{s'}\le1 and G_{s'}(p)<z_{s'}. Such a center lies in B(x,4D_*r) and has been cleared. The single new contribution is at most one. At other tests the new site contributes zero and weights have only been removed. Thus the competitor is feasible.
There is at most one positive old site within \sigma r/4 of x by separation; denote its weight by Z, taking Z=0 if it does not exist. On the entire inner ball its b value is one. Every other positive site has distance greater than Rr/2 from x by the first assertion, so its b value is zero on the inner ball. The old residual is thus 1-Z there, and the old integrand is at least 1-Z. The new integrand there is at most 512(d(x,p)/r)^2/\sigma^2, whose integral is at most 512M\gamma t/\sigma^2.
All changed bumps are supported in B(x,(5D_*+2R)r)\subset B(x,D_1r). Outside the inner ball the increase is at most 514 pointwise, by Lemma 6.1. Minimality of the old vector gives
Here both last summands are at most 1/8 by (6.8). This proves existence, uniqueness, the weight bound, and the deficit bound in (6.10).
Relocating that site and repairing capacity. Write s for this near site and z=z_s. The case w=0 already has the desired displacement bound. For w>0, move its weight from s to x. Simultaneously replace every other weight z_i with center in B(x,5D_*r) by (z_i-q)_+, where
If s\ne x, the old weight at x is zero by the just-proved uniqueness. Every other positive center lies beyond Rr/2 from x, so the moved site preserves separation.
For a capacity test p, put
When A'\le A, capacity can only improve. Otherwise A'>0, and A'-A\le q by the Lipschitz constant of G. The same distance calculation as above puts every center contributing to B within 4D_*r of x, hence among the reduced centers. If b_i=(z_i-G_i(p))_+, its contribution decreases by exactly \min\{q,b_i\}. For any nonnegative finite family (b_i),
Indeed, a summand with b_i\ge q proves the inequality immediately; if none exists, the left side is \sum_i b_i. If B\ge q, the reductions pay the increase A'-A. If B<q, all the other contributions vanish and the remaining contribution satisfies A'\le z\le1. This verifies every capacity test, with no dependence on the number of sites.
For p in the inner ball put u=d(s,p)/r and v=d(x,p)/r. Both are less than \sigma, so the moved site’s old and new a values are u^2/\sigma^2 and v^2/\sigma^2. The triangle inequality gives u^2\ge w^2-2wv+v^2: if v\le w, square u\ge w-v; if v>w, the right side (w-v)^2 follows from u\ge v-w. Consequently, using L\gamma\le1,
The near site’s b value stays one there; all other b values stay zero; and reducing other weights can only lower their surcharges. The integral gain on the inner ball is therefore at least
For completeness, the pointwise loss outside the inner ball has a bound proportional to w, rather than a constant per changed site. Moving the near site’s center changes its residual contribution by at most 2zw/\sigma, and its surcharge by at most 256z(4/\sigma+L)w. Thus its total increase is at most zK_0w, where
The reduction of other weights can only increase the residual. Since their positive b supports are disjoint, the residual increase is at most 2q at every point. All changes vanish outside B(x,(5D_*+2R)r). The shell loss is therefore at most Mh(zK_0+2/D_*)w. Combining this with (6.15) and minimality, and dividing by the positive quantity 256zMw/\sigma^2, gives
For the middle inequality, use z\ge1/2, \sigma\le1, D_*\ge2560, and 1026/256+4/(256D_*)<5. This proves the last local structural estimate.
Positive slope at the request. Put v=d(x,y)/r<\sigma/8. The near site’s b is one at both points, and all other positive sites have b=0 at both points. The residual part of F_z^g(x)-F_z^g(y) is consequently at most L(1-z)v. Writing u=d(s,y)/r, the near-site surcharge difference has positive part at most
because (w^2-u^2)_+\le2w|w-u|. Every other center contributing an a value at either endpoint is within (2R+\sigma/8)r<D_*r of x. Capacity at x, including the near site, bounds the total of these other weights by 1-z. Their surcharge difference has absolute value at most 1024(1-z)v/\sigma. Altogether,
Finally (6.13) and \gamma\le\sigma/64 give 1-z\le(514+8/\sigma)(h+t), and the displacement bound proves (6.11) with the stated constant.
6.3 Summing the drift over scales
Lemma 6.3 (Pilot drift bound). Fix a template and constants as in (6.8). At each radius let g_j be any function with 0\le g_j\le1 and r_j\Lip(g_j)\le L. For measures satisfying (6.1),
The constant is independent of Y, k, J, and \tau\ge2. For example, set
Proof. Let z^{(j)} minimize the old objective at radius r_j and write F_j=F_{z^{(j)}}^{g_j}. Evaluating the new minimum at this vector yields
If e_x=0, the probability measure \nu is supported at x and the two counting measures agree. Assume henceforth e_x>0.
The radii smaller than 2e_x/\gamma contribute at most
by \tau\ge2 and (6.7). At every remaining radius, domination by \mu^- and the definition of e_x give
This is a consecutive range of coarse radii. Define h_j,t_j there as in (6.9) with \mu=\mu^-.
We record both scale sums explicitly. Set A_j=\mu^-(B(x,D_1r_j))=(1+h_j)M_j. For u\ge0,
For 0\le u\le1 this follows from the chord between the endpoint values of the concave function \log(1+u), and for u\ge1 it follows from monotonicity. Since \tau^{p_0}\gamma\ge D_1, the mass A_j is at most M_{j-p_0} whenever that coarser index is in the range. Assigning the value k to missing coarser masses gives
All interior logarithms cancel; at most p_0 boundary differences remain, each between masses in [1/2,k]. This is also the instance of Lemma 2.3 needed here. Thus
For the moment sum only, order the same radii increasingly as \rho_1<\cdots<\rho_n, with \rho_{i+1}=\tau\rho_i, and set m_i=\mu^-(B(x,\gamma\rho_i)), m_0=0, and \Delta_i=m_i-m_{i-1}. Partitioning the jth inner ball into the successive differences of these balls gives
The first difference includes the entire first ball; hence this bound also accounts for any atom already inside that ball. Since m_j\ge m_i for j\ge i, interchanging two finite sums gives
Indeed the first ratio \Delta_1/m_1 is one, and, for i\ge2, \Delta_i/m_i\le\int_{m_{i-1}}^{m_i}du/u. Empty scale ranges require no estimate.
Call a remaining radius bad if h_j>\delta. Because \delta<1, (6.22) bounds the number of bad radii by p_0\log(2k)/(\delta\log2). The global Lipschitz bound gives at most \Lambda e_x in (6.18) at each one. At a good radius apply Lemma 6.2 to points with d(x,y)<\sigma r_j/8. Their total contribution, summed over good radii and integrated against \nu, is at most
Here h_j=\min\{1,h_j\} on good radii. For each fixed exceptional point y, with d(x,y)\ge\sigma r_j/8, use boundedness instead:
Integrating proves that all exceptional terms together cost at most 8224e_x/\sigma. This bound has no factor counting scales. Combining the estimates, using 1+\log(2k)\le2\ell and \ell\ge1, gives precisely (6.16) with (6.17).
6.4 Filtering before selecting edits
The following formulation will allow both heavy-center edits and the summably weighted tier edits to use the same drift budget. It also fixes the order of conditioning: the filtering estimate is applied at every step with the old coefficients, before selecting any edits.
Corollary 6.4 (Budget for summably weighted templates). Let templates be indexed by a finite or countable set I, with fixed weights \omega_\alpha\ge0. Each template has fixed admissible parameters and the drift constant C_{\mathrm{dr},\alpha} of Lemma 6.3. Assume
At each step, filter and drift the counting measure while keeping the previous functions g_{\alpha,j} fixed. Then edit these functions using the new history, retaining their template bounds. Suppose the weighted total potential drop in the edit stage is at least a nonnegative charge c_t, taking c_t=0 on steps without edits. Then
In particular, if A,B are absolute constants, the multiplicative budget is O(\ell Q) and the additive bound is independent of the input law and horizon.
Proof. Let \mu_{t-1} be the previous post-step posterior counting measure. The posterior identity is
For every old, \mathcal F_{t-1}-measurable function g=g_{t-1,\alpha,j}, concavity gives
One can see this directly without any assumption on convexity of site vectors: choose a minimizing vector at \mu_{t-1}, use it as a competitor for each refined posterior, and take its conditional expectation. Its objective is linear in the measure and therefore returns exactly the old objective.
Write \Phi_{t-1} for the weighted total potential after the preceding step, \Phi_t^- for its value after filtering at old g’s, and \widehat\Phi_t for its value after drift, still at old g’s. Write \Phi_t for its value after the edits. The three established bounds are
All these potentials are nonnegative and at most 2kA\sum_jr_j. The same statements hold for a countable family: finite partial sums give the filtering inequality by convergence of nonnegative bounded sums, and the absolute bound by 2kr_j\omega_\alpha for each potential makes the signed differences summable. The drift bound sums because its weighted constants sum to B.
Taking expectations, summing in t, and using \E\sum_t e_x=Q proves \E\sum_t c_t\le B\ell Q+\E\Phi_0-\E\Phi_T. Dropping the nonnegative terminal value and applying (6.6) yields (6.25). In particular, (6.26) was summed over all steps. It was never conditioned on the event that a later edit was selected.
For use in verifying the edit hypothesis, if z is an old minimizer at the already updated measure \mu^+, then
Thus the next section only needs a lower bound on the gain of the old candidate. In the tier application the template is fixed across tiers and \omega_h=e^{-h} for h=1,2,4,\ldots. Since these tiers form a subset of the positive integers, \sum_h e^{-h}\le\sum_{n\ge1}e^{-n}=1/(e-1), so both constants in Corollary 6.4 are bounded independently of the number of tiers.
7 Online partitions and the embedded comparator
Probabilistic tree embeddings use scale partitions to represent a metric [4, 5, 15]. Local ball-mass ratios and their logarithmic scale sums are familiar from measured descent [21, Lemma 1.7 and Section 1.3]. Protection by heavy balls and maintenance of separated nets also appear in Lee’s evolving fusible-HST construction [24, Sections 3.1.2–3.2]; its withdrawn competitive-ratio claim is discussed in Section 1. Here the changing measure is the posterior of the hidden comparator. The pilot potentials will pay the edits induced by maintaining these partitions.
The partitions at distinct scales need not refine one another. A point’s entire string of scale labels will specify its leaf in a fixed tree. We protect requests where the comparator measure is locally concentrated by large disjoint balls. At the other scales, chronological rosters of smaller balls provide a separation estimate whose coefficient depends on the local mass ratio. The pilot potentials pay changes to both structures.
We use the finite metric, selected labeled comparator, scales, and filtration of Section 2. In particular,
All the numerical constants chosen below are absolute. The constant \tau also satisfies the absorption requirements of the allocation and rounding arguments. At a request x, the true-metric posterior measures obey
The selected mover is specified even on a zero move. In particular every ball centered at x has \mu^+-mass at least one, and \E\sum_t e_{x_t}=Q.
Proposition 7.1 (Embedded comparator cost). There are finite alphabets \mathcal A_1,\ldots,\mathcal A_J, depending only on Y,k and the fixed constants, and online random maps
with the following properties. Each coordinate cell at level j has diameter at most 40r_j and an anchor within 20r_j of all its points. Thus \xi_t is injective. Give the full alphabet tree the leaf distance r_{j-1} when the first differing coordinate is j. For the selected hidden members X_t^1,\ldots,X_t^k,
Here C is absolute and D_{\rm part}<\infty is independent of the input law and its horizon. A coordinate label common to successive maps has a fixed anchor, except for the explicit heavy-ball reuse below, when its anchor moves by at most 40r_j.
The maps for a given finite input law may use its true-prefix posteriors. The alphabets and all initialization bounds will be fixed before that law or its horizon is chosen. Two forms of conditioning will be kept separate: pilot potentials use filtering in \mathcal F_t, whereas ball and retirement probabilities average over the independent partition tape after fixing the whole true input.
7.1 Heavy balls and their edit cost
Use the pilot template of Section 6 with \sigma=1, R=512, and Lipschitz bound one for g in scale units. Let D_H=D_1=100R. Choose \gamma_H,\delta_H>0 small enough for Lemma 6.2, and also with \gamma_H<1/100, \delta_H<1/100. They may be decreased further to meet the absolute requirement in Section 8. At scale r, call the current request heavy when
Maintain an initially empty center set \mathcal H. If the request is heavy and d(x,\mathcal H)>8r, remove all centers within 100r of x, and insert x. Otherwise leave \mathcal H unchanged. Distance to the empty set is infinite. Every inserted center receives a fresh independent uniform radius in [16r,20r], held until its removal. These radii affect the balls and their labels, but never the center schedule.
Centers in \mathcal H have pairwise distance greater than 100r, by induction on insertions. Their balls are therefore disjoint. If a new ball intersects an old ball as subsets of Y, reuse that old ball’s label. Otherwise use a fresh label. There is at most one intersected old ball: two such old centers would be at distance at most 80r. Moreover, an intersected center is within 40r of x, so was removed in this update. The reused label’s anchor consequently moves by at most 40r. Intersection is meant in the finite metric itself; no geodesic or ambient ball intersection is needed. Heavy balls have precedence over every other structure at the level. In particular their final key regions are their entire balls.
Write
First we pay the mass in this annulus at heavy updates. Let \rho_H be zero on [0,3], affine from zero to one on [3,4], and one thereafter, and set
At a heavy update, apply Lemma 6.2 to \mu^+ and the old g. The inner mass is at least one and the shell ratio is at most \delta_H. Every minimizing pilot configuration has a site s with d(s,x)<r/4 and z_s\ge1/2, and no positive sites at distances in [r/4,256r] from x. The near site’s old g(s) is one, because every old center is more than 8r from x, and its new value is zero. For every p\in E_x(r),
so its surcharge bump a_s(p) equals one. The decrease of this surcharge is at least 128r\mu^+(E_x(r)).
An increase of g(p) requires removal of a center within 4r of p, and cannot occur inside B(x,3r), where the new g is zero. Thus every increase is supported at distances in (3r,104r] from x. All possible increasing-coefficient sites have zero weight by the forbidden-site conclusion above. Only the residual term can increase, by at most r\mu^+(E_x(r)), since its coefficient lies in [0,1]. Using the old minimizer as a feasible candidate after the edit proves
The all-step filtering and drift telescope of Corollary 6.4 now gives
Here and below the constants denoted by D are finite initialization bounds depending only on the fixed finite data. Filtering and drift are summed at the old parameters on every step, before testing whether an update occurs; there is no conditioning of the filtering inequality on the event of an update.
We will use two elementary scale sums repeatedly. Set
where the absolute constants D_L>\gamma_L>0 will be fixed below. Lemma 2.3, with inner masses at least one and outer masses at most k, gives
where p_L,p_H are fixed positive integers satisfying \tau^{p_L}\gamma_L\ge D_L and \tau^{p_H}\gamma_H\ge D_H. For the second bound every nonheavy level contributes more than \log(1+\delta_H) to its heavy-template logarithmic ratio. These sums involve one common measure \mu^+ on the step, so the scale telescope applies.
Lemma 7.2 (Heavy edits). The expected sum of r_j times overall level-key changes caused by heavy edits, evaluated at the hidden members’ old physical positions with the base structures held fixed, is at most C\ell Q+D_H''.
Proof. Let \psi be the clipped increasing ramp on [9,10]. For each member at p, add the auxiliary potential r\psi(d(p,\mathcal H)/r). Sum it over members and levels, and telescope along actual hidden trajectories from one step end to the next. Its initial value is at most k\sum_jr_j and it is nonnegative. We bound an edit charge plus the full-step change of this potential.
Consider first a stationary member p at an update. If d(p,x)\le3r and an old center lies within 10r of p, both the old and new heavy balls contain p. Their intersection forces reuse, so its key does not change and its potential does not increase. If no such old center exists, its old potential is r and its new potential is zero, paying a possible charge of r. Outside this inner ball, all affected old or new balls and all changing ramps lie in B(x,120r): a removed center is within 100r, its ball has radius at most 20r, and its ramp has range at most 10r. The charge plus potential increase is at most 2r, supported in E_x(r).
For the designated mover y\to x, its final potential at an update is zero. The same argument pays its charge when d(y,x)\le3r. Otherwise the unpaid amount is at most r, and \sum_{r_j<d(x,y)/3}r_j\le C d(x,y). At a step without an update there is no edit charge. On a heavy level a final center is within 8r of x, so the final potential is again zero. Only nonheavy levels can have a positive physical-motion change; at each it is at most d(x,y), by the ramp’s Lipschitz bound. Their number is bounded in (7.5).
The conditional expected stationary counting measure equals \mu^+-\delta_x, and in particular is bounded by \mu^+. Consequently (7.4) pays the stationary errors, and the other terms sum to C\ell Q. Nonnegativity and the stated initial bound complete the telescope.
7.2 Chronological rosters and a fixed alphabet
For the second pilot template choose \sigma>0 so small that 3\sigma<1/8 and 10\sigma<\gamma_H, and put R=4D_H and D_L=100R. Choose 0<\gamma_L<\sigma sufficiently small for this template in Lemma 6.2. The Lipschitz bound used for its g’s will be eight in scale units. In particular \gamma_L<\gamma_H and D_L>D_H.
Let
The symbol \mathcal H_k denotes the set of tier parameters and is distinct from the center set \mathcal H. Smaller tiers have precedence. A request qualifies in tier h\in\mathcal H_k at scale r if
The last tier always qualifies. Fix an absolute C_K, to be chosen large below, and set K=K_h=\lceil e^{C_Kh}\rceil.
Each tier keeps chronological insertion records and a random subroster of balls used by the partition. The insertion test below uses only qualification and chronological ages. Every entry young enough to affect that test is deterministically present; later retirement changes the partition but does not feed back into the insertion schedule. This lets us estimate separation and retirement probabilities with that schedule fixed. The age cutoffs also bound the records relevant to the test and partition.
Each pair (j,h) has an initially empty chronological roster of insertions. The age of an entry centered at c is the number of subsequent insertions in that same roster within distance 20r of c. Insert x if and only if it qualifies and there is no chronological entry of current age less than K within r/2 of x. A noninsertion changes no ages. These tests inspect the chronological records, not their realized survival. Records of age at least K^2 can be discarded forever: they cannot affect an insertion test or any future presence.
The actual roster used in the partition has the following lifetimes. An entry is present deterministically at ages 0,\ldots,K-1. At each increment to an age in \{K,\ldots,K^2-1\}, a still present entry retires with fresh probability 1/K, independently. It retires compulsorily on reaching age K^2. At insertion its persistent radius V\in[r,2r] has density
All entry radii and all lifetime trials are mutually independent. Fresh tape blocks are indexed by level, structure, and insertion ordinal, not by the recyclable label slots. The tier key at a point is the label of its earliest present covering entry, if any. The overall level key is the heavy key if present, otherwise the first applicable tier key, otherwise a fixed singleton key for that point. On a step, do the heavy edit first, followed by the roster edits in increasing tier order; a roster’s retirements and insertion form one edit. Each edit is evaluated at the old physical member positions.
Fixing the entire true input makes all comparator posteriors, heavy-center schedules, roster insertion schedules, and chronological ages deterministic. The schedules use neither radii nor lifetimes, nor allocation or rounding states. In particular conditioning on actual presences still leaves the entry radii independent with law (7.7).
Lemma 7.3 (Local age count). In a subset of Y of diameter at most 20r, there are at most A chronological entries of age less than the positive integer A. In particular the bounds are K and K^2 at the two age cutoffs, regardless of how many entries have already retired.
Proof. If there were n>A such entries, the earliest of them would have at least n-1\ge A later insertions within 20r of its center, contradicting its age. Repeated centers cause no exception.
When a request qualifies, its final tier covers x deterministically. Indeed an insertion supplies an age-zero center at x; if there is no insertion, the test supplies an entry of age less than K within r/2, and no ages change. That entry is present and its radius is at least r. We shall refer to this as the tier’s guaranteed coverage.
Lemma 7.4 (Fixed labels and anchors). The construction can use fixed finite label pools at each level, independent of the input law and horizon. Labels can be assigned so that distinct current records have distinct labels, including shadowed records, and a freshly chosen label was absent throughout the preceding step and all earlier intermediate states of the current step. The sole exception is the prescribed heavy-ball reuse. Every point with a given current label is within 20r of its anchor; its cell has diameter at most 40r. A label common to consecutive maps has the same anchor or is a reused heavy label with anchor displacement at most 40r.
Proof. Write n=|Y|. Applying Lemma 7.3 to each singleton shows that a tier has at most M=nK^2 chronological records of age less than K^2. Reserve a record’s label until that age cutoff, even if its actual lifetime has ended or its ball is completely shadowed by earlier structures. This convention bounds all reserved labels by M; it does not alter the partition. During a step at most one new record is inserted. The records present at any intermediate time during two consecutive steps belong to their two starting record sets and at most two new records, so their total number is at most 2M+2. A pool of 4M+4 slots suffices to choose a fresh slot outside this entire set whenever needed. A slot released on the previous step is still excluded on the current step. This is a finite implementation of the stated cooldown rule, not a growing list of all historical labels.
The heavy structure has at most n centers and one insertion per step, so a separate pool of 4n+4 slots works by the same rule, with reuse allowed precisely for the unique intersected ball. Use disjoint pools for different tiers and the heavy structure, and n additional fixed singleton labels. Pool sizes are chosen for every level in advance and do not depend on the realized center schedule. A chronological record that persists keeps its label and center even while shadowed. Thus any common slot can only change its anchor by the explicit heavy reuse.
Heavy and tier keys are anchored at their centers, and singleton keys at their points. Every key cell is a subset of its defining ball, whose radius is at most 20r; restricting by precedence only shrinks it. The diameter and anchor bounds follow. Heavy precedence further implies that a heavy key’s region is its entire ball. Empty key regions cause no difficulty; their reserved anchors and slots are still defined.
7.3 Separation in the final map
Lemma 7.5 (First hit). Fix a true input, a roster at a fixed step, and points x,y with d=d(x,y)<r/4. The probability that the earliest present ball covering either point covers exactly one is at most Chd/r. The expectation is over the partition tape.
Proof. Condition on all presences, leaving the radii independent. For a center c, put a=\min\{d(c,x),d(c,y)\} and p_a=\Pr(V\ge a). The two distances differ by at most d, so separation requires V\in[a,a+d], up to endpoints of probability zero. If r\le a\le2r, direct integration of (7.7) gives
The density is decreasing, hence
For a<r, use the maximum density at r and p_a=1; for a>2r, the left side is zero. Thus the same bound holds when an interval crosses a support endpoint.
List the present balls in chronological order and let q_i be the probability all balls preceding ball i miss both points. The event that ball i hits at least one has probability p_{a_i}, so independence gives
Every potentially hitting center lies within 2r of one of the points. Those centers have diameter at most 4r+d<5r, and all present entries have age less than K^2. There are therefore at most K^2 candidates by Lemma 7.3. Multiplying (7.8) by q_i and summing gives
Finally \lambda=\log(1+K^2)\le Ch, since C_K is an absolute constant and h\ge1. The bound is uniform in the conditioned presences, so it also holds without that conditioning.
Let \xi_{t,j} denote the final overall key at level j. For every fixed input and every y\in Y,
To prove this, put d=d(x,y); the case d=0 is immediate. The radii r_j\le4d contribute at most C d by geometric summation. At a larger heavy level a final center lies within 8r of x, so its ball of radius at least 16r contains both points. There is agreement regardless of its sampled radius.
At a larger nonheavy level, the centers of heavy balls that could contain one of the two points lie within 20r of their union, a set of diameter at most 40r+d<41r. There is at most one such center. Its uniform radius separates the two points with probability at most d/(4r). Next let h_*(j) be the first qualifying tier at this level. It supplies guaranteed coverage of x. If no heavy ball separates the points and no tier through h_*(j) has a separating first hit, their overall keys agree: the first structure hitting either hits both, and such a structure exists by guaranteed coverage. Lemma 7.5 and a union bound therefore give probability at most
Indeed the dyadic sum is less than 2h_*(j), and the first dyadic value at least L_j(x) is at most 2\max\{1,L_j(x)\}. After multiplying by r, sum the additive ones only over nonheavy levels and the logarithms by (7.5). This proves (7.9). In particular the argument does not multiply the number of nonheavy levels by a worst-case tier coefficient; the individual coefficients telescope through the local mass ratios.
7.4 Noncoverage and the cost of roster edits
Lemma 7.6 (Tier edits). The expected sum of r_j times overall level-key changes due to roster edits, evaluated at the old physical positions in the stated edit order, is at most C\ell Q+D_L'.
Proof. For each level and tier use the nonnegative potential
ignoring all other structures in the definition of coverage. Telescope from step end to step end, so the potential includes physical movement. The sum of initial values is at most k|\mathcal H_k|\sum_jr_j, an allowed fixed initialization bound.
If there is no insertion, the roster has no edit. Stationary members give zero potential change, and only the mover y\to x can increase the potential. This requires y covered and x uncovered. It is impossible in a qualified tier, by guaranteed coverage. In an unqualified tier, Lemma 7.5 gives expected positive increase at most Chd(x,y) when r>4d(x,y). For r\le4d(x,y), the bound follows from the trivial increase at most r\le4h d(x,y). Unqualification says h<L_j(x), and
Thus all noninsertion increases cost at most C\ell Q.
At an insertion, let C_a\in\{0,r\} be a member’s overall key charge caused by this tier edit at its old position. Let U_- be old tier noncoverage at that position and U_+ final tier noncoverage at its final physical position. In particular U_+=0 for the mover, because the newly inserted ball covers x. The following table accounts for the entire quantity C_a+r(U_+-U_-).
| Old tier status | Stationary member | Designated mover |
| First covering entry persists | C_a=0, U_-=U_+=0 | C_a=0, U_-=U_+=0 |
| No covering entry | C_a\le r(1-U_+), U_-=1; total at most zero | C_a\le r, U_-=1, U_+=0; total at most zero |
| First covering entry retires | C_a\le r, U_-=0, U_+\le1; total at most 2r | C_a\le r, U_-=U_+=0; total at most r |
For the first row, new entries are appended after all existing ones, so a surviving first coverer keeps the tier key unchanged. Other structures are held fixed during this edit. For the second row, an overall key can change only if this previously uncovered point becomes covered by the tier. These facts also hold when an earlier structure shadows the tier, in which case its charge may simply be zero.
There is a further zero-error case at a heavy level. If the old position lies in B(x,\gamma_Hr), the final heavy ball already covers it during all tier edits. Hence C_a=0. The new tier ball covers that position if it is stationary, and covers the final point x if it is the mover. Thus U_+=0 and no retirement error is needed in this inner ball.
We next bound the probability of the exceptional retirement row. Fix the full true input and a point p. Conditional on the old realized presences and radii, a pre-edit first coverer at a noncompulsory age can be removed on this step only by its fresh independent trial, of probability at most 1/K. For compulsory removal use an unconditional bound over the tape. At most K^2 chronological candidates of age less than K^2 have centers within 2r of p. A candidate reaching age K^2 must previously have survived the K^2-K trials at ages K,\ldots,K^2-1. Consequently
The last inequality follows, for example, from K^2(1-1/K)^{K^2-K}\le K^2e^{-(K-1)}\le C/K. If d(p,x)>22r, no covering entry can have its age incremented: its center is within 2r of p but would have to be within 20r of x. The retirement probability is then zero. The compulsory part of (7.11) is not asserted conditional on an observed surviving old roster; it averages over the independent tape with the chronological schedule fixed.
For an insertion at time t, level j, and tier h, write
Although the value at a fixed step and level does not depend on h, the indices specify the insertion being charged. The stationary errors are confined to this region, since D_H>22, and the heavy inner ball has zero error. Average (7.11) first over the tape with the full input fixed, and then over input continuations given the true prefix. The insertion event and W_{t,j,h} are fixed by that prefix. The expected stationary counting measure is \mu^+-\delta_x\le\mu^+. Thus the expected stationary error is at most CrW_{t,j,h}/K. This averaging statement is conditional only on the true prefix, not on the complete partition tape in \mathcal F_t.
At a nonheavy insertion, the mover’s error is also covered by CrW_{t,j,h}/K, since W_{t,j,h}\ge\mu^+(\{x\})\ge1. At a heavy insertion, its remaining error is at most Cr/K and only occurs if d(y,x)>\gamma_Hr. For each tier,
Here the fixed factor 1/\gamma_H is absorbed into C. These mover errors therefore cost at most CQ. It remains to prove
An auxiliary short roster. We need a potential drop at an insertion to pay the remaining insertion charge. The insertion test excludes young records near x, but an older surviving ball may still cover x. A potential built from the actual surviving centers would therefore have no guaranteed change there. Instead we use an auxiliary roster containing only entries of age less than K. The insertion test then forces a vacant neighborhood of x before the new entry arrives. Random retirement before the age cutoff keeps the expected increases elsewhere small.
This auxiliary roster uses the same deterministic insertion records and ages. An entry starts present at age zero, has independent retirement probability 1/\sqrt K at each subsequent age increment, and retires compulsorily at age K. Its sole output is the deterministic expected function below; it does not enter the partition. Let \rho_L be the clipped increasing ramp on [1/8,1/4], taking value one at infinity, and set
where \mathcal S is the set of surviving hypothetical centers. The expectation is over these auxiliary lifetimes, given the chronological schedule. The function g lies in [0,1] and has r\Lip(g)\le8; it is a deterministic function of the true prefix, and is unchanged at noninsertions.
At an insertion the test excludes all old centers of age less than K within r/2 of x. Every hypothetical survivor has age less than K. Hence before insertion g=1 throughout B(x,r/8), while the new age-zero entry gives g=0 there afterward. Elsewhere couple old and new hypothetical lifetimes by continuing the old trials. If the old ramp at p can increase, a nearest surviving center within r/4 of p, selected by a fixed tie rule, must retire. Its noncompulsory fresh trial has probability 1/\sqrt K. There are at most K possible compulsory candidates within r/4 of p by Lemma 7.3, and a candidate reaching age K must have survived K-1 previous trials. Thus
The last bound follows by comparing the second term with K\exp(-(K-1)/\sqrt K); its ratio to K^{-1/2} is bounded over integers K\ge2. Only centers within 20r of x change age. Therefore positive changes of g are supported in
The auxiliary estimate is O(K^{-1/2}), whereas the bound used for actual retirements is O(K^{-1}). The exponentially large choice of K_h will make the auxiliary error small enough compared with the insertion gain.
The insertion gain in the pilot. Fix an insertion, abbreviate W=W_{t,j,h}, and let z be an old minimizer of the second-template pilot at \mu^+ and g_{\mathrm{old}}. Its residual R_z(p)=1-\sum_s z_s b_s(p) lies in [0,1]. The change of its objective when g is edited is exactly
At a nonheavy level, its positive part is at most CrW/\sqrt K. Indeed the residual increase is supported in B(x,21r). Any increasing-coefficient site lies in that same ball, and its surcharge support lies in B(x,(21+2R)r)\subset B(x,D_Lr). At any test point the weights of all sites with nonzero a_s sum to at most one, by the pilot capacity constraint and 2R<D_*. Now apply (7.15) to both terms of (7.17).
At a heavy level the same bound holds with the annular definition of W, rather than the possibly much larger inner mass. To see this, every possible increasing-coefficient site satisfies r/8<d(s,x)\le21r. Since 1/8-\gamma_H>\sigma and 21+\gamma_H<R, its bump a_s equals one throughout B(x,\gamma_Hr). Its b_s-support lies inside B(x,D_Hr). Writing M_H=\mu^+(B(x,\gamma_Hr)), the coefficient of z_s in the old objective, divided by r, is at least
Deleting that weight preserves both capacity and separation constraints, so optimality forces z_s=0. Hence no surcharge increases in (7.17); the residual increases only in (7.16), a subset of the heavy annulus in (7.12). Its positive contribution is again at most CrW/\sqrt K.
It remains to exhibit the negative contribution. Put M_L=\mu^+(B(x,\gamma_Lr)). Qualification and the definition of W give, in both the heavy and nonheavy cases,
There are two exhaustive cases.
If some site s within 3\sigma r of x has z_s\ge1/2, then g(s) drops from one to zero because 3\sigma<1/8. On the entire heavy annulus \gamma_Hr<d(p,x)\le D_Hr, the bump a_s(p) equals one: the lower distance is greater than \gamma_H-3\sigma>\sigma in scale units, and the upper distance is less than D_H+3\sigma<R. Its surcharge drop is at least 128rW when the request is heavy. When it is nonheavy, failure of (7.3) says that this annulus has mass greater than \delta_H M_H\ge\delta_H M_L. The drop is then at least 128\delta_HrM_L\ge128\delta_Hre^{-h}W.
If no such site exists, then for every p\in B(x,\gamma_Lr), any contributing b_s(p) has its center within (2\sigma+\gamma_L)r<3\sigma r of x, and has weight less than 1/2. At most one positive site contributes there, since two centers within 2\sigma r of the same point would violate their 5\sigma r separation. It follows that R_z(p)\ge1/2 on this inner ball. The unit drop of g(p) there gives a residual decrease at least rM_L/2\ge re^{-h}W/2.
Combining either negative contribution with the established positive error, and using the old optimum as a candidate for the new minimum, gives absolute c,C>0 such that
Choose C_K sufficiently large, once and for all, that for every h\ge1,
Since K\ge e^{C_Kh}, multiplying (7.19) by e^{-h} yields
For each tier apply Corollary 6.4 with its held function (7.14) and fixed weight e^{-h}. The template and Lipschitz constants are the same for all tiers, and \sum_{h\in\mathcal H_k}e^{-h}\le\sum_{n\ge1}e^{-n}<\infty. Thus the filtering and summed drift budgets remain C\ell Q, with no factor equal to the number of tiers. At noninsertions there is no parameter edit. At insertions (7.20) pays exactly the desired charges. The potentials are nonnegative and their total initial value is at most 2k\sum_jr_j\sum_he^{-h}. This proves (7.13).
Finally sum the per-member case table over all insertions, add the noninsertion estimate (7.10), and telescope the noncoverage potentials. The expected retirement errors are covered by (7.13) and the heavy-mover geometric sum. Their terminal nonnegative values can be discarded. This proves the lemma with an initialization bound independent of the law and horizon.
7.5 The fixed tree and its posterior interface
Proof of Proposition 7.1. Let \mathcal A_j be the fixed level alphabet in Lemma 7.4, and take the tree of all prefixes of words in \mathcal A_1\times\cdots\times\mathcal A_J, including unused words. Initially the center structures are empty and the map uses singleton labels. At every step map a point to its complete string of final keys. The last-level cell diameter is at most 40r_J, less than the minimum nonzero distance of Y; hence last-level cells are singletons, giving injectivity and a requested leaf with anchor exactly equal to the actual request.
For any two words u,v,
Indeed, if their first disagreement is j, the left side is r_{j-1}=\tau r_j. For each member on each step, first edit all level keys at its old physical position, and then move it to its new position under the final map. The triangle inequality for key disagreements bounds the right side of (7.21) by the heavy edit charges, all tier edit charges, and the final-map physical disagreements. The first two have budgets C\ell Q+D by Lemmas 7.2 and 7.6. Only the designated mover has a nonzero final physical disagreement; (7.9), applied after fixing the true input and hence that member’s old position, bounds its expected charge by C\ell d(x,y). Averaging over inputs and summing proves (7.2); \tau is absolute.
All initialized potentials above are bounded by fixed multiples of k(1+|\mathcal H_k|)\sum_jr_j. Their number of time updates never enters the bound. The finite pools and the full prefix tree likewise depend only on Y,k and the chosen absolute constants. Consequently the additive constant is uniform over input laws and horizons.
For completeness, the coupling used by the allocation theorem is now fully specified. Put
The final map and the requested leaf are available from the observed true prefix and independent partition tape before virtual service. The requested leaf contains the designated comparator member after drift, with conditional probability one. The filtering substep at time t uses N_v(t-1) with the old map \xi_{t-1}, comparing its laws given \mathcal F_{t-1} and \mathcal F_t. The drift substep compares that same old-map variable with N_v(t), both conditioned on \mathcal F_t, along the hidden labeled coupling whose expected cost is (7.2). In particular the allocation drift budgets are paid by this P. No ball-separation or survival probability is asserted after conditioning on the complete tape; those estimates have already been averaged to establish P.
For a finite horizon the partition outcomes can, if desired, be encoded on a finite probability space: on finite Y, a radius is used only through its ball subset, so its continuous law has finitely many relevant outcomes, and only finitely many insertions and lifetime trials occur. The expected short-roster functions require no additional random observations. The construction therefore meets the finite-data requirements of Theorem 3.1.
Apply that theorem once to the fixed full tree. Its trackers continue at every vertex when a label becomes unused and later reappears; they are not restarted when a slot is recycled. The resulting bound is V\le C\ell P+D_1 with a single fixed-tree initialization bound. Partition schedules use only the true-prefix posteriors and chronological ages, so neither these allocations nor the independent rounding randomness feed back into the partition construction.
8 Travel of parked mass
The allocation theorem controls movement between tree vertices. A second cost arises when a vertex retains its key but that key acquires a new anchor in the metric. We pay this cost using the comparator mass in the key, normalized by a slowly updated estimate of its size. The estimate is essential: keeping its coefficient fixed during filtering allows us to use conditional expectation without paying the absolute variation of a posterior.
Throughout this section the tree, label pools, and maps are those of Section 7, and the allocations are supplied by Theorem 3.1. A state at time t means the state after all updates for that request. Write \mu_t for the true-metric posterior counting measure at this state. All multiplicative constants below are absolute. Additive constants may depend on the fixed finite metric, k, the scales, and the fixed label pools, but not on the input law or its horizon.
8.1 Parking and valid representatives
For every tree vertex, including the root and leaves, define its parked mass by
The empty sum at a leaf is zero. Allocation feasibility makes these numbers nonnegative. Telescoping within a subtree gives
where a vertex counts as its own descendant.
Lemma 8.1 (Parked variation and witnesses). At every step,
If q_{t,v}>0, there is a point of Y whose current key string has prefix v. Such a point is called a validity witness for v. If |v|=j\ge1, every validity witness is within 20r_j of the anchor of the last key of v.
Proof. Taking differences in (8.1) and using the triangle inequality gives
The root term in the first sum vanishes because its allocation is always k. This proves (8.3), including the root’s parked mass. The bound q_{t,v}\le C_0m_{t,v} implies m_{t,v}>0 whenever q_{t,v}>0. Since Y is finite, some point mapped below v then has positive posterior counting mass. It is a witness. The anchor-distance assertion is part of Lemma 7.4: a level key is a heavy ball of radius at most 20r_j, a smaller roster ball, or a singleton.
Represent a park at a nonroot vertex by its last key’s anchor. Represent the root by one fixed point of Y. A balanced integer rounding of p_{t,v}^{\circ} can be positive only if p_{t,v}^{\circ}>0, since the floor and ceiling of zero are both zero. Thus the same witness statement will apply to occupied integer parks in Section 9.
Let \Lambda_j^H be the fixed pool of heavy-label slots at level j. For \lambda\in\Lambda_j^H, let C_{t,j,\lambda}\subseteq Y be the points currently assigned that level key, and let a_{t,j,\lambda} be its anchor. An absent label has empty region and an arbitrary fixed placeholder anchor. Heavy precedence and disjointness mean that, when present, C_{t,j,\lambda} is the entire heavy ball carrying the label. Set
These definitions use the fixed slots even when they are absent, in which case both quantities are zero. In particular,
The second inequality follows by grouping fixed vertex coordinates, then using the triangle inequality. It also holds across label disappearance and reuse.
Let E_{t,j,\lambda} be the event that the label is present at both successive states and its anchor changes. By Lemma 7.4, this is an explicit reuse of a heavy label at an intersecting new heavy ball. In particular,
The quantity to be bounded is
Proposition 8.2 (Retained-anchor travel). There is an absolute constant C and a finite constant D_{\rm anchor}, independent of the input law and horizon, such that
Consequently the expected cost of moving the new parked masses with their retained anchors is at most 40T_{\rm anchor}. No multiplicative constant in this statement depends on the number of levels or on k.
The proof uses a size tracker and a pointwise estimate for its old coefficients. We establish both before analyzing the travel potential.
8.2 An affine size tracker
Put \rho=6/5. For each fixed heavy-label slot maintain a reference \widehat m_{t,j,\lambda}\in[1,k+1] for s_{t,j,\lambda}=1+M_{t,j,\lambda}. Initially set the reference equal to s_{0,j,\lambda}. At each subsequent step, after computing the new membership and posterior size, keep the old reference if
otherwise refresh it to s_{t,j,\lambda}. Thus every completed state satisfies the same comparison with its current reference. The tracker continues to run while a slot is absent; recycling a slot does not restart it.
Lemma 8.3 (Size-refresh budget). If R_{t,j,\lambda} denotes a refresh, then
where C is absolute and D_{\rm size} depends only on the fixed metric, scales, k, and label pools.
Proof. The payment is a tangent gap, equivalently the Bregman divergence for the convex function s\log s [9]. For u,s\in[1,k+1], the tangent at u to f(s)=-s\log s is
It is affine in s, with slope of absolute value at most \ell. A refresh u\to s releases
For completeness, if s\ge u the left side equals \int_u^s(s-z)z^{-1}\,dz, and if s\le u it equals \int_s^u(z-s)z^{-1}\,dz. Bounding the denominator by \max(s,u) gives the inequality. At failure of (8.9), |s-u|\ge(1-\rho^{-1})\max(s,u), so
We check the input budget for the weighted sum of these tangents. Let N_{t,j,\lambda}^{\rm key} be the actual number of hidden members whose level-j key at time t is \lambda. Filtering replaces \E[N_{t-1,j,\lambda}^{\rm key}\mid\mathcal F_{t-1}] by \E[N_{t-1,j,\lambda}^{\rm key}\mid\mathcal F_t], using the old map and old reference. Its signed contribution has conditional expectation zero. Drift then replaces this old hidden count by the new count, with both conditioned on \mathcal F_t.
If a member’s two mapped leaves first differ at level j_0, the radius sum of its possible level-key disagreements is at most
At one level a member changes at most two heavy-slot indicators, one for the departing key and one for the arriving key. Applying this pathwise to the coupled hidden trajectory and then taking conditional expectations gives
Thus the tangents’ expected total signed input increase is at most 2\ell P.
The tangents need not be nonnegative. Their endpoint values nevertheless have a uniform bound:
Write L_H=\sum_j r_j|\Lambda_j^H|, a finite quantity fixed before the input law or horizon is chosen. The absolute value of the summed tangent potential is at most (k+1)(1+\ell)L_H at both endpoints. Telescoping its signed changes over every step, and using (8.13), proves (8.10), for example with C=288 and D_{\rm size}=288(k+1)(1+\ell)L_H. Filtering is included on all steps before the decision to refresh; it is not restricted to the adaptively chosen refresh events.
8.3 A pointwise bound on old parked coefficients
At a completed state, (8.5) and the size comparison give the individual bound
Summing this bound over all levels would introduce the height of the tree. The useful additional constraint is that parks at different depths draw on the same subtree allocations. All finer parks near a point can therefore be charged to comparator mass in a slightly larger ball at a coarser scale. Meanwhile a heavy ball whose anchor is near that point contains a smaller ball and bounds the normalization from below. Comparing these two ball masses will give a logarithmic coefficient sum.
Lemma 8.4 (Pointwise parked coefficients). Fix any completed fractional state and any y\in Y. At each level whose heavy-center set has a center within 7r_j of y, let \lambda_j be its label. Such a center is unique. Then
with an absolute C, independent of the state and the number of levels.
Proof. Call the levels in the sum selected, and abbreviate their numerator to b_j. Distinct heavy centers at one level are separated by more than 100r_j, proving uniqueness. Their radii are at least 16r_j; therefore the selected heavy ball contains B(y,r_j). Heavy precedence and the size comparison imply
Here \mu is the posterior counting measure of the fixed state.
We also have, for every level j, the cumulative capacity estimate
To prove it, consider each positive park counted on the left. At its depth i, a validity witness lies within 20r_i of its anchor, hence within 27r_i of y. Group all these parks by their depth-j ancestor v. Their sum in each group is at most q_v by (8.2). The group has at least one witness z within 27r_i\le27r_j of y. Every point with prefix v shares its level-j cell with z, and that cell has diameter at most 40r_j. All such points therefore belong to B(y,67r_j). Regions of distinct depth-j prefixes are disjoint, so their posterior counts sum to at most \mu(B(y,67r_j)). Summing q_v\le C_0m_v proves (8.19).
For an explicit scale summation put, at every level,
Both are between 1 and k+1. Extend B_j=k+1 for j\le0. Since \tau\ge2, the fixed offset p=7 satisfies \tau^p\ge67, and hence A_j\le B_{j-p}. It follows that
The final inequality cancels the common middle terms; at most p uncancelled positive terms remain, each at most \log(k+1), and the remaining terms are nonpositive. This includes J<p.
There are at most p\log(k+1)/\log2 levels with A_j>2B_j. Their contribution is O(\ell) by (8.16). Partition the remaining selected levels into groups
For a nonempty group let j_a be its smallest, hence coarsest, index. By (8.18), every denominator in this group is at least 2^{a-1}/\rho. By (8.19),
Its total coefficient is consequently at most 4\rho C_0. There are at most 1+\log_2(k+1) groups, proving (8.17). All these statements hold for each individual state and point, with no averaging and no conditioning on a future request.
8.4 Paying retained-anchor motion
Proof of Proposition 8.2. Use the clipped ramp
For a completed state define
This is the posterior expectation of the sum of the same terms over the hidden members assigned to each key. The ramp measures mass away from the anchor. When a heavy label is reused at a new request, the concentrated mass is far from its old anchor and close to its new one, so the anchor change decreases the potential. Dividing by the held key size makes this decrease comparable to r_jb_{t,j,\lambda}, the travel charge, rather than to its product with comparator mass.
The potential is nonnegative. Moreover, at a completed state the normalized integral is at most \rho, so
The last inequality follows from (8.2), since each park occurs at just one depth and r_j\le r_0.
We now decompose the change of (8.21) in a specified order. This is an accounting order: the current partition and allocation are already available from the fractional history. Old parameters are held until their indicated substep.
Filtering with old membership and all old parameters. In the hidden-member expression for \Phi_{t-1} retain the old locations, old key map, old anchors, old parks, and old references. Replace conditioning on \mathcal F_{t-1} by conditioning on \mathcal F_t. The coefficients and the old map are \mathcal F_{t-1}-measurable. Thus the tower property makes this signed potential change have conditional expectation zero. We perform this comparison on every step, before any refresh or anchor event is selected.
Drift to new membership and new locations. Use the coupled hidden trajectory, now conditioned on \mathcal F_t, but continue to hold all anchors, parks, and size references at their old values. For a member whose level key changes, its total possible positive change among heavy slots is at most C r_j, by (8.16) and 0\le\kappa\le1. Summing (8.14) over members and steps pays these terms by CP in expectation. This includes changes to heavy membership caused by partition edits, regardless of physical movement.
For unchanged membership in a heavy key, the same old anchor appears in both ramp terms. If the old location is y and the new one is z, then
Indeed \kappa is 1/3-Lipschitz and cannot increase from a point where it already equals one. Lemma 8.4 bounds the sum of the coefficients on the right by C\ell, for every old point y and the old fractional state. This pointwise bound remains valid when that y is sampled in the coupling conditional on the new history; we require no independence between the old mover and the new request. Only the designated comparator mover changes physical position on this step. Summing (8.23) therefore costs at most C\ell e_x conditionally, and at most C\ell Q in total expectation. The entire drift budget is C(P+\ell Q).
Refreshing the size references. At this point each integral uses the new key membership and new posterior locations, but still the old anchor. For one label write this integral as I, its new size as M, and s=1+M. Always 0\le I\le M. At a refresh from u=\widehat m^{\rm old} to s the change is
If s\ge u this is nonpositive. If s<u, its positive part is at most r_jb^{\rm old}I/s\le r_jb^{\rm old}. The old completed state gives b^{\rm old}\le\rho C_0 u by (8.16). Hence all positive refresh jumps are at most a constant times the charge in (8.10). This argument does not assume that the new integral is controlled by the old denominator.
Updating the parked amounts. The new size references now satisfy \widehat m^{\rm new}\ge(1+M)/\rho, whether refreshed or retained. Consequently I/\widehat m^{\rm new}\le\rho. Replacing b^{\rm old} by b^{\rm new} changes the potential by at most \rho r_j|\Delta b| in absolute value. Equations (8.5) and (8.3) give the expected total budget
Updating anchors and collecting the travel payment. An absent final key has zero integral and zero new parked mass, so choosing its placeholder anchor costs nothing. A newly present key had b^{\rm old}=0: the fresh-label rule ensures that it was absent from the preceding map. Its anchor initialization can increase the potential by at most
which is another copy of the variation budget (8.24). A retained key with unchanged anchor contributes zero.
It remains to consider a retained moving heavy label at an update for the request x, at radius r=r_j. Its new anchor is x, its old anchor a satisfies d(a,x)>8r, and its new key region is the entire new heavy ball C. Put
The served comparator contains x, so H\ge1. The new heavy ball contains this inner ball and is contained in B(x,D_Hr). The heavy condition (7.3) therefore gives
The last inequality is exactly where the inner mass H\ge1 is needed; it accounts for the added one in the normalization.
On B(x,\gamma_Hr) the old ramp is one because d(a,z)>(8-\gamma_H)r>7r, and the new ramp is zero because d(x,z)\le\gamma_Hr<4r. Outside this inner ball but inside C, the ramp can increase by at most one, and that region has mass at most \delta_H H. Hence changing a to x changes the unnormalized integral by at most -(1-\delta_H)H. With the new park and new reference already in place, (8.25) shows that the potential decreases by at least
Here we used the absolute choices \gamma_H<1/100 and \delta_H<1/100. Thus this payment is uniform even when the retained park remains at exactly the same tree vertex.
Combining the five substeps, summing signed changes over all times, and taking expectations yields
The filtering contributions have vanished by conditional expectation; the size-refresh estimate pays their later adaptively selected consequences. Use (8.22) and \ell\ge1 to obtain (8.8), with an additive constant bounded by C(D_{\rm size}+kr_0). Finally, (8.6) proves the asserted bound for actual anchor displacement.
The only scale summations used were the geometric sum (8.14) and the fixed-offset and dyadic sums in Lemma 8.4. Their constants are independent of the height. The finite label pools enter only the endpoint constant D_{\rm size}, and their persistent tracker states ensure that no initialization allowance is charged again when a label is recycled.
9 Balanced rounding and realization in the metric
Balanced subtree rounding with constant movement loss on separated trees was developed in [1, Section 5.2]. The formulation here also allows internal parks and a prescribed parent total correlated with the old child counts.
The allocation theorem allows mass to stop at internal vertices. We round both subtree amounts and parks, working from the root toward the leaves. At each vertex the already rounded parent fixes an integer total for its children and its park. That total may be correlated with their old counts. Our local kernel first meets the total in every realized state, then repairs the coordinate means by exchanges that preserve each state’s total.
The resulting integer parks can be matched along the tree. Parks matched at different vertices are paid by tree movement; parks matched at the same vertex require the separate anchor-travel estimate when their representative has moved.
Throughout this section, the filtration \mathcal F_t contains the request prefix and the independent partition tape, as in Section 3. It excludes a further independent tape used only for rounding. All fractional states and anchors at time t are \mathcal F_t-measurable. Write
where the sum is empty at a leaf. We seek integer subtree counts n_v(t) and integer parks c_v(t) satisfying
These requirements concern conditional means given \mathcal F_t alone. We do not prescribe the same means after additionally conditioning on the realized rounded ancestors; such requirements would generally be inconsistent with their prescribed integer totals.
9.1 A finite rounding kernel for one star
Lemma 9.1 (Balanced rounding with a prescribed random total). Let a,b\in[0,\infty)^d, and let X\in\Z_{\ge0}^d be a random vector with
Put M=\sum_iX_i. Let N be any random integer, arbitrarily correlated with X, such that
There is a randomized kernel from the finite set of states (X,N) to vectors X' such that, in every state and every outcome of the kernel,
Its coordinate means, averaged over both the original state and the kernel, satisfy
With
the kernel can be chosen to satisfy
Moreover, for any balanced random total N with the displayed mean, a balanced vector with total N and coordinate means b_i exists without specifying an old vector X.
Proof. All expectations in this proof are taken under the given joint distribution; no independence assumption is made. Set l_i=\lfloor b_i\rfloor and u_i=\lceil b_i\rceil. Clip X_i into [l_i,u_i], obtaining Y_i. For each coordinate,
Indeed, if a_i\le b_i, upper clipping is impossible. Lower clipping either does nothing, or l_i>\lfloor a_i\rfloor, in which case every possible X_i is at most l_i and its expected cost is l_i-a_i\le b_i-a_i. If a_i\ge b_i, the symmetric argument applies to upper clipping. This includes integral targets and equality of endpoints. Summing (9.3) gives \E\|Y-X\|_1\le T.
For each state, adjust Y within the integer intervals [l_i,u_i] until its sum equals the actual value of N, obtaining Z. The adjustment is always possible: the sums of allowed vectors comprise every integer between \sum_i l_i and \sum_i u_i, and both endpoint integers of \sum_i b_i lie in that interval. Increasing coordinates only, or decreasing coordinates only, as needed, costs exactly |N-\sum_iY_i|. A fixed coordinate order makes this choice deterministic. Thus, writing L=\E\|Z-X\|_1,
Only the means of Z may now be wrong. Requiring \E[X'_i\mid N]=b_i would force N=\sum_i b_i on every positive-probability event. We instead repair the means under the given joint law while preserving each state’s actual total.
To construct this repair by finite optimization, let
An allowed vector is specified by a subset A\subseteq H of coordinates rounded upward. Its cardinality is N-\sum_i l_i, and hence is either s or s+1. If \sum_{i\in H}f_i is integral, only s occurs. The preliminary vector Z specifies such a subset A_0 in each original state.
For every original state \omega=(X,N) of positive probability, consider all probability distributions on subsets of the required cardinality for that state. Their product is a nonempty compact finite-dimensional set. A choice in this product is precisely a randomized kernel that keeps the observed total N fixed. Minimize on it
Here |A\mathbin{\triangle}A_0| is the number of coordinates changed; it equals the \ell_1 change of the associated integer vectors. A minimum exists by continuity. Let p_i=\Pr(i\in A) at a minimizer. Since every outcome has the required total,
Consequently, if a discrepancy remains, there are distinct indices i,j with p_i>f_i and p_j<f_j.
First suppose that a supported state-and-subset pair has i\in A, j\notin A. On a sufficiently small amount \varepsilon>0 of its probability mass replace A by A\setminus\{i\}\cup\{j\}. This preserves that state’s total. Choose \varepsilon no larger than the two discrepancies and the mass of this state-and-subset pair. The sum of marginal discrepancies falls by 2\varepsilon, whereas the first term in (9.5) rises by at most 2\varepsilon. This contradicts minimality.
In the remaining case, no supported subset contains i without j. Because p_i>f_i>0, some supported subset A contains both. Because p_j<f_j<1, some supported subset B contains neither. Their cardinalities differ by at most one. There must therefore be an index h\in B\setminus A: otherwise B\subseteq A\setminus\{i,j\} would give |B|\le|A|-2. On equal sufficiently small probability masses \varepsilon of these two state-and-subset pairs, make the changes
Each change occurs within its own original state and preserves that state’s total. The marginal of h does not change, the marginal of i decreases by \varepsilon, and that of j increases by \varepsilon. The Hamming cost in (9.5) rises by at most 4\varepsilon, by the triangle inequality for symmetric difference. The discrepancy penalty falls by 20\varepsilon. Again this is a strict improvement. This argument allows the two subsets to belong to different original states and different values of the rounded parent; it does not alter their probabilities or totals.
Thus every minimizer has p_i=f_i for all i\in H. The other coordinates are fixed integers, so the corresponding vector X' has all required means. Comparison with the kernel that always keeps A_0 gives
Combining with (9.4) proves
For initialization, choose in each state N any allowed subset of the required size, and minimize the same objective relative to that subset. The exchange argument still proves that the minimum has the desired means; it used only the correct mean and the two possible values of N. If H is empty, N=\sum_i b_i and the sole allowed vector is b itself, so no repair is needed. This proves the initialization assertion as well.
9.2 The joint rounding process
We apply Lemma 9.1 in a fixed order from the root toward the leaves. At an internal vertex v, the coordinates of its star are its ordinary children together with one extra coordinate for its park. The target vector is (q_i)_{i\text{ child of }v} together with p_v^\circ, whose sum is q_v. The prescribed integer total is the already generated n_v. At a leaf simply set c_v=n_v.
At time zero, put n_{\rm root}=k and use the initialization assertion successively at every internal vertex. The resulting conditional means are those in (9.1), by induction over the fixed order. Consistency holds in every outcome, so summing all parks gives exactly k. No movement is charged for this choice of the initial simulated configuration; its mismatch from the actual starting tuple is charged once below.
Consider an update from t-1 to t. The old rounding variables are functions of \mathcal F_{t-1} and the independent rounding tape. The fractional algorithm and the requests do not depend on that tape. Therefore revealing \mathcal F_t preserves their conditional distribution from \mathcal F_{t-1}; in particular,
Formally, if U denotes the independent rounding tape and Z=g(\mathcal F_{t-1},U) is one of these variables, its conditional law given \mathcal F_t is obtained by integrating g over the unchanged law of U. Its dependence on the observed data is already fixed by \mathcal F_{t-1}\subseteq\mathcal F_t. This also shows why the additional rounding tape must not affect any of the fractional observations.
Condition now on a fractional history through time t. At a star v, use the joint law of its old child and parking counts and its newly generated parent count n_v(t). This is a finite law determined by the known past kernels and the kernels already used above v at this step. The parent count has conditional mean q_v(t) by the top-down induction, while (9.6) supplies the old coordinate means. The lemma therefore applies even though this newly generated parent can be correlated with all the old local counts. Select a minimizing finite kernel and sample it at the actual state encountered. Subsequent stars do not change counts already assigned, so the induction gives all of (9.1) jointly.
This description defines causal kernels, rather than merely unrelated couplings at separate times. Each kernel uses the joint law conditional on the fractional history, then acts on the realized local state and parent total. It need not impose its marginal targets separately on the events specifying individual ancestor roundings. At a fixed finite horizon there are only finitely many relevant request and partition outcomes: on Y, a radius is needed only through the finite ball it defines, and only finitely many insertion and retirement draws are used. We can therefore choose one minimizing kernel at each relevant history without a measurable-selection issue. Choices at histories of probability zero can be arbitrary balanced continuations. The distributional policy is allowed to depend on the given law and horizon at this stage.
Proposition 9.2 (Rounding and metric realization). Assume the fractional allocations and anchors constructed in the preceding sections, with \tau\ge22. They admit a causal rounding satisfying (9.1) for which
Placing the integer parks at their current anchors gives simulated configurations S_t of exactly k members containing each current request. There is a matching of consecutive configurations with expected total cost at most
Consequently their expected movement is at most C(V+\ell P+\ell Q)+D for an absolute C and a finite additive term D depending only on the fixed finite structure.
Proof. We first prove the movement estimate in the tree. For an internal vertex v and time t, define
The local lemma, conditional on \mathcal F_t, gives
Since p_v^\circ=q_v-\sum_iq_i,
Multiply by r_{|v|}, sum over internal vertices and times, and take expectations. Every nonroot vertex occurs once as an ordinary child, and \Delta q_{\rm root}=0. Thus
The same weighting of the parent terms gives
because the root count is fixed and the internal nonroot vertices are a subset of all nonroot vertices. Dropping the nonnegative parking movements from the local left-hand sides now yields the exact recurrence
All sums are finite. For \tau\ge22 this gives N_{\rm rnd}\le(128+64/\tau)V\le132V, proving (9.7). In particular, initialization of the rounding does not introduce a new additive variation term. The same absolute \tau can satisfy this threshold and the allocation theorem’s absorption threshold.
We next describe the matching in the tree. Give the edge entering a nonroot vertex v length r_{|v|-1}. The consistency identities in (9.1) imply that n_v(t) is the total number of integer parks in the subtree at v. First match \min\{c_v(t-1),c_v(t)\} old and new copies at every identical vertex v. The unmatched copies define integer supplies and demands with equal total. Starting at the leaves, cancel supplies against demands whenever they meet, and carry the uncancelled copies to the parent. At the edge entering v, the number of copies carried is exactly |\Delta n_v(t)|: the signed imbalance in that subtree is \Delta n_v(t), and after cancellation all remaining copies have the same sign. The root has zero final imbalance. Following each matched pair’s path therefore gives total tree length exactly
This also proves the lower bound for any matching, since each subtree’s net imbalance must cross its entering edge. Fixing orders for cancellations makes the chosen matching a function of the current and previous rounded states.
Every occupied vertex has a current validity witness. Indeed c_v(t)>0 implies p_v^\circ(t)>0, since the only balanced rounding of zero is zero. Hence q_v(t)>0, and the allocation domination q_v(t)\le C_0m_v(t) implies m_v(t)>0. Some point of Y must then have the prefix defining v. This is also the witness assertion of Lemma 8.1. At a nonroot vertex of depth j, its witness is within 20r_j of the vertex’s current anchor, by Lemma 7.4.
Consider a matched old vertex u and new vertex v with u\ne v. Let their last common prefix be w of depth j. If j\ge1, choose an old witness y_- for u and a new witness y_+ for v. Write a_-(z) and a_+(z) for an anchor before and after the step, respectively. Both witnesses use the same depth-j key at w in the two consecutive maps. By the fixed-alphabet construction, its two anchors are either equal or related by an explicit heavy-ball reuse, and in either case
The witnesses are within 20r_j of the corresponding anchors at w. They are also within 20r_{|u|} and 20r_{|v|} of the anchors of their own endpoints. Since both endpoint radii are at most r_j, the triangle inequality gives
The tree path between distinct endpoints passes through an edge of length r_j: this remains true when w=u or w=v, since then the path starts with the edge to the next depth. Thus (9.13) is at most 120 times this path’s tree length. If j=0, both anchors belong to Y, so their distance is at most \diam(Y)=r_0. Their path crosses an edge of length r_0, also when one endpoint is the root. The same bound follows. Only occupied vertices were used in this reasoning; no assertion about distances associated with nonexistent prefixes is needed.
It remains to pay for the copies matched at one and the same vertex. The root anchor is fixed, so it contributes zero. For a nonroot vertex v of depth j, put h_v=\min\{c_v(t-1),c_v(t)\}. If its anchor moves while both copies are occupied, its last label is retained across the step. Only heavy labels can move in this way, and the displacement is at most 40r_j. Write E_{t,j,\lambda} for the event that label \lambda is retained and moves at this step. This event and both anchors are \mathcal F_t-measurable. Since h_v\le c_v(t), regardless of any correlations created by the matching,
Summing first over all depth-j vertices with last label \lambda turns the right-hand side into b_{t,j,\lambda}\one_{E_{t,j,\lambda}}, in the notation of Section 8. Summing over labels, levels and times pays the expected cost of all these coincident-vertex matches by 40T_{\rm anchor}. Together with (9.12) and the bound for distinct vertices, this proves (9.8).
Finally let x be the current request. Its assigned leaf has q_v\ge1 by Theorem 3.1, so balancedness gives c_v=n_v\ge1. At level J, a point assigned to a ball key is within 20r_J of that key’s center. Since 40r_J is smaller than the least positive distance in Y, this point equals the center. A fallback key is anchored at its point as well. The anchor of the request leaf is therefore exactly x, and the simulated configuration serves it. The claimed final estimate now follows from (9.7), (9.8), and Proposition 8.2.
9.3 Uniform finite-law synthesis
We can now complete the distributional statement in the setup. We give the additive accounting explicitly because its independence of the horizon is essential for the transfer in the next section.
Proof of Proposition 2.2. Fix the finite metric Y, the server number k and the initial tuple s. Choose the absolute separation factor once, sufficiently large for Theorem 3.1 and with \tau\ge22. Fix the scales and the finite alphabets from Lemma 7.4. These choices depend only on Y,k and the absolute construction parameters. For a given finite-support input law at a finite horizon, choose its hidden optimal trajectory and carry out the partition, allocation, anchor and rounding constructions. Their interfaces give absolute constants C_P,C_A,C_T and finite remainders D_P,D_A,D_T such that
In particular the conditional laws used by the allocation are those of the hidden members under the final online map. Filtering keeps the old map with the old hidden variable, and drift uses the coupled old and new maps, exactly as required by the first two estimates. Rounding neither changes those observations nor supplies information to the partition rules.
Here is a census of the fixed objects and their possible endpoint charges in (9.14). Let \mathcal T be the full finite prefix tree, let d_v be the number of children of an internal vertex, and let L_j be the number of label slots at level j. These numbers can be large. They are fixed before the law and horizon are chosen.
- 1.
At each fixed vertex and rank, the elementary tracking potential is p(1-p)+(p-p^\circ)^2\in[0,1]. There are finitely many such rank, flag and endpoint-function trackers, indexed by the k ranks of the fixed vertices, with the fixed finite number of versions used in the allocation construction. Their tolerances, including the tolerances of order 1/\ell, have already been fixed. The resulting initialization and endpoint charges are finite functions of k and the vertex index, rather than of a trajectory’s number of resets.
At an internal vertex, the sizes, core sums and cap scales are bounded by fixed multiples of k. The proportion variables have the fixed simplex or bounded-\ell_1 domains used in their definitions. The primitive bounds in Section 4 therefore bound the absolute values of both proportion potentials by a finite quantity, for example C\ell k(d_v+1) after increasing an absolute constant. The switching potential is bounded by Ck. Initial size and epoch charges likewise involve only these bounded sizes. Multiplying these finitely many bounds by their fixed star weights r_{|v|} and by the fixed coefficients in the local estimates gives a finite common choice of D_A.
- 2.
At scale r_j, each pilot potential lies in [0,2r_jk]. There is one heavy template and a finite number of tier templates, the latter with their fixed weights e^{-h}. The heavy distance-ramp and the tier noncoverage potentials lie in [0,r_jk] for each template. Their initial and terminal contributions are bounded by the corresponding finite sums of 2r_jk and r_jk over levels and tiers, with the fixed coefficients from Section 7. Hence D_P can be chosen uniformly.
- 3.
Each held key size in Section 8 is in [1,k+1]. The affine tangent potential to -s\log s, evaluated at an argument and reference in that interval, has absolute value at most C(k+1)\ell. The normalized travel potential for a level-j label is nonnegative and at most Cr_jk, because its parked-mass coefficient b/\widehat m is bounded by an absolute constant and its counting integral is at most k. The sums
\sum_{j=1}^J L_j r_j(k+1)\ell \quad\hbox{and}\quad \sum_{j=1}^J L_j r_jktherefore bound all relevant endpoint terms up to fixed coefficients. They give a finite common choice of D_T, including its size-tracker initialization charges.
- 4.
The rounding process has no additional variation remainder, by (9.7). Its initial configuration S_0 is a multiset of k points in Y. Consequently the initial minimum matching distance from s to S_0 is at most k\diam(Y), for every rounding outcome.
This list uses persistent state at every fixed slot. A rank or key tracker continues through absence and later reappearance of its label; no new initialization allowance is charged when a slot is reused. Epoch changes and normalization refreshes are paid transitions in the preceding estimates. The alphabets have bounded size because each tier and scale has at most |Y|K^2 relevant roster entries, with fixed additional slots for the label exclusion rule. Fresh random draws at successive insertions do not create fresh tree vertices or fresh potentials. Thus the finite endpoint bounds above hold uniformly over all possible histories, and are summed over slots and templates once. The number of histories, the number of label reuses and the horizon do not enter D_P,D_A,D_T.
To make the final combination explicit, put
Proposition 9.2 and (9.14) give
where \ell\ge1 was used in the last line. Apply Lemma 2.1 from the actual labeled tuple s. It yields a causal strongly lazy policy serving the same requests, with expected cost at most this simulated movement plus the initial matching mismatch. Thus Proposition 2.2 holds with the absolute constant
and, for example, the finite nonnegative constant
All three remainders can be enlarged to nonnegative uniform bounds from the census above. Formula (9.15) consequently depends only on the fixed metric, k, the start and the fixed construction; it is independent of the input law and horizon. Repeated starting positions cause no change, since both simulated configurations and the matching simulation treat repeated points as separate copies.
10 One policy on an arbitrary metric space
Proposition 2.2 produces a policy for each input law on a fixed finite metric. We now remove that dependence in three steps. First, repeated independent episodes remove the additive term when the starting points are distinct. A finite separation argument then gives one policy for any finite collection of inputs. Finally, product compactness gives one policy for all finite inputs, even when the metric space is infinite. We spell out the finite separation argument and the closed constraints used in compactness.
Throughout this section, let a be the absolute constant in Proposition 2.2, and put
We may enlarge the additive constant of that proposition to ensure D_0(Y,k,s)\ge0. Its independence of the input law and horizon is essential below.
10.1 Removing the finite-metric additive constant
Lemma 10.1 (Episode amplification). Let Y be a finite metric space, let k\ge2, and let s=(s_1,\ldots,s_k)\in Y^k have distinct entries. For every finite-support probability law \lambda on finite request sequences in Y, there is a causal randomized policy A_\lambda starting from s such that
The policy can be strongly lazy. The constant c_{\mathrm{tr}} in (10.1) is the same for all Y, s, and \lambda.
Proof. Write Q=\E_{\lambda}\OPT_s(\sigma). We first make the episode length deterministic without changing Q. Let
Extend each nonempty sequence to length L by repeating its last request; extend an empty sequence by L repetitions of s_1. Denote the resulting law on Y^L by \bar\lambda. For every original sequence \sigma and its extension \bar\sigma,
Indeed, restriction of any service of \bar\sigma to its original prefix gives the lower bound. An optimal service of a nonempty \sigma ends with a server at its last request and can serve the extension at zero extra cost. An empty sequence and its extension both have optimum zero. A causal policy designed for L requests can be run on the original sequence and stopped when that sequence ends; its actions on this prefix are identical to its actions on the extension. Thus it is enough to prove the claim for \bar\lambda and then truncate. The policy need not be told the actual stopping time in advance.
If Q=0, every sequence of positive probability has optimum zero. An optimum is attained because there are only k^L possible strings of server labels. A zero-cost service cannot move any server to a different point, so every request lies among s_1,\ldots,s_k. Any strongly lazy policy therefore has zero cost on the law, proving (10.2). We henceforth assume Q>0.
Set
The distinct starting points ensure \Delta>0. The reset word is R consecutive copies of (s_1,\ldots,s_k), of length Rk. For every \rho=(x_1,\ldots,x_L)\in\supp\bar\lambda, choose one optimal labeled service from s, resolving ties by the lexicographic order of its chosen server labels. Write C_t(\rho)\in Y^k for its configuration after request t, and j_t(\rho) for its chosen label. Here C_0(\rho)=s; a label is designated even when the move is zero. Define its reverse word to be
Starting at C_L(\rho), this word can be served by moving labels j_L,j_{L-1},\ldots,j_1 in that order. Before undoing step t the configuration is exactly C_t(\rho), and its designated move returns it to C_{t-1}(\rho). This verifies legality and returns the labeled tuple exactly to s, at total cost \OPT_s(\rho). The assertion also covers zero moves. The reset word then has zero comparator cost.
Fix an integer N\ge1. Sample N independent words \rho_1,\ldots,\rho_N from \bar\lambda, and concatenate, for each i, its forward word \rho_i, its reverse word \rho_i^{\leftarrow}, and the reset word. This is a finite-support law on words of the fixed length N(2L+Rk). All its requests are functions of the sampled forward words and the fixed optimal services; in particular, the law is fixed independently of the online policy’s randomness. Following the chosen optimal service and then its reverse in every episode gives
Proposition 2.2, followed if necessary by Lemma 2.1 with zero initial mismatch, gives a strongly lazy causal policy \mathcal A_N for this experiment with
As usual, specify arbitrary causal strongly lazy continuation rules at histories having probability zero under the experiment law.
Let F_i, H_i, and Z_i be the costs of \mathcal A_N during the forward word, reverse word, and reset word of episode i, respectively. Let A_i be its configuration at the end of that reset word, and define
We claim, pathwise, that
If a complete reset cycle has zero movement, the configuration stays constant throughout that cycle and covers every one of the k distinct points s_1,\ldots,s_k. Since there are exactly k servers, its multiset of positions is the starting multiset. Strong laziness keeps this multiset fixed throughout all remaining reset cycles. Consequently, if M_i>0, every reset cycle contains a positive move. Each such move has length at least \delta, because all positions are in Y. Therefore
If M_i=0, (10.7) follows from nonnegativity. The argument requires equality only of multisets, not of the labels occupying the distinct starting points.
We extract a policy for one forward word. Before receiving any actual requests, choose I uniformly from \{1,\ldots,N\}. Conditional on I=i, generate i-1 fictitious independent forward words from \bar\lambda, together with their fixed reverse and reset words. Using fresh internal randomness independent of these words, simulate \mathcal A_N from s through that entire fictitious prefix. This produces its internal state and a virtual configuration at the start of forward episode i. For each actual request, now give that request to the virtual policy as its next request. Follow its virtual configurations from the real initial tuple s by the strongly lazy simulation in Lemma 2.1.
This defines a causal policy: the fictitious prefix is internal randomness independent of the actual input, the boundary of episode i is known from i, L, and R, and the virtual continuation uses only the actual requests already received. Neither the remainder of the actual word nor its reverse word needs to be generated. After L actual requests, an arbitrary strongly lazy rule extends this policy to all longer inputs.
When the actual forward word is sampled from \bar\lambda, conditional on I=i, the virtual evolution through that word has the same law as the evolution of \mathcal A_N through forward episode i in the experiment. The true simulation starts with mismatch M_{i-1} under this identification, where M_0=0 for i=1. Lemma 2.1 and (10.7) give
In the third line, the charged forward and preceding reset blocks are disjoint parts of the experiment; reverse-block costs and the last reset-block cost are nonnegative uncharged terms. Truncating to an original unpadded sequence can only reduce this expected cost.
Finally take
Then (10.8) is at most (2a+1)\ell^2Q, as asserted. This is a finite choice of N for the given law; no limiting policy is used here. The metric-dependent numbers R and N affect only the auxiliary experiment and not the coefficient in (10.2).
10.2 A single policy for a finite collection of inputs
For this and the next subsection fix an arbitrary metric space X and a distinct starting tuple s\in X^k. Write [k]=\{1,\ldots,k\}. A decision history at time t consists of the request prefix (x_1,\ldots,x_t) and the previously chosen server labels (j_1,\ldots,j_{t-1}). These data determine the current labeled configuration. A behavioral policy assigns a probability vector on [k] to every such history and samples its next label from that vector. It has no horizon parameter.
Lemma 10.2 (Finite separation and behavioral conversion). For every finite collection \sigma_1,\ldots,\sigma_m of finite request sequences in X, there is a behavioral policy p from s satisfying
Its behavioral choices can be defined on all decision histories in X.
Proof. There is nothing to prove for an empty collection. Otherwise let Y be the finite submetric containing all starting points and all points appearing in the sequences. It has positive diameter. Every server position during a legal service is an initial position or a previously requested point: each permitted move is to the current request. Therefore passing from X to Y changes neither the legal label strings nor their costs, and
Let \mathcal H_0 be the finite set of decision histories whose request prefix is a nonempty prefix of some \sigma_i, with every possible previous label string included. This is the finite distributional minimax principle associated with Yao [29], applied to excess cost. A deterministic policy on this set is a map \pi:\mathcal H_0\to[k]. There are finitely many such maps; write their set as \mathcal D. For each \pi\in\mathcal D, put
The set K\subseteq\R^m is compact, being the continuous image of a finite-dimensional compact simplex, and is convex.
We claim K\cap(-\R_{\ge0}^m)\ne\varnothing. If not, minimize the continuous function
over K, and let z_* be a minimizer. Put w_i=\max((z_*)_i,0). The supposed disjointness implies w\ne0. For every z\in K the segment z_*+t(z-z_*), 0\le t\le1, lies in K. The right derivative of f along this segment at t=0 is nonnegative. Since the scalar function u\mapsto\max(u,0)^2 is differentiable, including at zero, this says
It follows that
Normalize w to the probability weights \lambda_i=w_i/(\sum_jw_j) on the target sequences. Lemma 10.1, applied on Y, supplies a randomized causal policy with nonpositive expected excess cost for this law.
Every randomized causal policy, restricted to this finite history set, has its vector of expected excess costs in K. To see this directly, fix its internal random tape, independent of requests. Run the fixed tape on each of the finitely many request prefixes. This determines a deterministic rule at histories compatible with those runs; assign arbitrary choices at incompatible histories. The resulting member of \mathcal D reproduces its actions on every \sigma_i. There are only finitely many possible rules, so their probabilities form a convex combination of the vectors v(\pi). Each event defining such a rule is a finite combination of events for choices on fixed finite inputs and is measurable. Consequently the expected excess for the law with weights \lambda_i is strictly positive by (10.11), a contradiction. This proves the claim. Choose weights \theta_\pi whose convex combination lies in the nonpositive orthant. Sampling \pi with these weights at the start would give (10.9).
For later compactness we convert this finite mixture to behavioral choices, without placing any law on requests. This is the perfect-recall conversion of mixed to behavioral strategies [22]; the formula below makes its request-independent meaning explicit. At a history h=((x_1,\ldots,x_t),(j_1,\ldots,j_{t-1}))\in\mathcal H_0, let
If Z(h)>0, define
If Z(h)=0, choose any probability vector, for example one concentrated on label 1. Induction along a fixed request sequence shows that the probability of each label prefix under these choices is the total \theta-weight of policies consistent with that prefix. Indeed, when this weight is positive the next factor in (10.12) is exactly the ratio of the extended prefix weight to the old weight; when it is zero the prefix is unreachable. Thus the complete label strings, and therefore their costs, have the same law as in the original mixture on each \sigma_i. Set p_h arbitrarily at histories outside \mathcal H_0 to obtain the asserted policy on all of X. Formula (10.12) conditions only on consistency of past choices along a specified request prefix, not on an assumed distribution of requests.
10.3 Compactness over all finite histories
Lemma 10.3 (One policy for all finite inputs). For every metric space X and every distinct tuple s\in X^k, there is a single randomized causal policy A_s such that
For each fixed input its decisions and cost are measurable functions of its internal randomness. Neither its rule nor its randomization depends on an eventual horizon.
Proof. The set of all decision histories is
Let
Thus a point of \mathcal P specifies a behavioral policy at all histories. Each factor \Delta_k is compact, so Tychonoff’s theorem makes \mathcal P compact in the product topology [19, Chapter 5, Theorem 13]; see also [28]. This application uses the usual set-theoretic choice principle and permits an arbitrary index set \mathcal H.
First record the exact dependence of a fixed-input expected cost on these coordinates. For \sigma=(x_1,\ldots,x_m) and a label string j=(j_1,\ldots,j_m)\in[k]^m, let c_s(\sigma,j) be its deterministic service cost from s. Explicitly, begin with the tuple s, replace coordinate j_t by x_t at step t, and sum the distances replaced. These costs are finite, even when X is unbounded, since a fixed input and the starting tuple contain only finitely many points. For p\in\mathcal P the expected cost is
For the empty sequence this is zero. For any fixed nonempty sequence, it is a polynomial in finitely many coordinates of p, hence a continuous function of those coordinates. Consequently the constraint
is closed in those finitely many factors.
For each finite input \sigma, let
These sets are closed by the finite-coordinate continuity just proved. Every finite subcollection has nonempty intersection by Lemma 10.2: that lemma supplies a behavioral policy defined on all histories which satisfies all the selected constraints. The finite-intersection property in the compact space \mathcal P therefore gives
Choose p in this intersection. No bound on the diameter or cardinality of X enters this argument. Boundedness is needed only for the cost of one fixed finite input, which was established before Equation (10.14).
It remains to realize these choices as one randomized online policy. At each request use the current history h and choose the next label with probabilities p_h(1),\ldots,p_h(k). For example, take independent uniform random numbers in [0,1) and choose the first label whose cumulative probability exceeds the next number. Only the revealed request prefix and past labels enter this rule. One can also implement all times on the single probability space [0,1) with Lebesgue measure: subdivide its current interval into half-open pieces with relative lengths p_h(1),\ldots,p_h(k), choose the piece containing the initial uniform point, and continue within that piece. Pieces of length zero are empty. On a fixed finite input, the set of seeds giving any specified label prefix is an interval whose length is the product of the corresponding probabilities. Therefore each label choice and the finite total cost are measurable, and their expectation is precisely (10.14).
In particular, the policy is defined for every history before any input or horizon is chosen. Measurability here is exactly that required for each fixed oblivious input; no probability distribution on the request space, or joint measurability in a random request variable, enters the construction. The inequalities already proved for p give (10.13).
10.4 Repeated starting positions and the final bound
Proof of Theorem 1.1. Fix k\ge2, a metric space (X,d) with at least k+1 points, and any labeled starting tuple s\in X^k, allowing repetitions. Choose a tuple u\in X^k of distinct points, and put
Such a tuple exists by the cardinality assumption. The number D is finite, even in an unbounded metric, since it is the minimum of finitely many finite sums.
For every finite input \sigma, choose an optimal legal trajectory from s. Its existence follows from the finitely many label strings for that input. Apply Lemma 2.1 to follow this trajectory from the initial tuple u. This gives a legal service from u of cost at most \OPT_s(\sigma)+D. This use of the lemma is a pathwise comparison of offline services and does not require computing that trajectory online. Consequently
By Lemma 10.3, one online policy A_u from u satisfies (10.13) for every finite input. Run this policy virtually, and follow its configurations from s by Lemma 2.1. The resulting policy A is causal and can be strongly lazy. Minimum matchings can be selected by a fixed order on the finite set of label permutations, so this simulation also preserves measurability on each fixed input. Pathwise it adds at most D to the virtual cost, and therefore
The explicit additive constant
depends only on the metric, k, and the fixed choices of starting tuples. It is independent of the input and its length. When s already has distinct entries we may take u=s, giving D=B=0.
Finally, for k\ge2 we have \log(k+1)\ge\log3>1 and hence
Thus (10.18) proves the theorem with the single absolute constant C=4(2a+1) and the finite B in (10.19). All policy choices were fixed for the specified metric and initial tuple, so the same policy serves every finite sequence and every horizon.
References
- [1]Nikhil Bansal, Niv Buchbinder, Aleksander Mądry, and Joseph (Seffi) Naor. A Polylogarithmic-Competitive Algorithm for the k-Server Problem. Journal of the ACM, 62(5):40:1–40:49, 2015. doi:10.1145/2783434. Section references are to the full author version. doi:10.1145/2783434, arXiv:1110.1580.
- [2]Nikhil Bansal, Niv Buchbinder, and Joseph (Seffi) Naor. Towards the Randomized k-Server Conjecture: A Primal-Dual Approach. In Proceedings of the Twenty-First Annual ACM-SIAM Symposium on Discrete Algorithms, pages 40–55, 2010. doi:10.1137/1.9781611973075.5. doi:10.1137/1.9781611973075.5.
- [3]Nikhil Bansal, Niv Buchbinder, and Joseph (Seffi) Naor. A Primal-Dual Randomized Algorithm for Weighted Paging. Journal of the ACM, 59(4):19:1–19:24, 2012. doi:10.1145/2339123.2339126. doi:10.1145/2339123.2339126.
- [4]Yair Bartal. Probabilistic Approximation of Metric Spaces and Its Algorithmic Applications. In Proceedings of the 37th Annual Symposium on Foundations of Computer Science, pages 184–193, 1996. doi:10.1109/SFCS.1996.548477. doi:10.1109/SFCS.1996.548477.
- [5]Yair Bartal. On Approximating Arbitrary Metrices by Tree Metrics. In Proceedings of the Thirtieth Annual ACM Symposium on Theory of Computing, pages 161–168, 1998. doi:10.1145/276698.276725. doi:10.1145/276698.276725.
- [6]Yair Bartal, Béla Bollobás, and Manor Mendel. Ramsey-Type Theorems for Metric Spaces with Applications to Online Problems. Journal of Computer and System Sciences, 72(5):890–921, 2006. doi:10.1016/j.jcss.2005.05.008. doi:10.1016/j.jcss.2005.05.008.
- [7]Yair Bartal, Nathan Linial, Manor Mendel, and Assaf Naor. On Metric Ramsey-Type Phenomena. Annals of Mathematics, 162(2):643–709, 2005. doi:10.4007/annals.2005.162.643. doi:10.4007/annals.2005.162.643.
- [8]Avrim Blum, Howard Karloff, Yuval Rabani, and Michael Saks. A Decomposition Theorem for Task Systems and Bounds for Randomized Server Problems. SIAM Journal on Computing, 30(5):1624–1661, 2000. doi:10.1137/S0097539799351882. doi:10.1137/S0097539799351882.
- [9]L. M. Bregman. The Relaxation Method of Finding the Common Point of Convex Sets and Its Application to the Solution of Problems in Convex Programming. USSR Computational Mathematics and Mathematical Physics, 7(3):200–217, 1967. doi:10.1016/0041-5553(67)90040-7. doi:10.1016/0041-5553(67)90040-7.
- [10]Sébastien Bubeck, Christian Coester, and Yuval Rabani. The Randomized k-Server Conjecture Is False!. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pages 581–594, 2023. doi:10.1145/3564246.3585132. Numbered references are to the full version, arXiv:2211.05753v2, July 6, 2023. doi:10.1145/3564246.3585132, arXiv:2211.05753.
- [11]Sébastien Bubeck, Michael B. Cohen, James R. Lee, Yin Tat Lee, and Aleksander Mądry. k-Server via Multiscale Entropic Regularization. In Proceedings of the Fiftieth Annual ACM SIGACT Symposium on Theory of Computing, pages 3–16, 2018. doi:10.1145/3188745.3188798. Section references are to the full version, arXiv:1711.01085v1. doi:10.1145/3188745.3188798, arXiv:1711.01085.
- [12]Christian Coester and Romain Cosson. Randomized k-Server in Polynomial Time. In 53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026), pages 65:1–65:20, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPIcs.ICALP.2026.65. doi:10.4230/LIPIcs.ICALP.2026.65.
- [13]Christian Coester, Elias Koutsoupias, and Marek Zbysiński. The k-Server Conjecture Is True. 2026. doi:10.48550/arXiv.2609.15979. Version 1, September 14, 2026. doi:10.48550/arXiv.2609.15979, arXiv:2609.15979.
- [14]Aaron Coté, Adam Meyerson, and Laura Poplawski. Randomized k-Server on Hierarchical Binary Trees. In Proceedings of the Fortieth Annual ACM Symposium on Theory of Computing, pages 227–234, 2008. doi:10.1145/1374376.1374411. doi:10.1145/1374376.1374411.
- [15]Jittat Fakcharoenphol, Satish Rao, and Kunal Talwar. A Tight Bound on Approximating Arbitrary Metrics by Tree Metrics. Journal of Computer and System Sciences, 69(3):485–497, 2004. doi:10.1016/j.jcss.2004.04.011. doi:10.1016/j.jcss.2004.04.011.
- [16]Amos Fiat, Richard M. Karp, Michael Luby, Lyle A. McGeoch, Daniel D. Sleator, and Neal E. Young. Competitive Paging Algorithms. Journal of Algorithms, 12(4):685–699, 1991. doi:10.1016/0196-6774(91)90041-V. doi:10.1016/0196-6774(91)90041-V.
- [17]Jovan Karamata. Sur une inégalité relative aux fonctions convexes. Publications mathématiques de l’Université de Belgrade, 1:145–148, 1932. Original journal archive. https://elib.mi.sanu.ac.rs/files/journals/publ/1/11.pdf.
- [18]Howard Karloff, Yuval Rabani, and Yiftach Ravid. Lower Bounds for Randomized k-Server and Motion-Planning Algorithms. SIAM Journal on Computing, 23(2):293–312, 1994. doi:10.1137/S0097539792224838. doi:10.1137/S0097539792224838.
- [19]John L. Kelley. General Topology. D. Van Nostrand Company, 1955. Chapter 5, Theorem 13. Unabridged Dover republication, 2017.
- [20]Elias Koutsoupias and Christos H. Papadimitriou. On the k-Server Conjecture. Journal of the ACM, 42(5):971–983, 1995. doi:10.1145/210118.210128. doi:10.1145/210118.210128.
- [21]Robert Krauthgamer, James R. Lee, Manor Mendel, and Assaf Naor. Measured Descent: A New Embedding Method for Finite Metrics. Geometric and Functional Analysis, 15(4):839–858, 2005. doi:10.1007/s00039-005-0527-6. doi:10.1007/s00039-005-0527-6.
- [22]Harold W. Kuhn. Extensive Games and the Problem of Information. In Harold W. Kuhn and Albert W. Tucker, editors, Contributions to the Theory of Games II, pages 193–216, Princeton University Press, 1953. doi:10.1515/9781400881970-012. doi:10.1515/9781400881970-012.
- [23]James R. Lee. Erratum: Fusible HSTs and the Randomized k-Server Conjecture. https://homes.cs.washington.edu/~jrl/papers/kserver-erratum.html. Accessed October 3, 2026.
- [24]James R. Lee. Fusible HSTs and the Randomized k-Server Conjecture. In Proceedings of the 59th Annual IEEE Symposium on Foundations of Computer Science, pages 438–449, 2018. doi:10.1109/FOCS.2018.00049. Section references are to arXiv:1711.01789v2, February 21, 2018. The general competitive-ratio claim was withdrawn in version 3, July 28, 2021; see the author’s erratum. doi:10.1109/FOCS.2018.00049, arXiv:1711.01789.
- [25]Mark S. Manasse, Lyle A. McGeoch, and Daniel D. Sleator. Competitive Algorithms for On-Line Problems. In Proceedings of the Twentieth Annual ACM Symposium on Theory of Computing, pages 322–333, 1988. doi:10.1145/62212.62243. doi:10.1145/62212.62243.
- [26]Mark S. Manasse, Lyle A. McGeoch, and Daniel D. Sleator. Competitive Algorithms for Server Problems. Journal of Algorithms, 11(2):208–230, 1990. doi:10.1016/0196-6774(90)90003-W. doi:10.1016/0196-6774(90)90003-W.
- [27]Lyle A. McGeoch and Daniel D. Sleator. A Strongly Competitive Randomized Paging Algorithm. Algorithmica, 6:816–825, 1991. doi:10.1007/BF01759073. doi:10.1007/BF01759073.
- [28]Andrei Tychonoff. Über einen Funktionenraum. Mathematische Annalen, 111:762–766, 1935. doi:10.1007/BF01472255. doi:10.1007/BF01472255.
- [29]Andrew Chi-Chih Yao. Probabilistic Computations: Toward a Unified Measure of Complexity. In 18th Annual Symposium on Foundations of Computer Science, pages 222–227, 1977. doi:10.1109/SFCS.1977.24. doi:10.1109/SFCS.1977.24.