diff 763cb89..b34550f k_server_uniform_computation_v2.txt
diff --git a/k_server_uniform_computation_v2.txt b/k_server_uniform_computation_v2.txt
index f707f8b..474f2b6 100644
--- a/k_server_uniform_computation_v2.txt
+++ b/k_server_uniform_computation_v2.txt
@@ -2,11 +2,11 @@ An online $k$-server algorithm maintains $k$ points of a metric space, the serve
 > "The k-server problem is that of planning the motion of k mobile servers on the vertices of a graph under a sequence of requests for service. Each request consists of the name of a vertex, and is satisfied by placing a server at the requested vertex. The requests must be satisfied in their order of occurrence. The cost of satisfying a sequence of requests is the distance moved by the servers."
 ./pdf/manasse-mcgeoch-sleator-1990-competitive-algorithms-for-server-problems.pdf
 
-Paging is the uniform-metric special case: servers model the pages currently held in a cache, the request stream is a sequence of pages, and a request to an absent page costs one unit of movement. Fiat, Karp, Luby, McGeoch, Sleator, and Young proved that the randomized marking algorithm attains competitive ratio $2H_k$ on this metric, where $H_k = 1 + 1/2 + \dots + 1/k$ is the $k$th harmonic number, and that $H_k$ is the best ratio any randomized algorithm can guarantee against an adaptive adversary. Logarithmic behaviour of a natural metric suggested the randomized $k$-server conjecture, which proposed an $O(\log k)$ ratio on every finite metric, and the marking idea seeded many potential-based and phase-based devices that later spread through online computation.
+Paging is the uniform-metric special case: servers model the pages currently held in a cache, the request stream is a sequence of pages, and a request to an absent page costs one unit of movement. Fiat, Karp, Luby, McGeoch, Sleator, and Young proved that the randomized marking algorithm attains competitive ratio $2H_k$ on this metric, where $H_k = 1 + 1/2 + ... + 1/k$ is the $k$th harmonic number, and that $H_k$ is the best ratio any randomized algorithm can guarantee against an adaptive adversary. Logarithmic behaviour of a natural metric suggested the randomized $k$-server conjecture, which proposed an $O(\log k)$ ratio on every finite metric, and the marking idea seeded many potential-based and phase-based devices that later spread through online computation.
 > "The best such factor that can be achieved is Hk. This is in contrast to deterministic algorithms, which cannot be guaranteed to be within a factor smaller than k of optimum."
 ./pdf/fiat-karp-luby-mcgeoch-sleator-young-1991-competitive-paging-algorithms.pdf
 
-Bubeck, Coester, and Rabani settled the randomized $k$-server conjecture in the negative by exhibiting finite metrics on which every randomized online algorithm has competitive ratio at least $\Omega(\log^2 k)$. The scale $\log^2(k+1)$ appearing in Theorem 1 is therefore sharp: no randomized algorithm uniform over all finite metrics can do better in order.
+Bubeck, Coester, and Rabani settled the randomized $k$-server conjecture in the negative by exhibiting finite metrics on which every randomized online algorithm has competitive ratio at least $Ω(\log^2 k)$. The scale $\log^2(k+1)$ appearing in Theorem 1 is therefore sharp: no randomized algorithm uniform over all finite metrics can do better in order.
 > "There exist (k+1)-point metric spaces in which the randomized competitive ratio for this problem is Omega(log^2 k)."
 ./pdf/bubeck-coester-rabani-2211.05753-randomized-k-server-conjecture-false.pdf
 
@@ -15,13 +15,13 @@ Coester and Cosson obtained a polynomial-time randomized algorithm with ratio $O
 ./pdf/coester-cosson-2605.01497-randomized-k-server-in-polynomial-time.pdf
 
 The mathematical input is the companion existence theorem. For every integer $k \ge 2$, every finite metric space with at least $k+1$ points, and every distinct starting tuple $u$ of length $k$, there exists a single randomized online policy whose expected movement against any finite request word $w$ chosen independently of its random bits satisfies
-$$ \mathbb{E}[\mathrm{cost}_{A,u}(w)] \le C_0 \log^2(k+1)\, \mathrm{OPT}_u(w) $$
-for an absolute constant $C_0 < \infty$. Only existence is available: neither the policy's transition probabilities nor any procedure that evaluates them is furnished. The task is to convert that existence assertion, which prescribes no procedure, into a single algorithm that is uniform on all finite rational metrics, has polynomial preprocessing, and admits per-request bit complexity depending only on the input plus the binary expansion of the request counter.
+$$ 𝔼[cost_{A,u}(w)] \le C_0 \log^2(k+1)\, OPT_u(w) $$
+for an absolute constant $C_0 < ∞$. Only existence is available: neither the policy's transition probabilities nor any procedure that evaluates them is furnished. The task is to convert that existence assertion, which prescribes no procedure, into a single algorithm that is uniform on all finite rational metrics, has polynomial preprocessing, and admits per-request bit complexity depending only on the input plus the binary expansion of the request counter.
 ./pdf/squared-logarithmic-k-server-companion.pdf
 
-THEOREM 1. There are an absolute constant $C < \infty$ and a polynomial $p$ with the following property. Let $n \ge 3$, $2 \le k < n$, let $d$ be a rational metric on $X = \{1, \dots, n\}$, and let $s \in X^k$ be a labeled starting tuple, repetitions permitted. Let $L$ be the total binary encoding length of $n$, $k$, $d$, and $s$ under a fixed canonical encoding. There is a single randomized online algorithm, defined by a fixed finite-alphabet bit machine that reads $(n, k, d, s)$ on its input tape, with three properties. Preprocessing uses at most $p(L)$ bit operations. At request $r_t$, for every reachable history and internal state, the algorithm uses at most $p(L + \lceil \log_2(t+1) \rceil)$ additional bit operations, draws only unbiased random bits, and moves exactly one chosen server to the requested point, permitting the move to have length zero. For every finite request word $\sigma$ independent of the algorithm's random bits,
-$$ \mathbb{E}[\mathrm{cost}_{A,s}(\sigma)] \le C \log^2(k+1)\, \mathrm{OPT}_s(\sigma) + B_{d,k,s}, $$
-where $B_{d,k,s} < \infty$ depends only on the instance and $C$ is absolute. The algorithm is not told the length of $\sigma$ in advance.
+THEOREM 1. There are an absolute constant $C < ∞$ and a polynomial $p$ with the following property. Let $n \ge 3$, $2 \le k < n$, let $d$ be a rational metric on $X = \{1, ..., n\}$, and let $s \in X^k$ be a labeled starting tuple, repetitions permitted. Let $L$ be the total binary encoding length of $n$, $k$, $d$, and $s$ under a fixed canonical encoding. There is a single randomized online algorithm, defined by a fixed finite-alphabet bit machine that reads $(n, k, d, s)$ on its input tape, with three properties. Preprocessing uses at most $p(L)$ bit operations. At request $r_t$, for every reachable history and internal state, the algorithm uses at most $p(L + \lceil \log_2(t+1) \rceil)$ additional bit operations, draws only unbiased random bits, and moves exactly one chosen server to the requested point, permitting the move to have length zero. For every finite request word $\sigma$ independent of the algorithm's random bits,
+$$ 𝔼[cost_{A,s}(\sigma)] \le C \log^2(k+1)\, OPT_s(\sigma) + B_{d,k,s}, $$
+where $B_{d,k,s} < ∞$ depends only on the instance and $C$ is absolute. The algorithm is not told the length of $\sigma$ in advance.
 
 Two features of the statement are essential. There is no bound on the additive term $B_{d,k,s}$: it may be enormous for a given instance, and it absorbs a delay during which the prescribed policy has not yet been activated. The permitted per-request computation grows polynomially in the binary expansion of the request counter, not in $L$ alone. Both features are forced by the schedule that follows from the construction, and serve to separate this algorithm from polynomial-time algorithms whose per-request cost is bounded by a function of $L$ only.
 ./pdf/coester-cosson-2605.01497-randomized-k-server-in-polynomial-time.pdf
@@ -35,32 +35,32 @@ The first step is lazification. A service is strongly lazy if, on a request to a
 Proof. Simulate the original policy as a virtual process. Let $c$ denote the follower tuple and $v$ the virtual tuple, and put $\Phi(c, v) = \min_{\pi \in S_k} \sum_{j=1}^k d(c_j, v_{\pi(j)})$, where $S_k$ is the symmetric group on $k$ letters. This is the cheapest perfect matching between the two tuples; the minimum is a finite minimum over permutations and exists even if the virtual tuple repeats positions. Initially $\Phi(c, v) = 0$. Suppose the virtual policy just served request $r$ at cost $\eta$, taking $v$ to $v'$. Applying the triangle inequality to a previously minimizing matching gives $\Phi(c, v') \le \Phi(c, v) + \eta$. If $c$ already covers $r$, the follower moves zero length. Otherwise fix a minimizing matching between $c$ and $v'$ together with a virtual label at $r$, move the matched follower label to $r$ at cost $m$, and obtain $c'$. The matching edge from that follower label to its partner at $r$ decreases from length $m$ to zero while all other edges keep their length, so $\Phi(c', v') \le \Phi(c, v') - m$; combined with the previous bound, $m + \Phi(c', v') \le \Phi(c, v) + \eta$. Summing this inequality over the requests of any finite word and using that the potential is zero initially and nonnegative at the end gives total follower cost at most total virtual cost. Because the follower moves only at requests not already covered by its own tuple, its positions remain distinct whenever the initial tuple is distinct. All decisions used only the revealed request and the currently simulated state, so the construction is causal.
 ./pdf/manasse-mcgeoch-sleator-1990-competitive-algorithms-for-server-problems.pdf
 
-The second step is a finite flow system. Fix the metric on $X = \{1, \dots, n\}$ and define $D = \max_{x,y} d(x,y)$, $\delta = \min_{x \ne y} d(x,y)$, so $0 < \delta \le D$. Fix a distinct initial tuple $u = (1, \dots, k)$, even when the true starting tuple $s$ may repeat points. For a prescribed horizon $H$, let $\mathcal{C}$ be the set of ordered $k$-tuples of distinct points of $X$, and let $T(c, r, j)$ denote the tuple obtained from $c$ by replacing its $j$th coordinate with $r$. The allowed-label set is $J(c, r) = \{j : c_j = r\}$ when $r$ belongs to $c$, and $J(c, r) = \{1, \dots, k\}$ otherwise. Introduce unknowns $p_{w,c}$ for the probability of configuration $c$ after the finite word $w$, unknowns $f_{w r, c, j}$ for the joint probability that configuration $c$ is used before the next request $r$ and label $j$ serves it, and one coefficient $a$. The defining constraints are
-$$ p_{w,c} \ge 0, \quad \sum_c p_{w,c} = 1, \quad p_{\varnothing, c} = [c = u], $$
+The second step is a finite flow system. Fix the metric on $X = \{1, ..., n\}$ and define $D = \max_{x,y} d(x,y)$, $\delta = \min_{x \ne y} d(x,y)$, so $0 < \delta \le D$. Fix a distinct initial tuple $u = (1, ..., k)$, even when the true starting tuple $s$ may repeat points. For a prescribed horizon $H$, let $C$ be the set of ordered $k$-tuples of distinct points of $X$, and let $T(c, r, j)$ denote the tuple obtained from $c$ by replacing its $j$th coordinate with $r$. The allowed-label set is $J(c, r) = \{j : c_j = r\}$ when $r$ belongs to $c$, and $J(c, r) = \{1, ..., k\}$ otherwise. Introduce unknowns $p_{w,c}$ for the probability of configuration $c$ after the finite word $w$, unknowns $f_{w r, c, j}$ for the joint probability that configuration $c$ is used before the next request $r$ and label $j$ serves it, and one coefficient $a$. The defining constraints are
+$$ p_{w,c} \ge 0, \quad \sum_c p_{w,c} = 1, \quad p_{∅, c} = [c = u], $$
 $$ f_{w r, c, j} \ge 0, \quad \sum_{j \in J(c,r)} f_{w r, c, j} = p_{w,c}, $$
-$$ \sum_{\substack{c \in \mathcal{C},\ j \in J(c,r) \\ T(c,r,j) = c'}} f_{w r, c, j} = p_{w r, c'}, $$
-for every word $w \in X^{\le H}$, $|w| < H$, request $r \in X$, and configuration $c' \in \mathcal{C}$, together with a coefficient constraint $a \ge 0$ and one inequality per nonempty word $x = r_1 \dots r_h$ with $h \le H$:
-$$ \sum_{i = 1}^h \sum_{c \in \mathcal{C}} \sum_{j \in J(c,r_i)} f_{r_1 \dots r_i, c, j}\, d(c_j, r_i) \le a\, \mathrm{OPT}_u(x). $$
-$\mathrm{OPT}_u(x)$ denotes the offline minimum for the word $x$ from the tuple $u$; it is computable by a finite dynamic program over the finitely many tuples of $X^k$ reachable from $u$. Explicitly, let $\Gamma_w(c)$ be the minimum cost of serving $w$ from $u$ and finishing at tuple $c$, with $+\infty$ marking an unreachable tuple; start with $\Gamma_{\varnothing}(u) = 0$ and all other entries $+\infty$, and use
-$$ \Gamma_{w r}(c') = \min_{\substack{c \in X^k,\ 1 \le j \le k \\ T(c, r, j) = c'}} (\Gamma_w(c) + d(c_j, r)), \qquad \mathrm{OPT}_u(w) = \min_{c \in X^k} \Gamma_w(c). $$
-These recurrences use only rational arithmetic and comparisons and never divide by $\mathrm{OPT}_u(x)$; a word with zero optimum gives a zero right-hand side in the coefficient constraint. Finite-horizon linear descriptions of randomized $k$-server strategies in exactly this marginal-and-flow form appear in Moemke's competitive-ratio approximation scheme on fixed finite metrics.
+$$ \sum_{\substack{c \in C,\ j \in J(c,r) \\ T(c,r,j) = c'}} f_{w r, c, j} = p_{w r, c'}, $$
+for every word $w \in X^{\le H}$, $|w| < H$, request $r \in X$, and configuration $c' \in C$, together with a coefficient constraint $a \ge 0$ and one inequality per nonempty word $x = r_1 ... r_h$ with $h \le H$:
+$$ \sum_{i = 1}^h \sum_{c \in C} \sum_{j \in J(c,r_i)} f_{r_1 ... r_i, c, j}\, d(c_j, r_i) \le a\, OPT_u(x). $$
+$OPT_u(x)$ denotes the offline minimum for the word $x$ from the tuple $u$; it is computable by a finite dynamic program over the finitely many tuples of $X^k$ reachable from $u$. Explicitly, let $\Gamma_w(c)$ be the minimum cost of serving $w$ from $u$ and finishing at tuple $c$, with $+∞$ marking an unreachable tuple; start with $\Gamma_{∅}(u) = 0$ and all other entries $+∞$, and use
+$$ \Gamma_{w r}(c') = \min_{\substack{c \in X^k,\ 1 \le j \le k \\ T(c, r, j) = c'}} (\Gamma_w(c) + d(c_j, r)), \qquad OPT_u(w) = \min_{c \in X^k} \Gamma_w(c). $$
+These recurrences use only rational arithmetic and comparisons and never divide by $OPT_u(x)$; a word with zero optimum gives a zero right-hand side in the coefficient constraint. Finite-horizon linear descriptions of randomized $k$-server strategies in exactly this marginal-and-flow form appear in Moemke's competitive-ratio approximation scheme on fixed finite metrics.
 ./pdf/moemke-1303.2963-competitive-ratio-approximation-scheme.pdf
 
-The system is feasible and bounded: by the existence theorem and lazification, a real solution exists with $a = C_0 \log^2(k+1)$, obtained from the probability distribution of the source policy. Since all coefficients are rational, the feasible set for $a$ after projecting out the $p$ and $f$ variables is a nonempty half-line $[a_*, \infty)$ with rational endpoint $a_*$. To compute $a_*$ exactly, replace each equality by a pair of weak inequalities, eliminate all variables except $a$ one at a time by Fourier-Motzkin elimination, and reverse the eliminations by choosing the largest lower bound at each variable. To eliminate a variable $z$, divide every inequality in which $z$ occurs by the (nonzero) rational coefficient of $z$, split the resulting affine bounds into lower bounds $z \ge L_i(y)$ and upper bounds $z \le U_j(y)$, keep all inequalities independent of $z$, and add every comparison $L_i(y) \le U_j(y)$; if either family is empty, add nothing. This is an exact existential projection. Each elimination removes one variable and a finite set of inequalities, so starting from finitely many the procedure terminates after finitely many eliminations. After all eliminations, the feasible $a$-values are given by finitely many weak rational inequalities in one variable. That set is nonempty because the real solution already exhibited belongs to it, and it includes the constraint $a \ge 0$, so its least value is the maximum of finitely many rational lower bounds. That maximum is rational and belongs to the feasible set. Compute it, then reverse the eliminations one variable at a time. At each reversal, evaluate the already-computed values inside the bounds and choose the largest lower bound if one exists; otherwise choose the smallest upper bound if one exists; otherwise choose zero. The projection inequalities ensure that the chosen value also respects any upper bounds. Repeating this yields a rational solution of the full system. Because both the Fourier-Motzkin step and the back-substitution work with rationals, the coefficient $a$ computed this way is a rational number satisfying $0 \le a_* \le C_0 \log^2(k+1)$; neither $C_0$ nor the source policy enters the computation. The elimination and its dual were introduced by Dantzig and Eaves in 1973; Subramani's exposition documents the step-by-step algorithm.
+The system is feasible and bounded: by the existence theorem and lazification, a real solution exists with $a = C_0 \log^2(k+1)$, obtained from the probability distribution of the source policy. Since all coefficients are rational, the feasible set for $a$ after projecting out the $p$ and $f$ variables is a nonempty half-line $[a_*, ∞)$ with rational endpoint $a_*$. To compute $a_*$ exactly, replace each equality by a pair of weak inequalities, eliminate all variables except $a$ one at a time by Fourier-Motzkin elimination, and reverse the eliminations by choosing the largest lower bound at each variable. To eliminate a variable $z$, divide every inequality in which $z$ occurs by the (nonzero) rational coefficient of $z$, split the resulting affine bounds into lower bounds $z \ge L_i(y)$ and upper bounds $z \le U_j(y)$, keep all inequalities independent of $z$, and add every comparison $L_i(y) \le U_j(y)$; if either family is empty, add nothing. This is an exact existential projection. Each elimination removes one variable and a finite set of inequalities, so starting from finitely many the procedure terminates after finitely many eliminations. After all eliminations, the feasible $a$-values are given by finitely many weak rational inequalities in one variable. That set is nonempty because the real solution already exhibited belongs to it, and it includes the constraint $a \ge 0$, so its least value is the maximum of finitely many rational lower bounds. That maximum is rational and belongs to the feasible set. Compute it, then reverse the eliminations one variable at a time. At each reversal, evaluate the already-computed values inside the bounds and choose the largest lower bound if one exists; otherwise choose the smallest upper bound if one exists; otherwise choose zero. The projection inequalities ensure that the chosen value also respects any upper bounds. Repeating this yields a rational solution of the full system. Because both the Fourier-Motzkin step and the back-substitution work with rationals, the coefficient $a$ computed this way is a rational number satisfying $0 \le a_* \le C_0 \log^2(k+1)$; neither $C_0$ nor the source policy enters the computation. The elimination and its dual were introduced by Dantzig and Eaves in 1973; Subramani's exposition documents the step-by-step algorithm.
 ./pdf/subramani-wvu-fourier-motzkin-elimination-notes.pdf
 
 From the rational solution, define causal conditional rows by $q_{w, r, c}(j) = f_{w r, c, j} / p_{w,c}$ when $p_{w,c} > 0$, and put all mass on the smallest allowed label when $p_{w,c} = 0$. Each row is a rational probability distribution supported on the allowed labels $J(c,r)$, including rows at configurations the unrounded policy does not reach. Along a fixed word $w$, induction using the mass, outflow, and inflow constraints shows that the causal policy generated by these rows has exactly the marginals $p$ and $f$, and therefore that the flow system's coefficient constraint is the expected-cost bound. Rounding follows. Fix $b$ the least nonnegative integer with $2^b \ge k H^2$. In each row reserve its smallest allowed label $j_0$ and set $\widehat q_{w,r,c}(j) = 2^{-b}\lfloor 2^b q_{w,r,c}(j) \rfloor$ for $j \ne j_0$, with the residual mass $\widehat q_{w,r,c}(j_0) = 1 - \sum_{j \ne j_0} \widehat q_{w,r,c}(j)$. The new row is supported on $J(c,r)$ and its total variation distance from the original is at most $k 2^{-b}$. Sampling with $b$ unbiased bits, using the numerators of the row with common denominator $2^b$, uses exactly $b$ random bits per decision and requires no rejection loop. Coupling the rounded and unrounded causally generated services until their first differing label choice, on a word of length $h \le H$, gives discrepancy probability at most $h k 2^{-b}$, since at any agreeing step the conditional discrepancy probability is at most $k 2^{-b}$. On the complement the two costs are equal; on the discrepancy event the difference is at most $h D$. Hence the expected movement of the rounded table from $u$ on any word $w$ of length $h \le H$ satisfies
-$$ \mathbb{E}[\mathrm{cost}_{\mathcal{T}_H, u}(w)] \le a\, \mathrm{OPT}_u(w) + k h^2 2^{-b} D \le a\, \mathrm{OPT}_u(w) + D. $$
+$$ 𝔼[cost_{T_H, u}(w)] \le a\, OPT_u(w) + k h^2 2^{-b} D \le a\, OPT_u(w) + D. $$
 A rounded trajectory can reach a configuration whose unrounded marginals were zero. That possibility causes no exception, because the table has already assigned such a configuration a legal row and reaching it can only occur after a discrepancy, whose cost is already absorbed.
-For every positive integer $H$ there is a terminating deterministic procedure on rational input that constructs a rational number $a$ and a finite table defining a strongly lazy policy $\mathcal{T}_H$ from $u$ such that $0 \le a \le C_0 \log^2(k+1)$ and
-$$ \mathbb{E}[\mathrm{cost}_{\mathcal{T}_H, u}(w)] \le a\, \mathrm{OPT}_u(w) + D $$
+For every positive integer $H$ there is a terminating deterministic procedure on rational input that constructs a rational number $a$ and a finite table defining a strongly lazy policy $T_H$ from $u$ such that $0 \le a \le C_0 \log^2(k+1)$ and
+$$ 𝔼[cost_{T_H, u}(w)] \le a\, OPT_u(w) + D $$
 for every word $w$ with $|w| \le H$. Every decision of the table uses exactly $b = \lceil \log_2(k H^2) \rceil$ independent unbiased bits. Neither $C_0$ nor an oracle for the existence theorem is required. The procedure's running time is not bounded at this stage; what matters is termination and output size, since scheduling intervenes before the constructor is put online.
 
 A fixed table horizon does not by itself serve an unbounded stream: a long interval may contain many requests while the offline optimum hardly grows. To hold the table's input word short, partition the suffix being served into raw blocks: a block ends at the request that first raises the number of distinct requested points in that block to $k+1$, and the next request begins a new block. Every completed block forces any service to pay at least $\delta$ inside the block, since the entering $k$ server locations cannot cover all $k+1$ distinct requested points. Set $R = \lceil k D / \delta \rceil$ and let an epoch consist of $R$ completed raw blocks. A completed epoch then forces cost at least $R \delta \ge kD$, and this lower bound covers the cost of restarting the table between epochs. A finite input may end inside a block or on a block boundary; every nonempty epoch contains at most $R$ nonempty blocks, counting a final incomplete block. Both block and epoch boundaries depend only on the raw request word and can be recognized on the fly.
 
 The cap parameters are fixed by the instance. Set $F = R (k+1) D$, $M = \lceil F / \delta \rceil$, and $H = \sum_{i = 0}^{M} k^i$. Anticipating a marking fallback that spends at most $(k+1) D$ per block, $F$ reserves the fallback's worst-case cost for a whole epoch. A table trajectory that makes $M+1$ positive moves inside an epoch has already paid $M \delta \ge F$, which is enough to finance a fallback for the remainder of the epoch. The tree bound $H$ counts the capped table trajectories to be tracked by the filter below.
 
-The filter works on one epoch at a time. At the start of the epoch, initialize a list with the single entry $(u, 0)$. Each entry $(c, i)$ consists of a distinct-position labeled tuple $c$ and a nonnegative move count $i$; several entries with identical data are allowed to coexist. On each raw request $r$ apply two deterministic rules. If every listed tuple covers $r$, drop the request and leave the list unchanged (this rule applies in particular to an empty list). Otherwise keep $r$: preserve entries that cover $r$; for every other entry $(c, i)$ with $i < M$, replace it by the $k$ entries $(T(c, r, j), i+1)$ for $j = 1, \dots, k$; an entry with $i = M$ is removed without replacement. The word of kept requests is built up as the epoch unfolds. The filter runs on every raw request, in either mode and either fate of the algorithmic service, and uses no random bits. This filtering-and-resetting device parallels Mikkelsen's phase construction for finite lazy task systems, in which candidate policies are simulated together, requests that are universally free to all candidates are discarded, and a bounded cost cap triggers a fallback; the branching-tree version below makes the bounds on retained word and on state explicit.
+The filter works on one epoch at a time. At the start of the epoch, initialize a list with the single entry $(u, 0)$. Each entry $(c, i)$ consists of a distinct-position labeled tuple $c$ and a nonnegative move count $i$; several entries with identical data are allowed to coexist. On each raw request $r$ apply two deterministic rules. If every listed tuple covers $r$, drop the request and leave the list unchanged (this rule applies in particular to an empty list). Otherwise keep $r$: preserve entries that cover $r$; for every other entry $(c, i)$ with $i < M$, replace it by the $k$ entries $(T(c, r, j), i+1)$ for $j = 1, ..., k$; an entry with $i = M$ is removed without replacement. The word of kept requests is built up as the epoch unfolds. The filter runs on every raw request, in either mode and either fate of the algorithmic service, and uses no random bits. This filtering-and-resetting device parallels Mikkelsen's phase construction for finite lazy task systems, in which candidate policies are simulated together, requests that are universally free to all candidates are discarded, and a bounded cost cap triggers a fallback; the branching-tree version below makes the bounds on retained word and on state explicit.
 > "When a new epoch begins, the good online algorithm wipes its own memory and serves the epoch as if the input had only consisted of this epoch."
 ./pdf/mikkelsen-1511.05886-randomization-glimpse-future.pdf
 
@@ -79,31 +79,31 @@ Raw-block and completed-block counters are updated using every raw request, inde
 Two estimates close the movement analysis: one per epoch, and one over the number of epochs. Fix a finite request word $\sigma$ independent of all random bits, and fix the deterministic index at which the routine begins. Choose one optimal labeled service of the whole word starting from $s$. For each nonempty epoch $E$, including its possibly truncated final portion, let $O_E$ be that service's movement during $E$ and let $w_E$ be the filter's full kept word in $E$. Both the epoch boundaries and $w_E$ depend only on the raw request word, hence are deterministic.
 
 The epoch estimate reads: for every such epoch, from any actual entering tuple, the expected actual cost in that epoch satisfies
-$$ \mathbb{E}[\mathrm{cost}_{\rm actual}(E)] \le 2 a\, O_E + (2a+2) k D. $$
+$$ 𝔼[cost_{\rm actual}(E)] \le 2 a\, O_E + (2a+2) k D. $$
 The bound is uniform in the actual entering tuple.
 
 The proof is by shadowing. Run a shadow copy of the table from $u$ on the full word $w_E$, and let $V_E$ be its cost. More precisely, assign independent blocks of $b$ unbiased bits to the successive positions of that deterministic word; use the same blocks for the actual table-mode decisions and reserve later blocks for the shadow's analysis of what would have happened had the algorithmic service not switched. Dropped requests leave the table-mode tuple unchanged, so the shadow and the virtual service agree through every table-mode decision, including the triggering move that takes the positive-move count to $M+1$. The shadow therefore has the ordinary full-table law, without conditioning on whether or when the switch occurs. By the finite-table proposition and by the filter lemma, which bounds the length of $w_E$ by $H$,
-$$ \mathbb{E}[V_E] \le a\, \mathrm{OPT}_u(w_E) + D. $$
+$$ 𝔼[V_E] \le a\, OPT_u(w_E) + D. $$
 Table-mode cost is at most $V_E$. If there is a switch, its common prefix already contains $M+1$ positive moves of length at least $\delta$ each, so $V_E \ge (M+1) \delta \ge F$, and the marking cost bound established for fallback then pays the entire fallback using a second copy of $V_E$. If there is no switch, the second copy is unnecessary. Thus, pathwise,
-$$ \mathrm{cost}_{\rm virtual}(E) \le 2 V_E, $$
+$$ cost_{\rm virtual}(E) \le 2 V_E, $$
 including a switch on the final raw request or on the final kept request, and including any truncation of an epoch. The expectation in the display for $V_E$ is always applied to a fixed full word.
 
 The comparison between actual and virtual is by first use. Within an epoch, the first time a label is used, both its actual and its virtual position arrive at the same requested point; by the triangle inequality, the actual cost of that first use exceeds the virtual cost by at most $D$, the maximum of the distance between the two entering positions. All subsequent costs of that label agree, until the next virtual reset. Labels never used cost nothing. Therefore
-$$ \mathrm{cost}_{\rm actual}(E) \le \mathrm{cost}_{\rm virtual}(E) + kD, $$
+$$ cost_{\rm actual}(E) \le cost_{\rm virtual}(E) + kD, $$
 which also covers a virtual hit on which the actual chosen label happens to have to move, and it allows repeated actual positions at the entry to an epoch.
 
 The last comparison is between the table's optimum and the whole-word optimum. For each label $j$, keep only its visits at times retained in $w_E$, and shortcut its other visits inside $E$ by direct metric paths; beginning these retained visits from its original epoch-entering point costs no more than its original movement during $E$. Replacing that point by $u_j$ adds at most $D$ to the first retained visit by the triangle inequality; if there is no retained visit, the label costs zero. The resulting $k$ paths constitute a legal labeled service of $w_E$ from $u$, because each path visits the point chosen by the whole-word optimum at every kept time, with the same label. Consequently
-$$ \mathrm{OPT}_u(w_E) \le O_E + kD. $$
+$$ OPT_u(w_E) \le O_E + kD. $$
 Combining these four displays yields
-$$ \mathbb{E}[\mathrm{cost}_{\rm actual}(E)] \le 2a(O_E + kD) + 2D + kD \le 2 a\, O_E + (2a+2) k D, $$
+$$ 𝔼[cost_{\rm actual}(E)] \le 2a(O_E + kD) + 2D + kD \le 2 a\, O_E + (2a+2) k D, $$
 where the last inequality uses $k \ge 2$. All comparisons involving the entering actual tuple were pathwise and uniform in that tuple; fresh table bits give the same shadow law after any earlier history.
 
 The suffix estimate reads: for every fixed finite word $\sigma$, the routine starting at any deterministic index from an arbitrary actual tuple has expected suffix cost at most
-$$ (4a+2)\, \mathrm{OPT}_s(\sigma) + (2a+2) kD, $$
+$$ (4a+2)\, OPT_s(\sigma) + (2a+2) kD, $$
 where all parameters $R, F, M, H, a$ are fixed by the instance. The whole-word optimum pays at least $\delta$ inside each completed raw block, regardless of its entering tuple, and the completed blocks are disjoint intervals of request times. Let $N$ be the number of nonempty epochs. The empty-suffix case is trivial; otherwise the first $N-1$ epochs each contain $R$ completed blocks, so
-$$ (N-1) R \delta \le \mathrm{OPT}_s(\sigma), \qquad N \le 1 + \mathrm{OPT}_s(\sigma) / (kD), $$
-using $R \delta \ge kD$. Also $\sum_E O_E \le \mathrm{OPT}_s(\sigma)$ because the epochs partition the original word into disjoint parts and the whole-word optimum's movement is additive over any partition of time. Summing the per-epoch estimate over epochs therefore yields
-$$ \mathbb{E}[\mathrm{cost}_{\rm suffix}] \le 2 a\, \mathrm{OPT}_s(\sigma) + (2a+2) kD\, N \le (4a+2)\, \mathrm{OPT}_s(\sigma) + (2a+2) kD. $$
+$$ (N-1) R \delta \le OPT_s(\sigma), \qquad N \le 1 + OPT_s(\sigma) / (kD), $$
+using $R \delta \ge kD$. Also $\sum_E O_E \le OPT_s(\sigma)$ because the epochs partition the original word into disjoint parts and the whole-word optimum's movement is additive over any partition of time. Summing the per-epoch estimate over epochs therefore yields
+$$ 𝔼[cost_{\rm suffix}] \le 2 a\, OPT_s(\sigma) + (2a+2) kD\, N \le (4a+2)\, OPT_s(\sigma) + (2a+2) kD. $$
 Only one epoch's fixed charge remains in the bound. A final unfinished epoch may contain arbitrarily many raw requests, since its kept word is still bounded by $H$ and its fallback cost is still bounded by $F$; no table error or restart charge accumulates with the raw request count. That completes the analysis of the suffix routine on any finite rational instance, assuming its table, filters, and parameters are already available.
 
 The suffix routine takes as given the finite table and the parameters of the instance. Obtaining that table requires one long finite computation independent of the request word. Preprocess by storing $n, k, d$ in a fixed canonical encoding and $s$ likewise: integers without leading zeros, rational distances with positive denominators and relatively prime numerators and denominators, matrix entries in fixed index order. Store the actual labeled tuple $s$, initialize a binary request counter to zero, and set a flag indicating that suffix service has not started. This takes polynomially many bit operations in $L$ and produces $O(L)$ bits, since rational reduction is polynomial in the encoding length (in the Euclidean algorithm the larger positive magnitude decreases by at least a factor two in every two remainder steps) and $n, k \le O(L)$.
@@ -127,7 +127,7 @@ It is finite and depends only on $(n, k, d)$, so neither $s$ nor the request wor
 Proof of Theorem 1. The preprocessing and schedule above define one randomized causal algorithm that uses only unbiased random bits and, at each request, moves exactly one labeled actual server to the requested point. By the scheduling bound, its bit complexity has the required form with a single polynomial $p$.
 
 Fix any finite request word $\sigma$ independent of the random bits. The requests before activation cost at most $(t_*-1) D$ in total, since each moves a single server over distance at most $D$. If $\sigma$ ends before activation, this bound already covers the whole cost. Otherwise, applying the suffix bound from the deterministic start $t_*$, with the whole-word optimum from $s$, gives
-$$ \mathbb{E}[\mathrm{cost}_A(\sigma)] \le (4a+2)\, \mathrm{OPT}_s(\sigma) + (t_*-1) D + (2a+2) kD. $$
+$$ 𝔼[cost_A(\sigma)] \le (4a+2)\, OPT_s(\sigma) + (t_*-1) D + (2a+2) kD. $$
 The same inequality holds for any shorter word, including the empty word, by nonnegativity of its right-hand side.
 
 Since $a \le C_0 \log^2(k+1)$ and $\log(k+1) \ge \log 3$ for $k \ge 2$, set