Introduction
The classical Steinitz lemma asks how to order a zero-sum family of bounded vectors so that every prefix sum remains small [25 ] . For vectors v 1 , … , v T ∈ R d v_1,\ldots,v_T \in\mathbb{R}^{d} v 1 , … , v T ∈ R d with ∥ v t ∥ 2 ≤ 1 \lVert v_t\rVert_2 \le1 ∥ v t ∥ 2 ≤ 1 and ∑ t = 1 T v t = 0 \sum_{t=1}^{T}v_t=0 ∑ t = 1 T v t = 0 , the goal is to prove there exists an ordering distributes cancellation throughout the sequence instead of postponing it until the end. Indeed, Steinitz [25 ] proved that there is a permutation π : [ T ] → [ T ] \pi:[T]\to[T] π : [ T ] → [ T ] such that
max 0 ≤ k ≤ T ∥ ∑ j = 1 k v π ( j ) ∥ 2 ≤ d . \max_{0\le k\le T}\left\lVert\sum_{j=1}^{k}v_{\pi(j)}\right\rVert_2\le d. 0 ≤ k ≤ T max j = 1 ∑ k v π ( j ) 2 ≤ d .
Establishing an O ( d ) O(\sqrt{d}) O ( d ) upper bound for the Euclidean Steinitz constant has been a long-standing open problem. On 6 October 2026, OpenAI announced a proof of this bound [19 ] , which, if confirmed, would determine the constant depending on d d d up to absolute factors.1 Beyond the importance of the mathematical question itself, the principle of the Steinitz lemma serves as a standard tool in discrepancy theory and integer programming, e.g., [14 , 16 , 15 ] .
We introduce the online Steinitz problem (OSP). In this problem, there are T T T initially empty output positions, and vectors v 1 , … , v T v_1,\ldots,v_T v 1 , … , v T that arrive sequentially with ∥ v t ∥ 2 ≤ 1 \lVert v_t\rVert_2\le1 ∥ v t ∥ 2 ≤ 1 and ∑ t = 1 T v t = 0 \sum_{t=1}^{T}v_t=0 ∑ t = 1 T v t = 0 , identically to the offline case. Upon seeing v t v_t v t , the algorithm must assign it immediately and irrevocably to an unused position p t ∈ [ T ] p_t\in[T] p t ∈ [ T ] , thereby building a permutation π \pi π on the fly such that π ( p t ) = t \pi(p_t)=t π ( p t ) = t . The completed output is therefore v π ( j ) v_{\pi(j)} v π ( j ) and its prefix discrepancy by the end of the assignment is max 0 ≤ k ≤ T ∥ ∑ j = 1 k v π ( j ) ∥ 2 \max_{0\le k\le T}\left\lVert\sum_{j=1}^{k}v_{\pi(j)}\right\rVert_2 max 0 ≤ k ≤ T ∑ j = 1 k v π ( j ) 2 . Although the prefix discrepancy is an identical measure in both offline and the online case, the requirement of an immediate and irrevocable placement and the limited future knowledge leads to a substantially harder algorithmic task that we seek to investigate:
Question. What is the worst-case online prefix discrepancy for immediate and irrevocable vector decisions, and how does this compare with the offline optimum?
We study this question under the oblivious adversarial model, which fixes the entire input independently of the algorithm’s randomness, and also under the adaptive adversarial model, which may choose each vector after observing the previous assignments. This means that, against the former kind of adversary, randomness may help, while against the latter it does not. We therefore write OS r a n d ( d , T , δ ) \operatorname{OS}_{\mathrm{rand}}(d,T,\delta) OS rand ( d , T , δ ) for the smallest discrepancy bound that a randomized algorithm can guarantee with probability at least 1 − δ 1-\delta 1 − δ on every fixed input. The corresponding optimal deterministic worst-case bound against adaptive inputs is denoted by OS d e t ( d , T ) \operatorname{OS}_{\mathrm{det}}(d,T) OS det ( d , T ) .
The problem is reminiscent of online vector balancing (OVB) [12 , 6 , 18 , 4 ] : in that case, an OVB algorithm chooses a sign for each arriving vector and controls signed prefix sums in arrival order. On the other hand, an OSP algorithm chooses among all vacant positions, and one placement may affect many output prefixes, which are evaluated only after the stream ends, and not after each arrival. We defer the reader to the survey of Bansal and Nikolov [13 ] for an extensive treatment of algorithmic discrepancy in its various forms, including offline and online.
Our results
Despite their differences, our main upper-bound contribution is a general reduction from OSP to OVB. We first describe this general reduction, followed by its deterministic and randomized applications, further corollaries, and matching lower bounds.
A general reduction. In § 2 , we present a black-box reduction from online vector balancing to online Steinitz ordering. The reduction builds an OSP router from OVB subroutines, which we call signers . Its ordering guarantee is stated in terms of the signers’ final vector and count bounds, or alternatively their subgaussian estimates. As a result, the same routing framework can use a range of deterministic or randomized signers, and any improvement in their balancing performance immediately yields stronger ordering bounds. The reduction also applies when the total sum of the input vectors is arbitrary and unknown in advance, and it ensures that every prefix remains close to its proportional share of this total. In addition, if the inputs lie in a known compact convex body K K K of affine dimension s s s , then any Euclidean proportional-prefix bound ρ \rho ρ implies that the residuals lie in ( s ρ / 2 ) ( K − K ) (s\rho/2)(K-K) ( s ρ /2 ) ( K − K ) , where, as usual, K − K = { x − y : x , y ∈ K } K-K=\{x-y:x,y\in K\} K − K = { x − y : x , y ∈ K } . This extension does not require K K K to be symmetric, and it preserves deterministic and probabilistic guarantees under the same adversarial model.
Deterministic bounds. Using the OSP router given by the reduction instantiated with deterministic OVB signers, in § 3 , we show that the optimal deterministic discrepancy is
OS d e t ( d , T ) ∈ { O ( log T ) , d = 1 , O ( T ) , d ≥ 2. \operatorname{OS}_{\mathrm{det}}(d,T)\in
\begin{cases}
O(\log T), & d=1,\\
O(\sqrt{T}), & d\ge2.
\end{cases} OS det ( d , T ) ∈ { O ( log T ) , O ( T ) , d = 1 , d ≥ 2.
As mentioned previously, both upper bounds hold against adaptive adversaries, and the higher-dimensional lower bound already holds in a fixed plane.
Tight bounds against an oblivious adversary. In § 4 , we instantiate the general reduction with Aden-Ali’s randomized OVB signer [4 ] and obtain a prefix discrepancy of
OS r a n d ( d , T , δ ) ∈ O ( log T + ( d + log ( 1 / δ ) ) log T ) , (1) \operatorname{OS}_{\mathrm{rand}}(d,T,\delta)\in O\left(\log T+\sqrt{(d+\log(1/\delta))\log T}\right), \tag*{(1)} OS rand ( d , T , δ ) ∈ O ( log T + ( d + log ( 1/ δ )) log T ) , (1)
with probability at least 1 − δ 1-\delta 1 − δ . This guarantee is achieved efficiently, with the overall procedure having a running time of O ( d T log T ) O(dT\log T) O ( d T log T ) , and furthermore yields a guarantee of O ( log T + log T ⋅ log ( 1 / δ ) ) O\left(\log T+\sqrt{\log T\cdot\log(1/\delta)}\right) O ( log T + log T ⋅ log ( 1/ δ ) ) in the ℓ ∞ \ell_\infty ℓ ∞ -norm. Furthermore, we can instantiate our reduction with a different OVB signer for zero-sum inputs in [ − 1 , 1 ] d [-1,1]^d [ − 1 , 1 ] d with at most κ \kappa κ nonzero coordinates, and ℓ 2 \ell_2 ℓ 2 -norm as large as κ \sqrt{\kappa} κ . Specifically, the signer of Altschuler–Tikhomirov [8 ] gives O ( κ log T ) O(\sqrt{\kappa}\log T) O ( κ log T ) coordinatewise discrepancy whenever the failure bound in Corollary 4.4 is at most δ \delta δ .
Matching lower bounds. In § 5 , all hard inputs consist of an initial stream followed by identical vectors that cancel its total. An all-ones initial stream and Tijdeman–Wagner [26 ] give an Ω ( log T ) \Omega(\log T) Ω ( log T ) lower bound; coordinate cycles and Roth’s method [21 ] give Ω ( d ∗ log ( 2 + T / d ∗ ) ) \Omega\left(\sqrt{d_*}\log(2+T/d_*)\right) Ω ( d ∗ log ( 2 + T / d ∗ ) ) , where d ∗ = min { d , T } d_*=\min\{d,T\} d ∗ = min { d , T } . Both hold for every 0 < δ ≤ 1 / 2 0<\delta\le1/2 0 < δ ≤ 1/2 . Their sum matches the upper bound of (19) whenever T − β ≤ δ ≤ 1 / 2 T^{-\beta}\le\delta\le1/2 T − β ≤ δ ≤ 1/2 for fixed β > 0 \beta>0 β > 0 . An adaptive initial stream in a fixed plane gives the matching deterministic Ω ( T ) \Omega(\sqrt{T}) Ω ( T ) lower bound for d ≥ 2 d\ge2 d ≥ 2 .
Related work
The Steinitz lemma and its extensions. In the offline setting, the classical Steinitz lemma [25 ] guarantees that a zero-sum family of bounded vectors admits an ordering whose prefix sums are bounded independently of the number of vectors. Grinberg and Sevastyanov [16 ] established the bound d d d in every d d d -dimensional normed space. For the ℓ 2 \ell_2 ℓ 2 -norm, improving the dimension dependence to O ( d ) O(\sqrt{d}) O ( d ) remains a longstanding conjecture, with a matching Ω ( d ) \Omega(\sqrt{d}) Ω ( d ) lower bound. Recent work of Ambrus and Heck [5 ] relates this problem to ordering nearly unit vectors with arbitrary total sum, measuring each prefix against its proportional share of that total. Another direction concerns simultaneous rearrangements: Oertel et al. [20 ] proved a colorful Steinitz lemma that permutes several sequences while controlling their combined prefixes independently of the number of sequences. Bárány [9 ] improved their 40 d 5 40d^5 40 d 5 bound to 4 d − 2 4d-2 4 d − 2 . Steinitz lemma also has algorithmic applications beyond discrepancy, as for instance, the work of Eisenbrand and Weismantel [15 ] which used it to establish proximity bounds and faster algorithms for integer programming.
Online vector balancing and scheduling. Online vector balancing replaces rearrangement by sequential sign choices. Bansal et al. [12 ] studied stochastic inputs drawn independently from an arbitrary distribution and obtained applications to geometric discrepancy. For oblivious adversarial inputs, Alweiss et al. [6 ] introduced the self-balancing walk, giving efficient algorithms with logarithmic ℓ ∞ \ell_\infty ℓ ∞ prefix discrepancy for Euclidean unit-ball vectors. Kulkarni et al. [18 ] subsequently obtained a universal subgaussian guarantee for each signed prefix. This implies O ( log T ) O(\sqrt{\log T}) O ( log T ) maximum ℓ ∞ \ell_\infty ℓ ∞ prefix discrepancy with high probability, matching their lower bound against oblivious adversaries. Aden-Ali [4 ] obtained the same asymptotic guarantee with an O ( d T ) O(dT) O ( d T ) -time algorithm. For coordinate-bounded vectors with at most κ \kappa κ nonzero coordinates, Altschuler and Tikhomirov [8 ] obtained O ( κ ) O(\sqrt{\kappa}) O ( κ ) online ℓ ∞ \ell_\infty ℓ ∞ prefix discrepancy above a near-logarithmic sparsity threshold. Online vector scheduling [17 ] likewise requires irrevocable allocation of arriving vectors, but distributes nonnegative demand vectors among machines to optimize their loads, whereas OSP assigns vectors to ordered positions and exploits cancellation to control all prefix sums.
Signing, rearrangement, and geometric discrepancy. The connection between signing and rearrangement predates their online versions. Bárány and Grinberg [11 ] proved that every prescribed sequence of unit vectors in a d d d -dimensional normed space admits offline signs for which all signed prefixes have norm at most 2 d − 1 2d-1 2 d − 1 . Chobanyan’s transference theorem [14 ] shows that a uniform bound for this offline prefix-signing problem also bounds the Steinitz constant, without increasing the bound. However, this does not transfer to the online setting as argued in § 2.5 . Controlling only the final signed sum is a different problem. For example, Ambrus and Bozzai [2 ] proved sharp Euclidean bounds for colorful vector balancing, where one selects a vector from each prescribed family and controls the sum of the selected vectors. Our lower bounds use another connection to discrepancy: points record arrival times and assigned positions. Schmidt’s planar rectangle-discrepancy theorem [22 ] gives the deterministic scalar bound; Tijdeman–Wagner’s strengthening [26 ] and a restricted form of Roth’s orthogonal-function argument [21 ] yield the oblivious bounds. For a broader account of these topics and their algorithmic connections, see the monograph manuscript of Bansal and Nikolov [13 ] .
Online sorting and online TSP. Our placement model is also closely related to online sorting [1 ] and its extension to online TSP [3 , 10 ] : arriving numbers or points must be assigned immediately and irrevocably to unused array positions. It is worth noting that the work of Azar et al. [7 ] further studies the tradeoff between array size and competitiveness for online metric TSP, obtaining a deterministic O ( log 3 T ) O(\log^{3} T) O ( log 3 T ) -competitive algorithm with 2 T 2T 2 T cells. Their placement constraint coincides with ours when the array has exactly T T T cells, but their objective controls distances between consecutive entries rather than cumulative vector sums. Their tree-based placement scheme organizes points by metric proximity, whereas our reduction uses online signing to balance the sums routed to subintervals. More generally, these problems minimize the total distance between consecutive entries, whereas OSP controls the norm of every prefix sum. Geometrically, their inputs are points to connect by a short path, while ours are steps to arrange into a walk that stays close to the origin through cancellation.
The signing-to-ordering reduction
The reduction repeatedly divides the output positions into two nearly equal intervals. At each division, an online signer proposes a child for the arriving vector, and the router can only override this choice when it has to avoid an interval that is already full. We first describe this algorithm, then state the signing guarantees that suffice and prove how its local splits control every output prefix.
The ordering algorithm
We first introduce some notation, beginning with the definition of residuals.
Residuals. For the completed ordering v π = ( v π ( 1 ) , … , v π ( T ) ) v_{\pi}=(v_{\pi(1)},\ldots,v_{\pi(T)}) v π = ( v π ( 1 ) , … , v π ( T ) ) , write tot : = ∑ t = 1 T v t \operatorname{tot}:=\sum_{t=1}^{T}v_t tot := ∑ t = 1 T v t and define the prefix residual for each k ∈ [ T ] k\in[T] k ∈ [ T ] and the maximum residual by
res k ( v π ) : = ∑ j = 1 k v π ( j ) − k T tot , res max ( v π ) : = max 0 ≤ k ≤ T ∥ res k ( v π ) ∥ 2 . (2) \operatorname{res}_{k}(v_{\pi}):=\sum_{j=1}^{k}v_{\pi(j)}-\frac{k}{T}\operatorname{tot},\qquad\operatorname{res}_{\max}(v_{\pi}):=\max_{0\leq k\leq T}\lVert\operatorname{res}_{k}(v_{\pi})\rVert_{2}. \tag*{(2)} res k ( v π ) := j = 1 ∑ k v π ( j ) − T k tot , res m a x ( v π ) := 0 ≤ k ≤ T max ∥ res k ( v π ) ∥ 2 . (2)
These residuals measure deviations from proportional shares of the total and become ordinary prefix sums when tot = 0 \operatorname{tot}=0 tot = 0 . Hence, for some upper bound U ≥ 0 U\geq0 U ≥ 0 achieved deterministically or in high probability, we have that, if res max ≤ U \operatorname{res}_{\max}\leq U res m a x ≤ U then OS ≤ U \operatorname{OS}\leq U OS ≤ U , since tot = 0 \operatorname{tot}=0 tot = 0 . We next describe the position tree and the meta-algorithm needed for our reduction.
The position tree. Our algorithm assigns each arriving vector to an output position by routing it through a balanced binary tree. This tree has the output positions as its leaves, and so has height h = ⌈ log 2 T ⌉ h=\lceil\log_{2}T\rceil h = ⌈ log 2 T ⌉ . Each node u u u represents a consecutive interval I u ⊆ [ T ] I_u\subseteq[T] I u ⊆ [ T ] which consists of the output positions labeling the
Algorithm 1 Tree routing with local proposal rules
Require: Horizon $T$, local routines $\operatorname{Sign}_u$, and vectors $v_1,\ldots,v_T$ arriving one at a time.
Ensure: An online permutation $\pi$, with $\pi(p_t)=t$.
1: Build the balanced position tree with capacities $m_u=|I_u|$.
2: for each internal node $u$ do
3: Initialize $\operatorname{Sign}_u$ once.
4: for $c\in\{u_L,u_R\}$ do
5: $N_c\gets 0,\quad X_c\gets 0$.
6: for $t=1,\ldots,T$ do
7: Receive $v_t$ and set $u\gets\operatorname{root}$.
8: while $u$ is not a leaf do
9: $\varepsilon\gets\operatorname{Sign}_u(v_t;X_{u_L},X_{u_R},m_{u_L}-N_{u_L},m_{u_R}-N_{u_R})$.
10: $\widehat{\varepsilon}\gets\varepsilon$. ▷ Proposed versus actual routing sign
11: if $N_{u_L}=m_{u_L}$ then
12: $\widehat{\varepsilon}\gets-1$.
13: else if $N_{u_R}=m_{u_R}$ then
14: $\widehat{\varepsilon}\gets+1$.
15: if $\widehat{\varepsilon}=+1$ then
16: $c\gets u_L$.
17: else
18: $c\gets u_R$.
19: $N_c\gets N_c+1,\quad X_c\gets X_c+v_t$.
20: $u\gets c$.
21: $p_t\gets\min I_u,\quad \pi(p_t)\gets t$.
leaves in the subtree rooted at u u u . The node u u u has capacity m u : = ∣ I u ∣ m_u:=|I_u| m u := ∣ I u ∣ with children u L , u R u_L,u_R u L , u R of capacities ⌈ m u / 2 ⌉ \lceil m_u/2\rceil ⌈ m u /2 ⌉ and ⌊ m u / 2 ⌋ \lfloor m_u/2\rfloor ⌊ m u /2 ⌋ , respectively.
As illustrated in Algorithm 1 and Figure 1 , each internal node uses a persistent local signer Sign u \operatorname{Sign}_u Sign u to propose + 1 +1 + 1 (left) or − 1 -1 − 1 (right). The router follows this proposal unless the requested child is full, in which case it uses the other child. Repeating the decision until a leaf is reached assigns the vector’s output position immediately. During the descent, the algorithm records in N c N_c N c how many positions are already filled in child c c c , and in X c X_c X c the sum of the corresponding vectors. The arguments of Sign u \operatorname{Sign}_u Sign u are the arriving vector v t v_t v t , the child sums X u L , X u R X_{u_L},X_{u_R} X u L , X u R , and the remaining capacities m u L − N u L , m u R − N u R m_{u_L}-N_{u_L},m_{u_R}-N_{u_R} m u L − N u L , m u R − N u R . Here the semicolon separates v t v_t v t from the routing statistics. In particular, the scalar rule in § 3 uses these statistics directly, while, for a Euclidean signing subroutine, the node submits the augmented vector ( v t , 1 ) / 2 (v_t,1)/\sqrt{2} ( v t , 1 ) / 2 , so the extra coordinate balances left and right counts along with the original vector coordinates.
Figure 1. Routing an arriving vector v t v_t v t when T = 8 T = 8 T = 8 . At each visited internal node, the local rule selects one of the two child intervals. The highlighted path assigns v t v_t v t to output position 6.
Each local signer receives every vector reaching its node, even after one child fills, and updates its private state with its proposed sign. We stress that only the router overrides the destination. Moreover, we also note that randomized copies have independent tapes, independent of the input, and different rules may be used at different node sizes.
The reduction guarantee
To state the guarantee of Algorithm 1, we first identify which local splits contribute to the discrepancy of a given output prefix. Since the node intervals are consecutive, a prefix cuts through at most one interval at each depth. For each prefix [ k ] [k] [ k ] , where 0 ≤ k ≤ T 0\le k\le T 0 ≤ k ≤ T , the corresponding boundary path P ( k ) P(k) P ( k ) consists of the internal nodes whose intervals meet both [ k ] [k] [ k ] and [ T ] ∖ [ k ] [T]\setminus[k] [ T ] ∖ [ k ] , with ∣ P ( k ) ∣ ≤ h |P(k)|\le h ∣ P ( k ) ∣ ≤ h and P ( 0 ) = P ( T ) = ∅ P(0)=P(T)=\varnothing P ( 0 ) = P ( T ) = ∅ .
Every ancestor of a node in P ( k ) P(k) P ( k ) also belongs to P ( k ) P(k) P ( k ) , hence these nodes form a path which is ordered by increasing depth. We will show that the prefix residual res k ( v π ) \operatorname{res}_k(v_{\pi}) res k ( v π ) is a weighted sum of the split errors along this path. The reduction therefore depends on how well the local signers control these errors, which we quantify next.
Signers. An online signer returns ε i ∈ { − 1 , + 1 } \varepsilon_i \in\{-1,+1\} ε i ∈ { − 1 , + 1 } upon receiving z i z_i z i . We say it has subgaussian scale Σ ∈ [ 0 , ∞ ) \Sigma\in[0,\infty) Σ ∈ [ 0 , ∞ ) if, for every fixed stream z 1 , … , z m z_1,\ldots,z_m z 1 , … , z m in the Euclidean unit ball B 2 D B_2^D B 2 D and every θ ∈ R D \theta\in\mathbb{R}^D θ ∈ R D ,
E exp ( ⟨ θ , ∑ i = 1 m ε i z i ⟩ ) ≤ exp ( Σ 2 2 ∥ θ ∥ 2 2 ) . (3) \mathbb{E}\exp\left(\left\langle\theta,\sum_{i=1}^{m}\varepsilon_i z_i\right\rangle\right) \le\exp\left(\frac{\Sigma^2}{2}\|\theta\|_2^2\right). \tag*{(3)} E exp ( ⟨ θ , i = 1 ∑ m ε i z i ⟩ ) ≤ exp ( 2 Σ 2 ∥ θ ∥ 2 2 ) . (3)
The expectation is over its randomness, independent of the input, which gives Gaussian-type tails in every direction. Our randomized reduction uses a common scale Σ \Sigma Σ in dimension d + 1 d+1 d + 1 for all node capacities, and needs only this final signed-sum guarantee, rather than a guarantee for every signed prefix.
The following theorem separates the property needed from the signer from the resulting ordering guarantee. Terminal vector and count bounds give a sum of local errors, while a subgaussian bound permits a sharper estimate for their combined effect.
Theorem 2.1 (Signing-to-ordering reduction). Algorithm 1 assigns every vector immediately to an unused position and does not need to know the input total. Randomized local signers use independent tapes, independent of the input.
(i) Terminal vector and count bounds. Suppose the input vectors have norm at most one in a fixed norm ∥ ⋅ ∥ \|\cdot\| ∥ ⋅ ∥ . At a node receiving x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m , suppose the signer’s proposed signs satisfy
∥ ∑ i = 1 m ε i x i ∥ ≤ V ( m ) , ∣ ∑ i = 1 m ε i ∣ ≤ W ( m ) . \left\|\sum_{i=1}^{m}\varepsilon_i x_i\right\| \le V(m), \qquad\left|\sum_{i=1}^{m}\varepsilon_i\right| \le W(m). i = 1 ∑ m ε i x i ≤ V ( m ) , i = 1 ∑ m ε i ≤ W ( m ) . Whenever these inequalities hold at all internal nodes, every output prefix satisfies
∥ res k ( v π ) ∥ ≤ ∑ u ∈ P ( k ) ( V ( m u ) + W ( m u ) 2 + 1 { m u o d d } ) . (4) \|\operatorname{res}_k(v_{\pi})\| \le\sum_{u\in P(k)}\left(\frac{V(m_u)+W(m_u)}{2}+\mathbb{1}\{m_u\ \mathrm{odd}\}\right). \tag*{(4)} ∥ res k ( v π ) ∥ ≤ u ∈ P ( k ) ∑ ( 2 V ( m u ) + W ( m u ) + 1 { m u odd } ) . (4) If they hold for every local stream, this is a deterministic guarantee against adaptive inputs. If, for each fixed length-m m m stream, they hold jointly with probability at least 1 − p ( m ) 1-p(m) 1 − p ( m ) , then for every oblivious input (4) holds simultaneously for all prefixes with probability at least 1 − ∑ u p ( m u ) 1-\sum_u p(m_u) 1 − ∑ u p ( m u ) .
(ii) Subgaussian terminal sums. Suppose the inputs are in the Euclidean unit ball and the signer has scale Σ ≥ 1 \Sigma\ge1 Σ ≥ 1 in the sense of (3) , in dimension d + 1 d+1 d + 1 and for every node capacity. Then, for every oblivious input and 0 < δ < 1 0 < \delta< 1 0 < δ < 1 , with probability at least 1 − δ 1-\delta 1 − δ ,
res max ( v π ) ≤ C Σ ( log T + log T ( d + log ( 1 / δ ) ) ) , (5) \operatorname{res}_{\max}(v_\pi) \le C\Sigma\left(\log T+\sqrt{\log T\left(d+\log(1/\delta)\right)}\right), \tag*{(5)} res m a x ( v π ) ≤ C Σ ( log T + log T ( d + log ( 1/ δ ) ) ) , (5)
where C C C is an absolute constant.
Both parts require only the terminal guarantee for each local stream. For zero-sum inputs, the residuals are the ordinary prefix sums.
Part (i) will give the deterministic Euclidean and sparse-vector bounds. Part (ii) will give the randomized Euclidean bound without paying a separate norm bound at every node. The sharper dimension-dependent bound follows by using deterministic routing near the leaves.
From local splits to output prefixes
We prove Theorem 2.1 by first relating the output prefixes to the errors of the local splits. The identity in Lemma 2.2 shows that each prefix depends only on its boundary path; Lemma 2.3 then bounds each split error in terms of the signer’s proposed signs and the corrections needed to enforce capacities. Combining these two facts with the triangle inequality will prove part (i). For part (ii), we will use the conditional subgaussian estimates to bound the sum along the path.
Before continuing, we define quantities only needed in the analysis. Namely, we let anc ( u ) \operatorname{anc}(u) anc ( u ) be the set of strict ancestors of u u u in the tree and, throughout, conditioning on anc ( u ) \operatorname{anc}(u) anc ( u ) means conditioning on the complete random tapes of all nodes in anc ( u ) \operatorname{anc}(u) anc ( u ) . Furthermore, for the completed ordering,
tot u : = ∑ j ∈ I u v π ( j ) , err u : = tot u L − m u L m u tot u . (6) \operatorname{tot}_u := \sum_{j\in I_u} v_{\pi(j)}, \qquad\operatorname{err}_u := \operatorname{tot}_{u_L}-\frac{m_{u_L}}{m_u}\operatorname{tot}_u. \tag*{(6)} tot u := j ∈ I u ∑ v π ( j ) , err u := tot u L − m u m u L tot u . (6)
Thus err u \operatorname{err}_u err u is the left child’s error relative to its proportional share of the parent total, and the right child’s error is − err u -\operatorname{err}_u − err u . To track the same discrepancy within an interval, for 0 ≤ s ≤ m u 0 \le s \le m_u 0 ≤ s ≤ m u we set
F u ( s ) : = ∑ j = min I u min I u + s − 1 v π ( j ) − s m u tot u . F_u(s) := \sum_{j=\min I_u}^{\min I_u+s-1} v_{\pi(j)}-\frac{s}{m_u}\operatorname{tot}_u. F u ( s ) := j = m i n I u ∑ m i n I u + s − 1 v π ( j ) − m u s tot u .
This is the deviation of the first s s s positions in I u I_u I u from their proportional share of tot u \operatorname{tot}_u tot u , so F r o o t ( k ) = res k ( v π ) F_{\mathrm{root}}(k)=\operatorname{res}_k(v_\pi) F root ( k ) = res k ( v π ) and F u ( 0 ) = F u ( m u ) = 0 F_u(0)=F_u(m_u)=0 F u ( 0 ) = F u ( m u ) = 0 . For u ∈ P ( k ) u\in P(k) u ∈ P ( k ) , we also set
α u , k : = min { ∣ I u ∩ [ k ] ∣ m u L , ∣ I u ∖ [ k ] ∣ m u R } ∈ [ 0 , 1 ] . \alpha_{u,k}:=\min\left\{\frac{|I_u\cap[k]|}{m_{u_L}},\frac{|I_u\setminus[k]|}{m_{u_R}}\right\}\in[0,1]. α u , k := min { m u L ∣ I u ∩ [ k ] ∣ , m u R ∣ I u ∖ [ k ] ∣ } ∈ [ 0 , 1 ] .
When the prefix ends in the left child, this coefficient is the fraction of that child included in the prefix; when it ends in the right child, it is the fraction of that child excluded from the prefix. At the boundary between the children, it equals one. The following identity shows that these fractions are exactly the weights with which the local split errors contribute to the prefix residual.
Lemma 2.2 (one-boundary-path identity). For every output prefix k k k , the boundary path and coefficients above satisfy
res k ( v π ) = ∑ u ∈ P ( k ) α u , k err u . (7) \operatorname{res}_k(v_\pi)=\sum_{u\in P(k)}\alpha_{u,k}\operatorname{err}_u. \tag*{(7)} res k ( v π ) = u ∈ P ( k ) ∑ α u , k err u . (7)
Proof. The cases k = 0 , T k=0,T k = 0 , T are immediate. At a node u ∈ P ( k ) u\in P(k) u ∈ P ( k ) , write s = ∣ I u ∩ [ k ] ∣ s=|I_u\cap[k]| s = ∣ I u ∩ [ k ] ∣ . If s ≤ m u L s\le m_{u_L} s ≤ m u L , the local prefix lies entirely in the left child, and adding and subtracting ( s / m u L ) tot u L (s/m_{u_L})\operatorname{tot}_{u_L} ( s / m u L ) tot u L gives
F u ( s ) = F u L ( s ) + s m u L tot u L − s m u tot u = F u L ( s ) + s m u L err u . F_u(s)=F_{u_L}(s)+\frac{s}{m_{u_L}}\operatorname{tot}_{u_L}-\frac{s}{m_u}\operatorname{tot}_u=F_{u_L}(s)+\frac{s}{m_{u_L}}\operatorname{err}_u. F u ( s ) = F u L ( s ) + m u L s tot u L − m u s tot u = F u L ( s ) + m u L s err u .
Here α u , k = s / m u L \alpha_{u,k}=s/m_{u_L} α u , k = s / m u L , since ( m u − s ) / m u R ≥ 1 (m_u-s)/m_{u_R}\ge1 ( m u − s ) / m u R ≥ 1 . If instead s = m u L + t s=m_{u_L}+t s = m u L + t with 0 ≤ t ≤ m u R 0\le t\le m_{u_R} 0 ≤ t ≤ m u R , the prefix contains the whole left child and the first t t t positions of the right child, so
F u ( m u L + t ) = F u R ( t ) + tot u L + t m u R tot u R − m u L + t m u tot u = F u R ( t ) + err u + t m u R ( tot u R − m u R m u tot u ) = F u R ( t ) + ( 1 − t m u R ) err u . \begin{aligned}
F_u(m_{u_L}+t)&=F_{u_R}(t)+\operatorname{tot}_{u_L}+\frac{t}{m_{u_R}}\operatorname{tot}_{u_R}-\frac{m_{u_L}+t}{m_u}\operatorname{tot}_u\\
&=F_{u_R}(t)+\operatorname{err}_u+\frac{t}{m_{u_R}}\left(\operatorname{tot}_{u_R}-\frac{m_{u_R}}{m_u}\operatorname{tot}_u\right)\\
&=F_{u_R}(t)+\left(1-\frac{t}{m_{u_R}}\right)\operatorname{err}_u.
\end{aligned} F u ( m u L + t ) = F u R ( t ) + tot u L + m u R t tot u R − m u m u L + t tot u = F u R ( t ) + err u + m u R t ( tot u R − m u m u R tot u ) = F u R ( t ) + ( 1 − m u R t ) err u .
In this case α u , k = 1 − t / m u R \alpha_{u,k}=1-t/m_{u_R} α u , k = 1 − t / m u R , since ( m u L + t ) / m u L ≥ 1 (m_{u_L}+t)/m_{u_L}\ge1 ( m u L + t ) / m u L ≥ 1 . Starting with F r o o t ( k ) = res k ( v π ) F_{\mathrm{root}}(k)=\operatorname{res}_k(v_\pi) F root ( k ) = res k ( v π ) , each substitution therefore adds the term α u , k err u \alpha_{u,k}\operatorname{err}_u α u , k err u and leaves only the residual in the child crossed by the prefix boundary. More explicitly, when the recursion reaches a node u u u , it has established
res k ( v π ) = ∑ v ∈ P ( k ) v a strict ancestor of u α v , k err v + F u ( ∣ I u ∩ [ k ] ∣ ) . \operatorname{res}_k(v_\pi)=\sum_{\substack{v\in P(k)\\v\ \text{a strict ancestor of }u}}\alpha_{v,k}\operatorname{err}_v+F_u(|I_u\cap[k]|). res k ( v π ) = v ∈ P ( k ) v a strict ancestor of u ∑ α v , k err v + F u ( ∣ I u ∩ [ k ] ∣ ) .
The formulas above preserve this identity as we descend to the unique child that meets both the prefix and its complement. If the prefix ends between the two children, then s = m u L s=m_{u_L} s = m u L and the remaining residual is F u L ( m u L ) = 0 F_{u_L}(m_{u_L})=0 F u L ( m u L ) = 0 ; a residual at a leaf is also zero. Thus the recursion visits exactly the nodes of P ( k ) P(k) P ( k ) and leaves no residual term, proving (7) . □
The path identity reduces the ordering problem to controlling err u \operatorname{err}_u err u at each node. The signer supplies a proposed split, whereas err u \operatorname{err}_u err u comes from the split after capacities have been enforced. The next lemma connects the two: it expresses err u \operatorname{err}_u err u as a centered signed sum plus a correction controlled by the signer’s count imbalance. It also records the conditional estimates needed later to combine these errors along a path.
Lemma 2.3 (one-node quota repair). Let u u u be an internal node of capacity m m m , receiving Euclidean unit-ball vectors x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m , and write μ = m − 1 ∑ i x i \mu=m^{-1}\sum_i x_i μ = m − 1 ∑ i x i . Let ϵ i \epsilon_i ϵ i be the proposed signs and ϵ ^ i \hat{\epsilon}_i ϵ ^ i the quota-corrected routing signs, where + 1 +1 + 1 means left, and put q = ∑ i ϵ i q=\sum_i\epsilon_i q = ∑ i ϵ i , Y = ∑ i ϵ i ( x i − μ ) Y=\sum_i\epsilon_i(x_i-\mu) Y = ∑ i ϵ i ( x i − μ ) for succinctness. Then the local proportional error of (6) has a decomposition
err u = 1 2 Y + R , ∥ R ∥ 2 ≤ ∣ q ∣ + 1. \operatorname{err}_u=\frac{1}{2}Y+R,\qquad\|R\|_2\le|q|+1. err u = 2 1 Y + R , ∥ R ∥ 2 ≤ ∣ q ∣ + 1. Under the subgaussian hypothesis of Theorem 2.1 , for a fixed input, conditionally on the routing tapes at the strict ancestors of u u u , for every unit vector z ∈ R d z\in\mathbb{R}^d z ∈ R d and every λ ∈ R \lambda\in\mathbb{R} λ ∈ R ,
E [ e λ ⟨ z , Y ⟩ / 2 ∣ strict ancestors ] ≤ e Σ 2 λ 2 / 2 , (8) \mathbb{E}\left[e^{\lambda\langle z,Y\rangle/2}\mid\text{strict ancestors}\right]\le e^{\Sigma^2\lambda^2/2}, \tag*{(8)} E [ e λ ⟨ z , Y ⟩ /2 ∣ strict ancestors ] ≤ e Σ 2 λ 2 /2 , (8) E [ e λ q ∣ strict ancestors ] ≤ e Σ 2 λ 2 . (9) \mathbb{E}\left[e^{\lambda q}\mid\text{strict ancestors}\right]\le e^{\Sigma^2\lambda^2}. \tag*{(9)} E [ e λ q ∣ strict ancestors ] ≤ e Σ 2 λ 2 . (9) Proof. We first count the changes made by quota repair. Since the children receive exactly their prescribed numbers of vectors, the corrected signs satisfy ∑ i ϵ ^ i = 1 { m o d d } \sum_i\hat{\epsilon}_i=\mathbb{1}\{m\ \mathrm{odd}\} ∑ i ϵ ^ i = 1 { m odd } . Once a proposal is overridden, one child is full, so every later override changes a proposal in the same direction. Each change alters the signed count by two, and comparing the proposed count q q q with the corrected count 1 { m o d d } \mathbb{1}\{m\ \mathrm{odd}\} 1 { m odd } therefore gives
number of overrides = 1 2 ∣ q − 1 { m o d d } ∣ . (10) \text{number of overrides}=\frac{1}{2}\left|q-\mathbb{1}\{m\ \mathrm{odd}\}\right|. \tag*{(10)} number of overrides = 2 1 ∣ q − 1 { m odd } ∣ . (10)
Figure 2. Enforcing capacities without changing the signer’s internal decisions. The proposed signed count is 2, the required count is 0, and exactly one sign is overridden.
Fig. 2 illustrates this identity for even m m m and q = 2 q=2 q = 2 . To translate this into a bound on the split error, we simply use m u L / m = ( 1 + 1 { m o d d } / m ) / 2 m_{u_L}/m=(1+\mathbb{1}\{m\ \mathrm{odd}\}/m)/2 m u L / m = ( 1 + 1 { m odd } / m ) /2 and t o t u = m μ \mathrm{tot}_u=m\mu tot u = m μ to write
e r r u = 1 2 ( ∑ i ϵ ^ i x i − 1 { m o d d } μ ) = 1 2 ∑ i ϵ ^ i ( x i − μ ) = 1 2 Y + 1 2 ∑ i ( ϵ ^ i − ϵ i ) ( x i − μ ) \mathrm{err}_u=\frac{1}{2}\left(\sum_i\hat{\epsilon}_i x_i-\mathbb{1}\{m\ \mathrm{odd}\}\mu\right)=\frac{1}{2}\sum_i\hat{\epsilon}_i(x_i-\mu)=\frac{1}{2}Y+\frac{1}{2}\sum_i(\hat{\epsilon}_i-\epsilon_i)(x_i-\mu) err u = 2 1 ( i ∑ ϵ ^ i x i − 1 { m odd } μ ) = 2 1 i ∑ ϵ ^ i ( x i − μ ) = 2 1 Y + 2 1 i ∑ ( ϵ ^ i − ϵ i ) ( x i − μ )
Each overridden sign contributes one vector ± ( x i − μ ) \pm(x_i-\mu) ± ( x i − μ ) , whose norm is at most two because both x i x_i x i and μ \mu μ lie in the unit ball. Together with (10) , this yields ∥ R ∥ 2 ≤ ∣ q − 1 { m o d d } ∣ ≤ ∣ q ∣ + 1 \lVert R\rVert_2\leq\lvert q-\mathbb{1}\{m\ \mathrm{odd}\}\rvert\leq\lvert q\rvert+1 ∥ R ∥ 2 ≤ ∣ q − 1 { m odd }∣ ≤ ∣ q ∣ + 1 .
We now turn to the conditional estimates, and fix the complete tapes of the strict ancestors of u u u . The original input is fixed, and ancestor routing never consults descendant signers, so these tapes determine the entire stream reaching u u u , while its private tape remains independent with its original distribution. We can therefore apply (2.2) to the augmented stream ( x i , 1 ) / 2 (x_i,1)/\sqrt{2} ( x i , 1 ) / 2 , whose terminal signed sum is ( ∑ i ϵ i x i , q ) / 2 (\sum_i\epsilon_i x_i,q)/\sqrt{2} ( ∑ i ϵ i x i , q ) / 2 . Taking θ = ( λ / 2 ) ( z , − ⟨ z , μ ⟩ ) \theta=(\lambda/\sqrt{2})(z,-\langle z,\mu\rangle) θ = ( λ / 2 ) ( z , − ⟨ z , μ ⟩) gives
⟨ λ 2 ( z , − ⟨ z , μ ⟩ ) , 1 2 ( ∑ i ϵ i x i , q ) ⟩ = λ 2 ⟨ z , Y ⟩ , ∥ θ ∥ 2 2 = λ 2 2 ( 1 + ⟨ z , μ ⟩ 2 ) ≤ λ 2 \left\langle\frac{\lambda}{\sqrt{2}}(z,-\langle z,\mu\rangle),\frac{1}{\sqrt{2}}\left(\sum_i\epsilon_i x_i,q\right)\right\rangle=\frac{\lambda}{2}\langle z,Y\rangle,\qquad\lVert\theta\rVert_2^2=\frac{\lambda^2}{2}(1+\langle z,\mu\rangle^2)\leq\lambda^2 ⟨ 2 λ ( z , − ⟨ z , μ ⟩) , 2 1 ( i ∑ ϵ i x i , q ) ⟩ = 2 λ ⟨ z , Y ⟩ , ∥ θ ∥ 2 2 = 2 λ 2 ( 1 + ⟨ z , μ ⟩ 2 ) ≤ λ 2
which substituted in (3) proves (8) . Similarly, we may choose θ = ( 0 , … , 0 , 2 λ ) \theta=(0,\ldots,0,\sqrt{2}\lambda) θ = ( 0 , … , 0 , 2 λ ) , which has squared norm 2 λ 2 2\lambda^2 2 λ 2 and inner product λ q \lambda q λ q with the augmented signed sum, giving (9) .
We thus turn to the proof of the terminal vector and count bounds in Theorem 2.1.
Proof of Theorem 2.1 (i). First, note that the same quota calculation applies in any norm. Moreover, with the notation of Lemma 2.3, each override changes the signed vector sum by a vector of norm at most two. Hence (10) and the two terminal bounds assumed in part (i) of the statement give
∥ ∑ i ϵ ^ i x i ∥ ≤ ∥ ∑ i ϵ i x i ∥ + ∣ q − 1 { m o d d } ∣ ≤ V ( m ) + W ( m ) + 1 { m o d d } . \left\lVert\sum_i\hat{\epsilon}_i x_i\right\rVert\leq\left\lVert\sum_i\epsilon_i x_i\right\rVert+\lvert q-\mathbb{1}\{m\ \mathrm{odd}\}\rvert\leq V(m)+W(m)+\mathbb{1}\{m\ \mathrm{odd}\}. i ∑ ϵ ^ i x i ≤ i ∑ ϵ i x i + ∣ q − 1 { m odd }∣ ≤ V ( m ) + W ( m ) + 1 { m odd } .
We now have
∥ e r r u ∥ = ∥ 1 2 ( ∑ i ϵ ^ i x i − 1 { m o d d } m t o t u ) ∥ ≤ V ( m ) + W ( m ) 2 + 1 { m o d d } , (11) \lVert\mathrm{err}_u\rVert=\left\lVert\frac{1}{2}\left(\sum_i\hat{\epsilon}_i x_i-\frac{\mathbb{1}\{m\ \mathrm{odd}\}}{m}\mathrm{tot}_u\right)\right\rVert\leq\frac{V(m)+W(m)}{2}+\mathbb{1}\{m\ \mathrm{odd}\}, \tag*{(11)} ∥ err u ∥ = 2 1 ( i ∑ ϵ ^ i x i − m 1 { m odd } tot u ) ≤ 2 V ( m ) + W ( m ) + 1 { m odd } , (11)
where the equality holds by definition of the exact proportional error e r r u \mathrm{err}_u err u and the inequality by the fact that ∥ t o t u / m ∥ ≤ 1 \lVert\mathrm{tot}_u/m\rVert\leq1 ∥ tot u / m ∥ ≤ 1 . Applying the triangle inequality to Lemma 2.2 now gives
∥ r e s k ( v π ) ∥ ≤ ∑ u ∈ P ( k ) α u , k ∥ e r r u ∥ ≤ ∑ u ∈ P ( k ) ( V ( m u ) + W ( m u ) 2 + 1 { m u o d d } ) , \lVert\mathrm{res}_k(v_\pi)\rVert\leq\sum_{u\in P(k)}\alpha_{u,k}\lVert\mathrm{err}_u\rVert\leq\sum_{u\in P(k)}\left(\frac{V(m_u)+W(m_u)}{2}+\mathbb{1}\{m_u\ \mathrm{odd}\}\right), ∥ res k ( v π )∥ ≤ u ∈ P ( k ) ∑ α u , k ∥ err u ∥ ≤ u ∈ P ( k ) ∑ ( 2 V ( m u ) + W ( m u ) + 1 { m u odd } ) ,
which is (4) . This argument holds for every realized input and collection of proposed signs, so a deterministic signer satisfying the terminal bounds on every stream also gives the claimed guarantee against adaptive inputs.
For the probabilistic statement, fix an oblivious input and say that a node fails if either of its two terminal bounds is violated. Conditioning on its strict-ancestor tapes fixes its entire input stream while leaving its own tape independent, just as in Lemma 2.3 . The assumed fixed-stream guarantee thus bounds its conditional failure probability by p ( m u ) p(m_u) p ( m u ) . Taking expectations and then a union bound gives
P ( ∃ node u fails ) ≤ ∑ u i n t e r n a l P ( node u fails ) = ∑ u i n t e r n a l E [ P ( node u fails ∣ anc ( u ) ) ] ≤ ∑ u i n t e r n a l p ( m u ) . \mathbb{P}(\exists\ \text{node }u\text{ fails}) \le\sum_{u\ \mathrm{internal}}\mathbb{P}(\text{node }u\text{ fails}) = \sum_{u\ \mathrm{internal}}\mathbb{E}\left[\mathbb{P}(\text{node }u\text{ fails}\mid\operatorname{anc}(u))\right] \le\sum_{u\ \mathrm{internal}}p(m_u). P ( ∃ node u fails ) ≤ u internal ∑ P ( node u fails ) = u internal ∑ E [ P ( node u fails ∣ anc ( u )) ] ≤ u internal ∑ p ( m u ) .
Outside this failure event, all local bounds hold and the pathwise argument above applies simultaneously to every prefix, which gives the first part of the theorem. □
Combining randomized errors
For part (ii) of Theorem 2.1 , we use the decomposition in Lemma 2.3 to combine the centered signed sums before taking their norm, and then bound the quota corrections through the count imbalances. The errors along a path need not be independent, because ancestor decisions determine the streams reaching their descendants. The conditional estimates in (8) and (9) let us handle this dependence by conditioning successively from the deepest node to the root.
Lemma 2.4 (conditional composition). Assume the subgaussian condition of Theorem 2.1 , and write Y u Y_u Y u , q u q_u q u , R u R_u R u for the quantities in Lemma 2.3 at node u u u . There is an absolute constant C C C such that, for every prefix k k k and every s > 0 s>0 s > 0 ,
P ( ∥ 1 2 ∑ u ∈ P ( k ) α u , k Y u ∥ 2 > C Σ h ( d + s ) ) ≤ e − s , (12) \mathbb{P}\left(\left\|\frac{1}{2}\sum_{u\in P(k)}\alpha_{u,k}Y_u\right\|_2>C\Sigma\sqrt{h(d+s)}\right)\le e^{-s}, \tag*{(12)} P 2 1 u ∈ P ( k ) ∑ α u , k Y u 2 > C Σ h ( d + s ) ≤ e − s , (12) P ( ∑ u ∈ P ( k ) α u , k ∣ q u ∣ > C Σ h ( h + s ) ) ≤ e − s . (13) \mathbb{P}\left(\sum_{u\in P(k)}\alpha_{u,k}|q_u|>C\Sigma\sqrt{h(h+s)}\right)\le e^{-s}. \tag*{(13)} P u ∈ P ( k ) ∑ α u , k ∣ q u ∣ > C Σ h ( h + s ) ≤ e − s . (13)
Proof. The statement is immediate when P ( k ) P(k) P ( k ) is empty, so assume otherwise. We first reduce the vector bound to a scalar tail estimate by choosing a $1/2$-net of the Euclidean unit sphere with at most e 2 d e^{2d} e 2 d points. For every nonzero vector x x x , a net point within distance 1 / 2 1/2 1/2 of x / ∥ x ∥ 2 x/\|x\|_2 x /∥ x ∥ 2 has inner product at least $|x|_2/2 with x x x . Consequently, a union bound over the net proves (12) , with C = 4 C = 4 C = 4 , as soon as we show that every fixed unit vector z z z satisfies
P ( ⟨ z , 1 2 ∑ v ∈ P ( k ) α v , k Y v ⟩ > 2 Σ h ( d + s ) ) ≤ e − 2 d − s . \mathbb{P}\left(\left\langle z,\frac{1}{2}\sum_{v\in P(k)}\alpha_{v,k}Y_v\right\rangle> 2\Sigma\sqrt{h(d+s)}\right)\le e^{-2d-s}. P ⟨ z , 2 1 v ∈ P ( k ) ∑ α v , k Y v ⟩ > 2Σ h ( d + s ) ≤ e − 2 d − s .
Indeed, a norm exceeding 4 Σ h ( d + s ) 4\Sigma\sqrt{h(d+s)} 4Σ h ( d + s ) forces at least one net direction to exceed the displayed threshold, and e 2 d e − 2 d − s = e − s e^{2d}e^{-2d-s}=e^{-s} e 2 d e − 2 d − s = e − s . It thus remains to prove this directional estimate.
To this end, let us fix z z z and λ > 0 \lambda> 0 λ > 0 , and note that the path and its coefficients depend only on the position tree and k k k , so they are deterministic. Let u u u be the deepest node of P ( k ) P(k) P ( k ) so that every other node v ∈ P ( k ) ∖ { u } v\in P(k)\setminus\{u\} v ∈ P ( k ) ∖ { u } is a strict ancestor of u u u (see Figure 3 ). Since Y v Y_v Y v depends only on the tapes at v v v and its ancestors, conditioning on all strict-ancestor tapes of u u u fixes every term except the one at u u u . Its own tape remains independent, and (8) , applied with λ α u , k \lambda\alpha_{u,k} λ α u , k , bounds its conditional exponential moment. Pulling out the fixed terms and then taking expectations gives
Figure 3. Conditioning from the deepest node upward, illustrated for T = 8 T = 8 T = 8 and k = 5 k = 5 k = 5 . The highlighted path P ( k ) P(k) P ( k ) contains the root, v v v , and u u u . When conditioning on the strict-ancestor tapes of u u u , the summands at the root and v v v are fixed, so only the exponential factor at u u u needs to be averaged. After removing that factor, the same argument applies at v v v , and then at the root.
E exp ( λ 2 ∑ v ∈ P ( k ) α v , k ⟨ z , Y v ⟩ ) = E [ exp ( λ 2 ∑ v ∈ P ( k ) ∖ { u } α v , k ⟨ z , Y v ⟩ ) E [ e λ α u , k ⟨ z , Y u ⟩ / 2 ∣ anc ( u ) ] ] ≤ e Σ 2 λ 2 α u , k 2 / 2 E exp ( λ 2 ∑ v ∈ P ( k ) ∖ { u } α v , k ⟨ z , Y v ⟩ ) . \begin{aligned}
\mathbb{E}\exp\left(\frac{\lambda}{2}\sum_{v\in P(k)}\alpha_{v,k}\langle z,Y_v\rangle\right)
=
\mathbb{E}\left[\exp\left(\frac{\lambda}{2}\sum_{v\in P(k)\setminus\{u\}}\alpha_{v,k}\langle z,Y_v\rangle\right)\mathbb{E}\left[e^{\lambda\alpha_{u,k}\langle z,Y_u\rangle/2}\mid\operatorname{anc}(u)\right]\right] \\
&\le e^{\Sigma^2\lambda^2\alpha_{u,k}^2/2}\mathbb{E}\exp\left(\frac{\lambda}{2}\sum_{v\in P(k)\setminus\{u\}}\alpha_{v,k}\langle z,Y_v\rangle\right).
\end{aligned} E exp 2 λ v ∈ P ( k ) ∑ α v , k ⟨ z , Y v ⟩ = E exp 2 λ v ∈ P ( k ) ∖ { u } ∑ α v , k ⟨ z , Y v ⟩ E [ e λ α u , k ⟨ z , Y u ⟩ /2 ∣ anc ( u ) ] ≤ e Σ 2 λ 2 α u , k 2 /2 E exp 2 λ v ∈ P ( k ) ∖ { u } ∑ α v , k ⟨ z , Y v ⟩ .
Thus averaging over the tape at u u u removes its term from the sum, at the cost of the deterministic factor e Σ 2 λ 2 α u , k 2 / 2 e^{\Sigma^2\lambda^2\alpha_{u,k}^2/2} e Σ 2 λ 2 α u , k 2 /2 . If any terms remain, the parent of u u u is now the deepest node, and the same calculation applies with that parent in place of u u u . Continuing upward to the root removes one term at a time and multiplies these factors, giving
E exp ( λ 2 ∑ v ∈ P ( k ) α v , k ⟨ z , Y v ⟩ ) ≤ exp ( Σ 2 λ 2 2 ∑ v ∈ P ( k ) α v , k 2 ) ≤ exp ( h Σ 2 λ 2 2 ) . \mathbb{E}\exp\left(\frac{\lambda}{2}\sum_{v\in P(k)}\alpha_{v,k}\langle z,Y_v\rangle\right)
\le
\exp\left(\frac{\Sigma^2\lambda^2}{2}\sum_{v\in P(k)}\alpha_{v,k}^2\right)
\le
\exp\left(\frac{h\Sigma^2\lambda^2}{2}\right). E exp 2 λ v ∈ P ( k ) ∑ α v , k ⟨ z , Y v ⟩ ≤ exp 2 Σ 2 λ 2 v ∈ P ( k ) ∑ α v , k 2 ≤ exp ( 2 h Σ 2 λ 2 ) .
The last inequality uses 0 ≤ α v , k ≤ 1 0\le\alpha_{v,k}\le1 0 ≤ α v , k ≤ 1 and ∣ P ( k ) ∣ ≤ h |P(k)|\le h ∣ P ( k ) ∣ ≤ h . Chernoff’s bound with λ = 2 d + s / ( Σ h ) \lambda=2\sqrt{d}+s/(\Sigma\sqrt{h}) λ = 2 d + s / ( Σ h ) now yields
P ( ⟨ z , 1 2 ∑ v ∈ P ( k ) α v , k Y v ⟩ > 2 Σ h ( d + s ) ) ≤ e − 2 ( d + s ) ≤ e − 2 d − s , \mathbb{P}\left(\left\langle z,\frac{1}{2}\sum_{v\in P(k)}\alpha_{v,k}Y_v\right\rangle>2\Sigma\sqrt{h(d+s)}\right)\le e^{-2(d+s)}\le e^{-2d-s}, P ⟨ z , 2 1 v ∈ P ( k ) ∑ α v , k Y v ⟩ > 2Σ h ( d + s ) ≤ e − 2 ( d + s ) ≤ e − 2 d − s ,
which is precisely the directional estimate needed above.
For the count imbalances, we use the same conditioning argument, now with (9) . For λ > 0 \lambda>0 λ > 0 , the inequality e λ ∣ x ∣ ≤ e λ x + e − λ x e^{\lambda|x|}\le e^{\lambda x}+e^{-\lambda x} e λ ∣ x ∣ ≤ e λ x + e − λ x gives
E [ e λ α u , k ∣ q u ∣ ∣ anc ( u ) ] ≤ E [ e λ α u , k q u + e − λ α u , k q u ∣ anc ( u ) ] ≤ 2 e Σ 2 λ 2 α u , k 2 . \mathbb{E}\left[e^{\lambda\alpha_{u,k}|q_u|}\mid\operatorname{anc}(u)\right]
\le
\mathbb{E}\left[e^{\lambda\alpha_{u,k}q_u}+e^{-\lambda\alpha_{u,k}q_u}\mid\operatorname{anc}(u)\right]
\le2e^{\Sigma^2\lambda^2\alpha_{u,k}^2}. E [ e λ α u , k ∣ q u ∣ ∣ anc ( u ) ] ≤ E [ e λ α u , k q u + e − λ α u , k q u ∣ anc ( u ) ] ≤ 2 e Σ 2 λ 2 α u , k 2 .
Removing the nodes from deepest to root as before, and using 2 ∣ P ( k ) ∣ ≤ e h 2^{|P(k)|}\le e^h 2 ∣ P ( k ) ∣ ≤ e h and ∑ u ∈ P ( k ) α u , k 2 ≤ h \sum_{u\in P(k)}\alpha_{u,k}^2\le h ∑ u ∈ P ( k ) α u , k 2 ≤ h , we obtain E exp ( λ ∑ u ∈ P ( k ) α u , k ∣ q u ∣ ) ≤ e h + h Σ 2 λ 2 \mathbb{E}\exp(\lambda\sum_{u\in P(k)}\alpha_{u,k}|q_u|)\le e^{h+h\Sigma^2\lambda^2} E exp ( λ ∑ u ∈ P ( k ) α u , k ∣ q u ∣ ) ≤ e h + h Σ 2 λ 2 . Markov’s inequality with λ = h + s / ( Σ h ) \lambda=\sqrt{h}+s/(\Sigma\sqrt{h}) λ = h + s / ( Σ h ) therefore gives
P ( ∑ u ∈ P ( k ) α u , k ∣ q u ∣ > 2 Σ h ( h + s ) ) ≤ exp ( h + h Σ 2 λ 2 − 2 λ Σ h ( h + s ) ) = e − s , \mathbb{P}\left(\sum_{u\in P(k)}\alpha_{u,k}|q_u|>2\Sigma\sqrt{h(h+s)}\right)
\le
\exp\left(h+h\Sigma^2\lambda^2-2\lambda\Sigma\sqrt{h(h+s)}\right)
=e^{-s}, P u ∈ P ( k ) ∑ α u , k ∣ q u ∣ > 2Σ h ( h + s ) ≤ exp ( h + h Σ 2 λ 2 − 2 λ Σ h ( h + s ) ) = e − s ,
which proves (13) .
Proof of Theorem 2.1 (ii). For T = 1 T = 1 T = 1 all residuals vanish, so assume T ≥ 2 T \ge2 T ≥ 2 . Fix k k k and use Lemmas 2.2 and 2.3 to write
res k ( v π ) = 1 2 ∑ u ∈ P ( k ) α u , k Y u + ∑ u ∈ P ( k ) α u , k R u . \operatorname{res}_k(v_\pi) = \frac{1}{2} \sum_{u \in P(k)} \alpha_{u,k}Y_u + \sum_{u \in P(k)} \alpha_{u,k}R_u. res k ( v π ) = 2 1 u ∈ P ( k ) ∑ α u , k Y u + u ∈ P ( k ) ∑ α u , k R u .
The first term is controlled by (12) , while 0 ≤ α u , k ≤ 1 0 \le\alpha_{u,k} \le1 0 ≤ α u , k ≤ 1 and ∣ P ( k ) ∣ ≤ h |P(k)| \le h ∣ P ( k ) ∣ ≤ h give
∥ ∑ u ∈ P ( k ) α u , k R u ∥ 2 ≤ ∑ u ∈ P ( k ) α u , k ( ∣ q u ∣ + 1 ) ≤ h + ∑ u ∈ P ( k ) α u , k ∣ q u ∣ . \left\lVert\sum_{u \in P(k)} \alpha_{u,k}R_u \right\rVert_2 \le\sum_{u \in P(k)} \alpha_{u,k}(|q_u|+1) \le h+\sum_{u \in P(k)}\alpha_{u,k}|q_u|. u ∈ P ( k ) ∑ α u , k R u 2 ≤ u ∈ P ( k ) ∑ α u , k ( ∣ q u ∣ + 1 ) ≤ h + u ∈ P ( k ) ∑ α u , k ∣ q u ∣.
Thus (13) controls the second term. Apply both estimates with s = log ( 2 ( T + 1 ) / δ ) s = \log(2(T+1)/\delta) s = log ( 2 ( T + 1 ) / δ ) and take a union bound over the T + 1 T+1 T + 1 prefixes. The total failure probability is at most 2 ( T + 1 ) e − s = δ 2(T+1)e^{-s} = \delta 2 ( T + 1 ) e − s = δ , so with probability at least 1 − δ 1-\delta 1 − δ ,
res max ( v π ) ≤ C Σ ( h ( d + s ) + h ( h + s ) ) + h . (14) \operatorname{res}_{\max}(v_\pi) \le C\Sigma\left(\sqrt{h(d+s)}+\sqrt{h(h+s)}\right)+h. \tag*{(14)} res m a x ( v π ) ≤ C Σ ( h ( d + s ) + h ( h + s ) ) + h . (14)
Finally, s ∈ O ( h + log ( 1 / δ ) ) s \in O(h+\log(1/\delta)) s ∈ O ( h + log ( 1/ δ )) and Σ ≥ 1 \Sigma\ge1 Σ ≥ 1 , so (14) is at most C Σ ( h + h ( d + log ( 1 / δ ) ) ) C\Sigma\left(h+\sqrt{h(d+\log(1/\delta))}\right) C Σ ( h + h ( d + log ( 1/ δ )) ) after increasing the absolute constant, yielding (5) .
Some remarks on the reduction
Compact convex bodies. Both parts of Theorem 2.1 extend to inputs in a known compact convex body K K K of affine dimension s ≥ 1 s \ge1 s ≥ 1 . Let us consider any 0 ≤ k ≤ T 0 \le k \le T 0 ≤ k ≤ T . Then, any Euclidean online router in dimension s s s with proportional-prefix radius ρ \rho ρ gives, after a fixed affine normalization,
res k ( v π ) ∈ s ρ 2 ( K − K ) , \operatorname{res}_k(v_\pi) \in\frac{s\rho}{2}(K-K), res k ( v π ) ∈ 2 s ρ ( K − K ) ,
with the same deterministic or probabilistic guarantee and under the same adversarial model. Neither symmetry of K K K nor advance knowledge of the total is required.
Indeed, John’s theorem in the relative affine space of K K K gives a centered ellipsoid E ⊆ span ( K − K ) E \subseteq\operatorname{span}(K-K) E ⊆ span ( K − K ) and c ∈ K c \in K c ∈ K with c + E ⊆ K ⊆ c + s E c+E \subseteq K \subseteq c+sE c + E ⊆ K ⊆ c + s E and 2 E ⊆ K − K 2E \subseteq K-K 2 E ⊆ K − K , where the second inclusion follows by subtracting c − E c-E c − E from c + E c+E c + E . Fix a linear isomorphism Φ \Phi Φ from span ( K − K ) \operatorname{span}(K-K) span ( K − K ) onto R s \mathbb{R}^s R s with Φ ( E ) = B 2 s \Phi(E)=B^s_2 Φ ( E ) = B 2 s , and feed Φ ( v t − c ) / s \Phi(v_t-c)/s Φ ( v t − c ) / s to the Euclidean router. These vectors lie in the unit ball, and translation cancels from proportional residuals:
∑ j = 1 k Φ ( v π ( j ) − c ) s − k T ∑ t = 1 T Φ ( v t − c ) s = 1 s Φ ( res k ( v π ) ) . \sum_{j=1}^{k}\frac{\Phi(v_{\pi(j)}-c)}{s}-\frac{k}{T}\sum_{t=1}^{T}\frac{\Phi(v_t-c)}{s}
=\frac{1}{s}\Phi(\operatorname{res}_k(v_\pi)). j = 1 ∑ k s Φ ( v π ( j ) − c ) − T k t = 1 ∑ T s Φ ( v t − c ) = s 1 Φ ( res k ( v π )) .
Thus, whenever all normalized residuals have norm at most ρ \rho ρ ,
res k ( v π ) ∈ s ρ E ⊆ s ρ 2 ( K − K ) . \operatorname{res}_k(v_\pi) \in s\rho E \subseteq\frac{s\rho}{2}(K-K). res k ( v π ) ∈ s ρE ⊆ 2 s ρ ( K − K ) .
This implication holds for every realized run. Since the normalization is fixed before the stream, it preserves online decisions and the original deterministic or probabilistic guarantee, including its adversarial scope. If s = 0 s=0 s = 0 , every proportional residual is zero.
Comparison with offline transference. Chobanyan’s transference theorem [14 ] converts a uniform offline prefix-signing bound ζ \zeta ζ into the same ordering bound. Indeed, choose an ordering of a zero-sum unit-ball sequence minimizing its maximum prefix norm ρ \rho ρ , and sign it with prefix bound ζ \zeta ζ . Place the positively signed vectors first in their old order, followed by the negatively signed vectors in reverse order. Each new prefix is a positive-sign partial sum of the old order or, by the zero total, the negative of a negative-sign partial sum. Each is half a sum or difference of an old unsigned prefix and its signed prefix, so minimality gives ρ ≤ ( ρ + ζ ) / 2 \rho\le(\rho+ \zeta)/2 ρ ≤ ( ρ + ζ ) /2 and hence ρ ≤ ζ \rho\le\zeta ρ ≤ ζ . This argument chooses its initial ordering using the complete input. Our reduction uses terminal vector and count guarantees and commits immediately to positions, incurring losses from quota repair and accumulation along tree paths. As shown in § 5 , a loss is unavoidable already on the line: greedy signing has bound one, whereas deterministic online ordering requires Ω ( log T ) \Omega(\log T) Ω ( log T ) discrepancy.
Deterministic applications
We apply Algorithm 1 with deterministic signing rules, first a scalar rule and then greedy vector signing. The scalar rule gives a stronger local invariant on the line; for greedy vector signing, we use the norm-and-count interface of Theorem 2.1 directly.
Theorem 3.1 (Deterministic OSP upper bound). For every T ≥ 2 T \ge2 T ≥ 2 , it holds that
OS d e t ( d , T ) ∈ { O ( log T ) , d = 1 , O ( T ) , d ≥ 2. \operatorname{OS}_{\mathrm{det}}(d,T) \in
\begin{cases}
O(\log T), & d=1,\\
O(\sqrt{T}), & d\ge2.
\end{cases} OS det ( d , T ) ∈ { O ( log T ) , O ( T ) , d = 1 , d ≥ 2. These upper bounds hold against adaptive adversaries.
Scalar routing
We begin by giving a proof of the scalar upper bound in Theorem 3.1 .
Proof of Theorem 3.1 for d = 1 d=1 d = 1 . We use the following local rule at every node of Algorithm 1, interpreting a left proposal as + 1 +1 + 1 and a right proposal as − 1 -1 − 1 . Fix a node u u u . For the local argument, write L L L , R R R for the sums already sent to its children and r L r_L r L , r R r_R r R for their remaining capacities; once the node is full, L = tot u L L=\operatorname{tot}_{u_L} L = tot u L and R = tot u R R=\operatorname{tot}_{u_R} R = tot u R . We maintain
∣ L + r L y ∣ + ∣ R + r R y ∣ ≤ ∣ L + R + ( r L + r R ) y ∣ + 2 ( y ∈ [ − 1 , 1 ] ) . (15) \lvert L+r_Ly\rvert+\lvert R+r_Ry\rvert\le\lvert L+R+(r_L+r_R)y\rvert+2 \qquad(y\in[-1,1]). \tag*{(15)} ∣ L + r L y ∣ + ∣ R + r R y ∣ ≤ ∣ L + R + ( r L + r R ) y ∣ + 2 ( y ∈ [ − 1 , 1 ]) . (15)
Here L + r L y L+r_Ly L + r L y and R + r R y R+r_Ry R + r R y are the child totals if all remaining positions receive the same value y y y . The inequality fails exactly when one total exceeds 1 1 1 and the other is below − 1 -1 − 1 . Initially L = R = 0 L=R=0 L = R = 0 , so the two totals have the same sign and the invariant holds.
If one child is full, the local rule proposes the other, so the meta-algorithm follows that proposal. Otherwise, propose a destination according to
{ left if L + 1 r L ≤ R + 1 r R , right otherwise , L + R + ( r L + r R ) v t ≥ 0 , left if L − 1 r L ≥ R − 1 r R , right otherwise , L + R + ( r L + r R ) v t < 0. \begin{cases}
\text{left if } \dfrac{L+1}{r_L}\le\dfrac{R+1}{r_R},\ \text{right otherwise}, & L+R+(r_L+r_R)v_t\ge0,\\
\text{left if } \dfrac{L-1}{r_L}\ge\dfrac{R-1}{r_R},\ \text{right otherwise}, & L+R+(r_L+r_R)v_t<0.
\end{cases} ⎩ ⎨ ⎧ left if r L L + 1 ≤ r R R + 1 , right otherwise , left if r L L − 1 ≥ r R R − 1 , right otherwise , L + R + ( r L + r R ) v t ≥ 0 , L + R + ( r L + r R ) v t < 0.
Thus the hypothetical total determines which comparison the local rule uses; the meta-algorithm updates the chosen sum and capacity and continues from that child. For preservation, suppose both children have space, the hypothetical total using v t v_t v t is nonnegative, and the rule chooses left. A subsequent completion with y y y would give child totals L + v t + ( r L − 1 ) y L+v_t+(r_L-1)y L + v t + ( r L − 1 ) y and R + r R y R+r_Ry R + r R y .
There are only two possible violations of the invariant: first, suppose the new left total exceeds 1 1 1 and the right total is below − 1 -1 − 1 . The left total changed by v t − y ≤ 2 v_t-y\le2 v t − y ≤ 2 , so its previous value L + r L y L+r_Ly L + r L y must exceed − 1 -1 − 1 . Together with R + r R y < − 1 R+r_Ry<-1 R + r R y < − 1 , this gives
L + 1 r L > − y > R + 1 r R . \frac{L+1}{r_L}>-y>\frac{R+1}{r_R}. r L L + 1 > − y > r R R + 1 .
contradicting the choice of the smaller ratio. Second, suppose the new left total is below − 1 -1 − 1 and the right total exceeds 1 1 1 . The old invariant at y y y requires L + r L y ≥ − 1 L+r_Ly\ge-1 L + r L y ≥ − 1 , so the assignment must have decreased this total, meaning v t < y v_t<y v t < y . Therefore
L + r L v t = L + v t + ( r L − 1 ) y + ( r L − 1 ) ( v t − y ) < − 1. L+r_Lv_t=L+v_t+(r_L-1)y+(r_L-1)(v_t-y)<-1. L + r L v t = L + v t + ( r L − 1 ) y + ( r L − 1 ) ( v t − y ) < − 1.
Applying the old invariant at v t v_t v t now forces R + r R v t ≤ 1 R+r_Rv_t\le1 R + r R v t ≤ 1 , and hence L + R + ( r L + r R ) v t < 0 L+R+(r_L+r_R)v_t<0 L + R + ( r L + r R ) v t < 0 , contradicting the assumed nonnegative total. Choosing right is symmetric, and the negative-total case follows by reversing all signs.
Forced routing also preserves the invariant. Indeed, if the left child is full, assigning v t v_t v t right and then filling its remaining positions with y y y gives the same totals as the previous hypothetical completion with common value ( v t + ( r R − 1 ) y ) / r R ∈ [ − 1 , 1 ] (v_t+(r_R-1)y)/r_R\in[-1,1] ( v t + ( r R − 1 ) y ) / r R ∈ [ − 1 , 1 ] . The old invariant applies directly; the other case is symmetric.
At completion, r L = r R = 0 r_L=r_R=0 r L = r R = 0 , so the invariant becomes
∣ t o t u L ∣ + ∣ t o t u R ∣ ≤ ∣ t o t u ∣ + 2. |\mathrm{tot}_{u_L}|+|\mathrm{tot}_{u_R}|\le|\mathrm{tot}_u|+2. ∣ tot u L ∣ + ∣ tot u R ∣ ≤ ∣ tot u ∣ + 2.
Since nothing in the argument requires equal child capacities, the rule applies directly to the balanced tree for every T T T .
To conclude, fix an output prefix [ 1 , k ] [1,k] [ 1 , k ] . Starting from the root, split only the intervals in P ( k ) P(k) P ( k ) , as illustrated in Figure 4 . Each split increases the sum of absolute interval totals by at most 2 2 2 . After these splits, the prefix is a union of complete intervals, so the triangle inequality gives
Figure 4. Analyzing [1, 5] when T = 8 T = 8 T = 8 . Only a partially included interval is split; shaded blocks are wholly inside the prefix. Each refinement costs at most 2 in the sum of absolute block totals, so three refinements bound this prefix by 6.
∣ ∑ t = 1 k v π ( t ) ∣ ≤ ∣ t o t r o o t ∣ + 2 ∣ P ( k ) ∣ ≤ 2 h . \left|\sum_{t=1}^{k}v_{\pi(t)}\right|\le|\mathrm{tot}_{\mathrm{root}}|+2|P(k)|\le2h. t = 1 ∑ k v π ( t ) ≤ ∣ tot root ∣ + 2∣ P ( k ) ∣ ≤ 2 h .
The last inequality uses the zero root total and the tree height. The invariant holds for every arriving value, so the guarantee also holds against adaptive adversaries.
Greedy signing in arbitrary dimension
The same routing algorithm, using a greedy signer at each node, controls proportional-prefix residuals even when the total is nonzero. Hence, the upper bound in Theorem 3.1 for d ≥ 2 d\ge2 d ≥ 2 immediately follows since, for zero-sum inputs, the residuals are ordinary prefix sums.
Proposition 3.2 (Deterministic proportional routing). For every stream of Euclidean unit-ball vectors, Algorithm 1 with greedy signing of ( v t , 1 ) / 2 (v_t,1)/\sqrt{2} ( v t , 1 ) / 2 satisfies
res max ( v π ) ≤ 2 + 1 1 − 2 / 3 T . (16) \operatorname{res}_{\max}(v_\pi)\le\frac{\sqrt{2}+1}{1-\sqrt{2}/3}\sqrt{T}. \tag*{(16)} res m a x ( v π ) ≤ 1 − 2 /3 2 + 1 T . (16) This bound holds against adaptive adversaries and requires no advance knowledge of the total.
Proof. At an internal node u u u , let v u , i v_{u,i} v u , i be its i i i th arriving vector and let S u , i S_{u,i} S u , i be the signer’s augmented signed sum after that arrival, initially S u , 0 = 0 S_{u,0}=0 S u , 0 = 0 . Choose ε u , i ∈ { − 1 , + 1 } \varepsilon_{u,i} \in\{-1,+1\} ε u , i ∈ { − 1 , + 1 } so that
ε u , i ⟨ S u , i − 1 , ( v u , i , 1 ) 2 ⟩ ≤ 0 , \varepsilon_{u,i}\left\langle S_{u,i-1}, \frac{(v_{u,i},1)}{\sqrt{2}}\right\rangle\le0, ε u , i ⟨ S u , i − 1 , 2 ( v u , i , 1 ) ⟩ ≤ 0 ,
breaking ties in favor of + 1 +1 + 1 , and update S u , i = S u , i − 1 + ε u , i ( v u , i , 1 ) / 2 S_{u,i}=S_{u,i-1}+\varepsilon_{u,i}(v_{u,i},1)/\sqrt{2} S u , i = S u , i − 1 + ε u , i ( v u , i , 1 ) / 2 . The update records the proposed sign even if the algorithm overrides its routing request. Expanding the squared norm gives
∥ S u , i ∥ 2 2 = ∥ S u , i − 1 ∥ 2 2 + ∥ v u , i ∥ 2 2 + 1 2 + 2 ε u , i ⟨ S u , i − 1 , ( v u , i , 1 ) 2 ⟩ ≤ ∥ S u , i − 1 ∥ 2 2 + 1 ≤ i . \lVert S_{u,i}\rVert_{2}^{2}=\lVert S_{u,i-1}\rVert_{2}^{2}+\frac{\lVert v_{u,i}\rVert_{2}^{2}+1}{2}+2\varepsilon_{u,i}\left\langle S_{u,i-1},\frac{(v_{u,i},1)}{\sqrt{2}}\right\rangle\le\lVert S_{u,i-1}\rVert_{2}^{2}+1\le i. ∥ S u , i ∥ 2 2 = ∥ S u , i − 1 ∥ 2 2 + 2 ∥ v u , i ∥ 2 2 + 1 + 2 ε u , i ⟨ S u , i − 1 , 2 ( v u , i , 1 ) ⟩ ≤ ∥ S u , i − 1 ∥ 2 2 + 1 ≤ i .
Thus the vector and count imbalances obey the joint bound
∥ ∑ i = 1 m u ε u , i v u , i ∥ 2 2 + ∣ ∑ i = 1 m u ε u , i ∣ 2 = 2 ∥ S u , m u ∥ 2 2 ≤ 2 m u . \left\lVert\sum_{i=1}^{m_u}\varepsilon_{u,i}v_{u,i}\right\rVert_{2}^{2}+\left|\sum_{i=1}^{m_u}\varepsilon_{u,i}\right|^{2}=2\lVert S_{u,m_u}\rVert_{2}^{2}\le2m_u. i = 1 ∑ m u ε u , i v u , i 2 2 + i = 1 ∑ m u ε u , i 2 = 2 ∥ S u , m u ∥ 2 2 ≤ 2 m u .
The local estimate in the norm-and-count part of Theorem 2.1 , followed by Cauchy–Schwarz, therefore gives
∥ err u ∥ 2 ≤ 1 2 ( ∥ ∑ i = 1 m u ε u , i v u , i ∥ 2 + ∣ ∑ i = 1 m u ε u , i ∣ ) + 1 { m u odd } ≤ m u + 1 { m u odd } . \lVert\operatorname{err}_{u}\rVert_{2}\le\frac{1}{2}\left(\left\lVert\sum_{i=1}^{m_u}\varepsilon_{u,i}v_{u,i}\right\rVert_{2}+\left|\sum_{i=1}^{m_u}\varepsilon_{u,i}\right|\right)+\mathbb{1}\{m_u\ \text{odd}\}\le\sqrt{m_u}+\mathbb{1}\{m_u\ \text{odd}\}. ∥ err u ∥ 2 ≤ 2 1 ( i = 1 ∑ m u ε u , i v u , i 2 + i = 1 ∑ m u ε u , i ) + 1 { m u odd } ≤ m u + 1 { m u odd } .
The boundary-path conclusion of Theorem 2.1 now yields
∥ res k ( v π ) ∥ 2 ≤ ∑ u ∈ P ( k ) ∥ err u ∥ 2 ≤ ( 2 + 1 ) T ∑ ℓ = 0 ∞ ( 2 / 3 ) ℓ / 2 = 2 + 1 1 − 2 / 3 T . \lVert\operatorname{res}_{k}(v_{\pi})\rVert_{2}\le\sum_{u\in P(k)}\lVert\operatorname{err}_{u}\rVert_{2}\le(\sqrt{2}+1)\sqrt{T}\sum_{\ell=0}^{\infty}(2/3)^{\ell/2}=\frac{\sqrt{2}+1}{1-\sqrt{2/3}}\sqrt{T}. ∥ res k ( v π ) ∥ 2 ≤ u ∈ P ( k ) ∑ ∥ err u ∥ 2 ≤ ( 2 + 1 ) T ℓ = 0 ∑ ∞ ( 2/3 ) ℓ /2 = 1 − 2/3 2 + 1 T .
Indeed, every internal node has children of capacity at most 2 m u / 3 2m_u/3 2 m u /3 , so a node at depth ℓ \ell ℓ has capacity at most T ( 2 / 3 ) ℓ T(2/3)^\ell T ( 2/3 ) ℓ , and P ( k ) P(k) P ( k ) contains at most one node at each depth. Every estimate holds for every local stream, which also proves the adaptive guarantee.
Randomized applications
The reduction in Theorem 2.1 accepts any online signer satisfying its terminal guarantees, and, as in the deterministic case, this flexibility yields several randomized applications. As our main application, we use Aden-Ali’s signer [4 ] since it satisfies the subgaussian hypothesis in part (ii) and can be implemented efficiently. Moreover, we will derive a coordinatewise bound from it, and a sparse-vector application from the norm-and-count guarantees in part (i) and the Altschuler–Tikhomirov’s signer [8 ] . Throughout this section, inputs are fixed independently of the algorithm’s randomness, and all bounds allow arbitrary, initially unknown totals and become prefix-discrepancy bounds when the total is zero.
Efficient randomized ordering
Corollary 4.1 (Efficient signer). For every T ≥ 2 T \ge2 T ≥ 2 , d ≥ 1 d \ge1 d ≥ 1 , and 0 < δ < 1 0 < \delta< 1 0 < δ < 1 , Algorithm 1 with the Aden-Ali signer uses O ( d T log T ) O(dT \log T) O ( d T log T ) arithmetic operations and, for every fixed Euclidean unit-ball stream, satisfies, with probability at least 1 − δ 1-\delta 1 − δ ,
res max ( v π ) ∈ O ( log T + ( d + log ( 1 / δ ) ) log T ) . \operatorname{res}_{\max}(v_\pi) \in O\left(\log T+\sqrt{(d+\log(1/\delta))\log T}\right). res m a x ( v π ) ∈ O ( log T + ( d + log ( 1/ δ )) log T ) .
Proof. We apply part (ii) of Theorem 2.1 , whose assumption is the terminal moment-generating-function bound (3) in dimension d + 1 d+1 d + 1 . Specifically, at a node receiving x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m , we run an independent copy of Aden-Ali’s signer on z i = ( x i , 1 ) / 2 z_i=(x_i,1)/\sqrt{2} z i = ( x i , 1 ) / 2 so that ∥ z i ∥ 2 2 ≤ 1 \lVert z_i\rVert_2^2\le1 ∥ z i ∥ 2 2 ≤ 1 . We keep this copy running throughout the local stream, recording its proposed signs even when the router overrides a destination to enforce the child capacities.
To verify the required assumption in (3) , we observe that, for every fixed augmented stream, Aden-Ali’s signer’s guarantee [4 Theorem 1 and Equation (5)] represents the terminal signed sum as
∑ i = 1 m ε i z i = G 1 + G 2 + G 3 , \sum_{i=1}^{m}\varepsilon_i z_i=G_1+G_2+G_3, i = 1 ∑ m ε i z i = G 1 + G 2 + G 3 ,
where G 1 , G 2 , G 3 ∼ N ( 0 , I d + 1 ) G_1,G_2,G_3\sim N(0,I_{d+1}) G 1 , G 2 , G 3 ∼ N ( 0 , I d + 1 ) are Gaussian vectors that may be dependent. Then, for every θ ∈ R d + 1 \theta\in\mathbb{R}^{d+1} θ ∈ R d + 1 , Hölder’s inequality and the Gaussian moment-generating function give
E exp ( ⟨ θ , ∑ i = 1 m ε i z i ⟩ ) ≤ ∏ j = 1 3 ( E e 3 ⟨ θ , G j ⟩ ) 1 / 3 = ∏ j = 1 3 ( e 9 ∥ θ ∥ 2 2 / 2 ) 1 / 3 = e 9 ∥ θ ∥ 2 2 / 2 . (17) \mathbb{E}\exp\left(\left\langle\theta,\sum_{i=1}^{m}\varepsilon_i z_i\right\rangle\right)
\le\prod_{j=1}^{3}\left(\mathbb{E}e^{3\langle\theta,G_j\rangle}\right)^{1/3}
=\prod_{j=1}^{3}\left(e^{9\lVert\theta\rVert_2^2/2}\right)^{1/3}
=e^{9\lVert\theta\rVert_2^2/2}. \tag*{(17)} E exp ( ⟨ θ , i = 1 ∑ m ε i z i ⟩ ) ≤ j = 1 ∏ 3 ( E e 3 ⟨ θ , G j ⟩ ) 1/3 = j = 1 ∏ 3 ( e 9 ∥ θ ∥ 2 2 /2 ) 1/3 = e 9 ∥ θ ∥ 2 2 /2 . (17)
Hence, (3) is verified with Σ = 3 \Sigma=3 Σ = 3 , uniformly over all node capacities. Furthermore, conditioning on a node’s strict-ancestor tapes fixes its input stream while leaving its own tape independent, and thus, (17) also supplies the conditional hypothesis used in Lemmas 2.3 and 2.4 .
For completeness, we spell out the resulting substitutions in the reduction: set h = ⌈ log 2 T ⌉ h=\lceil\log_2 T\rceil h = ⌈ log 2 T ⌉ and s = log ( 2 ( T + 1 ) / δ ) s=\log(2(T+1)/\delta) s = log ( 2 ( T + 1 ) / δ ) , and, with Σ = 3 \Sigma=3 Σ = 3 , the two estimates of Lemma 2.4 read, for each k k k ,
P ( ∥ 1 2 ∑ u ∈ P ( k ) α u , k Y u ∥ 2 > 3 C h ( d + s ) ) ≤ e − s , \mathbb{P}\left(\left\lVert\frac{1}{2}\sum_{u\in P(k)}\alpha_{u,k}Y_u\right\rVert_2>3C\sqrt{h(d+s)}\right)\le e^{-s}, P 2 1 u ∈ P ( k ) ∑ α u , k Y u 2 > 3 C h ( d + s ) ≤ e − s ,
P ( ∑ u ∈ P ( k ) α u , k ∣ q u ∣ > 3 C h ( h + s ) ) ≤ e − s . \mathbb{P}\left(\sum_{u\in P(k)}\alpha_{u,k}|q_u|>3C\sqrt{h(h+s)}\right)\le e^{-s}. P u ∈ P ( k ) ∑ α u , k ∣ q u ∣ > 3 C h ( h + s ) ≤ e − s .
A union bound over these two events and the T + 1 T+1 T + 1 prefixes has total failure probability at most 2 ( T + 1 ) e − s = δ 2(T+1)e^{-s}=\delta 2 ( T + 1 ) e − s = δ . Outside this failure event, Lemmas 2.2 and 2.3 give, for every k k k ,
∥ res k ( v π ) ∥ 2 ≤ ∥ 1 2 ∑ u ∈ P ( k ) α u , k Y u ∥ 2 + ∑ u ∈ P ( k ) α u , k ∥ R u ∥ 2 ≤ ∥ 1 2 ∑ u ∈ P ( k ) α u , k Y u ∥ 2 + h + ∑ u ∈ P ( k ) α u , k ∣ q u ∣ ≤ 3 C h ( d + s ) + h + 3 C h ( h + s ) ∈ O ( log T + ( d + log ( 1 / δ ) ) log T ) . \begin{aligned}
\lVert\operatorname{res}_k(v_\pi)\rVert_2
&\le\left\lVert\frac{1}{2}\sum_{u\in P(k)}\alpha_{u,k}Y_u\right\rVert_2+\sum_{u\in P(k)}\alpha_{u,k}\lVert R_u\rVert_2 \\
&\le\left\lVert\frac{1}{2}\sum_{u\in P(k)}\alpha_{u,k}Y_u\right\rVert_2+h+\sum_{u\in P(k)}\alpha_{u,k}|q_u| \\
&\le3C\sqrt{h(d+s)}+h+3C\sqrt{h(h+s)}
\in O\left(\log T+\sqrt{(d+\log(1/\delta))\log T}\right).
\end{aligned} ∥ res k ( v π ) ∥ 2 ≤ 2 1 u ∈ P ( k ) ∑ α u , k Y u 2 + u ∈ P ( k ) ∑ α u , k ∥ R u ∥ 2 ≤ 2 1 u ∈ P ( k ) ∑ α u , k Y u 2 + h + u ∈ P ( k ) ∑ α u , k ∣ q u ∣ ≤ 3 C h ( d + s ) + h + 3 C h ( h + s ) ∈ O ( log T + ( d + log ( 1/ δ )) log T ) .
where the last step uses s = O ( h + log ( 1 / δ ) ) s=O(h+\log(1/\delta)) s = O ( h + log ( 1/ δ )) , a + b ≤ a + b \sqrt{a+b}\le\sqrt{a}+\sqrt{b} a + b ≤ a + b and h ∈ O ( log T ) h\in O(\log T) h ∈ O ( log T ) .
Finally, a length-m m m signer in dimension d + 1 d+1 d + 1 uses O ( d m ) O(dm) O ( d m ) arithmetic operations, and, since at each depth, the node capacities sum to at most T T T , and there are at most h h h internal levels, the overall running time O ( d T log T ) O(dT\log T) O ( d T log T ) .
We next discuss an alternative signer and establish a sharper dimension dependence.
Using an inefficient signer. If computational efficiency is not required, the reduction also allows the Kulkarni–Reis–Rothvoss’s signer in place of Aden-Ali’s. For each fixed augmented unit-ball stream, its terminal guarantee is [18 Theorem 1]
E exp ( ⟨ θ , ∑ i ε i z i ⟩ 2 100 ∥ θ ∥ 2 2 ) ≤ 2 ( θ ≠ 0 ) . (18) \mathbb{E}\exp\left(\frac{\langle\theta,\sum_i \varepsilon_i z_i\rangle^2}{100\lVert\theta\rVert_2^2}\right)\le2 \qquad(\theta\ne0). \tag*{(18)} E exp ( 100 ∥ θ ∥ 2 2 ⟨ θ , ∑ i ε i z i ⟩ 2 ) ≤ 2 ( θ = 0 ) . (18)
At each node, sample an independent uniform sign τ ∈ { − 1 , + 1 } \tau\in\{-1,+1\} τ ∈ { − 1 , + 1 } before processing its stream, and send τ ε i \tau\varepsilon_i τ ε i as the proposals without changing the Kulkarni–Reis–Rothvoss signer’s internal updates. The terminal sum is then symmetric and centered, while (18) is unchanged. Accordingly, we call this the symmetrized Kulkarni–Reis–Rothvoss’s signer . By [18 Lemma 11] ,
E exp ( ⟨ θ , τ ∑ i ε i z i ⟩ ) ≤ e 40 ∥ θ ∥ 2 2 . \mathbb{E}\exp\left(\left\langle\theta,\tau\sum_i\varepsilon_i z_i\right\rangle\right)\le e^{40\lVert\theta\rVert_2^2}. E exp ( ⟨ θ , τ i ∑ ε i z i ⟩ ) ≤ e 40 ∥ θ ∥ 2 2 .
Thus (3) holds with Σ = 80 \Sigma=\sqrt{80} Σ = 80 , and Theorem 2.1 (ii) gives the same probability and discrepancy bound as Corollary 4.1 , up to the absolute constant. Only the efficiency guarantee is lost, since the finite-horizon Kulkarni–Reis–Rothvoss’s construction takes exponential time [18 Sections 6–7] .
Lemma 4.2 (Sharper dimension dependence). For every T ≥ 2 T\ge2 T ≥ 2 , d ≥ 1 d\ge1 d ≥ 1 , and 0 < δ < 1 0<\delta<1 0 < δ < 1 , there is a randomized router such that, for every fixed Euclidean unit-ball stream, with probability at least 1 − δ 1-\delta 1 − δ ,
res max ( v π ) ∈ O ( min { T , log T + d ∗ log ( 2 + T / d ∗ ) + log ( 2 + T / d ∗ ) log ( 1 / δ ) } ) , (19) \operatorname{res}_{\max}(v_\pi)\in O\left(\min\left\{\sqrt{T},\log T+\sqrt{d_\ast\log(2+T/d_\ast)}+\sqrt{\log(2+T/d_\ast)\log(1/\delta)}\right\}\right), \tag*{(19)} res m a x ( v π ) ∈ O ( min { T , log T + d ∗ log ( 2 + T / d ∗ ) + log ( 2 + T / d ∗ ) log ( 1/ δ ) } ) , (19) where d ∗ : = min { d , T } d_\ast:=\min\{d,T\} d ∗ := min { d , T } . With the Aden-Ali signer, the running time is O ( d T log T ) O(dT\log T) O ( d T log T ) . The same bound holds with the symmetrized Kulkarni–Reis–Rothvoss’s signer, with a different absolute constant and without the running-time guarantee.
Proof. Use the randomized signer only at nodes strictly above a depth 0 ≤ s ≤ h = ⌈ log 2 T ⌉ 0\le s\le h=\lceil\log_2 T\rceil 0 ≤ s ≤ h = ⌈ log 2 T ⌉ , and the deterministic router of Proposition 3.2 within each remaining interval. For s ≥ 1 s\ge1 s ≥ 1 , apply Lemma 2.4 with path length at most s s s and tail parameter log ( 2 s + 1 / δ ) \log(2^{s+1}/\delta) log ( 2 s + 1 / δ ) . A union bound over the two estimates at each of the at most 2 s − 1 2^s-1 2 s − 1 nontrivial interval endpoints bounds all their residuals by C ( s + s ( d + log ( 1 / δ ) ) ) C(s+\sqrt{s(d+\log(1/\delta))}) C ( s + s ( d + log ( 1/ δ )) ) with probability at least 1 − δ 1-\delta 1 − δ . Inside an interval, a global residual equals the local proportional residual plus a convex combination of the two endpoint residuals. Since each interval has length at most ⌈ T / 2 s ⌉ \lceil T/2^s\rceil ⌈ T / 2 s ⌉ , Proposition 3.2 therefore gives
res max ( v π ) ∈ O ( s + s ( d + log ( 1 / δ ) ) + T / 2 s ) \operatorname{res}_{\max}(v_\pi)\in O\left(s+\sqrt{s(d+\log(1/\delta))}+\sqrt{T/2^s}\right) res m a x ( v π ) ∈ O ( s + s ( d + log ( 1/ δ )) + T / 2 s )
on the same event, where the ceiling is absorbed into the constant because s ≤ h s\le h s ≤ h .
For s = 0 s=0 s = 0 , this is the deterministic C T C\sqrt{T} C T bound. When d < T d<T d < T , choose s = ⌈ log 2 ( T / d ) ⌉ s=\lceil\log_2(T/d)\rceil s = ⌈ log 2 ( T / d )⌉ . Then T / 2 s ≤ d T/2^s\le d T / 2 s ≤ d and s = O ( log ( 2 + T / d ) ) s=O(\log(2+T/d)) s = O ( log ( 2 + T / d )) . Comparing this choice with s = 0 s=0 s = 0 before the stream begins gives (19) . For d ≥ T d\ge T d ≥ T , use s = 0 s=0 s = 0 . The running time remains O ( d T log T ) O(dT\log T) O ( d T log T ) with the Aden-Ali signer, since the total node capacity at each depth is at most T T T . The same probability argument applies to the symmetrized Kulkarni–Reis–Rothvoss’s signer. Finally, if δ ≥ T − β \delta\ge T^{-\beta} δ ≥ T − β for fixed β > 0 \beta>0 β > 0 , then log ( 2 + T / d ∗ ) log ( 1 / δ ) = O β ( log T ) \sqrt{\log(2+T/d_\ast)\log(1/\delta)}=O_\beta(\log T) log ( 2 + T / d ∗ ) log ( 1/ δ ) = O β ( log T ) .
Coordinatewise discrepancy
The next consequence uses the directional estimates in the proof of part (ii) of Theorem 2.1 . A union bound over the relevant coordinate directions replaces the sphere net used for the ℓ 2 \ell_2 ℓ 2 -norm.
Corollary 4.3 (Coordinatewise ordering). For every fixed Euclidean unit-ball stream and 0 < δ < 1 0 < \delta< 1 0 < δ < 1 , Algorithm 1, using either the symmetrized Kulkarni–Reis–Rothvoss’s signer or the Aden-Ali signer throughout the full tree, satisfies, with probability at least 1 − δ 1-\delta 1 − δ ,
max 0 ≤ k ≤ T ∥ res k ( v π ) ∥ ∞ ∈ O ( log T + log T ⋅ log ( 1 / δ ) ) . \max_{0 \leq k \leq T} \left\|\operatorname{res}_{k}(v_{\pi})\right\|_{\infty} \in O\left(\log T+\sqrt{\log T\cdot\log(1/\delta)}\right). 0 ≤ k ≤ T max ∥ res k ( v π ) ∥ ∞ ∈ O ( log T + log T ⋅ log ( 1/ δ ) ) . Proof. The proof of Corollary 4.1 verifies (3) with an absolute scale Σ \Sigma Σ for either signer. We use the same path decomposition and quota-repair estimate as in Theorem 2.1 , but first identify which coordinates need a probabilistic estimate. By Cauchy–Schwarz and the unit-ball assumption,
∑ j = 1 d ( ∑ t = 1 T ∣ v t , j ∣ ) 2 ≤ T ∑ t = 1 T ∥ v t ∥ 2 2 ≤ T 2 , \sum_{j=1}^{d}\left(\sum_{t=1}^{T}|v_{t,j}|\right)^{2}\leq T\sum_{t=1}^{T}\|v_t\|_{2}^{2}\leq T^{2}, j = 1 ∑ d ( t = 1 ∑ T ∣ v t , j ∣ ) 2 ≤ T t = 1 ∑ T ∥ v t ∥ 2 2 ≤ T 2 , which implies that at most T 2 T^{2} T 2 coordinates satisfy ∑ t ∣ v t , j ∣ > 1 \sum_{t}|v_{t,j}|>1 ∑ t ∣ v t , j ∣ > 1 . Every other coordinate has residual of magnitude at most one for every permutation: in a proportional residual, each input coordinate has coefficient either 1 − k / T 1-k/T 1 − k / T or − k / T -k/T − k / T , both of absolute value at most one. It is worth noting that the exceptional coordinates depend only on the fixed input and are used only in the analysis, and the algorithm does not need to identify them.
For any fixed unit direction z z z , the conditional moment calculation in the proof of Lemma 2.4 , followed by Chernoff’s bound, gives, for all s > 0 s>0 s > 0 ,
P ( 1 2 ∑ u ∈ P ( k ) α u , k ⟨ z , Y u ⟩ > Σ 2 h s ) ≤ e − s . \mathbb{P}\left(\frac{1}{2}\sum_{u\in P(k)}\alpha_{u,k}\langle z,Y_u\rangle>\Sigma\sqrt{2hs}\right)\leq e^{-s}. P 2 1 u ∈ P ( k ) ∑ α u , k ⟨ z , Y u ⟩ > Σ 2 h s ≤ e − s . Apply this estimate to both signs of each exceptional coordinate direction. Also apply the count estimate (13) at each prefix. There are at most ( 2 T 2 + 1 ) ( T + 1 ) (2T^{2}+1)(T+1) ( 2 T 2 + 1 ) ( T + 1 ) events in total, so choosing s = log ( ( 2 T 2 + 1 ) ( T + 1 ) / δ ) s=\log((2T^{2}+1)(T+1)/\delta) s = log (( 2 T 2 + 1 ) ( T + 1 ) / δ ) and taking a union bound makes them all hold with probability at least 1 − δ 1-\delta 1 − δ .
On this event, the centered path sum in every exceptional coordinate has magnitude at most Σ 2 h s \Sigma\sqrt{2hs} Σ 2 h s . The correction is controlled without a union bound over coordinates, because
∥ ∑ u ∈ P ( k ) α u , k R u ∥ ∞ ≤ ∑ u ∈ P ( k ) α u , k ∥ R u ∥ 2 ≤ h + ∑ u ∈ P ( k ) α u , k ∣ q u ∣ . \left\|\sum_{u\in P(k)}\alpha_{u,k}R_u\right\|_{\infty}\leq\sum_{u\in P(k)}\alpha_{u,k}\|R_u\|_{2}\leq h+\sum_{u\in P(k)}\alpha_{u,k}|q_u|. u ∈ P ( k ) ∑ α u , k R u ∞ ≤ u ∈ P ( k ) ∑ α u , k ∥ R u ∥ 2 ≤ h + u ∈ P ( k ) ∑ α u , k ∣ q u ∣. Combining the two estimates gives, at every prefix and in every exceptional coordinate, a residual of magnitude at most
Σ 2 h s + h + C Σ h ( h + s ) ≤ C Σ ( h + h s ) . \Sigma\sqrt{2hs}+h+C\Sigma\sqrt{h(h+s)}\leq C\Sigma(h+\sqrt{hs}). Σ 2 h s + h + C Σ h ( h + s ) ≤ C Σ ( h + h s ) . Now s ∈ O ( log T + log ( 1 / δ ) ) s\in O(\log T+\log(1/\delta)) s ∈ O ( log T + log ( 1/ δ )) and h ∈ O ( log T ) h\in O(\log T) h ∈ O ( log T ) . Absorbing the bound one for the remaining coordinates proves the claim. The running-time calculation is the same as in Corollary 4.1 .
Sparse vectors
Here we apply part (i) of Theorem 2.1 in the ℓ ∞ \ell_{\infty} ℓ ∞ norm, with the input vectors that need only be coordinate-bounded, and their ℓ 2 \ell_{2} ℓ 2 -norms may be as large as κ \sqrt{\kappa} κ . In particular, we use copies of the Altschuler–Tikhomirov signer [8 ] .
Corollary 4.4 (OSP for sparse vectors). *For every η > 0 \eta>0 η > 0 , there is a constant C η > 0 C_{\eta}>0 C η > 0 with the following property. Let T ≥ 2 T\geq2 T ≥ 2 , let κ ∈ { 1 , … , d } \kappa\in\{1,\ldots,d\} κ ∈ { 1 , … , d } be a sparsity bound known in advance, and let 0 < δ < 1 0<\delta<1 0 < δ < 1 . Write
h = ⌈ log 2 T ⌉ h=\lceil\log_{2} T\rceil h = ⌈ log 2 T ⌉ and suppose that δ ≥ C η T h exp ( − κ + 1 C η log 2 + η ( e ( κ + 1 ) ) ) \delta\ge C_{\eta}Th\exp\left(-\frac{\kappa+1}{C_{\eta}\log^{2+\eta}(e(\kappa+1))}\right) δ ≥ C η T h exp ( − C η l o g 2 + η ( e ( κ + 1 )) κ + 1 ) . Then, for every fixed stream v t ∈ [ − 1 , 1 ] d v_t\in[-1,1]^d v t ∈ [ − 1 , 1 ] d with ∥ v t ∥ 0 ≤ κ \lVert v_t\rVert_0\le\kappa ∥ v t ∥ 0 ≤ κ , Algorithm 1 , using the Altschuler–Tikhomirov signer, satisfies, with probability at least 1 − δ 1-\delta 1 − δ ,
max 0 ≤ k ≤ T ∥ res k ( v π ) ∥ ∞ ≤ ( C η κ + 1 + 1 ) h ∈ O η ( κ log T ) . \max_{0\le k\le T}\lVert\operatorname{res}_k(v_{\pi})\rVert_{\infty}\le(C_{\eta}\sqrt{\kappa+1}+1)h\in O_{\eta}(\sqrt{\kappa}\log T). 0 ≤ k ≤ T max ∥ res k ( v π ) ∥ ∞ ≤ ( C η κ + 1 + 1 ) h ∈ O η ( κ log T ) .
Proof. Fix κ ≥ 1 \kappa\ge1 κ ≥ 1 and T ≥ 2 T\ge2 T ≥ 2 . At a node receiving x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m , append the quota coordinate and give ( x i , 1 ) (x_i,1) ( x i , 1 ) to an independent copy of the signer of Altschuler–Tikhomirov [8 Theorem 1.1] , with announced sparsity κ + 1 \kappa+1 κ + 1 . Thus, each augmented vector belongs to [ − 1 , 1 ] d + 1 [-1,1]^{d+1} [ − 1 , 1 ] d + 1 and has at most κ + 1 \kappa+1 κ + 1 nonzero coordinates. Moreover, note that no Euclidean normalization is needed here, because we are using the norm-and-count part of the reduction with the ℓ ∞ \ell_{\infty} ℓ ∞ norm. Next, for each fixed local stream, the signer’s simultaneous-prefix guarantee implies, at the terminal prefix,
∥ ∑ i = 1 m ε i x i ∥ ∞ ≤ C η κ + 1 , ∣ ∑ i = 1 m ε i ∣ ≤ C η κ + 1 . \left\lVert\sum_{i=1}^{m}\varepsilon_i x_i\right\rVert_{\infty}\le C_{\eta}\sqrt{\kappa+1},\qquad\left|\sum_{i=1}^{m}\varepsilon_i\right|\le C_{\eta}\sqrt{\kappa+1}. i = 1 ∑ m ε i x i ∞ ≤ C η κ + 1 , i = 1 ∑ m ε i ≤ C η κ + 1 .
except with probability at most
p ( m ) = C η m exp ( − κ + 1 C η log 2 + η ( e ( κ + 1 ) ) ) . p(m)=C_{\eta}m\exp\left(-\frac{\kappa+1}{C_{\eta}\log^{2+\eta}(e(\kappa+1))}\right). p ( m ) = C η m exp ( − C η log 2 + η ( e ( κ + 1 )) κ + 1 ) .
We have enlarged C η C_{\eta} C η , if necessary, so that the same constant works in both estimates. The first terminal bound comes from the original coordinates, and the second comes from the appended quota coordinate. Thus the two hypotheses of part (i) of Theorem 2.1 hold jointly with V ( m ) = W ( m ) = C η κ + 1 V(m)=W(m)=C_{\eta}\sqrt{\kappa+1} V ( m ) = W ( m ) = C η κ + 1 .
Although the stream reaching a node is random, it is determined by its strict-ancestor tapes. Conditional on those tapes, the node’s own signer is an independent copy on a fixed stream: this is the conditioning argument in Theorem 2.1 , so its failure bound applies at every node. At each depth, the node capacities sum to at most T T T , and there are at most h h h internal levels, so
∑ u i n t e r n a l p ( m u ) ≤ C η T h exp ( − κ + 1 C η log 2 + η ( e ( κ + 1 ) ) ) ≤ δ . \sum_{u\ \mathrm{internal}}p(m_u)\le C_{\eta}Th\exp\left(-\frac{\kappa+1}{C_{\eta}\log^{2+\eta}(e(\kappa+1))}\right)\le\delta. u internal ∑ p ( m u ) ≤ C η T h exp ( − C η log 2 + η ( e ( κ + 1 )) κ + 1 ) ≤ δ .
With probability at least 1 − δ 1-\delta 1 − δ , all local terminal bounds hold. On this single event, (4) gives, for every output prefix,
∥ res k ( v π ) ∥ ∞ ≤ ∑ u ∈ P ( k ) ( C η κ + 1 + 1 { m u o d d } ) ≤ ( C η κ + 1 + 1 ) h . \lVert\operatorname{res}_k(v_{\pi})\rVert_{\infty}\le\sum_{u\in P(k)}\left(C_{\eta}\sqrt{\kappa+1}+1\{m_u\ \mathrm{odd}\}\right)\le(C_{\eta}\sqrt{\kappa+1}+1)h. ∥ res k ( v π ) ∥ ∞ ≤ u ∈ P ( k ) ∑ ( C η κ + 1 + 1 { m u odd } ) ≤ ( C η κ + 1 + 1 ) h .
This gives the stated asymptotic bound as h ∈ O ( log T ) h\in O(\log T) h ∈ O ( log T ) .
Lower bounds
In this section, we prove lower bounds that match our deterministic upper bounds and, for constant and polynomially small failure probabilities, our randomized upper bounds. All our hard inputs use the same zero-sum completion: stop an initial stream and fill the remaining arrivals with identical vectors that cancel its total. For the randomized bounds, the initial stream consists of coordinate cycles, stopped at a time chosen independently of the algorithm’s random tape. For the deterministic bound in a plane, the initial stream instead depends on the algorithm’s previous assignments.
Theorem 5.1 (Deterministic and randomized OSP lower bounds). For T ≥ 2 T \ge2 T ≥ 2 and d ≥ 1 d \ge1 d ≥ 1 , it holds that
OS d e t ( d , T ) ∈ { Ω ( log T ) , d = 1 , Ω ( T ) , d ≥ 2 , \operatorname{OS}_{\mathrm{det}}(d,T) \in\begin{cases} \Omega(\log T), & d=1, \\ \Omega(\sqrt{T}), & d \ge2, \end{cases} OS det ( d , T ) ∈ { Ω ( log T ) , Ω ( T ) , d = 1 , d ≥ 2 , and, for 0 < δ ≤ 1 / 2 0 < \delta\le1/2 0 < δ ≤ 1/2 and d ∗ : = min { d , T } d_* := \min\{d,T\} d ∗ := min { d , T } ,
OS r a n d ( d , T , δ ) ∈ Ω ( log T + d ∗ log ( T / d ∗ ) ) . \operatorname{OS}_{\mathrm{rand}}(d,T,\delta) \in\Omega\left(\log T+\sqrt{d_* \log(T/d_*)}\right). OS rand ( d , T , δ ) ∈ Ω ( log T + d ∗ log ( T / d ∗ ) ) . The deterministic bound for d ≥ 2 d \ge2 d ≥ 2 already holds in a fixed plane. The oblivious hard inputs are independent of the algorithm’s random tape.
The input construction
We first explain the construction of the hard inputs which will be used throughout this section. Fix T ≥ 2 T \ge2 T ≥ 2 . Consider the following input: after presenting m ≤ T / 2 m \le T/2 m ≤ T /2 vectors v 1 , … , v m v_1,\ldots,v_m v 1 , … , v m with ∥ v i ∥ 2 ≤ 1 \lVert v_i\rVert_2 \le1 ∥ v i ∥ 2 ≤ 1 , present ( T − m ) (T-m) ( T − m ) copies of − 1 T − m ∑ i = 1 m v i -\frac{1}{T-m}\sum_{i=1}^{m}v_i − T − m 1 ∑ i = 1 m v i . These repeated vectors remain in the unit ball since ∥ ∑ i = 1 m v i ∥ 2 ≤ m ≤ T − m \left\lVert\sum_{i=1}^{m}v_i\right\rVert_2 \le m \le T-m ∥ ∑ i = 1 m v i ∥ 2 ≤ m ≤ T − m . Let p i ∈ [ T ] p_i \in[T] p i ∈ [ T ] be the position assigned to v i v_i v i by the algorithm. Then the first k k k output positions contain exactly k − ∣ { i ≤ m : p i ≤ k } ∣ k-\lvert\{i \le m:p_i \le k\}\rvert k − ∣{ i ≤ m : p i ≤ k }∣ repeated vectors, hence the prefix residual is
res k ( v π ) = ∑ i ≤ m p i ≤ k v i − k − ∣ { i ≤ m : p i ≤ k } ∣ T − m ∑ i = 1 m v i . (20) \operatorname{res}_k(v_\pi)=\sum_{\substack{i\le m\\p_i\le k}}v_i-\frac{k-\lvert\{i\le m:p_i\le k\}\rvert}{T-m}\sum_{i=1}^{m}v_i. \tag*{(20)} res k ( v π ) = i ≤ m p i ≤ k ∑ v i − T − m k − ∣{ i ≤ m : p i ≤ k }∣ i = 1 ∑ m v i . (20)
For the randomized lower bounds, suppose that d ≤ T / 2 d \le T/2 d ≤ T /2 and set N = ⌊ T / ( 2 d ) ⌋ N=\lfloor T/(2d)\rfloor N = ⌊ T / ( 2 d )⌋ . For each s ∈ [ N ] s \in[N] s ∈ [ N ] , the initial stream consists of s s s cycles through the coordinate vectors, giving the fixed input
I s = ( e 1 , … , e d , … , e 1 , … , e d , − s 1 T − d s , … , − s 1 T − d s ⏟ T − d s copies ) , (21) I_s=\left(e_1,\ldots,e_d,\ldots,e_1,\ldots,e_d,\underbrace{-\frac{s\mathbf{1}}{T-ds},\ldots,-\frac{s\mathbf{1}}{T-ds}}_{T-ds\text{ copies}}\right), \tag*{(21)} I s = e 1 , … , e d , … , e 1 , … , e d , T − d s copies − T − d s s 1 , … , − T − d s s 1 , (21)
where 1 = ( 1 , … , 1 ) ∈ R d \mathbf{1}=(1,\ldots,1)\in\mathbb{R}^d 1 = ( 1 , … , 1 ) ∈ R d . The point is that the algorithm cannot know when the coordinate cycles will stop. Indeed, fix a random tape and let p i , j p_{i,j} p i , j be the position assigned to e j e_j e j in cycle i i i when the algorithm runs on I N I_N I N . Clearly, these same positions describe its first s s s cycles on every I s I_s I s , since the inputs agree up to time d s ds d s .
Deterministic lower bounds
We prove a logarithmic lower bound in dimension one and a square-root lower bound in every dimension at least two.
Lemma 5.2 (Deterministic lower bounds). There exists an absolute constant c > 0 c>0 c > 0 such that, for every T ≥ 2 T \ge2 T ≥ 2 and d ≥ 1 d \ge1 d ≥ 1 , every deterministic online ordering algorithm has a fixed zero-sum unit-ball input satisfying
res max ( v π ) ≥ { c log T , d = 1 , c T , d ≥ 2. \operatorname{res}_{\max}(v_\pi)\ge\begin{cases}c\log T, & d=1, \\ c\sqrt{T}, & d\ge2.\end{cases} res m a x ( v π ) ≥ { c log T , c T , d = 1 , d ≥ 2. For d = 1 d=1 d = 1 , the input can be chosen from the family (21) ; for d ≥ 2 d\ge2 d ≥ 2 , the input lies in a fixed plane.
Proof. On the line, let us take N = ⌊ T / 2 ⌋ N=\lfloor T/2\rfloor N = ⌊ T /2 ⌋ and write p i = p i , 1 p_i=p_{i,1} p i = p i , 1 for the common positions in the construction above. Let c 0 > 0 c_0>0 c 0 > 0 be the absolute constant in Schmidt’s theorem [22 Theorem 2] . Applied to the points ( ( i − 1 ) / N , ( p i − 1 ) / T ) \left((i-1)/N,(p_i-1)/T\right) ( ( i − 1 ) / N , ( p i − 1 ) / T ) , it gives x , y ∈ [ 0 , 1 ] x,y\in[0,1] x , y ∈ [ 0 , 1 ] such that
∣ { i ≤ N : i − 1 N < x , p i − 1 T < y } ∣ − N x y ≥ c 0 log N . \left|\left\{i\le N:\frac{i-1}{N}<x,\ \frac{p_i-1}{T}<y\right\}\right|-Nxy\ge c_0\log N. { i ≤ N : N i − 1 < x , T p i − 1 < y } − N x y ≥ c 0 log N .
Here the cardinality counts the points in [ 0 , x ) × [ 0 , y ) [0,x)\times[0,y) [ 0 , x ) × [ 0 , y ) , while N x y Nxy N x y is N N N times the area of this rectangle. We now set s = ⌈ N x ⌉ s=\lceil Nx\rceil s = ⌈ N x ⌉ and k = ⌈ T y ⌉ k=\lceil Ty\rceil k = ⌈ T y ⌉ , and note that rounding the upper sides to s / N s/N s / N and k / T k/T k / T preserves the point count because ( i − 1 ) / N < x (i-1)/N<x ( i − 1 ) / N < x if and only if i ≤ s i\le s i ≤ s and ( p i − 1 ) / T < y (p_i-1)/T<y ( p i − 1 ) / T < y if and only if p i ≤ k p_i\le k p i ≤ k . In addition, this changes the area term by at most
0 ≤ s k T − N x y = N ( s N − x ) y + s ( k T − y ) ≤ 1 + N T ≤ 3 2 . 0\le\frac{sk}{T}-Nxy=N\left(\frac{s}{N}-x\right)y+s\left(\frac{k}{T}-y\right)\le1+\frac{N}{T}\le\frac{3}{2}. 0 ≤ T s k − N x y = N ( N s − x ) y + s ( T k − y ) ≤ 1 + T N ≤ 2 3 .
The reverse triangle inequality therefore gives
∣ { i ≤ s : p i ≤ k } ∣ − s k T ≥ c 0 log N − 3 2 ≥ c 0 log N − 2. \left|\left\{i\le s:p_i\le k\right\}\right|-\frac{sk}{T}\ge c_0\log N-\frac{3}{2}\ge c_0\log N-2. ∣ { i ≤ s : p i ≤ k } ∣ − T s k ≥ c 0 log N − 2 3 ≥ c 0 log N − 2.
On the input I s I_s I s , the completion identity (20) becomes
res k ( v π ) = T T − s ( ∣ { i ≤ s : p i ≤ k } ∣ − s k T ) . (22) \operatorname{res}_k(v_\pi)=\frac{T}{T-s}\left(\left|\left\{i\le s:p_i\le k\right\}\right|-\frac{sk}{T}\right). \tag*{(22)} res k ( v π ) = T − s T ( ∣ { i ≤ s : p i ≤ k } ∣ − T s k ) . (22)
Since T / ( T − s ) ≥ 1 T/(T-s)\ge1 T / ( T − s ) ≥ 1 , this proves the logarithmic lower bound for all sufficiently large T T T .
For the planar bound, we proceed in a similar way to Spencer [23 , 24 ] , and present the proof for completeness. Indeed, let us assume T ≥ 8 T\ge8 T ≥ 8 , take m = ⌊ T / 4 ⌋ m=\lfloor T/4\rfloor m = ⌊ T /4 ⌋ , and focus on the output prefix k = ⌊ T / 2 ⌋ k=\lfloor T/2\rfloor k = ⌊ T /2 ⌋ . During the first m m m arrivals, let ξ t = + 1 \xi_t=+1 ξ t = + 1 if the algorithm assigns v t v_t v t to one of the first k k k positions, and ξ t = − 1 \xi_t=-1 ξ t = − 1 otherwise, and write U t = ∑ i = 1 t v i U_t=\sum_{i=1}^{t}v_i U t = ∑ i = 1 t v i , Z t = ∑ i = 1 t ξ i v i Z_t=\sum_{i=1}^{t}\xi_i v_i Z t = ∑ i = 1 t ξ i v i with U 0 = Z 0 = 0 U_0=Z_0=0 U 0 = Z 0 = 0 . We choose the vectors so that the difference Z t Z_t Z t between the two groups grows, while their total U t U_t U t stays small enough that the completion cannot cancel this difference. At time t t t , choose a unit vector v t v_t v t in the plane spanned by e 1 , e 2 e_1,e_2 e 1 , e 2 perpendicular to Z t − 1 Z_{t-1} Z t − 1 , reversing its orientation if necessary so that ⟨ U t − 1 , v t ⟩ ≤ 0 \langle U_{t-1},v_t\rangle\le0 ⟨ U t − 1 , v t ⟩ ≤ 0 . This choice uses only previous assignments, and whichever value of ξ t \xi_t ξ t the algorithm then produces,
∥ Z t ∥ 2 2 = ∥ Z t − 1 ∥ 2 2 + 1 , ∥ U t ∥ 2 2 ≤ ∥ U t − 1 ∥ 2 2 + 1. \lVert Z_t\rVert_2^2=\lVert Z_{t-1}\rVert_2^2+1,\qquad\lVert U_t\rVert_2^2\le\lVert U_{t-1}\rVert_2^2+1. ∥ Z t ∥ 2 2 = ∥ Z t − 1 ∥ 2 2 + 1 , ∥ U t ∥ 2 2 ≤ ∥ U t − 1 ∥ 2 2 + 1.
Hence ∥ Z m ∥ 2 = m \lVert Z_m\rVert_2=\sqrt{m} ∥ Z m ∥ 2 = m and ∥ U m ∥ 2 ≤ m \lVert U_m\rVert_2\le\sqrt{m} ∥ U m ∥ 2 ≤ m . We now complete the stream with T − m T-m T − m copies of − U m / ( T − m ) -U_m/(T-m) − U m / ( T − m ) . Among the initial vectors, those assigned to the first k k k positions have sum ( U m + Z m ) / 2 (U_m+Z_m)/2 ( U m + Z m ) /2 and number ( m + ∑ t = 1 m ξ t ) / 2 (m+\sum_{t=1}^{m}\xi_t)/2 ( m + ∑ t = 1 m ξ t ) /2 , so (20) gives
2 res k ( v π ) = Z m + T − 2 k + ∑ t = 1 m ξ t T − m U m . 2\operatorname{res}_k(v_\pi)=Z_m+\frac{T-2k+\sum_{t=1}^{m}\xi_t}{T-m}U_m. 2 res k ( v π ) = Z m + T − m T − 2 k + ∑ t = 1 m ξ t U m .
Since T − 2 k ∈ { 0 , 1 } T-2k\in\{0,1\} T − 2 k ∈ { 0 , 1 } and ∣ ∑ t = 1 m ξ t ∣ ≤ m \left|\sum_{t=1}^{m}\xi_t\right|\le m ∣ ∑ t = 1 m ξ t ∣ ≤ m , the triangle inequality yields
2 ∥ res k ( v π ) ∥ 2 ≥ ( 1 − m + 1 T − m ) m ≥ m 2 ≥ T 4 2 . 2\left\|\operatorname{res}_k(v_\pi)\right\|_2\ge\left(1-\frac{m+1}{T-m}\right)\sqrt{m}\ge\frac{\sqrt{m}}{2}\ge\frac{\sqrt{T}}{4\sqrt{2}}. 2 ∥ res k ( v π ) ∥ 2 ≥ ( 1 − T − m m + 1 ) m ≥ 2 m ≥ 4 2 T .
where ( m + 1 ) / ( T − m ) ≤ 1 / 2 (m+1)/(T-m)\le1/2 ( m + 1 ) / ( T − m ) ≤ 1/2 and m ≥ T / 8 m\ge T/8 m ≥ T /8 for T ≥ 8 T\ge8 T ≥ 8 . Choosing c > 0 c>0 c > 0 sufficiently small gives both bounds for large T T T ; the remaining bounded values follow from the one-cycle bound below after further decreasing c c c . All vectors lie in the same fixed plane, and although the initial stream was described adaptively, for any deterministic algorithm its assignments can be simulated in advance, producing a fixed input with the claimed cost. ∎
Remark 5.3. It is worth noting that the one-cycle input I 1 I_1 I 1 , using min { d , ⌊ T / 2 ⌋ } \min\{d,\lfloor T/2\rfloor\} min { d , ⌊ T /2 ⌋} coordinates, has discrepancy at least c min { d , T } c\sqrt{\min\{d,T\}} c min { d , T } under every ordering, for an absolute constant c > 0 c>0 c > 0 . Indeed, consider the one-cycle input I 1 I_1 I 1 in dimension d ≤ T / 2 d\le T/2 d ≤ T /2 . For any ordering, linearly interpolate between consecutive prefix sums and stop during a repeated vector, or at its endpoint, when exactly half of the repeated copies have been traversed. Their contribution is then − 1 / 2 -1/2 − 1/2 in each coordinate, while each basis vector has either appeared in full or has not appeared yet, so every coordinate of the interpolated sum is − 1 / 2 -1/2 − 1/2 or 1 / 2 1/2 1/2 . Its norm is therefore d / 2 \sqrt{d}/2 d /2 , and convexity of the norm implies that at least one adjacent genuine prefix has norm at least as large.
Randomized lower bounds
We now show that randomized algorithms can also have a large prefix sum on some fixed input. We start by proving the first term Ω ( log T ) \Omega(\log T) Ω ( log T ) of the randomized lower bound, which holds already in dimension one.
Lemma 5.4 (Randomized lower bound for $d=1). There exists an absolute constant c > 0 c>0 c > 0 such that, for every T ≥ 2 T\ge2 T ≥ 2 and every randomized online ordering algorithm, some fixed input from the scalar family (21) satisfies
P ( res max ( v π ) > c log T ) > 1 2 . \mathbb{P}\bigl(\operatorname{res}_{\max}(v_\pi)>c\log T\bigr)>\frac{1}{2}. P ( res m a x ( v π ) > c log T ) > 2 1 . Proof. Let d = 1 d=1 d = 1 and N = ⌊ T / 2 ⌋ N=\lfloor T/2\rfloor N = ⌊ T /2 ⌋ . The family (21) becomes
I s = ( 1 , … , 1 ⏟ s copies , − s T − s , … , − s T − s ) , s ∈ [ N ] . I_s=\left(\underbrace{1,\ldots,1}_{s\ \text{copies}},-\frac{s}{T-s},\ldots,-\frac{s}{T-s}\right),\qquad s\in[N]. I s = s copies 1 , … , 1 , − T − s s , … , − T − s s , s ∈ [ N ] . Let us write res max ( I s ) \operatorname{res}_{\max}(I_s) res m a x ( I s ) for the maximum residual of the algorithm’s output on I s I_s I s , and let us fix a random tape so that the algorithm’s decisions are deterministic, with p i p_i p i being the output position assigned to the i i i th arriving copy of 1 1 1 on I N I_N I N . Using the same tape, its first s s s assignments on I s I_s I s are also p 1 , … , p s p_1,\ldots,p_s p 1 , … , p s , since both inputs begin with s s s copies of 1 1 1 . For s ∈ [ N ] s\in[N] s ∈ [ N ] , denote the discrepancy over output prefixes as
Δ s : = max 0 ≤ k ≤ T ∣ { i ≤ s : p i ≤ k } ∣ − s k T . \Delta_s:=\max_{0\le k\le T}\left|\left\{i\le s:p_i\le k\right\}\right|-\frac{sk}{T}. Δ s := 0 ≤ k ≤ T max ∣ { i ≤ s : p i ≤ k } ∣ − T s k . By (22) , we have Δ s = ( T − s ) / T ⋅ res max ( I s ) ≤ res max ( I s ) \Delta_s=(T-s)/T\cdot\operatorname{res}_{\max}(I_s)\le\operatorname{res}_{\max}(I_s) Δ s = ( T − s ) / T ⋅ res m a x ( I s ) ≤ res m a x ( I s ) . To apply Tijdeman–Wagner’s theorem on an infinite sequence in [ 0 , 1 ) [0,1) [ 0 , 1 ) , we first append infinitely many zeros after ( ( p i − 1 ) / T ) i = 1 N ((p_i-1)/T)_{i=1}^{N} (( p i − 1 ) / T ) i = 1 N . By Tijdeman–Wagner’s theorem [26 Theorem 1] , there exists an absolute constant c 0 > 0 c_0>0 c 0 > 0 such that for every fixed tape,
∣ { 1 ≤ s ≤ N : Δ s + 1 2 < c 0 log N } ∣ ≤ 2 N 5 / 6 . \left|\left\{1\le s\le N:\Delta_s+\frac{1}{2}<c_0\log N\right\}\right|\le2N^{5/6}. { 1 ≤ s ≤ N : Δ s + 2 1 < c 0 log N } ≤ 2 N 5/6 . Here the term 1 / 2 1/2 1/2 comes from restricting interval endpoints to multiples of 1 / T 1/T 1/ T . Now, for any y ∈ [ 0 , 1 ) y\in[0,1) y ∈ [ 0 , 1 ) , we round y y y upwards to ⌈ T y ⌉ / T \lceil Ty\rceil/T ⌈ T y ⌉ / T , and, since all points lie on this grid, the intervals [ 0 , y ) [0,y) [ 0 , y ) and [ 0 , ⌈ T y ⌉ / T ) [0,\lceil Ty\rceil/T) [ 0 , ⌈ T y ⌉ / T ) contain the same points. The term s y sy sy changes by at most s / T ≤ 1 / 2 s/T\le1/2 s / T ≤ 1/2 , so the discrepancy over arbitrary intervals [ 0 , y ) [0,y) [ 0 , y ) is at most Δ s + 1 / 2 \Delta_s+1/2 Δ s + 1/2 .
Let c 0 c_0 c 0 be the constant in Tijdeman–Wagner’s theorem and set c 1 = min { c 0 / 4 , 1 / 26 } c_1=\min\{c_0/4,1/26\} c 1 = min { c 0 /4 , 1/26 } . If c 1 log T < 1 / 2 c_1\log T<1/2 c 1 log T < 1/2 , the input I 1 I_1 I 1 gives the desired bound with probability one. Otherwise, log T ≥ 13 \log T\ge13 log T ≥ 13 , so N > 2 12 N>2^{12} N > 2 12 and log N > 1 / 2 ⋅ log T \log N>1/2\cdot\log T log N > 1/2 ⋅ log T , giving c 1 log T + 1 / 2 ≤ 2 c 1 log T < c 0 log N c_1\log T+1/2\le2c_1\log T<c_0\log N c 1 log T + 1/2 ≤ 2 c 1 log T < c 0 log N . This gives that, for any s s s with res max ( I s ) ≤ c 1 log N \operatorname{res}_{\max}(I_s)\le c_1\log N res m a x ( I s ) ≤ c 1 log N ,
Δ s + 1 2 ≤ res max ( I s ) + 1 2 ≤ c 1 log N + 1 2 < c 0 log N . \Delta_s+\frac{1}{2}\le\operatorname{res}_{\max}(I_s)+\frac{1}{2}\le c_1\log N+\frac{1}{2}<c_0\log N. Δ s + 2 1 ≤ res m a x ( I s ) + 2 1 ≤ c 1 log N + 2 1 < c 0 log N .
Therefore for each random tape, there are at most 2 N 5 / 6 2N^{5/6} 2 N 5/6 indices with res max ( I s ) ≤ c 1 log N \operatorname{res}_{\max}(I_s) \le c_1 \log N res m a x ( I s ) ≤ c 1 log N . Averaging over the algorithm’s random tape gives
1 N ∑ s = 1 N P ( res max ( I s ) > c 1 log N ) ≥ 1 − 2 N − 1 / 6 > 1 2 . \frac{1}{N}\sum_{s=1}^{N}\mathbb{P}\left(\operatorname{res}_{\max}(I_s)>c_1\log N\right)\ge1-2N^{-1/6}>\frac{1}{2}. N 1 s = 1 ∑ N P ( res m a x ( I s ) > c 1 log N ) ≥ 1 − 2 N − 1/6 > 2 1 .
so there exists a fixed I s I_s I s which has maximum residual greater than c log N c\log N c log N with probability greater than 1 / 2 1/2 1/2 . Hence, some fixed input I s I_s I s satisfies
P ( res max ( I s ) > c log T ) > 1 2 , \mathbb{P}\left(\operatorname{res}_{\max}(I_s)>c\log T\right)>\frac{1}{2}, P ( res m a x ( I s ) > c log T ) > 2 1 ,
for c = c 1 / 2 c=c_1/2 c = c 1 /2 , which concludes the proof.
The following lemma derives the second term of the randomized lower bound for any dimension.
Lemma 5.5 (Randomized lower bound in arbitrary dimension). There exists an absolute constant c > 0 c>0 c > 0 such that the following holds. Let T ≥ 2 T\ge2 T ≥ 2 , d ≥ 1 d\ge1 d ≥ 1 , and 0 < δ < 1 0<\delta<1 0 < δ < 1 . If a randomized online ordering algorithm satisfies
P ( res max ( v π ) ≤ ρ ) ≥ 1 − δ \mathbb{P}\left(\operatorname{res}_{\max}(v_\pi)\le\rho\right)\ge1-\delta P ( res m a x ( v π ) ≤ ρ ) ≥ 1 − δ on every fixed zero-sum unit-ball input, then ρ ≥ c ( 1 − δ ) d ∗ log ( T / d ∗ ) , \rho\ge c(1-\delta)\sqrt{d_*}\log(T/d_*), ρ ≥ c ( 1 − δ ) d ∗ log ( T / d ∗ ) , where d ∗ : = min { d , T } d_*:=\min\{d,T\} d ∗ := min { d , T } .
Proof. When d > T / 2 d>T/2 d > T /2 , the one-cycle input in Lemma 5.2 has cost Ω ( d ∗ ) \Omega(\sqrt{d_*}) Ω ( d ∗ ) under every ordering and, since log ( 2 + T / d ∗ ) ∈ O ( 1 ) \log(2+T/d_*)\in O(1) log ( 2 + T / d ∗ ) ∈ O ( 1 ) , this proves the claim for sufficiently small c > 0 c>0 c > 0 .
Therefore we assume that d ≤ T / 2 d\le T/2 d ≤ T /2 and let N = ⌊ T / ( 2 d ) ⌋ N=\lfloor T/(2d)\rfloor N = ⌊ T / ( 2 d )⌋ . The expected fraction of inputs I 1 , … , I N I_1,\ldots,I_N I 1 , … , I N on which the algorithm succeeds is at least 1 − δ 1-\delta 1 − δ , and so we fix a tape that succeeds on a set S ⊆ [ N ] S\subseteq[N] S ⊆ [ N ] with probability p : = ∣ S ∣ / N ≥ 1 − δ p:=|S|/N\ge1-\delta p := ∣ S ∣/ N ≥ 1 − δ . For its positions p i , j p_{i,j} p i , j , define for each j = 1 , … , d j=1,\ldots,d j = 1 , … , d and ( x , y ) ∈ [ 0 , 1 ] 2 (x,y)\in[0,1]^2 ( x , y ) ∈ [ 0 , 1 ] 2 ,
D j ( x , y ) : = ∣ { i ∈ [ N ] : i − 1 N < x , p i , j − 1 T < y } ∣ − N x y , D_j(x,y):=\left|\left\{i\in[N]:\frac{i-1}{N}<x,\ \frac{p_{i,j}-1}{T}<y\right\}\right|-Nxy, D j ( x , y ) := { i ∈ [ N ] : N i − 1 < x , T p i , j − 1 < y } − N x y ,
and for fixed s ∈ [ N ] s\in[N] s ∈ [ N ] and 0 ≤ k ≤ T 0\le k\le T 0 ≤ k ≤ T , write a j : = D j ( s / N , k / T ) = ∣ { i ≤ s : p i , j ≤ k } ∣ − s k / T a_j:=D_j(s/N,k/T)=|\{i\le s:p_{i,j}\le k\}|-sk/T a j := D j ( s / N , k / T ) = ∣ { i ≤ s : p i , j ≤ k } ∣ − s k / T . The identity in (20) can thus be rewritten as
res k ( v π ) = ( a j ) j = 1 d + s T − d s ( ∑ j = 1 d a j ) 1. \operatorname{res}_k(v_\pi)=(a_j)_{j=1}^{d}+\frac{s}{T-ds}\left(\sum_{j=1}^{d}a_j\right)\mathbf{1}. res k ( v π ) = ( a j ) j = 1 d + T − d s s ( j = 1 ∑ d a j ) 1 .
Note that these two terms have nonnegative inner product since
⟨ ( a j ) j = 1 d , s T − d s ( ∑ ℓ = 1 d a ℓ ) 1 ⟩ = s T − d s ( ∑ ℓ = 1 d a ℓ ) ( ∑ j = 1 d a j ) = s T − d s ( ∑ j = 1 d a j ) 2 ≥ 0 , \left\langle(a_j)_{j=1}^{d},\frac{s}{T-ds}\left(\sum_{\ell=1}^{d}a_\ell\right)\mathbf{1}\right\rangle
=\frac{s}{T-ds}\left(\sum_{\ell=1}^{d}a_\ell\right)\left(\sum_{j=1}^{d}a_j\right)
=\frac{s}{T-ds}\left(\sum_{j=1}^{d}a_j\right)^2\ge0, ⟨ ( a j ) j = 1 d , T − d s s ( ℓ = 1 ∑ d a ℓ ) 1 ⟩ = T − d s s ( ℓ = 1 ∑ d a ℓ ) ( j = 1 ∑ d a j ) = T − d s s ( j = 1 ∑ d a j ) 2 ≥ 0 ,
and therefore, for every s ∈ S s\in S s ∈ S and 0 ≤ k ≤ T 0\le k\le T 0 ≤ k ≤ T , success on I s I_s I s implies
∑ j = 1 d D j ( s N , k T ) 2 ≤ ∥ res k ( v π ) ∥ 2 2 ≤ ρ 2 . \sum_{j=1}^{d}D_j\left(\frac{s}{N},\frac{k}{T}\right)^2\le\|\operatorname{res}_k(v_\pi)\|_2^2\le\rho^2. j = 1 ∑ d D j ( N s , T k ) 2 ≤ ∥ res k ( v π ) ∥ 2 2 ≤ ρ 2 .
We now define the set E = ⋃ s ∈ S ( ( s − 1 ) / N , s / N ) E=\bigcup_{s\in S}((s-1)/N,s/N) E = ⋃ s ∈ S (( s − 1 ) / N , s / N ) , so that each successful stopping time contributes an interval of length 1 / N 1/N 1/ N and ∣ E ∣ = ∣ S ∣ / N = p |E|=|S|/N=p ∣ E ∣ = ∣ S ∣/ N = p . We extend the discrepancy bound at successful grid points to these intervals to show that
∫ E ∫ 0 1 ∑ j = 1 d D j ( x , y ) 2 d y d x ≤ p ( ρ + 3 d 2 ) 2 . (23) \int_E\int_0^1\sum_{j=1}^{d}D_j(x,y)^2\,dy\,dx\le p\left(\rho+\frac{3\sqrt{d}}{2}\right)^2. \tag*{(23)} ∫ E ∫ 0 1 j = 1 ∑ d D j ( x , y ) 2 d y d x ≤ p ( ρ + 2 3 d ) 2 . (23)
For any 1 ≤ s ≤ N 1 \le s \le N 1 ≤ s ≤ N , 1 ≤ k ≤ T 1 \le k \le T 1 ≤ k ≤ T , and ( x , y ) ∈ ( ( s − 1 ) / N , s / N ) × ( ( k − 1 ) / T , k / T ) (x,y) \in((s-1)/N,s/N) \times((k-1)/T,k/T) ( x , y ) ∈ (( s − 1 ) / N , s / N ) × (( k − 1 ) / T , k / T ) , we have
i − 1 N < x ⟺ i ≤ s , p i , j − 1 T < y ⟺ p i , j ≤ k . \frac{i-1}{N}<x \Longleftrightarrow i \le s,\qquad\frac{p_{i,j}-1}{T}<y \Longleftrightarrow p_{i,j}\le k. N i − 1 < x ⟺ i ≤ s , T p i , j − 1 < y ⟺ p i , j ≤ k .
Thus ( x , y ) (x,y) ( x , y ) and the upper corner ( s / N , k / T ) (s/N,k/T) ( s / N , k / T ) count exactly the same points, so only the area term changes:
0 ≤ D j ( x , y ) − D j ( s N , k T ) = s k T − N x y = N ( s N − x ) y + s ( k T − y ) ≤ 1 + s T ≤ 3 2 . 0 \le D_j(x,y)-D_j\left(\frac{s}{N},\frac{k}{T}\right)=\frac{sk}{T}-Nxy=N\left(\frac{s}{N}-x\right)y+s\left(\frac{k}{T}-y\right)\le1+\frac{s}{T}\le\frac{3}{2}. 0 ≤ D j ( x , y ) − D j ( N s , T k ) = T s k − N x y = N ( N s − x ) y + s ( T k − y ) ≤ 1 + T s ≤ 2 3 .
When s ∈ S s \in S s ∈ S , success bounds the discrepancy norm at the grid corner by ρ \rho ρ , and the triangle inequality gives
( ∑ j = 1 d D j ( x , y ) 2 ) 1 / 2 ≤ ( ∑ j = 1 d D j ( s N , k T ) 2 ) 1 / 2 + 3 d 2 ≤ ρ + 3 d 2 . \left(\sum_{j=1}^{d}D_j(x,y)^2\right)^{1/2}\le\left(\sum_{j=1}^{d}D_j\left(\frac{s}{N},\frac{k}{T}\right)^2\right)^{1/2}+\frac{3\sqrt{d}}{2}\le\rho+\frac{3\sqrt{d}}{2}. ( j = 1 ∑ d D j ( x , y ) 2 ) 1/2 ≤ ( j = 1 ∑ d D j ( N s , T k ) 2 ) 1/2 + 2 3 d ≤ ρ + 2 3 d .
This holds almost everywhere on E × [ 0 , 1 ] E \times[0,1] E × [ 0 , 1 ] ; squaring and integrating over this set of area p p p proves (23) .
In the following claim, we prove a lower bound of the contribution of each D j D_j D j to the integral (23) , i.e., a lower bound of ∫ E ∫ 0 1 D j ( x , y ) 2 d y d x \int_E\int_0^1D_j(x,y)^2\,dy\,dx ∫ E ∫ 0 1 D j ( x , y ) 2 d y d x for any each coordinate j j j .
Claim 5.6. Let N ≥ 1 N \ge1 N ≥ 1 and let ( u i , v i ) ∈ [ 0 , 1 ] 2 (u_i,v_i) \in[0,1]^2 ( u i , v i ) ∈ [ 0 , 1 ] 2 for i = 1 , … , N i=1,\ldots,N i = 1 , … , N . For ( x , y ) ∈ [ 0 , 1 ] 2 (x,y) \in[0,1]^2 ( x , y ) ∈ [ 0 , 1 ] 2 , define
D ( x , y ) : = ∣ { i ∈ [ N ] : u i < x , v i < y } ∣ − N x y . D(x,y):=\lvert\{i\in[N]:u_i<x,\ v_i<y\}\rvert-Nxy. D ( x , y ) := ∣{ i ∈ [ N ] : u i < x , v i < y }∣ − N x y . Then for every E ⊆ [ 0 , 1 ] E \subseteq[0,1] E ⊆ [ 0 , 1 ] which is a union of intervals, with p = ∣ E ∣ > 0 p=\lvert E\rvert>0 p = ∣ E ∣ > 0 ,
∫ E ∫ 0 1 D ( x , y ) 2 d y d x ≥ C p 3 log ( N + 2 ) , \int_E\int_0^1D(x,y)^2\,dy\,dx\ge Cp^3\log(N+2), ∫ E ∫ 0 1 D ( x , y ) 2 d y d x ≥ C p 3 log ( N + 2 ) , where C > 0 C>0 C > 0 is an absolute constant.
Proof of Claim 5.6. We apply Roth’s empty-rectangle argument [21 ] on E × [ 0 , 1 ] E \times[0,1] E × [ 0 , 1 ] , letting n = ⌈ log 2 ( 2 N ) ⌉ n=\lceil\log_2(2N)\rceil n = ⌈ log 2 ( 2 N )⌉ for succinctness. First we construct two recursive partitions of [ 0 , 1 ] [0,1] [ 0 , 1 ] , one for each coordinate.
For the x x x -coordinate, start with [ 0 , 1 ] [0,1] [ 0 , 1 ] . Split each interval I I I at a point z z z into a left child I − I_- I − and a right child I + I_+ I + such that
∣ E ∩ I − ∣ = ∣ E ∩ I + ∣ = ∣ E ∩ I ∣ 2 . \lvert E\cap I_-\rvert=\lvert E\cap I_+\rvert=\frac{\lvert E\cap I\rvert}{2}. ∣ E ∩ I − ∣ = ∣ E ∩ I + ∣ = 2 ∣ E ∩ I ∣ .
Thus the split divides the length of the part of E E E inside I I I equally between the children; the children themselves need not have equal lengths. Such a point z z z exists because the length of E E E to its left varies continuously with z z z . Let I a \mathcal{I}_a I a denote the collection of intervals after a a a rounds of splitting. It contains 2 a 2^a 2 a intervals, each satisfying ∣ E ∩ I ∣ = p 2 − a \lvert E\cap I\rvert=p2^{-a} ∣ E ∩ I ∣ = p 2 − a .
For the y y y -coordinate, repeatedly split each interval at its midpoint. Let J b \mathcal{J}_b J b denote the collection after b b b rounds. It contains 2 b 2^b 2 b intervals, each of length 2 − b 2^{-b} 2 − b . We construct both partitions through level n + 1 n+1 n + 1 , so that every interval used below also has two children.
For each integer a = 0 , … , n a=0,\ldots,n a = 0 , … , n , consider all rectangles I × J I\times J I × J with I ∈ I a I\in\mathcal{I}_a I ∈ I a and J ∈ J n − a J\in\mathcal{J}_{n-a} J ∈ J n − a , which satisfy ∣ E ∩ I ∣ = p 2 − a \lvert E\cap I\rvert=p2^{-a} ∣ E ∩ I ∣ = p 2 − a , ∣ J ∣ = 2 − ( n − a ) \lvert J\rvert=2^{-(n-a)} ∣ J ∣ = 2 − ( n − a ) . There are 2 a 2 n − a = 2 n 2^a2^{n-a}=2^n 2 a 2 n − a = 2 n such rectangles, with disjoint interiors, and, since the point set defining D D D has N N N points, at most N ≤ 2 n − 1 N\le2^{n-1} N ≤ 2 n − 1 rectangles contain a point in their interior. We select exactly 2 n − 1 2^{n-1} 2 n − 1 rectangles whose interiors contain no points, which over all a a a , selects ( n + 1 ) 2 n − 1 (n+1)2^{n-1} ( n + 1 ) 2 n − 1 rectangles. Next, for each selected rectangle I × J I\times J I × J , let us write I − I_- I − , I + I_+ I + for the left and right children of I I I , and J − J_- J − , J + J_+ J + for the lower and upper halves of J J J . We then define
h I , J ( x , y ) = { + 1 , ( x , y ) ∈ ( I − × J − ) ∪ ( I + × J + ) , − 1 , ( x , y ) ∈ ( I − × J + ) ∪ ( I + × J − ) , 0 , ( x , y ) ∉ I × J . h_{I,J}(x,y)=
\begin{cases}
+1, & (x,y)\in(I_-\times J_-)\cup(I_+\times J_+),\\
-1, & (x,y)\in(I_-\times J_+)\cup(I_+\times J_-),\\
0, & (x,y)\notin I\times J.
\end{cases} h I , J ( x , y ) = ⎩ ⎨ ⎧ + 1 , − 1 , 0 , ( x , y ) ∈ ( I − × J − ) ∪ ( I + × J + ) , ( x , y ) ∈ ( I − × J + ) ∪ ( I + × J − ) , ( x , y ) ∈ / I × J .
with values on the boundaries that may be set to zero. Applying the Cauchy–Schwarz inequality to D D D and ∑ I , J h I , J \sum_{I,J} h_{I,J} ∑ I , J h I , J gives
∫ E ∫ 0 1 D ( x , y ) 2 d y d x ≥ ( ∫ E ∫ 0 1 D ( x , y ) ∑ I , J h I , J ( x , y ) d y d x ) 2 ∫ E ∫ 0 1 ( ∑ I , J h I , J ( x , y ) ) 2 d y d x . (24) \int_E \int_0^1 D(x,y)^2\,dy\,dx \ge\frac{\left(\int_E\int_0^1 D(x,y)\sum_{I,J}h_{I,J}(x,y)\,dy\,dx\right)^2}{\int_E\int_0^1\left(\sum_{I,J}h_{I,J}(x,y)\right)^2\,dy\,dx}. \tag*{(24)} ∫ E ∫ 0 1 D ( x , y ) 2 d y d x ≥ ∫ E ∫ 0 1 ( ∑ I , J h I , J ( x , y ) ) 2 d y d x ( ∫ E ∫ 0 1 D ( x , y ) ∑ I , J h I , J ( x , y ) d y d x ) 2 . (24)
where the sum is over all selected rectangles ( I , J ) (I,J) ( I , J ) . We will deal with the two terms denominator and numerator separately. First we compute the denominator: since the lengths of E ∩ I − E\cap I_- E ∩ I − and E ∩ I + E\cap I_+ E ∩ I + are equal and so are J − J_- J − and J + J_+ J + , for every fixed y y y and every fixed x x x , we have
∫ E h I , J ( x , y ) d x = ∫ 0 1 h I , J ( x , y ) d y = 0 , ∫ E ∫ 0 1 h I , J ( x , y ) 2 d y d x = ∣ E ∩ I ∣ ∣ J ∣ = p 2 − n . \int_E h_{I,J}(x,y)\,dx=\int_0^1 h_{I,J}(x,y)\,dy=0,\qquad\int_E\int_0^1 h_{I,J}(x,y)^2\,dy\,dx=|E\cap I|\,|J|=p2^{-n}. ∫ E h I , J ( x , y ) d x = ∫ 0 1 h I , J ( x , y ) d y = 0 , ∫ E ∫ 0 1 h I , J ( x , y ) 2 d y d x = ∣ E ∩ I ∣ ∣ J ∣ = p 2 − n .
The functions h I , J h_{I,J} h I , J associated with the selected rectangles are pairwise orthogonal, since either the rectangles have disjoint interiors, or the finer x x x -sign has integral zero over E E E while the coarser sign is constant on that interval. Hence
∫ E ∫ 0 1 ( ∑ I , J h I , J ( x , y ) ) 2 d y d x = ( n + 1 ) 2 n − 1 p 2 − n = p ( n + 1 ) 2 . (25) \int_E\int_0^1\left(\sum_{I,J}h_{I,J}(x,y)\right)^2\,dy\,dx=(n+1)2^{n-1}p2^{-n}=\frac{p(n+1)}{2}. \tag*{(25)} ∫ E ∫ 0 1 I , J ∑ h I , J ( x , y ) 2 d y d x = ( n + 1 ) 2 n − 1 p 2 − n = 2 p ( n + 1 ) . (25)
We next bound the numerator: for an empty rectangle, every point has at least one coordinate outside the corresponding interval’s interior. Its counting indicator is constant almost everywhere in that coordinate, so its integral against h I , J h_{I,J} h I , J vanishes. Consequently, only the term − N x y -Nxy − N x y in D D D contributes:
− ∫ E ∫ 0 1 D ( x , y ) h I , J ( x , y ) d y d x = N ∫ E ∩ I ∫ J x y h I , J ( x , y ) d y d x . -\int_E\int_0^1D(x,y)h_{I,J}(x,y)\,dy\,dx=N\int_{E\cap I}\int_Jxyh_{I,J}(x,y)\,dy\,dx. − ∫ E ∫ 0 1 D ( x , y ) h I , J ( x , y ) d y d x = N ∫ E ∩ I ∫ J x y h I , J ( x , y ) d y d x .
To bound this expression, let z z z be the splitting point of I I I and put q = p 2 − a − 1 q=p2^{-a-1} q = p 2 − a − 1 , the common length of E ∩ I − E\cap I_- E ∩ I − and E ∩ I + E\cap I_+ E ∩ I + . Then
∫ E ∩ I + x d x − ∫ E ∩ I − x d x = ∫ E ∩ I + ( x − z ) d x + ∫ E ∩ I − ( z − x ) d x ≥ 2 ∫ 0 q t d t = q 2 = p 2 2 − 2 a 4 . \int_{E\cap I_+}x\,dx-\int_{E\cap I_-}x\,dx=\int_{E\cap I_+}(x-z)\,dx+\int_{E\cap I_-}(z-x)\,dx\ge2\int_0^q t\,dt=q^2=\frac{p^2 2^{-2a}}{4}. ∫ E ∩ I + x d x − ∫ E ∩ I − x d x = ∫ E ∩ I + ( x − z ) d x + ∫ E ∩ I − ( z − x ) d x ≥ 2 ∫ 0 q t d t = q 2 = 4 p 2 2 − 2 a .
The inequality holds because, among sets of length q q q on either side of z z z , the interval adjacent to z z z minimizes the integral of the distance from z z z . For the two equal halves of J J J ,
∫ J + y d y − ∫ J − y d y = ∣ J ∣ 2 4 . \int_{J_+}y\,dy-\int_{J_-}y\,dy=\frac{|J|^2}{4}. ∫ J + y d y − ∫ J − y d y = 4 ∣ J ∣ 2 .
The definition of h I , J h_{I,J} h I , J therefore gives
− ∫ E ∫ 0 1 D ( x , y ) h I , J ( x , y ) d y d x = N ( ∫ E ∩ I + x d x − ∫ E ∩ I − x d x ) ( ∫ J + y d y − ∫ J − y d y ) ≥ N p 2 2 − 2 a ∣ J ∣ 2 16 = N p 2 2 − 2 n 16 . -\int_E\int_0^1D(x,y)h_{I,J}(x,y)\,dy\,dx=N\left(\int_{E\cap I_+}x\,dx-\int_{E\cap I_-}x\,dx\right)\left(\int_{J_+}y\,dy-\int_{J_-}y\,dy\right)
\ge\frac{Np^2 2^{-2a}|J|^2}{16}=\frac{Np^2 2^{-2n}}{16}. − ∫ E ∫ 0 1 D ( x , y ) h I , J ( x , y ) d y d x = N ( ∫ E ∩ I + x d x − ∫ E ∩ I − x d x ) ( ∫ J + y d y − ∫ J − y d y ) ≥ 16 N p 2 2 − 2 a ∣ J ∣ 2 = 16 N p 2 2 − 2 n .
Summing the preceding bounds and using 2 n < 4 N 2^n<4N 2 n < 4 N , we obtain
− ∫ E ∫ 0 1 D ( x , y ) ∑ I , J h I , J ( x , y ) d y d x ≥ ( n + 1 ) 2 n − 1 N p 2 2 − 2 n 16 = N p 2 ( n + 1 ) 32 ⋅ 2 n ≥ p 2 ( n + 1 ) 128 . -\int_E\int_0^1D(x,y)\sum_{I,J}h_{I,J}(x,y)\,dy\,dx\ge(n+1)2^{n-1}\frac{Np^2 2^{-2n}}{16}=\frac{Np^2(n+1)}{32\cdot2^n}\ge\frac{p^2(n+1)}{128}. − ∫ E ∫ 0 1 D ( x , y ) I , J ∑ h I , J ( x , y ) d y d x ≥ ( n + 1 ) 2 n − 1 16 N p 2 2 − 2 n = 32 ⋅ 2 n N p 2 ( n + 1 ) ≥ 128 p 2 ( n + 1 ) .
The integral is negative, so squaring gives
( ∫ E ∫ 0 1 D ( x , y ) ∑ I , J h I , J ( x , y ) d y d x ) 2 ≥ p 4 ( n + 1 ) 2 128 2 . (26) \left(\int_E \int_0^1 D(x,y)\sum_{I,J}h_{I,J}(x,y)\,dy\,dx\right)^2 \ge\frac{p^4(n+1)^2}{128^2}. \tag*{(26)} ∫ E ∫ 0 1 D ( x , y ) I , J ∑ h I , J ( x , y ) d y d x 2 ≥ 12 8 2 p 4 ( n + 1 ) 2 . (26)
Substituting (25) and (26) into (24) gives, for an absolute constant C > 0 C>0 C > 0 ,
∫ E ∫ 0 1 D ( x , y ) 2 d y d x ≥ C p 3 ( n + 1 ) ≥ C p 3 log ( N + 2 ) , \int_E\int_0^1 D(x,y)^2\,dy\,dx \ge Cp^3(n+1)\ge Cp^3\log(N+2), ∫ E ∫ 0 1 D ( x , y ) 2 d y d x ≥ C p 3 ( n + 1 ) ≥ C p 3 log ( N + 2 ) ,
as required.
We are now ready to conclude the proof of Lemma 5.5. First apply Claim 5.6 to the points defining D j D_j D j and E E E , we have
∫ E ∫ 0 1 D j ( x , y ) 2 d y d x ≥ C p 3 log ( N + 2 ) . (27) \int_E\int_0^1 D_j(x,y)^2\,dy\,dx \ge Cp^3\log(N+2). \tag*{(27)} ∫ E ∫ 0 1 D j ( x , y ) 2 d y d x ≥ C p 3 log ( N + 2 ) . (27)
We then sum up (27) over j j j and apply (23) to get
p ( ρ + 3 d 2 ) 2 ≥ C d p 3 log ( N + 2 ) . p\left(\rho+\frac{3\sqrt{d}}{2}\right)^2\ge Cd p^3\log(N+2). p ( ρ + 2 3 d ) 2 ≥ C d p 3 log ( N + 2 ) .
The one-cycle input forces ρ ≥ d / 2 \rho\ge\sqrt{d}/2 ρ ≥ d /2 , since its cost is at least d / 2 \sqrt{d}/2 d /2 under every ordering and the success probability is positive. Hence ρ + 3 d / 2 ≤ 4 ρ \rho+3\sqrt{d}/2\le4\rho ρ + 3 d /2 ≤ 4 ρ . Using p ≥ 1 − δ p\ge1-\delta p ≥ 1 − δ and N = ⌊ T / ( 2 d ) ⌋ N=\lfloor T/(2d)\rfloor N = ⌊ T / ( 2 d )⌋ , we obtain
ρ ≥ c 0 p d log ( 2 + T d ) ≥ c 0 ( 1 − δ ) d log ( 2 + T d ) \rho\ge c_0p\sqrt{d\log\left(2+\frac{T}{d}\right)}\ge c_0(1-\delta)\sqrt{d\log\left(2+\frac{T}{d}\right)} ρ ≥ c 0 p d log ( 2 + d T ) ≥ c 0 ( 1 − δ ) d log ( 2 + d T )
for an absolute constant c 0 > 0 c_0>0 c 0 > 0 . Eventually, we may choose c ≤ c 0 c\le c_0 c ≤ c 0 sufficiently small to include the case d > T / 2 d>T/2 d > T /2 discussed at the very beginning, which will complete the proof.
Proof of Theorem 5.1 . The deterministic assertions follow from Lemma 5.2 . For 0 < δ ≤ 1 / 2 0<\delta\le1/2 0 < δ ≤ 1/2 , a uniform randomized guarantee must satisfy both the scalar lower bound of Lemma 5.4 , embedded in the first coordinate, and the dimension lower bound of Lemma 5.5. Since 1 − δ ≥ 1 / 2 1-\delta\ge1/2 1 − δ ≥ 1/2 and the maximum of two nonnegative quantities is at least half their sum, these bounds give
ρ ≥ c ( log T + d ∗ log ( 2 + T / d ∗ ) ) , \rho\ge c\left(\log T+\sqrt{d_*\log(2+T/d_*)}\right), ρ ≥ c ( log T + d ∗ log ( 2 + T / d ∗ ) ) ,
for an absolute constant c > 0 c>0 c > 0 , as claimed.
Acknowledgments
The authors thank Rom Pinchasi for the fruitful discussions and initial ideas for the deterministic algorithm. The authors used ChatGPT to assist with mathematical arguments. Specifically, the initial quota correction argument in the reduction was suggested by ChatGPT-5.5 and subsequently refined by the authors. The lower-bound argument was suggested by ChatGPT-6 Astra. The authors take full responsibility for all the content of this work.