Introduction
The diameter of a point set is determined by two points, yet maintaining even a rough estimate can require information about many points that are far from the current extremes. A deletion can remove a witness, and a sequence of deletions can expose a point that the algorithm discarded long ago. In this work, we study Euclidean diameter in the fully dynamic streaming model, where an update inserts or deletes a point. Our goal is to maintain an estimate and an actual witness pair, while minimizing the information that the algorithm must retain and the time it takes to process each update, with a focus on achieving update time polynomial in dimension and polylogarithmic in the number of points.
For insertion-only Euclidean streams, Agarwal and Sharathkumar [AS15] obtained a ( 2 + ε ) (\sqrt{2}+\varepsilon) ( 2 + ε ) -approximation and showed that a factor below 2 \sqrt{2} 2 can require linear space in high dimension. Halldórsson, Matsakis, and Veselý [9 ] achieve the same upper bound while storing only O ( ε − 2 log ( 1 / ε ) ) O(\varepsilon^{-2}\log(1/\varepsilon)) O ( ε − 2 log ( 1/ ε )) points. To handle deletions, Indyk’s asymmetric embedding [11 ] , in the dynamic-streaming formulation of Padaki, Singal, and Waingarten [PSW26], gives space O ~ ( n 2 / ( c 2 − 1 ) ) \widetilde{O}(n^{2/(c^2-1)}) O ( n 2/ ( c 2 − 1 ) ) for approximation c c c . Its direct implementation updates every projection coordinate. At factor two this yields an n 2 / 3 n^{2/3} n 2/3 dependence in both memory and update time, up to polynomial factors in dimension and logarithmic parameters. In view of the lower bounds of Khanna, Padaki, Singal, and Waingarten [KPSW25] for general metrics and of Padaki, Singal, and Waingarten [PSW26] for Euclidean space, Ω ~ ( 1 / c 2 ) \widetilde{\Omega}(1/c^2) Ω ( 1/ c 2 ) space usage is required by any algorithm that is correct on streams of unrestricted length and frequency (a fixed horizon otherwise would limit the deletion histories the algorithm has to handle). Padaki et al. explicitly ask whether polynomial space is still necessary with a polynomial horizon [PSW26, Section 1.2].
Fully dynamic data structures offer another way to handle deletions. Chan and Pathak [6 ] used enclosing balls in high dimension, and Banihashem et al. [3 ] maintain a factor-two diameter with polynomial worst-case update time against adaptive updates. These fully dynamic data structures retain the input. This leaves open the question whether a streaming algorithm can maintain an approximate farthest pair using sublinear space and update time polynomial in the dimension and polylogarithmic in the stream parameters.
Our contribution
Let P t P_t P t denote the current support and D t = diam ( P t ) D_t=\operatorname{diam}(P_t) D t = diam ( P t ) , with D t = 0 D_t=0 D t = 0 when ∣ P t ∣ ≤ 1 |P_t|\le1 ∣ P t ∣ ≤ 1 . Write
L = ( d , log ( N + 2 ) , log ( Δ + 2 ) , log ( ( T + 2 ) / δ ) ) . \mathcal{L}=(d,\log(N+2),\log(\Delta+2),\log((T+2)/\delta)). L = ( d , log ( N + 2 ) , log ( Δ + 2 ) , log (( T + 2 ) / δ )) .
Here N ≥ 2 N\ge2 N ≥ 2 is a supplied upper bound on the maximum number of simultaneously active distinct points, and T T T is a supplied update horizon. The approximation convention is D t / c ≤ L t ≤ D t D_t/c\le L_t\le D_t D t / c ≤ L t ≤ D t . Space is measured in ordinary machine words; the model and the treatment of arithmetic are specified below.
Theorem 1.1 (Polynomial update time). For every fixed c > 3 c>\sqrt{3} c > 3 , there is a constant ε c > 0 \varepsilon_c>0 ε c > 0 and a randomized one-pass algorithm with
space N 1 − ε c poly c ( L ) , worst-case update time poly c ( L ) . \text{space } N^{1-\varepsilon_c}\operatorname{poly}_c(\mathcal{L}),\qquad\text{worst-case update time }\operatorname{poly}_c(\mathcal{L}). space N 1 − ε c poly c ( L ) , worst-case update time poly c ( L ) . For every oblivious strict-turnstile stream of at most T T T updates, with probability at least 1 − δ 1-\delta 1 − δ the algorithm maintains D t / c ≤ L t ≤ D t D_t/c\le L_t\le D_t D t / c ≤ L t ≤ D t simultaneously at all times. The answer is cached. Every nonzero answer is the distance between two current original points, on every random outcome. The resource bounds also hold on every random outcome.
The theorem includes factor two. Section A.1 gives a complete numerical choice with ϵ 2 = 10 − 10 \epsilon_2 = 10^{-10} ϵ 2 = 1 0 − 10 . The small exponent is a conservative existence bound; the contribution is the absence of a positive power of N N N in the update time. We do not optimize this exponent or claim that the resulting algorithm is practical. A query returns a pointer to the stored score and witness records in constant time. Writing the exact score, point keys, or coordinates takes the corresponding polynomial output time.
Theorem 1.2 (A short-stream space lower bound). For every fixed c ≥ 1 c \ge1 c ≥ 1 , any randomized streaming algorithm that returns a factor-c c c estimate with error at most 1 / 10 1/10 1/10 requires
N Ω ( 1 / ( c 2 log ( c + 1 ) ) ) N^{\Omega(1/(c^2 \log(c+1)))} N Ω ( 1/ ( c 2 l o g ( c + 1 ))) memory words in the worst case. The bound holds for streams with peak cardinality at most N N N and at most 2 N − 1 2N-1 2 N − 1 updates, with all insertions before all deletions and frequencies in { 0 , 1 } \{0,1\} { 0 , 1 } at every prefix. The points have dimension O c ( log N ) O_c(\log N) O c ( log N ) and integer coordinates of absolute value O c ( log N ) O_c(\sqrt{\log N}) O c ( log N ) . Only a final query is required, and the algorithm may be nonlinear, history dependent, and computationally unbounded.
The word size in the second theorem is polylogarithmic in N N N , as it is for the standard RAM model on these instances. The proof first bounds the information in the state; dividing by the word length preserves the stated exponent. In particular, the theorem excludes poly ( d , log N , log Δ , log T ) \operatorname{poly}(d,\log N,\log\Delta,\log T) poly ( d , log N , log Δ , log T ) memory for every fixed approximation factor. It is a space lower bound, and gives no positive-power lower bound on update time.
What is new relative to the space lower bound. The lower-bound contribution is its model and proof, rather than an improved dependence on c c c over [PSW26]. We use a single insertion prefix and a single deletion suffix, with no multiplicities or long history. An arbitrary streaming state becomes a message in a finite communication problem. Its conditional entropies give the required submodular function directly, so there is no reduction to linear sketches. The upper-bound contribution is complementary: a constant-factor approximation can use polynomial memory without spending polynomial time in N N N on an update. The factor-two space exponents in Table 1 and the lower bound do not match; an optimal factor-two time–space tradeoff remains open.
Table 1. The two upper bounds address different time–space tradeoffs. Both use the peak bound N N N and an oblivious finite horizon in this comparison. Appendix § 12 .§ 3 gives the implementation of the established embedding baseline. Theorem 1.2 rules out polylogarithmic memory, but does not distinguish these update times.
Technical overview
A small sample may miss an endpoint of the farthest pair. It can still tell us where to look for such a point. We use the sample to bound distances in a region of space, recover the points outside that region, and maintain a current pair from the sample and the recovered points. The lower bound uses a tight cluster and one distant point to show how much the algorithm must remember about earlier insertions.
A sample and its hull
Take a small random sample S S S of the current distinct points. A ball that omits many points is unlikely to contain the whole sample. A sampling bound for Euclidean balls makes this statement simultaneous over all centers and radii, so it applies even to a ball chosen after seeing S S S .
Fix an expansion factor a > 1 a > 1 a > 1 . Expand every ball containing S S S about its own center by a a a and intersect the expanded balls. Call the intersection H a ( S ) \mathcal{H}_a(S) H a ( S ) . If a point lies outside this hull, some ball contains S S S while the point is farther than a a a times the ball’s radius from its center. The sampling bound says that this ball contains most of the input. The other useful property is the diameter bound from Lemma 5.1.
diam ( H a ( S ) ) ≤ 2 a 2 − 1 diam ( S ) . \operatorname{diam}(\mathcal{H}_a(S)) \le\sqrt{2a^2-1}\operatorname{diam}(S). diam ( H a ( S )) ≤ 2 a 2 − 1 diam ( S ) .
A hull point lies within ( a 2 − 1 ) V \sqrt{(a^2-1)V} ( a 2 − 1 ) V of the mean of a distribution on S S S with variance V V V . For two such distributions, the squared distance between their means plus their variances equals the expected squared distance between independent draws from them, at most diam ( S ) 2 \operatorname{diam}(S)^2 diam ( S ) 2 . Cauchy–Schwarz then gives the hull diameter bound.
The sample diameter accounts for pairs inside the hull. We recover every exterior point into a candidate set, which accounts for pairs outside the hull. For a mixed pair, viewing the hull from the exterior endpoint bounds the distance to the interior endpoint using a farthest point in S S S . To find the exterior points we use fixed filters drawn independently of the sample, so we can analyze them for a witnessing ball chosen after seeing S S S .
Recovering the points outside the hull
Consider one of the witnessing balls and one target outside it. The filters should place that target in a bucket shared by few other points. We use several independent Gaussian projections. Each projection has a randomly shifted grid, and a hash maps its cells to buckets. The tuple of bucket identifiers determines a single leaf with a sparse-recovery sketch. This assignment depends only on the point and the preselected maps, so an insertion or deletion changes one leaf per scale and repetition.
The analysis studies which points of the witnessing ball can follow the target into the same projected cell. Normalize the ball to unit radius and consider a target at distance at least λ > 2 \lambda> \sqrt{2} λ > 2 from its center. If a point in the ball has coordinate t t t along the target axis, its squared perpendicular component is at most 1 − t 2 1-t^2 1 − t 2 . Conditional on the projection of the axis, that perpendicular component supplies independent Gaussian noise. The squared axial separation exceeds its variance scale by a positive margin, since ( λ − t ) 2 − ( 1 − t 2 ) ≥ λ 2 / 2 − 1 > 0 (\lambda-t)^2-(1-t^2) \ge\lambda^2/2-1 > 0 ( λ − t ) 2 − ( 1 − t 2 ) ≥ λ 2 /2 − 1 > 0 . The collision analysis uses this margin to enclose points with weaker same-cell bounds in a cap facing the target. This cap fits in a smaller ball (Figure 1 ). The bound on the squared radius drops by a fixed amount at each stage, so after a constant number of stages the difficult region is empty. The analysis chooses a covering center on the target axis at each stage while the algorithm uses the same maps for all targets.
Figure 1. A cross-section for the two-stage construction. The first grid’s difficult points lie in the shaded cap t ≥ 0.6 t \ge0.6 t ≥ 0.6 of the unit ball. The dashed ball contains this entire cap and determines the smaller radius of the second grid. Its center and the target direction u u u are used only in the analysis.
To bound the load at a target’s leaf, separate bulk points by the first stage at which they leave the nested difficult regions. At that stage, a point lies in the covering ball and has a small chance of sharing the target’s grid cell. With constant probability the hash isolates the target’s bucket from the other cells in the projected core. Together these give an inverse bucket-count factor and an extra saving exponential in the projection dimension. At later stages the same-cell probability stays small, and distinct cells can share a bucket only through a hash collision. Thus the inverse bucket-count factors from the exit stage onward cancel the corresponding factors when we sum capacity over all leaves. We increase the projection dimensions geometrically so that the extra saving at the exit stage pays for the bucket counts of earlier stages with a power of N N N to spare.
The leaf capacity must also allow every point outside the original ball to collide. With sampling probability of order N s − 1 N^{s-1} N s − 1 for a small constant s > 0 s > 0 s > 0 , the number of exceptions is at most N 1 − s N^{1-s} N 1 − s times polynomial factors in the dimension and the logarithmic parameters. Using O ( N s / 2 ) O(N^{s/2}) O ( N s /2 ) leaves keeps the space for these exceptions sublinear as well. § 6 gives the load and space calculations.
Our recovery argument uses separation above 2 \sqrt{2} 2 in units of the witness radius. Taking a a a just above 2 \sqrt{2} 2 gives a hull diameter factor 2 a 2 − 1 \sqrt{2a^2-1} 2 a 2 − 1 just above 3 \sqrt{3} 3 .
Maintaining a current witness
A sparse leaf can contain too many points to decode in one update. We measure the age of a snapshot by updates to its own leaf. A leaf with capacity K K K takes a snapshot every K K K local updates and spends the next block decoding and replaying changes. Its serving snapshot is at most 2 K 2K 2 K local updates old. If the leaf has at most K K K points now, that snapshot had at most 3 K 3K 3 K points, within the decoder’s budget. A leaf that receives no updates needs no further work to keep its serving dictionary current.
The decoder certifies the identities and the completeness of its snapshot from exact moments and total mass. A signed change log converts each recovered multiplicity to its current value. When a point appears in several leaves, its entries share a single current count. Original deletions update this count before background work runs, so even an unsuccessful decoding attempt can only affect which current points are available as candidates. § 7 gives the reconstruction and its schedule.
Write C C C for the resulting set of current candidates. Scanning C C C after every update would lose the time bound. A dynamic hierarchy on C C C maintains a pair that approximates diam ( C ) \operatorname{diam}(C) diam ( C ) and exposes a small family of covering balls. Each ball is described by a few current points, its anchors , with convex weights. Its center q q q is their weighted mean, and its radius is close to the square root of their variance V V V . For a candidate x x x covered by this ball and a hull point y y y , the triangle inequality bounds ∥ x − y ∥ \lVert x-y\rVert ∥ x − y ∥ by the ball’s radius plus a a a times the farthest sample distance from q q q .
We can approximate that farthest distance by querying the sample for a point z z z . To turn the reply into a pair of input points, take the anchor p p p farthest from z z z . The weighted average of the squared anchor-to-z z z distances gives
∥ p − z ∥ 2 ≥ V + ∥ q − z ∥ 2 . \lVert p-z\rVert^2 \ge V+\lVert q-z\rVert^2. ∥ p − z ∥ 2 ≥ V + ∥ q − z ∥ 2 .
The same pair thus accounts for both the radius and the distance from the center to the sample. Cauchy–Schwarz gives a mixed-pair factor arbitrarily close to 1 + a 2 \sqrt{1+a^2} 1 + a 2 as the ball and lookup accuracies improve. The hierarchy’s factor for pairs in C C C can be made arbitrarily close to 2 \sqrt{2} 2 . Both fit within the hull factor when a > 2 a>\sqrt{2} a > 2 .
Fast farthest-point lookup uses a second schedule, measured in stream updates. At the start of a block we freeze the live sample. We compute its diameter and build a farthest-point lookup table on a projected grid during that block, then use them in the next block. The sample has size on the order of N s N^s N s up to polynomial factors. Taking s s s small lets us spread its polynomial preprocessing over a block of length on the order of N 1 − s N^{1-s} N 1 − s . A deletion of a sampled identity invalidates the corresponding frozen generation immediately. On an oblivious stream, the identities deleted during its two blocks are fixed in advance. The probability that any is sampled is at most their number times the sampling rate. With a small constant in the block length, the sample survives with constant probability. Repeating the whole construction independently gives the approximation throughout the stream. The algorithm caches the longest of the sample diameter pair, the candidate hierarchy’s witness, and the mixed pairs found by lookup (§ 4 ).
A direct lower bound on short set streams
A deletion suffix can make a final diameter query reveal one bit of the insertion prefix. Alice has one independent bit for each point on a fine net of the unit sphere and inserts the points whose bits are one. She sends the memory state to Bob. Bob is given a small cap and its antipodal target. He knows which points were inserted outside the cap and the target. He first puts a fresh anchor near the cap center, then deletes the points he knows were inserted. The remaining set has small diameter if the target is absent and large diameter if it is present. A cap of radius proportional to 1 / c 1/c 1/ c separates the two cases by more than a factor c c c .
Bob’s knowledge of other bits matters because one message can encode several bits together. Let M M M be the message after fixing Alice’s randomness, and let f ( A ) f(A) f ( A ) be the conditional entropy of M M M when Bob knows the bits outside A A A . This set function is monotone and submodular, with total value at most the message length s s s . For a cap B B B and a target z z z , the gain f ( B ∪ { z } ) − f ( B ) f(B\cup\{z\})-f(B) f ( B ∪ { z }) − f ( B ) measures the information the message gives about the target bit after Bob learns the bits outside the cap and the target. This gain is zero if z z z is already in B B B . Bob decodes an antipodal target with bounded error, so those queries have a constant average gain.
We relate these gains across chord lengths. Given several cap–target pairs, form a table whose entry for cap i i i and target j j j is their gain. A submodular inequality bounds the square of the sum along the diagonal by 2 s 2s 2 s times the sum of the entire table. Its proof charges the diagonal gains along a random chain of targets, with cross entries accounting for the reduction in a gain when earlier targets have already been added.
To use the inequality, place the paired cap centers and targets at opposite ends of diameters of a randomly oriented affine subsphere of diameter t t t . Every paired chord then has length t t t , while the cross chords typically have length near t / 2 t/\sqrt{2} t / 2 (Figure 3 ). If a ( t ) a(t) a ( t ) denotes the average gain at chord length t t t , rotational averaging yields a ( t ) 2 ≤ 2 s E [ a ( t Z 0 ) ] a(t)^2\le2s\,\mathbb{E}[a(t\sqrt{Z_0})] a ( t ) 2 ≤ 2 s E [ a ( t Z 0 )] , where Z 0 Z_0 Z 0 is the squared ratio of a random cross chord to t t t and concentrates near 1 / 2 1/2 1/2 . The proof allows repeated targets in the table, including those created by rounding to the finite net.
Figure 3. A two-dimensional cross-section of the affine subsphere, with center o = 1 − R 2 u o=\sqrt{1-R^2}\,u o = 1 − R 2 u and radius R = t / 2 R=t/2 R = t /2 . Each pair ( x i , z i ) (x_i,z_i) ( x i , z i ) is antipodal within this subsphere, so its distance is exactly t t t . For independent directions, an off-diagonal distance is t Z 0 t\sqrt{Z_0} t Z 0 , where Z 0 Z_0 Z 0 is concentrated near 1 / 2 1/2 1/2 . This is the geometric step that propagates an entropy marginal from distance t t t toward distance t / 2 t/\sqrt{2} t / 2 .
Starting with the positive gain at the antipodes, the recurrence forces positive gain at shorter chords if s s s is small. Each step squares the gain, so the proof adjusts the tail cutoff for Z 0 Z_0 Z 0 as the gains become smaller. This reaches the band where the target already lies in the cap and the gain is zero, unless the message has exp ( Ω ( d / c 2 ) ) \exp(\Omega(d/c^2)) exp ( Ω ( d / c 2 )) bits. The finite sphere net has exp ( O ( d log ( c + 1 ) ) ) \exp(O(d\log(c+1))) exp ( O ( d log ( c + 1 ))) points. Each site can be inserted once and deleted once, so converting the bit bound to a space bound uses only a linear-length set stream (§ 10 ).
Further related work
Geometric sketches. Jiang, Krauthgamer, and Sapir [12 ] use moderate dimension reduction for dynamic-streaming k k k -center. On polynomial-length streams they obtain an O ( α ) O(\alpha) O ( α ) approximation in n 1 / α 2 poly ( k d log n ) n^{1/\alpha^2}\operatorname{poly}(kd\log n) n 1/ α 2 poly ( k d log n ) bits. The one-center radius and diameter are within a factor of two, so their result also gives an O ( α ) O(\alpha) O ( α ) diameter estimate. Their two-level sampler can also return original input identities. Our filters isolate exterior points at a prescribed separation and require one leaf update per hierarchy. The hull then gives an explicit diameter factor arbitrarily close to 3 \sqrt{3} 3 from above. Geometric hashing has also been used for dynamic-streaming facility location [5 ] , and streaming coresets address k k k -center with outliers [8 ] .
Deletions and representatives. Banihashem et al. [3 ] maintain a robust representative for a fully stored dynamic set. Here a representative of the small sample can disappear on a single deletion. We invalidate its generation and bound the probability of this event on an oblivious stream. Blank et al. [2 ] obtain a ( 1 + 3 + ε ) (1+\sqrt{3}+\varepsilon) ( 1 + 3 + ε ) approximation to Euclidean diameter in the expiration model, where an item’s deletion time is given on arrival. In our lower bound the choice of which items expire encodes the decoder’s question.
From a streaming state to a message. The general-metric and Euclidean lower bounds of Khanna et al. [KPSW25] and Padaki et al. [PSW26] connect streaming to linear sketches and index coding. Li, Nguyen, and Woodruff [LNW14], Kallaugher and Price [KP20], and Jiang, Liu, and Yu [13 ] study when streaming algorithms admit linear-sketch simulations. The last work covers polynomial-length strict-turnstile streams and allows intermediate multiplicities above one. We use the state itself as a message on a stream that stays binary. Conditional entropy is a familiar tool for nonlinear index coding [4 ] . The geometric step here relates its marginals at two chord lengths and survives rounding to a finite input universe.
Model and preliminaries
An update is ( x , σ ) (x,\sigma) ( x , σ ) with x ∈ [ − Δ , Δ ] d ∩ Z d x\in[-\Delta,\Delta]^d\cap\mathbb{Z}^d x ∈ [ − Δ , Δ ] d ∩ Z d and σ ∈ { − 1 , 1 } \sigma\in\{-1,1\} σ ∈ { − 1 , 1 } . The stream starts empty and all frequencies remain nonnegative. The support P P P consists of locations of positive frequency. Each update supplies its point’s coordinates. The algorithm has no external copy of the support. An oblivious stream is fixed independently of all random choices and answers. We assume N ≥ 2 N\ge2 N ≥ 2 , T , Δ , d ≥ 1 T,\Delta,d\ge1 T , Δ , d ≥ 1 and 0 < δ < 1 / 10 0<\delta<1/10 0 < δ < 1/10 . A bounded range of N N N depending only on the fixed approximation parameters is handled by storing the set with its counts and computing its diameter directly.
Arithmetic and scheduling. In the technical sections we abbreviate the parameters by
L = ( d , log ( N + 2 ) , log ( Δ + 2 ) , log ( ( T + 2 ) / δ ) ) . \mathcal{L}=(d,\log(N+2),\log(\Delta+2),\log((T+2)/\delta)). L = ( d , log ( N + 2 ) , log ( Δ + 2 ) , log (( T + 2 ) / δ )) .
We use the word RAM with word length w w o r d = Θ ( log ( d + 2 ) + log ( N + 2 ) + log ( Δ + 2 ) + log ( ( T + 2 ) / δ ) ) w_{\mathrm{word}} = \Theta(\log(d+2)+\log(N+2)+\log(\Delta+2)+\log((T+2)/\delta)) w word = Θ ( log ( d + 2 ) + log ( N + 2 ) + log ( Δ + 2 ) + log (( T + 2 ) / δ )) . We write ln \ln ln for the natural logarithm, log 2 \log_2 log 2 for the binary logarithm, and log \log log for a fixed base in asymptotic bounds. We charge multiword arithmetic, random bits, balanced-dictionary operations and memory reclamation. A score is stored as an exact squared distance and two point keys, with zero as the default. Repetitions use independent seeds. Each budgeted background job saves its position between updates. All processing of one update finishes before its answer becomes available. Budgets and sample sizes specified by asymptotic bounds use sufficiently large fixed constants and are rounded up to integers unless stated otherwise. Appendix § 12 .§ 2 gives the precision for the randomized geometric tests.
The upper construction also accepts canonical rational coordinates with numerators and positive denominators of at most b b b bits. Distinct points are then separated by at least 2 − 2 b 2^{-2b} 2 − 2 b and lie in [ − 2 b , 2 b ] d [-2^b,2^b]^d [ − 2 b , 2 b ] d . The first radius scale is 2 − 2 b − 1 2^{-2b-1} 2 − 2 b − 1 and the number of scales is O C ( b + log ( d + 2 ) ) O_C(b+\log(d+2)) O C ( b + log ( d + 2 )) . Key lengths, exact rational arithmetic and grid precision use b b b in place of the integer coordinate bit bound. We state the results for the integer grid for ease of comparison.
Tools used in the proofs. The following forms specify the sampling and minimax results that we use. The other geometric and recovery routines are constructed below.
Lemma 3.1 (Half-nets for balls, Haussler and Welzl [10 ] ). Let A A A be a finite set in R d \mathbb{R}^d R d and 0 < ξ < 1 0<\xi<1 0 < ξ < 1 . A uniform sample without replacement of size min { ∣ A ∣ , ⌈ C ( d + log ( 1 / ξ ) ) ⌉ } \min\{|A|,\lceil C(d+\log(1/\xi))\rceil\} min { ∣ A ∣ , ⌈ C ( d + log ( 1/ ξ ))⌉} has the following property with probability at least 1 − ξ 1-\xi 1 − ξ . Every Euclidean ball containing the sample contains at least half of A A A .
Indeed, the complements of balls have VC dimension v = d + 1 v=d+1 v = d + 1 . For m m m independent draws the double-sampling bound of Haussler and Welzl [10 Theorem 3.7] bounds the probability of missing a complement of relative size over 1 / 2 1/2 1/2 by 2 ( ∑ j = 0 v ( 2 m j ) ) 2 − m / 4 2\left(\sum_{j=0}^{v}\binom{2m}{j}\right)2^{-m/4} 2 ( ∑ j = 0 v ( j 2 m ) ) 2 − m /4 for m ≥ 16 m\ge16 m ≥ 16 . For m ≥ C v m\ge Cv m ≥ C v the sum is at most ( 2 e m / v ) v ≤ 2 m / 8 (2em/v)^v\le2^{m/8} ( 2 e m / v ) v ≤ 2 m /8 , with C C C an absolute constant. Taking m ≥ C ( v + log ( 1 / ξ ) ) m\ge C(v+\log(1/\xi)) m ≥ C ( v + log ( 1/ ξ )) gives failure at most ξ \xi ξ . If m ≥ ∣ A ∣ m\ge|A| m ≥ ∣ A ∣ , we take all points. Otherwise we can keep the distinct independent draws and complete them uniformly to m m m distinct points. By symmetry this is a uniform sample without replacement, and completion preserves every hit.
Lemma 3.2 (Limited-independence moment bound [SSS95]). If Y Y Y is a sum of 2 k 2k 2 k -wise independent Bernoulli variables with mean μ \mu μ , then for an absolute constant C C C and integer k ≥ 1 k\ge1 k ≥ 1 , E ( Y − μ ) 2 k ≤ ( C k μ + C k 2 ) k \mathbb{E}(Y-\mu)^{2k}\le(Ck\mu+ Ck^2)^k E ( Y − μ ) 2 k ≤ ( C k μ + C k 2 ) k .
The centered moment is a polynomial of degree at most 2 k 2k 2 k in the indicators and thus agrees with its value under full independence. For independent variables the usual two-sided Bernstein bound is at most 2 exp ( − t 2 / ( 4 μ ) ) + 2 exp ( − 3 t / 4 ) 2\exp(-t^2/(4\mu))+2\exp(-3t/4) 2 exp ( − t 2 / ( 4 μ )) + 2 exp ( − 3 t /4 ) at deviation t > 0 t>0 t > 0 when μ > 0 \mu>0 μ > 0 . Integration against 2 k t 2 k − 1 2kt^{2k-1} 2 k t 2 k − 1 gives terms of order at most ( C k μ ) k (Ck\mu)^k ( C k μ ) k and ( C k 2 ) k (Ck^2)^k ( C k 2 ) k , respectively. The case μ = 0 \mu=0 μ = 0 is immediate. § 5.3 gives the finite-bit sampling family.
Lemma 3.3 (Minimax, Sion [Sio58]). For compact convex sets U , V U,V U , V in finite-dimensional real vector spaces and a continuous function g g g concave in u ∈ U u\in U u ∈ U and convex in v ∈ V v\in V v ∈ V , one has max u ∈ U min v ∈ V g ( u , v ) = min v ∈ V max u ∈ U g ( u , v ) \max_{u\in U}\min_{v\in V}g(u,v)=\min_{v\in V}\max_{u\in U}g(u,v) max u ∈ U min v ∈ V g ( u , v ) = min v ∈ V max u ∈ U g ( u , v ) .
We apply this identity to the simplex of distributions on a sample and a bounded ball of possible centers. It is used only in the analysis.
Maintaining a diameter pair
The algorithm keeps two sets for different purposes. A frozen sample S S S witnesses pairs in its expanded hull. A dynamic set C C C contains the exterior points and may contain other current points. We maintain a score for C C C and compare its ball centers with S S S . The construction below proves Theorem 1.1 . The exact approximation factor and space exponents appear in Lemma 4.1 .
Algorithm
For the desired factor c > 3 c > \sqrt{3} c > 3 , we choose a rational 2 < a < ( c 2 + 1 ) / 2 \sqrt{2} < a < \sqrt{(c^2 + 1)/2} 2 < a < ( c 2 + 1 ) /2 for the hull, a rational accuracy 0 < η ≤ 1 / 4 0 < \eta\le1/4 0 < η ≤ 1/4 for the candidate balls, and a rational κ > 1 \kappa> 1 κ > 1 for farthest-point lookup. We choose η \eta η sufficiently small and κ \kappa κ sufficiently close to one, as justified in the proof of Theorem 1.1 . If B κ ≥ 2 B_{\kappa} \ge2 B κ ≥ 2 is the preprocessing exponent of Lemma 9.1 , we fix rational exponents
0 < s < 1 B κ + 1 , 0 < ρ ≤ s / 2. (1) 0 < s < \frac{1}{B_{\kappa}+1}, \qquad0 < \rho\le s/2. \tag*{(1)} 0 < s < B κ + 1 1 , 0 < ρ ≤ s /2. (1)
The sample hash selects each location with a fixed dyadic probability p ∈ [ N s − 1 / 4 , N s − 1 ] p \in[N^{s-1/4},N^{s-1}] p ∈ [ N s − 1/4 , N s − 1 ] . The input starts with an empty live sample, an empty candidate hierarchy, and zero scores. We initialize the recovery maps, hashes and clocks before the first update in poly ( L ) \operatorname{poly}(\mathcal{L}) poly ( L ) time. Moment tables and lookup entries are allocated as needed. We use a sufficiently large constant times ⌈ log ( ( T + 2 ) / δ ) ⌉ \lceil\log((T+2)/\delta)\rceil ⌈ log (( T + 2 ) / δ )⌉ complete copies. The exact factor-two parameters are in Appendix § 12 .§ 1 . Algorithm 1 uses the following interfaces.
Sampling and farthest-point lookup (Lemmas 5.2 and 9.1 ). We store the positive sampled locations and their counts. At each epoch boundary τ \tau τ , including time zero, we freeze a persistent root S τ S_{\tau} S τ . During the next H e p o c h H_{\mathrm{epoch}} H epoch updates we compute its exact diameter, a maximizing pair, and its lookup table. An empty sample needs no oracle. The resulting generation serves from τ + H e p o c h \tau+ H_{\mathrm{epoch}} τ + H epoch up to the next installation, where
H e p o c h = max { 1 , ⌊ N 1 − s / 100 ⌋ } . H_{\mathrm{epoch}}=\max\{1,\lfloor N^{1-s}/100\rfloor\}. H epoch = max { 1 , ⌊ N 1 − s /100 ⌋} .
A deletion of any frozen identity permanently invalidates that generation, even if the location retains another occurrence. We test both the building and the serving generations. A query to a valid table returns a sample identity. It makes no change to the sample or to any future update.
Fixed filters and local reconstruction (Theorem 6.1 and Lemma 7.2 ). We choose 2 < λ < min { a , 3 } \sqrt{2}<\lambda<\min\{a,\sqrt{3}\} 2 < λ < min { a , 3 } and maintain geometric scales of ratio 1 < q s c a l e ≤ a / λ 1<q_{\mathrm{scale}}\le a/\lambda 1 < q scale ≤ a / λ from 1 / 2 1/2 1/2 through the first scale at or above 2 Δ d / ( a − 1 ) 2\Delta\sqrt{d}/(a-1) 2Δ d / ( a − 1 ) . Each update reaches one leaf per scale and repetition. Every leaf reconstructs its snapshot on its own update clock. The boundary exception budget of Lemma 5.2 is b 0 = C N 1 − s ( ( d + 2 ) log ( N + 2 ) + log ( ( T + 2 ) / δ ) + 1 ) b_0=CN^{1-s}((d+2)\log(N+2)+\log((T+2)/\delta)+1) b 0 = C N 1 − s (( d + 2 ) log ( N + 2 ) + log (( T + 2 ) / δ ) + 1 ) . For all serving times we use
b = b 0 + 2 H e p o c h . (2) b=b_0+2H_{\mathrm{epoch}}. \tag*{(2)} b = b 0 + 2 H epoch . (2)
A fallback bucket of capacity ⌈ b + 2 ⌉ \lceil b+2\rceil ⌈ b + 2 ⌉ sees every update. Each live sampled point also has a candidate reference. All reference changes, including retirements, enter the same ordered queue. A transition retains its original point key until consumed.
Dynamic ball certificates (Lemma 8.1 ). We apply each queued candidate insertion or deletion to a separately randomized hierarchy. It maintains a witnessed score L C L_C L C and exposes a polynomial number of certificates. Each has a few current anchors K K K , rational convex weights, mean q q q , and variance V V V . On the hierarchy’s success event the balls B ( q , ( 1 + η ) V ) B(q,(1+\eta)\sqrt{V}) B ( q , ( 1 + η ) V ) cover $C,
Algorithm 1 Maintaining the witness after a point update
Input A legal update ( p , σ ) (p,\sigma) ( p , σ ) and the state after the preceding update
Output Updated state and a cached score with current endpoints whenever positive
for each enabled independent copy do
Adjust p p p ’s global count if recorded, then update its live-sample reference
Invalidate each frozen generation containing p p p if σ = − 1 \sigma=-1 σ = − 1
If the sample cap is exceeded, disable this copy and continue with the next
for each scale and recovery repetition do
Hash p p p to its leaf and apply Algorithm 2 to ( p , σ ) (p,\sigma) ( p , σ )
end for
Apply the same update to the global fallback bucket
Advance outer reference retirement, then process all queued transitions in order in C C C ’s hierarchy
Advance the sample-oracle job and private reclamation by their separate budgets
if an epoch ends then
Install the completed generation with its validity flag and freeze the next sample
end if
Start with the witnessed candidate score L C L_C L C (zero if none)
if a valid nonempty frozen sample S S S is serving then
Include its precomputed diameter and maximizing pair
for each exposed anchor set K K K with center q q q , including singleton leaves do
Query S S S at q q q for z z z and include ( x , z ) (x,z) ( x , z ) for an x ∈ K x \in K x ∈ K farthest from z z z
end for
end if
Cache the largest included squared distance and its endpoints
end for
Store the best cache over enabled copies, or zero if none has a positive score
including singleton certificates with q = x q=x q = x and V = 0 V=0 V = 0 . After the queue drains, we score the exposed certificates against the current serving generation. This also covers newly exposed leaf points and an epoch switch on the same original update.
A query reads the resulting maximum in constant time. Its handle refers to the present cache. Copying both endpoints costs their output length. A disabled inner hierarchy contributes neither centers nor a score. If every inner hierarchy in a complete copy is unavailable, we take L C = 0 L_C=0 L C = 0 and may still use that copy’s valid sample diameter. Inner failures have no effect on the order of candidate transitions.
Analysis
Lemma 4.1 (Composition of the diameter witnesses). For fixed rational a > 2 a>\sqrt{2} a > 2 , $0<\eta\le 1/4$, κ > 1 \kappa>1 κ > 1 and rational exponents satisfying (1) , there is an $\epsilon_0>0 such that Algorithm 1 uses space
( N s B κ + N 1 − s + ρ + N 1 − ϵ 0 ) poly ( L ) (3) \left(N^{sB^\kappa}+N^{1-s+\rho}+N^{1-\epsilon_0}\right)\operatorname{poly}(\mathcal{L}) \tag*{(3)} ( N s B κ + N 1 − s + ρ + N 1 − ϵ 0 ) poly ( L ) (3) and worst-case update time poly ( L ) \operatorname{poly}(\mathcal{L}) poly ( L ) on every outcome. With probability at least 1 − δ 1-\delta 1 − δ , simultaneously throughout the stream, its witnessed answer obeys
L ≤ diam ( P ) ≤ c ∗ L , c ∗ = max { 2 a 2 − 1 , ( 1 + η ) 2 + 1 , ( 1 + η ) 2 + a 2 κ 2 } . (4) L\le\operatorname{diam}(P)\le c_*L,\qquad c_*=\max\left\{\sqrt{2a^2-1},\sqrt{(1+\eta)^2+1},\sqrt{(1+\eta)^2+a^2\kappa^2}\right\}. \tag*{(4)} L ≤ diam ( P ) ≤ c ∗ L , c ∗ = max { 2 a 2 − 1 , ( 1 + η ) 2 + 1 , ( 1 + η ) 2 + a 2 κ 2 } . (4)
Proof. We show first which points the certificates must cover, then which pair witnesses each of the three factors. The last part of the proof checks the conditioning and the two rebuilding deadlines.
Coverage at a serving time. By Lemma 5.2 , every ball containing S τ S_\tau S τ excludes at most b 0 b_0 b 0 points at its boundary. At most 2 H e p o c h 2H_{\mathrm{epoch}} 2 H epoch insertions occur before the end of service, so (2) bounds its exceptions even if the ball is chosen later. Suppose ∣ S τ ∣ ≥ 2 |S_\tau|\ge2 ∣ S τ ∣ ≥ 2 . For each y y y outside its hull, the radius bound (13) gives a witness with radius r r r in the maintained range. Rounding up preserves the bulk of the ball and leaves the target more than λ \lambda λ rounded radii from its center. Conditional on the original stream and sample, we can fix this witness before drawing the grids. Independent grid repetitions and a union bound over points, generations and times give a leaf of size at most its capacity for every such y y y . Conditional on the grids, the local snapshot times are fixed independently of their private decoding hashes. Lemma 7.2 therefore gives
P ∖ H a ( S τ ) ⊆ C ⊆ P . (5) P\setminus\mathcal{H}_a(S_\tau)\subseteq C\subseteq P. \tag*{(5)} P ∖ H a ( S τ ) ⊆ C ⊆ P . (5)
The right inclusion holds on every outcome. Before the first oracle is ready, ∣ P ∣ ≤ H e p o c h |P|\le H_{\mathrm{epoch}} ∣ P ∣ ≤ H epoch . For an empty or singleton boundary sample the net event gives boundary support at most b 0 + 1 b_0+1 b 0 + 1 , hence current support at most b + 1 b+1 b + 1 . In each case the fallback bucket gives C = P C=P C = P on the same recovery event.
Witnessed scores. For a valid serving sample, let s ∗ ∈ S τ s_*\in S_\tau s ∗ ∈ S τ be the oracle’s reply at a certificate center q q q . The contributions of that certificate are
F = ∥ q − s ∗ ∥ , L n o d e = max z ∈ K ∥ z − s ∗ ∥ . (6) F=\lVert q-s_*\rVert,\qquad L_{\mathrm{node}}=\max_{z\in K}\lVert z-s_*\rVert. \tag*{(6)} F = ∥ q − s ∗ ∥ , L node = z ∈ K max ∥ z − s ∗ ∥ . (6)
We retain the pair attaining L n o d e L_{\mathrm{node}} L node . Its squared distance dominates the weighted average over the anchors, namely
L n o d e 2 ≥ ∑ z ∈ K λ z ∥ z − s ∗ ∥ 2 = V + F 2 . (7) L_{\mathrm{node}}^2\ge\sum_{z\in K}\lambda_z\lVert z-s_*\rVert^2=V+F^2. \tag*{(7)} L node 2 ≥ z ∈ K ∑ λ z ∥ z − s ∗ ∥ 2 = V + F 2 . (7)
Thus for a surviving sample the cached answer is
L = max { L C , diam ( S τ ) , max e e x p o s e d L e } (8) L=\max\left\{L_C,\operatorname{diam}(S_\tau),\max_{e\ \mathrm{exposed}}L_e\right\} \tag*{(8)} L = max { L C , diam ( S τ ) , e exposed max L e } (8)
where L e L_e L e is the score of exposed certificate e e e . With an absent, invalid or empty sample we use L C L_C L C alone. Each available score has current endpoints. On a successful explicit hierarchy, diam ( C ) ≤ ( 1 + η ) 2 + 1 L C \operatorname{diam}(C)\le\sqrt{(1+\eta)^2+1}L_C diam ( C ) ≤ ( 1 + η ) 2 + 1 L C .
Fix a time when the frozen sample survives and its net, recovery, explicit-hierarchy, and oracle events all hold. For an empty or singleton frozen sample, or during startup, the global fallback gives C = P C=P C = P , and the explicit-point hierarchy suffices. Otherwise consider a diameter pair x , y x,y x , y .
If both points are in H a ( S τ ) \mathcal{H}_a(S_\tau) H a ( S τ ) , the hull lemma gives
∥ x − y ∥ ≤ 2 a 2 − 1 diam ( S τ ) ≤ 2 a 2 − 1 L . \lVert x-y\rVert\le\sqrt{2a^2-1}\operatorname{diam}(S_\tau)\le\sqrt{2a^2-1}L. ∥ x − y ∥ ≤ 2 a 2 − 1 diam ( S τ ) ≤ 2 a 2 − 1 L .
If both are outside the hull, both belong to C C C by (5) , and
∥ x − y ∥ ≤ ( 1 + η ) 2 + 1 L C . \lVert x-y\rVert\le\sqrt{(1+\eta)^2+1}L_C. ∥ x − y ∥ ≤ ( 1 + η ) 2 + 1 L C .
For the remaining case suppose x ∈ C ∖ H a ( S τ ) x\in C\setminus\mathcal{H}_a(S_\tau) x ∈ C ∖ H a ( S τ ) and y ∈ H a ( S τ ) y\in\mathcal{H}_a(S_\tau) y ∈ H a ( S τ ) . A valid certificate covers x x x . The leaf case uses q = x q=x q = x and V = 0 V=0 V = 0 . Evaluating hull membership at the certificate center q q q gives ∥ q − y ∥ ≤ a R S τ ( q ) \lVert q-y\rVert\le aR_{S_\tau}(q) ∥ q − y ∥ ≤ a R S τ ( q ) . The farthest-point guarantee gives
∥ x − y ∥ ≤ ( 1 + η ) V + a R S τ ( q ) ≤ ( 1 + η ) V + a κ F ≤ ( 1 + η ) 2 + a 2 κ 2 V + F 2 ≤ ( 1 + η ) 2 + a 2 κ 2 L n o d e . \begin{aligned}
\lVert x-y\rVert&\le(1+\eta)\sqrt{V}+aR_{S_\tau}(q)\\
&\le(1+\eta)\sqrt{V}+a\kappa F\\
&\le\sqrt{(1+\eta)^2+a^2\kappa^2}\sqrt{V+F^2}\\
&\le\sqrt{(1+\eta)^2+a^2\kappa^2}L_{\mathrm{node}}.
\end{aligned} ∥ x − y ∥ ≤ ( 1 + η ) V + a R S τ ( q ) ≤ ( 1 + η ) V + aκ F ≤ ( 1 + η ) 2 + a 2 κ 2 V + F 2 ≤ ( 1 + η ) 2 + a 2 κ 2 L node .
The variance term suffers no oracle loss. Taking the maximum of these three cases proves (4) .
Conditioning and survival. At any fixed serving time the oblivious stream specifies at most 2 H e p o c h 2H_{\mathrm{epoch}} 2 H epoch identities deleted since the boundary. Each is selected with probability at most p p p . In the asymptotic range of N N N ,
Pr [ serving sample invalid ] ≤ 2 H e p o c h p ≤ 1 / 50. (9) \Pr[\text{serving sample invalid}]\le2H_{\mathrm{epoch}}p\le1/50. \tag*{(9)} Pr [ serving sample invalid ] ≤ 2 H epoch p ≤ 1/50. (9)
We use this unconditional bound together with the coverage probability. An adversary that sees a witness could deliberately delete a sampled endpoint, which is where this argument uses obliviousness. We first fix the original oblivious stream and all sample, grid, and sparse-recovery seeds. These fix the candidate sequence and its operation schedule. Each candidate operation is padded to the explicit primitive’s known worst-case running-time bound. Outer reference retirement and inner geometric retirement have separate queues and separate fixed budgets; private inner allocations never change the outer cleanup order. Thus the candidate sequence is independent of the hierarchy’s private randomness. The explicit-point theorem applies to this fixed sequence of at most T poly ( L ) T\operatorname{poly}(\mathcal{L}) T poly ( L ) operations.
Next fix the hierarchy seeds. They determine every exposed center, its validity interval, and its query time. None depends on a static oracle answer. Frozen-oracle construction uses its prescribed work budget and installation deadline, and oracle operations may also be padded. Hence the entire finite list of queries to a given frozen oracle is fixed independently of that oracle’s seeds. Whole-oracle repetition gives the required guarantee for all these queries; the logarithm of their number is polynomial in L \mathcal{L} L . Its finite precision is chosen for the bounded rational center domain.
We choose the net, recovery, hierarchy, and oracle failure budgets so that their total, at a fixed time, is at most 1 / 10 1/10 1/10 . Combining them with (9) by a union bound gives a constant success probability for one whole copy. No independence between these events is needed. We run O ( log ( ( T + 2 ) / δ ) ) O(\log((T+2)/\delta)) O ( log (( T + 2 ) / δ )) independent whole copies and return the largest available current-pair score. The copies are independent for the fixed stream, so all-copy failure at a fixed time is exponentially small in the number of copies. A union bound over the T + 1 T+1 T + 1 output times proves the claimed simultaneous guarantee. Taking the maximum cannot create an overestimate.
Worst-case resource bounds. Table 2 records the costs of the structures maintained in one copy.
Table 2. Costs in one complete copy. M M M bounds the number of current candidates including intermediate transitions. Rebuilding is paced by global updates for the frozen lookup and by updates to each leaf for its decoder.
We take a deterministic bound M M M on the size of the candidate stream, including intermediate transitions, and bound its length by T C ≤ ( T + 1 ) poly ( L ) T_C \le(T+1)\operatorname{poly}(\mathcal{L}) T C ≤ ( T + 1 ) poly ( L ) . Theorem 6.1 and the local compiler give M = O ( N 1 − s + ρ + N 1 − ϵ 0 ) poly ( L ) M=O(N^{1-s+\rho}+N^{1-\epsilon_0})\operatorname{poly}(\mathcal{L}) M = O ( N 1 − s + ρ + N 1 − ϵ 0 ) poly ( L ) , including the fallback of size O ( b ) O(b) O ( b ) and the live sample. Here s < 1 / ( B κ + 1 ) s<1/(B_\kappa+1) s < 1/ ( B κ + 1 ) ensures s < 1 − s + ρ s<1-s+\rho s < 1 − s + ρ . Lemma 8.1 thus costs M poly ( L ) M\operatorname{poly}(\mathcal{L}) M poly ( L ) space, exposes O ( R h i e r ( log ( M + 2 ) + H l e a f ) ) = poly ( L ) O(R_{\mathrm{hier}}(\log(M+2)+H_{\mathrm{leaf}}))=\operatorname{poly}(\mathcal{L}) O ( R hier ( log ( M + 2 ) + H leaf )) = poly ( L ) centers, and processes each transition in worst-case polynomial time. Here R h i e r R_{\mathrm{hier}} R hier is the number of hierarchy copies and H l e a f H_{\mathrm{leaf}} H leaf bounds exact-leaf size up to a constant factor. Each center is a bounded rational convex combination, so its encoding fits the query contract of Lemma 9.1 . The sample cap is N s poly ( L ) N^s\operatorname{poly}(\mathcal{L}) N s poly ( L ) . A static oracle, including exact sample diameter and repetition, therefore takes N s B κ poly ( L ) N^{sB_\kappa}\operatorname{poly}(\mathcal{L}) N s B κ poly ( L ) time and space to construct. Bound its total work by W = N s B κ P ( L ) W=N^{sB_\kappa}P(\mathcal{L}) W = N s B κ P ( L ) for a fixed polynomial P P P , and spread it over the next epoch. Since H e p o c h ≥ N 1 − s / 200 H_{\mathrm{epoch}}\ge N^{1-s}/200 H epoch ≥ N 1 − s /200 , the per-update budget satisfies
∣ W / H e p o c h ∣ ≤ 1 + 200 N s ( B κ + 1 ) − 1 P ( L ) = O ( 1 + P ( L ) ) (10) \lvert W/H_{\mathrm{epoch}}\rvert\le1+200N^{s(B_\kappa+1)-1}P(\mathcal{L})=O(1+P(\mathcal{L})) \tag*{(10)} ∣ W / H epoch ∣ ≤ 1 + 200 N s ( B κ + 1 ) − 1 P ( L ) = O ( 1 + P ( L )) (10)
by (1) . The bound includes snapshot traversal, Gaussian-map generation, lookup enumeration, sample scans, and all amplified tables. We retain a constant number of generations, retire old roots in constant metadata work, and reclaim their records under a separate fixed global budget. Since record allocation per update is polynomial, the burst-plus-rate retirement argument adds at most another constant multiple of the non-retired storage.
Leaf construction follows local clocks. Each touched leaf gets a fixed polynomial budget, independent of its capacity; its K poly ( L ) K\operatorname{poly}(\mathcal{L}) K poly ( L ) decoding and materialization are spread over K K K updates to that leaf. There are polynomially many touched leaves per original update. The compiler produces only polynomially many candidate transitions, each processed by the worst-case polynomial explicit-point primitive. A full enumeration of the exposed certificates, with one oracle query and a polynomial number of anchor comparisons per certificate, also fits this bound. The lookup jobs use the first term in (3) , and the filters and the candidate hierarchy use the other two. The caps on samples, chain depth and work allocations apply before an overflow can increase the storage bound. This proves the lemma.
Proof of Theorem 1.1 . For 2 < a < ( c 2 + 1 ) / 2 \sqrt{2}<a<\sqrt{(c^2+1)/2} 2 < a < ( c 2 + 1 ) /2 the hull factor is strictly below c c c . When η = 0 \eta=0 η = 0 and κ = 1 \kappa=1 κ = 1 , the squared mixed factor is 1 + a 2 < 2 a 2 − 1 1+a^2<2a^2-1 1 + a 2 < 2 a 2 − 1 . Continuity gives fixed rational η > 0 \eta>0 η > 0 and κ > 1 \kappa>1 κ > 1 for which both other factors are smaller than the hull factor. With s , ρ s,\rho s , ρ as in (1) , we may take
ϵ c = min { 1 − s B κ , s − ρ , ϵ 0 } > 0. \epsilon_c=\min\{1-sB_{\kappa},s-\rho,\epsilon_0\}>0. ϵ c = min { 1 − s B κ , s − ρ , ϵ 0 } > 0.
Lemma 4.1 now gives the claimed space, update time and simultaneous guarantee. The finite-bit implementation is given in Appendix § 12 .§ 2 .
The sample and its farthest-distance hull
The proof of Algorithm 1 uses two properties of its frozen sample. The hull bounds the length of pairs with two interior endpoints. Sampling bounds the number of exceptions to every ball that can witness an exterior endpoint. The hull and the witnessing balls are analysis objects.
Distances inside the hull
For a nonempty finite S ⊂ R d S\subset\mathbb{R}^d S ⊂ R d and a > 1 a>1 a > 1 , write
R S ( q ) = max s ∈ S ∥ s − q ∥ , H a ( S ) = ⋂ q ∈ R d B ( q , a R S ( q ) ) . R_S(q)=\max_{s\in S}\lVert s-q\rVert,\qquad\mathcal{H}_a(S)=\bigcap_{q\in\mathbb{R}^d}B(q,aR_S(q)). R S ( q ) = s ∈ S max ∥ s − q ∥ , H a ( S ) = q ∈ R d ⋂ B ( q , a R S ( q )) .
Since S ⊆ H a ( S ) S\subseteq\mathcal{H}_a(S) S ⊆ H a ( S ) , the question is how far this hull can extend beyond the sample. Write L S = diam ( S ) L_S=\operatorname{diam}(S) L S = diam ( S ) .
For a fixed center the hull involves the farthest individual sample point. Passing to distributions lets us choose a single mean and variance for each hull point, and then compare two hull points by drawing independently from their two distributions.
Lemma 5.1 (Variance representation of the hull). For a distribution λ \lambda λ on a nonempty finite set S S S , let μ λ \mu_\lambda μ λ be its mean and V λ = E λ ∥ s − μ λ ∥ 2 V_\lambda=\mathbb{E}_\lambda\lVert s-\mu_\lambda\rVert^2 V λ = E λ ∥ s − μ λ ∥ 2 its variance. For every a > 1 a>1 a > 1 ,
H a ( S ) = ⋃ λ B ( μ λ , ( a 2 − 1 ) V λ ) . (11) \mathcal{H}_a(S)=\bigcup_\lambda B\left(\mu_\lambda,\sqrt{(a^2-1)V_\lambda}\right). \tag*{(11)} H a ( S ) = λ ⋃ B ( μ λ , ( a 2 − 1 ) V λ ) . (11) In particular,
diam ( H a ( S ) ) ≤ 2 a 2 − 1 L S . (12) \operatorname{diam}(\mathcal{H}_a(S))\leq\sqrt{2a^2-1}\,L_S. \tag*{(12)} diam ( H a ( S )) ≤ 2 a 2 − 1 L S . (12)
Proof. For a fixed point y y y , membership in the hull is equivalent to
sup q min λ ( ∥ y − q ∥ 2 − a 2 ∑ s λ s ∥ s − q ∥ 2 ) ≤ 0. \sup_q\min_\lambda\left(\lVert y-q\rVert^2-a^2\sum_s\lambda_s\lVert s-q\rVert^2\right)\leq0. q sup λ min ( ∥ y − q ∥ 2 − a 2 s ∑ λ s ∥ s − q ∥ 2 ) ≤ 0.
The expression is affine in λ \lambda λ and concave in q q q , with quadratic part − ( a 2 − 1 ) ∥ q ∥ 2 -(a^2-1)\lVert q\rVert^2 − ( a 2 − 1 ) ∥ q ∥ 2 . Since λ \lambda λ belongs to a compact simplex and the linear coefficients in q q q are uniformly bounded, all relevant maximizers lie in one compact ball. Lemma 3.3 therefore interchanges the supremum and minimum. Completing the square then gives the value
min λ a 2 ( ∥ y − μ λ ∥ 2 a 2 − 1 − V λ ) . \min_{\lambda} a^2\left(\frac{\lVert y-\mu_{\lambda}\rVert^2}{a^2-1}-V_{\lambda}\right). λ min a 2 ( a 2 − 1 ∥ y − μ λ ∥ 2 − V λ ) .
The minimum is attained, proving (11) .
Consider two hull points represented by distributions λ , γ \lambda,\gamma λ , γ , with means μ , ξ \mu,\xi μ , ξ and variances V , W V,W V , W . Put h = ∥ μ − ξ ∥ h=\lVert\mu-\xi\rVert h = ∥ μ − ξ ∥ . Independent draws from these two distributions give
h 2 + V + W = E ∥ s − t ∥ 2 ≤ L S 2 . h^2+V+W=\mathbb{E}\lVert s-t\rVert^2\le L_S^2. h 2 + V + W = E ∥ s − t ∥ 2 ≤ L S 2 .
The two hull points are consequently at distance at most
h + a 2 − 1 ( V + W ) ≤ h + 2 ( a 2 − 1 ) L S 2 − h 2 ≤ 2 a 2 − 1 L S . h+\sqrt{a^2-1}(\sqrt{V}+\sqrt{W})\le h+\sqrt{2(a^2-1)}\sqrt{L_S^2-h^2}\le\sqrt{2a^2-1}\,L_S. h + a 2 − 1 ( V + W ) ≤ h + 2 ( a 2 − 1 ) L S 2 − h 2 ≤ 2 a 2 − 1 L S .
This proves the lemma, including arbitrary affine dimension or coincident points in S S S . □
The hull factor is attained. Let h = ( 2 a 2 − 1 ) − 1 / 2 h=(2a^2-1)^{-1/2} h = ( 2 a 2 − 1 ) − 1/2 and V = ( 1 − h 2 ) / 2 = ( a 2 − 1 ) h 2 V=(1-h^2)/2=(a^2-1)h^2 V = ( 1 − h 2 ) /2 = ( a 2 − 1 ) h 2 . We take two regular simplices, each with m ≥ max { 2 , h − 2 } m\ge\max\{2,h^{-2}\} m ≥ max { 2 , h − 2 } vertices and circumradius V \sqrt{V} V . We place their centers at distance h h h on a line perpendicular to both simplices, with the two simplex direction spaces mutually orthogonal. Let S S S consist of all their vertices. Every cross-simplex distance has square h 2 + 2 V = 1 h^2+2V=1 h 2 + 2 V = 1 . Within either simplex the squared edge length is 2 V m / ( m − 1 ) ≤ 1 2Vm/(m-1)\le1 2 V m / ( m − 1 ) ≤ 1 , so L S = 1 L_S=1 L S = 1 . The uniform distributions on the two simplices have variance V V V . By (11) , the hull contains a ball of radius ( a 2 − 1 ) V \sqrt{(a^2-1)V} ( a 2 − 1 ) V about each center. Their two outermost points on the line of centers are at distance h + 2 ( a 2 − 1 ) V = 1 / h = 2 a 2 − 1 h+2\sqrt{(a^2-1)V}=1/h=\sqrt{2a^2-1} h + 2 ( a 2 − 1 ) V = 1/ h = 2 a 2 − 1 .
Bounded witness radii. For an input point y ∉ H a ( S ) y\notin\mathcal{H}_a(S) y ∈ / H a ( S ) , some q q q satisfies
∥ y − q ∥ > a R S ( q ) . \lVert y-q\rVert>aR_S(q). ∥ y − q ∥ > a R S ( q ) .
Let D u n i v = 2 d Δ D_{\mathrm{univ}}=2\sqrt{d\Delta} D univ = 2 d Δ . For any s ∈ S s\in S s ∈ S ,
∥ y − q ∥ ≤ ∥ y − s ∥ + ∥ s − q ∥ ≤ D u n i v + R S ( q ) . \lVert y-q\rVert\le\lVert y-s\rVert+\lVert s-q\rVert\le D_{\mathrm{univ}}+R_S(q). ∥ y − q ∥ ≤ ∥ y − s ∥ + ∥ s − q ∥ ≤ D univ + R S ( q ) .
Therefore every such witnessing ball has
R S ( q ) < D u n i v / ( a − 1 ) . (13) R_S(q)<D_{\mathrm{univ}}/(a-1). \tag*{(13)} R S ( q ) < D univ / ( a − 1 ) . (13)
If S S S contains two distinct integer points, also R S ( q ) ≥ L S / 2 ≥ 1 / 2 R_S(q)\ge L_S/2\ge1/2 R S ( q ) ≥ L S /2 ≥ 1/2 . Thus only logarithmically many geometric radius scales are needed, even though the hull definition quantifies over all centers in R d \mathbb{R}^d R d . A witnessing center need not be computed by the algorithm. For probabilistic arguments it can be chosen as a deterministic function of S S S and y y y ; strict inequality also permits choosing one from a fixed enumeration of rational centers.
Why recovering the outside of the hull is sufficient
Suppose S ⊆ P S\subseteq P S ⊆ P , and a set C ⊆ P C\subseteq P C ⊆ P contains every point of P ∖ H a ( S ) P\setminus\mathcal{H}_a(S) P ∖ H a ( S ) . Define the cross score
L c r o s s = max p ∈ C R S ( p ) , L_{\mathrm{cross}}=\max_{p\in C}R_S(p), L cross = p ∈ C max R S ( p ) ,
with value zero if C C C is empty. If a witnessed lower estimate L C L_C L C satisfies diam ( C ) ≤ f L C \operatorname{diam}(C) \le fL_C diam ( C ) ≤ f L C , then
diam ( P ) ≤ max { 2 a 2 − 1 , f } max { L S , L c r o s s , L C } . (14) \operatorname{diam}(P) \le\max\left\{\sqrt{2a^2-1},f\right\}\max\{L_S,L_{\mathrm{cross}},L_C\}. \tag*{(14)} diam ( P ) ≤ max { 2 a 2 − 1 , f } max { L S , L cross , L C } . (14)
Indeed, take any two points of P P P . If both belong to the hull, use (12) . If both are outside the hull, both belong to C C C , and use the estimate on C C C . If x ∈ C x \in C x ∈ C is outside the hull and y y y is inside it, the particular center q = x q=x q = x in the hull definition gives
∥ x − y ∥ ≤ a R S ( x ) ≤ a L c r o s s . \lVert x-y\rVert\le aR_S(x) \le aL_{\mathrm{cross}}. ∥ x − y ∥ ≤ a R S ( x ) ≤ a L cross .
Since a > 1 a>1 a > 1 , the mixed-pair factor a a a is smaller than 2 a 2 − 1 \sqrt{2a^2-1} 2 a 2 − 1 . For a nonempty sample, an explicit computation of diam ( S ∪ C ) \operatorname{diam}(S\cup C) diam ( S ∪ C ) therefore gives factor 2 a 2 − 1 \sqrt{2a^2-1} 2 a 2 − 1 . Algorithm 1 attains the same factor with suitable certificate and oracle accuracies, while inspecting only a polynomial number of certificate centers per update.
Sampling all containing balls
Algorithm. We set m = N s m=N^s m = N s and select each point identity with common probability p ∈ [ m / ( 4 N ) , m / N ] p\in[m/(4N),m/N] p ∈ [ m / ( 4 N ) , m / N ] using a fixed hash. A dyadic threshold in this interval is sufficient. We store the selected locations with their exact frequencies and use a deterministic size cap. Let
Q = ( d + 2 ) log ( N + 2 ) + log ( ( T + 2 ) / δ ) + 1 , b = C N 1 − s Q . Q=(d+2)\log(N+2)+\log((T+2)/\delta)+1,\qquad b=CN^{1-s}Q. Q = ( d + 2 ) log ( N + 2 ) + log (( T + 2 ) / δ ) + 1 , b = C N 1 − s Q .
We use 2 k 2k 2 k -wise independence with k = ⌈ C 1 Q ⌉ k=\lceil C_1Q\rceil k = ⌈ C 1 Q ⌉ . To evaluate the hash we embed the keys in a binary field with enough bits for one key and the dyadic threshold. A random polynomial of degree at most 2 k − 1 2k-1 2 k − 1 is evaluated at the key and its output is compared with the threshold. The seed consists of 2 k 2k 2 k field elements. A field of adequate bit length can be obtained by successive quadratic extensions.1
Analysis.
Lemma 5.2 (Simultaneous ball net). For any fixed 0 < s < 1 0<s<1 0 < s < 1 , the sample maintained above has N s poly ( L ) N^s\operatorname{poly}(\mathcal{L}) N s poly ( L ) space and polynomial update time. With probability 1 − δ 1-\delta 1 − δ , at each prescribed snapshot time every ball containing the sample excludes at most C N 1 − s Q CN^{1-s}Q C N 1 − s Q current points. For any epoch length H e p o c h ≥ 1 H_{\mathrm{epoch}}\ge1 H epoch ≥ 1 , if the frozen snapshot is used for at most 2 H e p o c h 2H_{\mathrm{epoch}} 2 H epoch further updates, the corresponding exception bound is C N 1 − s Q + 2 H e p o c h CN^{1-s}Q+2H_{\mathrm{epoch}} C N 1 − s Q + 2 H epoch .
Proof. The lifts ( x , ∥ x ∥ 2 ) (x,\lVert x\rVert^2) ( x , ∥ x ∥ 2 ) express ball membership as a halfspace test in R d + 1 \mathbb{R}^{d+1} R d + 1 . On a support of size at most N N N there are at most ( N + 1 ) d + 2 (N+1)^{d+2} ( N + 1 ) d + 2 traces of balls. For the complement of any one trace of size greater than b b b , its sampled count has mean μ ≥ C Q / 4 \mu\ge CQ/4 μ ≥ C Q /4 . Lemma 3.2 and Markov’s inequality give Pr [ Y = 0 ] ≤ 2 − k \Pr[Y=0]\le2^{-k} Pr [ Y = 0 ] ≤ 2 − k for C C C sufficiently large relative to C 1 C_1 C 1 . Taking C 1 C_1 C 1 sufficiently large first, a union bound over the traces and the T + 1 T+1 T + 1 times leaves failure probability at most δ / 2 \delta/2 δ /2 . Thus even a ball chosen after seeing the sample satisfies
S ⊆ B ( q , r ) ⟹ ∣ P ∖ B ( q , r ) ∣ ≤ b for every ball B ( q , r ) . (15) S\subseteq B(q,r)\quad\Longrightarrow\quad|P\setminus B(q,r)|\le b\qquad\text{for every ball }B(q,r). \tag*{(15)} S ⊆ B ( q , r ) ⟹ ∣ P ∖ B ( q , r ) ∣ ≤ b for every ball B ( q , r ) . (15)
For the total sample size the mean is at most m m m . Applying the same moment bound at order 2 k ′ 2k' 2 k ′ , for k ′ = Θ ( log ( ( T + 2 ) / δ ) ) ≤ k k'=\Theta(\log((T+2)/\delta))\le k k ′ = Θ ( log (( T + 2 ) / δ )) ≤ k , bounds the probability of exceeding m + C 2 ( m + k ′ ) m+C_2(m+k') m + C 2 ( m + k ′ ) by 2 − k ′ 2^{-k'} 2 − k ′ for large enough C 2 C_2 C 2 . We disable an overflowing copy. This charges at most δ / 2 \delta/2 δ /2 over all updates while enforcing the space bound on every outcome. Sampling a key and updating its dictionary take polynomial time.
For a frozen sample the number of exceptions to any containing ball can increase by at most one per intervening insertion. If the sample is empty we may use a ball disjoint from the boundary support. For a singleton we may use the radius-zero ball at its unique point. These cases give boundary support at most b b b and b + 1 b+1 b + 1 , respectively.
Fixed filters for exterior points
The update routine needs two properties from a family of filters. It must find the filters containing the updated point quickly, and a distant target must belong to a filter sparse enough to decode. Only the second property involves a witnessing ball. The first holds for every choice of the random maps.
Algorithm
At one base radius w w w a hierarchy consists of h h h stages. At stage i i i we independently choose a k i × d k_i \times d k i × d Gaussian matrix A i A_i A i , a uniformly shifted grid in its image of side δ ~ g r ~ i w \widetilde{\delta}_{g}\widetilde{r}_i w δ g r i w , and a pairwise-independent hash from cell identifiers to B i B_i B i buckets. For point x x x , its leaf is the tuple of the bucket identifiers of the cells containing A i x A_i x A i x at all stages. An update changes one certified moment sketch at that leaf (Lemma 7.1 ). The stages share their maps across all prefixes of the tuple.
Here are the parameters for the general construction. We assume 2 < λ < 3 \sqrt{2}<\lambda<\sqrt{3} 2 < λ < 3 , set the mask margin 0 < η m a s k ≤ min { m λ / 4 , 1 / 4 } 0<\eta_{\mathrm{mask}}\le\min\{m_\lambda/4,1/4\} 0 < η mask ≤ min { m λ /4 , 1/4 } , and take
m λ = λ 2 / 2 − 1 , r i 2 = 1 − ( i − 1 ) m λ / 2. m_\lambda=\lambda^2/2-1,\qquad r_i^2=1-(i-1)m_\lambda/2. m λ = λ 2 /2 − 1 , r i 2 = 1 − ( i − 1 ) m λ /2.
The last stage h h h is the first for which ( 1 + η m a s k ) r h 2 < m λ (1+\eta_{\mathrm{mask}})r_h^2<m_\lambda ( 1 + η mask ) r h 2 < m λ . This gives h = O λ ( 1 ) h=O_\lambda(1) h = O λ ( 1 ) and r h > 0 r_h>0 r h > 0 . Each r ~ i \widetilde{r}_i r i is a fixed rational in [ r i , ( 1 + ζ ) r i ] [r_i,(1+\zeta)r_i] [ r i , ( 1 + ζ ) r i ] . We take ξ , δ ~ g , ζ > 0 \xi,\widetilde{\delta}_g,\zeta>0 ξ , δ g , ζ > 0 small, β > 1 + ξ \beta>\sqrt{1+\xi} β > 1 + ξ close to one, and set
C g = ⌈ 2 π e ( β + δ ~ g ) δ ~ g ⌉ , A 0 = 100 h . C_g=\left\lceil\frac{\sqrt{2\pi e}(\beta+\widetilde{\delta}_g)}{\widetilde{\delta}_g}\right\rceil,\qquad A_0=100h. C g = ⌈ δ g 2 π e ( β + δ g ) ⌉ , A 0 = 100 h .
We choose B i B_i B i to be the least power of two at least A 0 C g k i A_0C_g^{k_i} A 0 C g k i . The proof supplies a constant τ > 0 \tau>0 τ > 0 that depends only on these choices. For a budget exponent 0 < ρ < s 0<\rho<s 0 < ρ < s we set
G > 2 + 4 ln ( C g ) / τ , W = ∑ i = 1 h G i − 1 , 0 < θ < ρ W ln C g , k i = ⌈ θ G i − 1 ln ( N + 2 ) ⌉ . G>2+4\ln(C_g)/\tau,\qquad W=\sum_{i=1}^{h}G^{i-1},\qquad0<\theta<\frac{\rho}{W\ln C_g},\qquad k_i=\left\lceil\theta G^{i-1}\ln(N+2)\right\rceil. G > 2 + 4 ln ( C g ) / τ , W = i = 1 ∑ h G i − 1 , 0 < θ < W ln C g ρ , k i = ⌈ θ G i − 1 ln ( N + 2 ) ⌉ .
The leaf capacity is given by (19) below. Equivalently the implementation can use the explicit coefficient stated there. Appendix § 12 .§ 1 uses a sharper two-stage calculation and the corresponding capacity (34) for the explicit factor-two exponent. All choices precede the stream.
We maintain independent repetitions at each prescribed base scale. The fixed-filter interface returns the touched leaf and its capacity. For stand-alone recovery, decoding all leaves returns the union of their certified dictionaries. Algorithm 1 instead feeds the same updates to the local clocks of Lemma 7.2 .
Analysis
Theorem 6.1 (Sparse recovery outside a ball). Fix 2 < λ < 3 \sqrt{2}<\lambda<\sqrt{3} 2 < λ < 3 , 0 < s < 1 0<s<1 0 < s < 1 , and 0 < ρ < s 0<\rho<s 0 < ρ < s . There is ϵ 0 > 0 \epsilon_0>0 ϵ 0 > 0 such that at one prescribed positive rational radius w w w the fixed filters have total leaf capacity at most
( N 1 − s + ρ + N 1 − ϵ 0 ) poly λ , s , ρ ( L ) . \left(N^{1-s+\rho}+N^{1-\epsilon_0}\right)\operatorname{poly}_{\lambda,s,\rho}(\mathcal{L}). ( N 1 − s + ρ + N 1 − ϵ 0 ) poly λ , s , ρ ( L ) . They use space of the same form and take poly λ , s , ρ ( L ) \operatorname{poly}_{\lambda,s,\rho}(\mathcal{L}) poly λ , s , ρ ( L ) time per update, provided the scale encoding and ∣ log w ∣ |\log w| ∣ log w ∣ are polynomially bounded in L \mathcal{L} L . Suppose all but b = O ( N 1 − s poly ( L ) ) b=O(N^{1-s}\operatorname{poly}(\mathcal{L})) b = O ( N 1 − s poly ( L )) current points lie in B ( c , w ) B(c,w) B ( c , w ) and a current point y y y satisfies ∥ y − c ∥ ≥ λ w \lVert y-c\rVert\ge\lambda w ∥ y − c ∥ ≥ λ w . For this fixed input, target and witness, with constant probability the leaf of y y y has support at most its assigned capacity. Its certified snapshot can then recover y y y with constant success probability. The update uses only the point identity and the preselected filters. For a prescribed list of radii the costs add. Independent repetitions give simultaneous coverage for any prescribed finite family of targets and times, at a logarithmic cost in the family size and inverse failure probability.
Proof. We fix the witness ball and the target independently of the grids. The argument has three steps. We identify the part of the ball that may collide too often, bound collisions at the first stage where a point leaves that part, and sum its contribution over the leaves.
The cap at each scale
Fix a witness ball B ( c , w ) B(c,w) B ( c , w ) . In the geometric analysis use normalized coordinates z = ( p − c ) / w z=(p-c)/w z = ( p − c ) / w for an input point p p p , and write P ∘ P^\circ P ∘ for the normalized input set. The target y y y has normalized coordinates R u Ru R u , where u u u is a unit vector. Write a bulk point as z = t u + v z=tu+v z = t u + v , where v ⊥ u v\perp u v ⊥ u , q = ∥ v ∥ 2 q=\lVert v\rVert^2 q = ∥ v ∥ 2 , and t 2 + q ≤ 1 t^2+q\le1 t 2 + q ≤ 1 . The separation hypothesis gives R ≥ λ R\ge\lambda R ≥ λ . Define
ϕ ( t , q ) = q exp ( ( λ − t ) 2 q − 1 ) , \phi(t,q)=q\exp\left(\frac{(\lambda-t)^2}{q}-1\right), ϕ ( t , q ) = q exp ( q ( λ − t ) 2 − 1 ) ,
with value + ∞ +\infty + ∞ at q = 0 q=0 q = 0 . This convention is appropriate because λ − t ≥ λ − 1 > 0 \lambda-t\ge\lambda-1>0 λ − t ≥ λ − 1 > 0 . A collinear point has normalized projected separation ( R − t ) ∥ A i u ∥ (R-t)\lVert A_i u\rVert ( R − t ) ∥ A i u ∥ from the target, which exceeds the cell diameter δ g r ~ i k i \delta_g\widetilde r_i\sqrt{k_i} δ g r i k i on the axial norm event below once the constant δ g \delta_g δ g is sufficiently small. With m = m λ m=m_\lambda m = m λ and η = η m a s k \eta=\eta_{\mathrm{mask}} η = η mask for the following calculation, define R 0 R_0 R 0 to be the original unit ball and set 1 ≤ i ≤ h 1\le i\le h 1 ≤ i ≤ h ,
R i = { t u + v : t 2 + ∥ v ∥ 2 ≤ 1 , ϕ ( t , ∥ v ∥ 2 ) ≤ ( 1 + η ) r i 2 } . R_i=\{tu+v:t^2+\lVert v\rVert^2\le1,\ \phi(t,\lVert v\rVert^2)\le(1+\eta)r_i^2\}. R i = { t u + v : t 2 + ∥ v ∥ 2 ≤ 1 , ϕ ( t , ∥ v ∥ 2 ) ≤ ( 1 + η ) r i 2 } .
These sets are nested. The last set R h R_h R h is empty.
For every i < h i<h i < h , the set R i R_i R i is contained in a ball of radius r i + 1 r_{i+1} r i + 1 whose center lies on the original target axis. To prove this, first observe
( λ − t ) 2 − q ≥ λ 2 − 2 λ t + 2 t 2 − 1 ≥ m . (\lambda-t)^2-q\ge\lambda^2-2\lambda t+2t^2-1\ge m. ( λ − t ) 2 − q ≥ λ 2 − 2 λ t + 2 t 2 − 1 ≥ m .
Consequently ϕ ( t , q ) ≥ q + m \phi(t,q)\ge q+m ϕ ( t , q ) ≥ q + m and, for fixed t t t , the function q ↦ ϕ ( t , q ) q\mapsto\phi(t,q) q ↦ ϕ ( t , q ) decreases on 0 < q ≤ 1 − t 2 0<q\le1-t^2 0 < q ≤ 1 − t 2 . The possible t t t values in R i R_i R i therefore satisfy
F ( t ) : = ( 1 − t 2 ) exp ( ( λ − t ) 2 1 − t 2 − 1 ) ≤ ( 1 + η ) r i 2 . (16) F(t):=(1-t^2)\exp\left(\frac{(\lambda-t)^2}{1-t^2}-1\right)\le(1+\eta)r_i^2. \tag*{(16)} F ( t ) := ( 1 − t 2 ) exp ( 1 − t 2 ( λ − t ) 2 − 1 ) ≤ ( 1 + η ) r i 2 . (16)
If this set is nonempty, let t i t_i t i be its smallest element. It is positive: for t ≤ 0 t \le0 t ≤ 0 , F ( t ) ≥ ( λ − t ) 2 > 2 F(t) \ge(\lambda-t)^2 > 2 F ( t ) ≥ ( λ − t ) 2 > 2 , whereas the right side is at most 1 + η < 2 1+\eta<2 1 + η < 2 . Continuity, together with F ( t ) → ∞ F(t) \to\infty F ( t ) → ∞ at the endpoints, gives F ( t i ) = ( 1 + η ) r i 2 F(t_i)=(1+\eta)r_i^2 F ( t i ) = ( 1 + η ) r i 2 . Every point of R i R_i R i satisfies t ≥ t i t \ge t_i t ≥ t i , so
∥ t u + v − t i u ∥ 2 ≤ 1 − 2 t i t + t i 2 ≤ 1 − t i 2 . \lVert tu+v-t_i u\rVert^2 \le1-2t_i t+t_i^2 \le1-t_i^2. ∥ t u + v − t i u ∥ 2 ≤ 1 − 2 t i t + t i 2 ≤ 1 − t i 2 .
At the lower boundary, applying ϕ ( t , q ) ≥ q + m \phi(t,q)\ge q+m ϕ ( t , q ) ≥ q + m at q = 1 − t i 2 q=1-t_i^2 q = 1 − t i 2 gives F ( t i ) = ( 1 + η ) r i 2 ≥ 1 − t i 2 + m F(t_i)=(1+\eta)r_i^2\ge1-t_i^2+m F ( t i ) = ( 1 + η ) r i 2 ≥ 1 − t i 2 + m . Thus
1 − t i 2 ≤ ( 1 + η ) r i 2 − m ≤ r i 2 − m / 2 = r i + 1 2 . 1-t_i^2\le(1+\eta)r_i^2-m\le r_i^2-m/2=r_{i+1}^2. 1 − t i 2 ≤ ( 1 + η ) r i 2 − m ≤ r i 2 − m /2 = r i + 1 2 .
where r i ≤ 1 r_i\le1 r i ≤ 1 and η ≤ m / 4 \eta\le m/4 η ≤ m /4 . This proves the claimed covering ball. If a mask is already empty, all subsequent masks are empty and their covering balls may be chosen arbitrarily. Finally ϕ ≥ q + m > m \phi\ge q+m>m ϕ ≥ q + m > m proves R h = ∅ R_h=\varnothing R h = ∅ .
For stage i i i , let c i c_i c i denote an analysis-only center of a radius r i r_i r i ball covering R i − 1 R_{i-1} R i − 1 . Thus c 1 = 0 c_1=0 c 1 = 0 , and later centers can be the corresponding t i − 1 u t_{i-1}u t i − 1 u . All these centers lie on the same axis; neither they nor the target direction are computed by the algorithm.
Projection along the target direction
Fix a unit vector u u u and a Gaussian matrix A ∈ R k × d A\in\mathbb{R}^{k\times d} A ∈ R k × d . Conditional on A u Au A u , a vector v ⊥ u v\perp u v ⊥ u has A v ∼ N ( 0 , ∥ v ∥ 2 I k ) Av\sim\mathcal{N}(0,\lVert v\rVert^2 I_k) A v ∼ N ( 0 , ∥ v ∥ 2 I k ) independently of A u Au A u . The usual chi-square moment generating function gives exponential tails for ∥ A u ∥ 2 / k \lVert Au\rVert^2/k ∥ A u ∥ 2 / k about one.
The probability of sharing a shifted cell. In a grid of side ℓ \ell ℓ with independent uniform coordinate shifts, two projected points with difference vector ω ∈ R k \omega\in\mathbb{R}^k ω ∈ R k share a cell with probability
∏ j = 1 k ( 1 − ∣ ω j ∣ / ℓ ) + . \prod_{j=1}^{k}(1-\lvert\omega_j\rvert/\ell)_+. j = 1 ∏ k ( 1 − ∣ ω j ∣ / ℓ ) + .
This triangular kernel has total integral ℓ k \ell^k ℓ k and is supported on [ − ℓ , ℓ ] k [-\ell,\ell]^k [ − ℓ , ℓ ] k . If the random difference is Gaussian with mean μ \mu μ and covariance σ 2 I k \sigma^2 I_k σ 2 I k with σ > 0 \sigma>0 σ > 0 , integrating against its density gives
Pr ( same cell ) ≤ ( ℓ 2 π σ ) k exp ( − ( ∥ μ ∥ − ℓ k ) + 2 2 σ 2 ) . \Pr(\text{same cell})\le\left(\frac{\ell}{\sqrt{2\pi}\sigma}\right)^k\exp\left(-\frac{(\lVert\mu\rVert-\ell\sqrt{k})_+^2}{2\sigma^2}\right). Pr ( same cell ) ≤ ( 2 π σ ℓ ) k exp ( − 2 σ 2 (∥ μ ∥ − ℓ k ) + 2 ) .
In the hierarchy, z = t u + v z=tu+v z = t u + v and the target is R u Ru R u , so conditional on A u Au A u the difference has mean ( t − R ) A u (t-R)Au ( t − R ) A u and covariance q I k qI_k q I k , where q = ∥ v ∥ 2 q=\lVert v\rVert^2 q = ∥ v ∥ 2 . On ∥ A u ∥ 2 ≥ ( 1 − ξ ) k \lVert Au\rVert^2\ge(1-\xi)k ∥ A u ∥ 2 ≥ ( 1 − ξ ) k , the lower mean separation retains the signed axial coordinate t t t . Replacing it by an absolute value would lose the cap structure needed below.
Projecting a containing ball. Translate the containing ball to the origin and scale its radius to one. Write its point as t u + v tu+v t u + v , where v ⊥ u v\perp u v ⊥ u and t 2 + ∥ v ∥ 2 ≤ 1 t^2+\lVert v\rVert^2\le1 t 2 + ∥ v ∥ 2 ≤ 1 . Fix A u = g Au=g A u = g with ∥ g ∥ 2 ≤ ( 1 + ξ ) k \lVert g\rVert^2\le(1+\xi)k ∥ g ∥ 2 ≤ ( 1 + ξ ) k . Conditional on this vector, A ( t u + v ) A(tu+v) A ( t u + v ) is Gaussian with mean t g tg t g and covariance ∥ v ∥ 2 I k \lVert v\rVert^2I_k ∥ v ∥ 2 I k .
We divide each projected coordinate by 1 + ξ \sqrt{1+\xi} 1 + ξ . The coordinates now have common variance v 0 = ∥ v ∥ 2 / ( 1 + ξ ) v_0=\lVert v\rVert^2/(1+\xi) v 0 = ∥ v ∥ 2 / ( 1 + ξ ) and means m j = t g j / 1 + ξ m_j=tg_j/\sqrt{1+\xi} m j = t g j / 1 + ξ . Their average squared mean satisfies m 2 ‾ = k − 1 ∑ j m j 2 ≤ t 2 ≤ 1 − v 0 \overline{m^2}=k^{-1}\sum_j m_j^2\le t^2\le1-v_0 m 2 = k − 1 ∑ j m j 2 ≤ t 2 ≤ 1 − v 0 . For 0 < θ < 1 / 2 0<\theta<1/2 0 < θ < 1/2 , the conditional log moment-generating function of the squared norm, divided by k k k , is
− 1 2 ln ( 1 − 2 θ v 0 ) + θ m 2 ‾ 1 − 2 θ v 0 ≤ − 1 2 ln ( 1 − 2 θ v 0 ) + θ ( 1 − v 0 ) 1 − 2 θ v 0 . -\frac{1}{2}\ln(1-2\theta v_0)+\frac{\theta\overline{m^2}}{1-2\theta v_0}
\le-\frac{1}{2}\ln(1-2\theta v_0)+\frac{\theta(1-v_0)}{1-2\theta v_0}. − 2 1 ln ( 1 − 2 θ v 0 ) + 1 − 2 θ v 0 θ m 2 ≤ − 2 1 ln ( 1 − 2 θ v 0 ) + 1 − 2 θ v 0 θ ( 1 − v 0 ) .
Here independence lets us add the coordinate log moment-generating functions, each affine in m j 2 m_j^2 m j 2 . The derivative of the right side in v 0 v_0 v 0 is 2 θ 2 ( 1 − v 0 ) / ( 1 − 2 θ v 0 ) 2 ≥ 0 2\theta^2(1-v_0)/(1-2\theta v_0)^2 \ge0 2 θ 2 ( 1 − v 0 ) / ( 1 − 2 θ v 0 ) 2 ≥ 0 , so its maximum is − 1 2 ln ( 1 − 2 θ ) -\frac{1}{2}\ln(1-2\theta) − 2 1 ln ( 1 − 2 θ ) , the central χ k 2 \chi_k^2 χ k 2 bound per coordinate. Consequently for β > 1 + ξ \beta> \sqrt{1+\xi} β > 1 + ξ ,
Pr ( ∥ A ( t u + v ) ∥ > β k ∣ A u ) ≤ e − J k , J = 1 2 ( β 2 1 + ξ − 1 − ln β 2 1 + ξ ) > 0. \Pr(\lVert A(tu+v)\rVert> \beta\sqrt{k}\mid Au)\le e^{-Jk},\qquad J=\frac{1}{2}\left(\frac{\beta^2}{1+\xi}-1-\ln\frac{\beta^2}{1+\xi}\right)>0. Pr (∥ A ( t u + v )∥ > β k ∣ A u ) ≤ e − J k , J = 2 1 ( 1 + ξ β 2 − 1 − ln 1 + ξ β 2 ) > 0.
The same calculation applies after translation by any center on the original target axis and rescaling by its containing radius.
A Euclidean ball of radius β r k \beta r\sqrt{k} β r k meets at most
( 2 π e β + δ g δ g ) k \left(\sqrt{2\pi e}\frac{\beta+\delta_g}{\delta_g}\right)^k ( 2 π e δ g β + δ g ) k
cells of side δ g r \delta_g r δ g r . Indeed, their disjoint interiors lie in the ball enlarged by one cell diameter, and the volume v k v_k v k of the k k k -dimensional Euclidean unit ball satisfies v k ≤ ( 2 π e / k ) k / 2 v_k\le(2\pi e/k)^{k/2} v k ≤ ( 2 π e / k ) k /2 . These two bounds separate same-cell collisions from other projected tail points in the proof that follows.
Isolating the projected core. We condition on
( 1 − ξ ) k i ≤ ∥ A i u ∥ 2 ≤ ( 1 + ξ ) k i for every i . (1-\xi)k_i\le\lVert A_i u\rVert^2\le(1+\xi)k_i\qquad\text{for every }i. ( 1 − ξ ) k i ≤ ∥ A i u ∥ 2 ≤ ( 1 + ξ ) k i for every i .
For all sufficiently large N N N , this event has probability at least 0.99; all k i k_i k i will be positive fixed multiples of log N \log N log N . Bounded N N N can be handled by full storage, with constants depending on the chosen approximation. In the original grid the projected core is the ball of radius β r ~ i w k i \beta\widetilde r_iw\sqrt{k_i} β r i w k i about A i ( c + w c i ) A_i(c+wc_i) A i ( c + w c i ) . By the packing bound above it meets at most C g k i C_g^{k_i} C g k i cells, called the core cells. Write cell i ( z ) \operatorname{cell}_i(z) cell i ( z ) for the cell of A i ( c + w z ) A_i(c+wz) A i ( c + w z ) when z z z is in normalized coordinates, and use cell i ( R u ) \operatorname{cell}_i(Ru) cell i ( R u ) for the target cell. Conditional on the projection and shift, the independent outer hash avoids sending any other core cell to the target bucket with probability at least 1 − 1 / A 0 1-1/A_0 1 − 1/ A 0 . Let I i I_i I i denote this isolation event and I = ⋂ i I i I=\bigcap_i I_i I = ⋂ i I i . Conditional on the Gaussian norm events, Pr [ I ] ≥ 0.99 \Pr[I]\ge0.99 Pr [ I ] ≥ 0.99 by a union bound.
The collision probability outside a mask
There are fixed choices of ξ , β − 1 , δ g , ζ > 0 \xi,\beta-1,\delta_g,\zeta>0 ξ , β − 1 , δ g , ζ > 0 and a fixed γ c o l > 0 \gamma_{\mathrm{col}}>0 γ col > 0 such that, at every stage i i i , every point of the original unit ball satisfying
ϕ ( t , q ) > ( 1 + η ) r i 2 \phi(t,q)>(1+\eta)r_i^2 ϕ ( t , q ) > ( 1 + η ) r i 2
has conditional same-cell probability at most
Pr [ cell i ( z ) = cell i ( R u ) ∣ A i u ] ≤ C g − k i e − γ c o l k i . (17) \Pr[\operatorname{cell}_i(z)=\operatorname{cell}_i(Ru)\mid A_i u]\le C_g^{-k_i}e^{-\gamma_{\mathrm{col}}k_i}. \tag*{(17)} Pr [ cell i ( z ) = cell i ( R u ) ∣ A i u ] ≤ C g − k i e − γ col k i . (17)
This statement does not require z z z to lie in the stage-i i i covering ball; belonging to the original unit ball and lying outside the mask is enough.
The shifted-grid estimate bounds the collision probability by the k i k_i k i th power of
δ g r ~ i 2 π q exp [ − ( 1 − ξ ( λ − t ) − δ g r ~ i 2 ) 2 2 q ] . \frac{\delta_g\widetilde r_i}{\sqrt{2\pi q}}\exp\left[-\frac{\left(\sqrt{1-\xi}(\lambda-t)-\delta_g\widetilde r_i^2\right)^2}{2q}\right]. 2 π q δ g r i exp [ − 2 q ( 1 − ξ ( λ − t ) − δ g r i 2 ) 2 ] .
We choose the constants so that the expression in parentheses in the exponent stays positive. The actual target ratio R ≥ λ R \ge\lambda R ≥ λ can only reduce this bound. Multiplying the base by C g C_g C g , and taking the limit ξ , β − 1 , δ g , ζ → 0 \xi,\beta-1,\delta_g,\zeta\to0 ξ , β − 1 , δ g , ζ → 0 , gives exactly
r i ϕ ( t , q ) ≤ ( 1 + η ) − 1 / 2 < 1. \frac{r_i}{\sqrt{\phi(t,q)}} \le(1+\eta)^{-1/2} < 1. ϕ ( t , q ) r i ≤ ( 1 + η ) − 1/2 < 1.
The bound extends continuously by zero at q = 0 q=0 q = 0 , uniformly because λ − t ≥ λ − 1 > 0 \lambda-t \ge\lambda-1 > 0 λ − t ≥ λ − 1 > 0 . Compactness of the original unit ball and finiteness of the stage set therefore provide common fixed small parameters and a positive γ c o l \gamma_{\mathrm{col}} γ col for (17) . One may equivalently separate a small q q q interval, where exponential decay is uniform, and use ordinary uniform continuity on its compact complement.
For a normalized point z z z in the stage-i i i covering ball, apply the conditional projection bound to ( z − c i ) / r ~ i (z-c_i)/\tilde r_i ( z − c i ) / r ~ i . In normalized coordinates the projected-core tail is
Pr [ ∥ A i ( z − c i ) ∥ > β r ~ i k i ∣ A i u ] ≤ e − J k i , (18) \Pr[\lVert A_i(z-c_i)\rVert> \beta\tilde r_i\sqrt{k_i}\mid A_i u] \le e^{-J k_i}, \tag*{(18)} Pr [∥ A i ( z − c i )∥ > β r ~ i k i ∣ A i u ] ≤ e − J k i , (18)
where
J = 1 2 [ β 2 1 + ξ − 1 − ln ( β 2 1 + ξ ) ] > 0. J=\frac{1}{2}\left[\frac{\beta^2}{1+\xi}-1-\ln\left(\frac{\beta^2}{1+\xi}\right)\right]>0. J = 2 1 [ 1 + ξ β 2 − 1 − ln ( 1 + ξ β 2 ) ] > 0.
Load at a target leaf
Partition the bulk points by their first departure from the nested masks:
G i = ( P ∘ ∩ R i − 1 ) ∖ R i , 1 ≤ i ≤ h . G_i=(P^\circ\cap R_{i-1})\setminus R_i,\qquad1\le i\le h. G i = ( P ∘ ∩ R i − 1 ) ∖ R i , 1 ≤ i ≤ h .
These classes cover all points in the original witness ball because R h = ∅ R_h=\varnothing R h = ∅ . They are determined by the fixed input, witness, and target, independently of all stage randomness.
Fix z ∈ G i z\in G_i z ∈ G i and condition on A i u A_i u A i u in its prescribed norm range. Let E i E_i E i be the event that z z z and the target have the same outer bucket, S i S_i S i the event that they have the same cell, and T i T_i T i the projected-core tail in (18) . Core isolation gives the inclusion
E i ∩ I i ⊆ S i ∪ ( T i ∩ S i c ∩ E i ) . E_i\cap I_i\subseteq S_i\cup(T_i\cap S_i^{c}\cap E_i). E i ∩ I i ⊆ S i ∪ ( T i ∩ S i c ∩ E i ) .
Indeed, a different cell meeting the projected core is excluded by I i I_i I i . Conditional on the projection and shift, two different cell keys have outer-hash collision probability 1 / B i 1/B_i 1/ B i . Integrating this fact over T i ∩ S i c T_i\cap S_i^c T i ∩ S i c and applying (17) and (18) gives
Pr ( E i ∩ I i ∣ A i u ) ≤ Pr ( S i ∣ A i u ) + B i − 1 Pr ( T i ∣ A i u ) ≤ 2 A 0 e − γ c o l k i + e − J k i B i ≤ ( 2 A 0 + 1 ) e − τ k i B i , \Pr(E_i\cap I_i\mid A_i u)\le\Pr(S_i\mid A_i u)+B_i^{-1}\Pr(T_i\mid A_i u)
\le\frac{2A_0e^{-\gamma_{\mathrm{col}}k_i}+e^{-Jk_i}}{B_i}
\le\frac{(2A_0+1)e^{-\tau k_i}}{B_i}, Pr ( E i ∩ I i ∣ A i u ) ≤ Pr ( S i ∣ A i u ) + B i − 1 Pr ( T i ∣ A i u ) ≤ B i 2 A 0 e − γ col k i + e − J k i ≤ B i ( 2 A 0 + 1 ) e − τ k i ,
for 0 < τ ≤ min { γ c o l , J } 0<\tau\le\min\{\gamma_{\mathrm{col}},J\} 0 < τ ≤ min { γ col , J } , using B i < 2 A 0 C g k i B_i<2A_0C_g^{k_i} B i < 2 A 0 C g k i . This bounds the joint event E i ∩ I i E_i\cap I_i E i ∩ I i .
At every later stage j > i j>i j > i , the same point is still outside the mask: ϕ ( t , q ) > ( 1 + η ) r i 2 ≥ ( 1 + η ) r j 2 \phi(t,q)>(1+\eta)r_i^2\ge(1+\eta)r_j^2 ϕ ( t , q ) > ( 1 + η ) r i 2 ≥ ( 1 + η ) r j 2 . It therefore shares the geometric cell with probability at most C g − k j e − γ c o l k j C_g^{-k_j}e^{-\gamma_{\mathrm{col}}k_j} C g − k j e − γ col k j . If the cells differ, pairwise hashing passes it with probability 1 / B j 1/B_j 1/ B j . Thus, without requiring any isolation event at stage j j j ,
Pr [ z passes stage j ∣ A j u ] ≤ 1 + 2 A 0 e − γ c o l k j B j ≤ 2 B j . \Pr[z\text{ passes stage }j\mid A_j u]\le\frac{1+2A_0e^{-\gamma_{\mathrm{col}}k_j}}{B_j}\le\frac{2}{B_j}. Pr [ z passes stage j ∣ A j u ] ≤ B j 1 + 2 A 0 e − γ col k j ≤ B j 2 .
for sufficiently large N N N .
Stages are independent even after conditioning on their separate norm events. Discarding the tests before i i i can only increase the bound. The probability that z z z reaches the target leaf and all isolation events hold is at most
C h e − τ k i B i B i + 1 ⋯ B h . C_h\frac{e^{-\tau k_i}}{B_iB_{i+1}\cdots B_h}. C h B i B i + 1 ⋯ B h e − τ k i .
where C h C_h C h depends only on the fixed depth. This avoids an incorrect analysis in which exceptional load at an early level is carried unchanged through all later levels: once a point is outside a mask, later independent hashes dilute it by O ( 1 / B j ) O(1/B_j) O ( 1/ B j ) .
By linearity of expectation, conditional on all norm events,
E [ 1 I ⋅ # { bulk points in the target leaf } ] ≤ C h N ∑ i = 1 h e − τ k i B i ⋯ B h . \mathbb{E}\left[\mathbf{1}_I\cdot\#\{\text{bulk points in the target leaf}\}\right]\le C_hN\sum_{i=1}^{h}\frac{e^{-\tau k_i}}{B_i\cdots B_h}. E [ 1 I ⋅ # { bulk points in the target leaf } ] ≤ C h N i = 1 ∑ h B i ⋯ B h e − τ k i .
Markov’s inequality bounds the probability that I I I holds but this load is more than one hundred times the displayed expectation by 0.01 0.01 0.01 . We charge the norm and isolation failures separately. The original b b b exceptional points may all share the target leaf. Consequently a leaf capacity
K = ⌈ C h ′ [ b + 1 + N ∑ i = 1 h e − τ k i B i ⋯ B h ] ⌉ (19) K=\left\lceil C'_h\left[b+1+N\sum_{i=1}^{h}\frac{e^{-\tau k_i}}{B_i\cdots B_h}\right]\right\rceil \tag*{(19)} K = ⌈ C h ′ [ b + 1 + N i = 1 ∑ h B i ⋯ B h e − τ k i ] ⌉ (19)
recovers the actual target with constant probability. One may take C h ′ = 100 ( 2 A 0 + 1 ) 2 h − 1 C'_h=100(2A_0+1)^2h-1 C h ′ = 100 ( 2 A 0 + 1 ) 2 h − 1 : the first-stage coefficient is at most 2 A 0 + 1 2A_0+1 2 A 0 + 1 , the later coefficients contribute at most 2 h − 1 2^{h-1} 2 h − 1 , and the factor 100 is the Markov allowance. No independence between points is assumed anywhere.
Space, update time, and repetition
The growing dimensions in the algorithm imply
B t o t : = ∏ i = 1 h B i = O λ , ρ ( N ρ ) , B_{\mathrm{tot}}:=\prod_{i=1}^{h}B_i=O_{\lambda,\rho}(N^\rho), B tot := i = 1 ∏ h B i = O λ , ρ ( N ρ ) ,
and, for every stage i i i ,
e − τ k i ∏ j < i B j ≤ O λ , ρ ( N − ϵ 0 ) , ϵ 0 = τ θ / 2 > 0. e^{-\tau k_i}\prod_{j<i}B_j\le O_{\lambda,\rho}(N^{-\epsilon_0}),\qquad\epsilon_0=\tau\theta/2>0. e − τ k i j < i ∏ B j ≤ O λ , ρ ( N − ϵ 0 ) , ϵ 0 = τ θ /2 > 0.
The latter inequality follows from ln C g ∑ j < i G j − 1 ≤ ( τ / 4 ) G i − 1 \ln C_g\sum_{j<i}G^{j-1}\le(\tau/4)G^{i-1} ln C g ∑ j < i G j − 1 ≤ ( τ /4 ) G i − 1 ; rounding and the A 0 A_0 A 0 factors contribute only fixed constants. Multiplying (18) by the number of leaves gives
B t o t K ≤ O λ , s , ρ ( N ρ ( b + 1 ) + N 1 − ϵ 0 ) . B_{\mathrm{tot}}K\le O_{\lambda,s,\rho}\left(N^\rho(b+1)+N^{1-\epsilon_0}\right). B tot K ≤ O λ , s , ρ ( N ρ ( b + 1 ) + N 1 − ϵ 0 ) .
For b = N 1 − s poly b=N^{1-s}\operatorname{poly} b = N 1 − s poly and ρ < s \rho<s ρ < s , both powers of N N N are strictly smaller than one.
Each original update computes h h h Gaussian projections and grid/hash IDs, and changes one sparse-recovery sketch at the resulting leaf. Since h h h is fixed and each k i = O λ ( log N ) k_i=O_\lambda(\log N) k i = O λ ( log N ) , this costs polynomial time in d d d and the logarithmic parameters, independent of the number of leaves and the leaf recovery capacity. Only the original witness radius must be guessed. At each of the O ( log ( d Δ + 2 ) ) O(\log(d\Delta+2)) O ( log ( d Δ + 2 )) original geometric scales w w w , all stage grid widths are the fixed constants δ g r i w \delta_g^{r_i}w δ g r i w . There is no data-dependent reclassification and no product of scale choices. At each base scale we use O ( log ( N T / δ ) ) O(\log(NT/\delta)) O ( log ( N T / δ )) independent hierarchies. A query that decodes all leaves takes the union of their certified dictionaries. A union bound over targets and times gives the simultaneous recovery guarantee.
For a finite description we choose rational λ \lambda λ , η \eta η , C g C_g C g , G G G , θ \theta θ satisfying the displayed strict inequalities. If the specified separation λ \lambda λ is irrational, we use any rational separation strictly between 2 \sqrt{2} 2 and λ \lambda λ . We choose a rational q 0 ∈ ( 0 , 1 ) q_0 \in(0,1) q 0 ∈ ( 0 , 1 ) strictly larger than both e − γ c o l e^{-\gamma_{\mathrm{col}}} e − γ col and e − J e^{-J} e − J , and set τ = − ln q 0 \tau=-\ln q_0 τ = − ln q 0 ; the capacity terms e − τ k i = q 0 k i e^{-\tau k_i}=q_0^{k_i} e − τ k i = q 0 k i are then rational and may be rounded upward exactly. We take G G G rational above its lower bound and θ \theta θ rational with strict aggregate bucket exponent θ W ln C g < ρ \theta W\ln C_g<\rho θ W ln C g < ρ . Approximating ln ( N + 2 ) \ln(N+2) ln ( N + 2 ) from above within a fixed additive constant changes each k i k_i k i by only a fixed constant. The bucket ranges are powers of two and the grid radius multipliers r ~ i \tilde r_i r ~ i are rational upper approximations to the positive r i r_i r i . These choices leave the positive exponent savings intact.
Appendix A.2 proves the membership coupling. With rational scale multipliers and sufficiently fine Gaussian and shift rounding, every streamed point keeps its ideal grid cell except with the allocated coupling-failure probability. Only polynomially many bits in the allowed parameters are needed.
Application to the hull
We maintain a live Bernoulli sample of expected size at most N s N^s N s independently of the hierarchy. Its simultaneous ball-net property gives b = N 1 − s poly ( d , log N , log ( T / δ ) ) b=N^{1-s}\operatorname{poly}(d,\log N,\log(T/\delta)) b = N 1 − s poly ( d , log N , log ( T / δ )) exceptions for every ball containing the sample. Empty and singleton samples use the global fallback bucket in Algorithm 1.
Fix c > 3 c>\sqrt{3} c > 3 and choose
2 < λ < min { a , 3 } , 2 < a < ( c 2 + 1 ) / 2 , 1 < q s c a l e ≤ a / λ . \sqrt{2}<\lambda<\min\{a,\sqrt{3}\}, \qquad\sqrt{2}<a<\sqrt{(c^2+1)/2}, \qquad1<q_{\mathrm{scale}}\le a/\lambda. 2 < λ < min { a , 3 } , 2 < a < ( c 2 + 1 ) /2 , 1 < q scale ≤ a / λ .
For a witness B ( c 0 , r ) B(c_0,r) B ( c 0 , r ) with ∥ y − c 0 ∥ > a r \lVert y-c_0\rVert>ar ∥ y − c 0 ∥ > a r , round r r r up to the first maintained scale w ≥ r w\ge r w ≥ r . Since w ≤ q s c a l e r w\le q_{\mathrm{scale}}r w ≤ q scale r , the larger ball still contains the sample and ∥ y − c 0 ∥ / w > a / q s c a l e ≥ λ \lVert y-c_0\rVert/w>a/q_{\mathrm{scale}}\ge\lambda ∥ y − c 0 ∥ / w > a / q scale ≥ λ . Every point outside the expanded farthest-distance hull H a ( S ) \mathcal{H}_a(S) H a ( S ) is then recovered by some hierarchy. If Z Z Z is the union of recovered points, the exact query L = diam ( S ∪ Z ) L=\operatorname{diam}(S\cup Z) L = diam ( S ∪ Z ) satisfies
L ≤ diam ( P ) ≤ 2 a 2 − 1 L ≤ c L . L\le\operatorname{diam}(P)\le\sqrt{2a^2-1}\,L\le cL. L ≤ diam ( P ) ≤ 2 a 2 − 1 L ≤ c L .
Thus every fixed factor strictly larger than 3 \sqrt{3} 3 , in particular factor two, has a fixed-power sublinear-space construction with polynomial update time and an expensive query. Algorithm 1 maintains this approximation by querying only the exposed centers. Including the live sample, one may take
α = max { s , 1 − s + ρ , 1 − ϵ 0 } < 1 \alpha=\max\{s,1-s+\rho,1-\epsilon_0\}<1 α = max { s , 1 − s + ρ , 1 − ϵ 0 } < 1
for this slow-query consequence, with the displayed polynomial factors. For the integer grid, (13) justifies the scale endpoints in Algorithm 1.
From sparse leaves to a current candidate set
A filter that is sparse now may have received its last update long before the current global epoch. To recover all its points in time to score them, we measure the age of its snapshot in updates to that filter. The resulting routine translates original updates into an ordered sequence of insertions and deletions of explicit candidate points. A second ingredient certifies each snapshot before any stored entry is used as a witness.
Algorithm
Every bucket i i i is a fixed filter of point identities, with capacity K i ≥ 1 K_i \ge1 K i ≥ 1 . Each of its selected points has its original nonnegative frequency. Each original update reaches at most r = poly ( L ) r = \operatorname{poly}(\mathcal{L}) r = poly ( L ) buckets. Conditional on the fixed stream and these filters, the sequence in each bucket is independent of its private recovery hashes.
Scheduling and maintaining reference counts
Figure 2 shows the build and serving intervals for two successive generations. Bucket i i i counts only its own updates. Its blocks have length K i K_i K i in this local clock. At every local block boundary, the bucket captures the root of its persistent moment sketch and its total mass. It decodes that snapshot during the next block, installs the resulting dictionary at the following boundary and retires it one block later. If decoding fails or the certified support exceeds 3 K i 3K_i 3 K i , the generation is unavailable. Timing does not depend on recovery success or on the identities of the recovered points.
Figure 2. Reconstruction follows a leaf’s local update count. During a generation’s serving interval, its snapshot is at most 2 K 2K 2 K local updates old. A currently sparse leaf therefore has a recoverable serving snapshot. Retirement is handled by a separate global work queue; the dashed arrow imposes no local deadline. An idle leaf therefore cannot accumulate unbounded unreclaimed records.
Initially the empty dictionary serves the bucket exactly. It can remain in service through the first two local blocks, recording at most 2 K i 2K_i 2 K i distinct keys. The job for the snapshot at time K i K_i K i starts then and installs its output at 2 K i 2K_i 2 K i . Subsequent jobs follow the same schedule. Small constant K i K_i K i can perform all bounded work immediately, without altering the asymptotic bounds. A failed or
Algorithm 2 One update of a leaf with capacity K K K
Input Point update ( p , σ ) (p,\sigma) ( p , σ ) , local time u u u , and current generations
Output Updated sketch and generations, with candidate transitions added to the queue
Update the persistent moment sketch and its exact total
Increment u u u and, if a job is building, log ( p , σ ) (p,\sigma) ( p , σ ) for it
If the serving generation is available, maintain its complete dictionary, adding a newly inserted key if needed
Refresh materialized references for p p p using its shared global current count
Advance the building job, if present, by its fixed work budget Decode and certify the snapshot, then scan snapshot and change-map keys For each scanned key x x x , materialize its reference using F τ ( x ) + Δ τ ( x ) F_\tau(x) + \Delta_\tau(x) F τ ( x ) + Δ τ ( x )
if u u u is a multiple of K K K then
If a job was due, install its result and enqueue the previous root for retirement
Capture a snapshot of the current sketch and start the next job
end if
Append the resulting membership changes, in order, to the copy’s candidate queue
oversized recovery produces an unavailable generation, and the schedule continues unchanged. There is at most one serving and one building generation to update. Retired generations receive no local log maintenance: their references read the global multiplicity and are removed by the retirement queue. An entry of a complete serving dictionary that is absent before an insertion has previous multiplicity zero. Its new reference can therefore be initialized exactly. Existing entries share the global current count; they never increment that count again.
We store a signed change map for each building job. It serves a different purpose from the shared multiplicity of a point: the map lets us initialize a point correctly the first time any dictionary discovers it. In particular it handles a point deleted and reinserted during discovery. For a job whose snapshot is at local time τ \tau τ , retain a dictionary of signed changes
Δ τ ( p ) = ∑ τ < v ≤ u update to point p at local time v . \Delta_{\tau}(p) = \sum_{\tau< v \le u} \text{update to point }p\text{ at local time }v. Δ τ ( p ) = τ < v ≤ u ∑ update to point p at local time v .
There are at most K i K_i K i updates during the job’s build interval, so this map and its chronological log occupy O ( K i p o l y ) O(K_i\ \mathrm{poly}) O ( K i poly ) space. Once certified decoding has supplied the complete snapshot dictionary F τ F_{\tau} F τ , the current multiplicity of any relevant key is exactly
f u ( p ) = F τ ( p ) + Δ τ ( p ) , f_u(p) = F_{\tau}(p) + \Delta_{\tau}(p), f u ( p ) = F τ ( p ) + Δ τ ( p ) ,
where a missing key of the complete snapshot dictionary has value zero. Each local update receives a sufficiently large fixed polynomial work budget. The first part of the block completes decoding. The remaining work scans the keys of F τ F_{\tau} F τ and of the change map, and materializes their current multiplicities using the displayed identity. New change-map keys that arrive during this scan are enqueued. There are only O ( K i ) O(K_i) O ( K i ) total keys to process during a block; processing them faster than new keys arrive completes the scan before the fixed deadline. After the scan has caught up, a newly introduced key can be materialized immediately in polynomial time, because the complete snapshot dictionary is already available. Every already materialized key receives subsequent original frequency updates normally.
We keep a global dictionary keyed by the original point identity. A record stores its exact current original multiplicity, a reference count, and one identity in the explicit-point geometric structure. References come from materialized entries of active, pending, and not-yet-cleaned retired bucket generations. The geometric candidate set contains this point exactly when its current multiplicity and reference count are both positive. Thus repeated discoveries in many filters do not produce many geometric identities for the same location. When we first materialize a point, we initialize its global multiplicity from the certified snapshot-plus-change formula. If a global record already exists, its current multiplicity is already known and agrees with that formula. Thereafter, every original update to that identity updates the global multiplicity exactly once, before any background materialization for that update. A positive-to-zero transition removes the point from the geometric structure once, irrespective of the number of dictionary references. A zero-to-positive transition adds it once if references remain. Original strictness guarantees that these counts remain nonnegative.
Adding a reference creates a geometric candidate only if it is the first reference to a currently positive point. Dropping the final reference removes a positive point from the candidate structure and permits its global record to be freed. If that point is later rediscovered, the new certified snapshot and change map initialize its then-current multiplicity afresh. There is no need to maintain counts for original points that have no stored references. A new live-sample identity can initialize the same record from its exact sample frequency. Every membership change appends a transition to the common queue. The outer reference-retirement queue has a fixed budget separate from any private work done by the candidate hierarchy.
The snapshot decoder
The decoder receives a read-only snapshot. Its success condition needs a check for a key’s identity and a separate check that every key was found. A collision can prevent discovery, so both checks must succeed. We encode each original point as a distinct nonnegative integer key u u u of b k e y = O ( d log ( Δ + 2 ) ) b_{\mathrm{key}} = O(d\log(\Delta+ 2)) b key = O ( d log ( Δ + 2 )) bits. The same construction applies to any injective key encoding of polynomial bit length. We use h r e c h_{\mathrm{rec}} h rec independent pairwise-independent hashes into B B B buckets, with B B B the power of two in [ 24 K , 48 K ) [24K,48K) [ 24 K , 48 K ) . A random binary matrix and independent offset on fixed-length key strings supply each hash. In each bucket we store three exact integer moments of its frequencies,
C 0 = ∑ u f u , C 1 = ∑ u u f u , C 2 = ∑ u u 2 f u . C_0 = \sum_u f_u,\qquad C_1 = \sum_u u f_u,\qquad C_2 = \sum_u u^2 f_u. C 0 = u ∑ f u , C 1 = u ∑ u f u , C 2 = u ∑ u 2 f u .
An update of sign σ \sigma σ increments F F F by σ \sigma σ once and changes one moment triple in each table. A snapshot captures F F F and all the tables at the same instant. For a filtered stream, F F F counts precisely the mass in that filter. In a single table it also equals the sum of C 0 C_0 C 0 over its buckets. We take h r e c = ⌈ C ( log ( K + 2 ) + log ( M s n a p / δ + 2 ) ) ⌉ h_{\mathrm{rec}} = \lceil C(\log(K + 2) + \log(M_{\mathrm{snap}}/\delta+ 2))\rceil h rec = ⌈ C ( log ( K + 2 ) + log ( M snap / δ + 2 ))⌉ tables for a prescribed family of M s n a p M_{\mathrm{snap}} M snap snapshots. Within one fixed filter hierarchy the same recovery hashes may be used in every leaf. The snapshots are determined by the stream and the outer filters, and the argument union-bounds over them. Separate complete copies use independent seeds. Algorithm 3 scans them incrementally. Its only possible outputs are a complete dictionary and failure.
Algorithm 3 Certified recovery of a nonnegative bucket snapshot
Input Moment tables and exact mass F F F from the same filter snapshot, capacity K K K
Output Complete snapshot dictionary with exact multiplicities, or failure
Initialize an empty dictionary D D D
for each stored counter triple in each hash table do
if C 0 > 0 C_0 > 0 C 0 > 0 and C 0 C 2 = C 1 2 C_0C_2 = C_1^2 C 0 C 2 = C 1 2 then
u ← C 1 / C 0 u \leftarrow C_1/C_0 u ← C 1 / C 0
Store the entry D [ u ] ← C 0 D[u] \leftarrow C_0 D [ u ] ← C 0 once, deduplicating by key
end if
end for
if ∣ D ∣ ≤ 3 K |D| \le3K ∣ D ∣ ≤ 3 K and ∑ u ∈ D D [ u ] = F \sum_{u\in D}D[u] = F ∑ u ∈ D D [ u ] = F then
return D D D
else
return unavailable
end if
Analysis
Lemma 7.1 (Certified sparse recovery). *For a nonnegative frequency vector of peak support at most N N N and total mass at most T T T , a capacity-K K K sketch uses K poly ( L ) K\operatorname{poly}(L) K poly ( L ) space, has poly ( L ) \operatorname{poly}(L) poly ( L ) update time, and can be decoded in K poly ( L ) K\operatorname{poly}(L) K poly ( L ) time. Every accepted output is the complete snapshot dictionary
with exact multiplicities. The sketch also maintains F = ∑ u f u F=\sum_u f_u F = ∑ u f u , the total mass of its own frequency vector. For a prescribed family of M s n a p M_{\mathrm{snap}} M snap snapshots independent of the private hashes, every snapshot of support at most 3 K 3K 3 K is accepted simultaneously with probability at least 1 − δ 1-\delta 1 − δ . The resource bounds above assume log ( M s n a p + 2 ) + log ( K + 2 ) = poly ( L ) \log(M_{\mathrm{snap}}+2)+\log(K+2)=\operatorname{poly}(\mathcal{L}) log ( M snap + 2 ) + log ( K + 2 ) = poly ( L ) , as in the leaf and fallback buckets.
Proof. The test for a singleton follows from the identity
C 0 C 2 − C 1 2 = ∑ u < v f u f v ( u − v ) 2 . (20) C_0C_2-C_1^2=\sum_{u<v}f_uf_v(u-v)^2. \tag*{(20)} C 0 C 2 − C 1 2 = u < v ∑ f u f v ( u − v ) 2 . (20)
Every term on the right is nonnegative. Hence C 0 > 0 C_0>0 C 0 > 0 and C 0 C 2 = C 1 2 C_0C_2=C_1^2 C 0 C 2 = C 1 2 hold exactly for a bucket with one occupied key. Its key is C 1 / C 0 C_1/C_0 C 1 / C 0 and its snapshot multiplicity is C 0 C_0 C 0 . The decoder keeps one entry per recovered key across the pure buckets. It accepts if the dictionary has at most 3 K 3K 3 K entries and their multiplicities sum to F F F . Every recovered count is exact, so any omitted positive frequency would make the sum strictly smaller than F F F . This also certifies the empty dictionary when F = 0 F=0 F = 0 . For support at most 3 K 3K 3 K , a fixed key fails to be isolated in one hash table with probability below 1 / 8 1/8 1/8 . Therefore complete recovery fails with probability at most 3 K 8 − h r e c 3K8^{-h_{\mathrm{rec}}} 3 K 8 − h rec . Taking h r e c h_{\mathrm{rec}} h rec to be a sufficiently large multiple of log ( K + 2 ) + log ( M s n a p / δ + 2 ) \log(K+2)+\log(M_{\mathrm{snap}}/\delta+2) log ( K + 2 ) + log ( M snap / δ + 2 ) makes all needed sparse recoveries succeed simultaneously. The snapshot family may be fixed by conditioning on the stream and the outer filters. The union bound uses only independence from the private recovery hashes.
Since the total mass is at most T T T , even C 2 C_2 C 2 has at most 2 b k e y + ⌈ log 2 ( T + 1 ) ⌉ + 1 2b_{\mathrm{key}}+\lceil\log_2(T+1)\rceil+1 2 b key + ⌈ log 2 ( T + 1 )⌉ + 1 bits. Thus each counter occupies O ( 1 + ( b k e y + log ( T + 2 ) ) / w w o r d ) O(1+(b_{\mathrm{key}}+\log(T+2))/w_{\mathrm{word}}) O ( 1 + ( b key + log ( T + 2 )) / w word ) words. The parity operations, products, and exact divisions on these multiword keys and counters take poly ( L ) \operatorname{poly}(\mathcal{L}) poly ( L ) word operations. Lazy initialization avoids clearing a large table in one update. A fixed scan budget, followed by deterministic sorting or balanced-tree deduplication, gives the stated decoding bound. The sketch is linear in the frequency vector and is valid under deletions because every bucket remains a nonnegative-frequency stream. □
A rejected snapshot creates no new reference. To see why accepting a snapshot suffices even while later updates arrive, we use the fixed local deadlines and the exact frequency shared by all references to the same point.
Lemma 7.2 (Local-clock compiler). There is a continuously maintained candidate set C C C with these properties:
Every candidate is a current point of the original stream, on every random outcome.
On the recovery success event, C C C contains every point in every bucket whose current support has size at most K i K_i K i .
At most O ( ∑ i K i ) poly O(\sum_i K_i)\operatorname{poly} O ( ∑ i K i ) poly records are stored, including pending and retiring records.
Every original update causes only a polynomial number of insertions or deletions in C C C , and only polynomial other work, in the worst case.
Proof. At any later time, the active generation is based on a snapshot at most 2 K i 2K_i 2 K i local updates old. Therefore, if the current support is at most K i K_i K i , that snapshot had at most 3 K i 3K_i 3 K i keys and is accepted on the success event. An accepted generation has at most 5 K i 5K_i 5 K i current or zero-frequency tombstone entries over its entire serving interval: it starts with at most 3 K i 3K_i 3 K i keys, and at most 2 K i 2K_i 2 K i later local updates can introduce new identities. Thus the local readiness invariant and space bound hold independently of how slowly or quickly that bucket’s local clock advances in global time.
Current identities at installation. There are at most 3 K i 3K_i 3 K i decoded keys and at most K i K_i K i distinct keys changed during a build. We reserve a fixed first fraction of the block for decoding, then scan these keys at a service rate exceeding the arrival rate. A newly encountered key is initialized with F τ ( p ) + Δ τ ( p ) F_\tau(p) + \Delta_\tau(p) F τ ( p ) + Δ τ ( p ) . Once the scan catches up, a newly inserted key is processed immediately. Increasing the per-update constant reserves enough work for all 4 K i 4K_i 4 K i keys before the deadline, including dictionary operations. An installed dictionary therefore already contains a reference for each key of positive current frequency. Swapping the serving root costs constant metadata work. Generation retirement is lazy. Its entries remain references until a background server decrements them, and may keep still-present points as extra candidates. Such extra candidates can only help a diameter lower estimate. If an original point is deleted before its retired references have been processed, its global multiplicity becomes zero and it is removed geometrically immediately; old references cannot produce a stale distance. Reinsertions are equally safe because the global frequency record continues to receive the original updates.
Zero-count tombstones and unprocessed retired entries are included in the storage bound. Each local dictionary entry contributes only one reference. Point records with no references can be freed in constant record work, with standard generation/version checks if needed.
Work, memory, and independence. Each original update advances at most r r r local clocks. In each of those buckets it updates the sparse sketch, bounded local bookkeeping, and a fixed polynomial amount of decoding/materialization work. Hence the number of new references and global point creations per original update is bounded by a polynomial A 0 A_0 A 0 in the allowed parameters. The original frequency update causes at most one further geometric insertion/deletion for its own identity. All these operations are performed in a fixed order.
Let S 0 = O ( ∑ i K i ) S_0 = O\left(\sum_i K_i\right) S 0 = O ( ∑ i K i ) poly bound the non-retired bucket, snapshot, and global-reference storage. Retiring an entire generation enqueues its root in constant work. We process at least 2 A 0 2A_0 2 A 0 constant-record cleanup actions per original update, increasing the constant to cover reference decrements and geometric updates. Over any interval of u u u updates, at most S 0 + A 0 u S_0 + A_0u S 0 + A 0 u records can enter retirement: records live at its start plus newly allocated records. The retirement backlog is therefore at most S 0 S_0 S 0 . In particular, many buckets may become idle immediately after retirement without retaining unbounded garbage; the cleanup clock is global, not local.
Shared persistent snapshots use reference counting with deferred edge decrements. Every allocated pointer edge is processed only a constant number of times, so these actions obey the same charge. The geometric structure has near-linear memory in the candidate records, including its own already-bounded retirement overhead. Total memory remains O ( ∑ i K i ) O\left(\sum_i K_i\right) O ( ∑ i K i ) poly and total update work is worst-case polynomial on every random outcome.
To preserve the oblivious-input premise of the explicit-point primitive, pad each of its update calls to its known worst-case bound and count it as one scheduled candidate operation. Conditional on the outer projection, hashing, and sparse-recovery randomness, the candidate sequence and the times of its insertions/deletions then depend only on the original fixed stream, not on the geometric primitive’s private random choices. Its failure budget can be set using the polynomial upper bound on the number of such internal updates. The logarithm of that bound is still polynomial in the allowed logarithmic parameters.
The outer reference-retirement queue is separate from the geometric primitive’s private retirement queues. Each receives its own fixed work budget. An outer cleanup action that inserts or removes a candidate makes one padded primitive call; private allocations inside that call do not consume or reorder the outer cleanup budget. This prevents private geometric randomness from changing the timing of outer reference drops, and makes the preceding independence claim an explicit implementation invariant.
Diameter certificates for explicit points
The input to this routine is the ordered sequence of candidate transitions. Its two outputs have different roles. A witnessed score handles pairs of candidates. A short list of balls, each backed by current anchors, lets Algorithm 1 compare candidates with the frozen sample.
Algorithm
A chain of balls and an exact leaf
A foreground copy is a single chain. A node has an explicit input set P i P_i P i , a fixed ball B i = B ( c i , ( 1 + η ) V i ) B_i = B(c_i,(1+\eta)\sqrt{V_i}) B i = B ( c i , ( 1 + η ) V i ) , and a child whose input is exactly P i ∖ B i P_i \setminus B_i P i ∖ B i . Small leaves are stored and processed directly. The center and variance have a convex certificate
c i = ∑ a ∈ K i λ a a , V i = ∑ a ∈ K i λ a ∥ a ∥ 2 − ∥ c i ∥ 2 , λ a ≥ 0 , ∑ a λ a = 1 c_i = \sum_{a\in K_i}\lambda_a a,\qquad V_i = \sum_{a\in K_i}\lambda_a\lVert a\rVert^2-\lVert c_i\rVert^2,\qquad\lambda_a\geq0,\qquad\sum_a\lambda_a=1 c i = a ∈ K i ∑ λ a a , V i = a ∈ K i ∑ λ a ∥ a ∥ 2 − ∥ c i ∥ 2 , λ a ≥ 0 , a ∑ λ a = 1
where K i K_i K i consists of O ( η − 2 ) O(\eta^{-2}) O ( η − 2 ) points from a uniform sample S i S_i S i and B i B_i B i contains the whole sample. The next subsection gives an explicit rational construction. Let R h i e r = ⌈ C R ln ( ( T C + 2 ) / δ ) ⌉ R_{\mathrm{hier}}=\lceil C_R\ln((T_C+2)/\delta)\rceil R hier = ⌈ C R ln (( T C + 2 ) / δ )⌉ be the number of independent copies used for amplification. At each nonterminal node take
s n o d e = ⌈ C s ( d + ln ( ( T C + 2 ) R h i e r log ( M + 2 ) / δ ) ) ⌉ s_{\mathrm{node}}=\left\lceil C_s\left(d+\ln((T_C+2)R_{\mathrm{hier}}\log(M+2)/\delta)\right)\right\rceil s node = ⌈ C s ( d + ln (( T C + 2 ) R hier log ( M + 2 ) / δ ) ) ⌉
sample points, or the whole input if smaller. At every draw, conditional on the history defining its input snapshot, the half-net guarantee of Lemma 3.1 applies. Each of the T C T_C T C candidate transitions visits at most O ( log ( M + 2 ) ) O(\log(M+2)) O ( log ( M + 2 )) jobs per copy, with at most O ( log ( M + 2 ) ) O(\log(M+2)) O ( log ( M + 2 )) sampled levels in each job. Thus O ( ( T C + 1 ) R h i e r log 2 ( M + 2 ) ) O((T_C+1)R_{\mathrm{hier}}\log^2(M+2)) O (( T C + 1 ) R hier log 2 ( M + 2 )) bounds the number of samples over all copies even if jobs are canceled. With sufficiently large C s C_s C s , a union bound makes the probability of any failed half-net test at most δ / 8 \delta/8 δ /8 in the ideal uniform-rank experiment. We check the sample ball against the same input snapshot that produced it. An affected hierarchy copy becomes unavailable on failed half coverage, chain-depth overflow, or an unfinished job at a fixed deadline. The depth cap is a sufficiently large constant times log ( M + 2 ) \log(M+2) log ( M + 2 ) . These checks bound the resources on every outcome. Each copy starts with an empty exact leaf. For each anchor a ∈ K i a\in K_i a ∈ K i , store a distance heap to every current point of P i P_i P i . The node score is
H i = max a ∈ K i , p ∈ P i ∥ a − p ∥ . H_i=\max_{a\in K_i,p\in P_i}\lVert a-p\rVert. H i = a ∈ K i , p ∈ P i max ∥ a − p ∥ .
If any point of the whole sample S i S_i S i is deleted after sampling, permanently mark this node’s score unavailable for that generation. This is deliberately stronger than necessary; it suffices to retain the simple uniform-sampling analysis. A valid node has K i ⊆ P i K_i\subseteq P_i K i ⊆ P i , so H i H_i H i is a current pair distance. Balls remain fixed for routing even when their score is unavailable. All heaps continue to track the current node input. The copy reports the maximum available node score, including its exact leaf diameter. Each such node sample is monitored from the moment it is drawn. A deletion during a build is recorded when routed or replayed, so an invalidated node carries that flag into service. A disabled copy contributes no score or certificates.
Constructing a rational certificate
Given a uniform sample, we need both a ball containing it and a few original points witnessing its variance. Algorithm 4 starts with a pair and transfers a small amount of weight to a farthest point whenever the ball still misses a sample point.
Algorithm 4 A small rational variance certificate for a finite sample
Input Nonempty finite sample S S S and rational 0 < η ≤ 1 / 4 0 < \eta\le1/4 0 < η ≤ 1/4
Output Anchor set K K K , convex weights, mean c c c , and variance V V V with S ⊆ B ( c , ( 1 + η ) V ) S \subseteq B(c,(1+\eta)\sqrt{V}) S ⊆ B ( c , ( 1 + η ) V )
Choose a 0 ∈ S a_0 \in S a 0 ∈ S and b ∈ arg max x ∈ S ∥ x − a 0 ∥ b \in\arg\max_{x \in S} \lVert x-a_0\rVert b ∈ arg max x ∈ S ∥ x − a 0 ∥
if b = a 0 b=a_0 b = a 0 then
return ( K = { a 0 } , λ a 0 = 1 , c = a 0 , V = 0 ) (K=\{a_0\},\lambda_{a_0}=1,c=a_0,V=0) ( K = { a 0 } , λ a 0 = 1 , c = a 0 , V = 0 )
end if
λ ← ( e a 0 + e b ) / 2 \lambda\leftarrow(e_{a_0}+e_b)/2 λ ← ( e a 0 + e b ) /2 ; θ ← ( 1 + η ) 2 − 1 \theta\leftarrow(1+\eta)^2-1 θ ← ( 1 + η ) 2 − 1 ; γ ← θ / 32 \gamma\leftarrow\theta/32 γ ← θ /32
repeat
c ← ∑ x λ x x c \leftarrow\sum_x\lambda_xx c ← ∑ x λ x x ; V ← ∑ x λ x ∥ x ∥ 2 − ∥ c ∥ 2 V \leftarrow\sum_x\lambda_x\lVert x\rVert^2-\lVert c\rVert^2 V ← ∑ x λ x ∥ x ∥ 2 − ∥ c ∥ 2
a ← arg max x ∈ S ∥ x − c ∥ a \leftarrow\arg\max_{x \in S}\lVert x-c\rVert a ← arg max x ∈ S ∥ x − c ∥ ; R 2 ← ∥ a − c ∥ 2 R^2 \leftarrow\lVert a-c\rVert^2 R 2 ← ∥ a − c ∥ 2
if R 2 ≤ ( 1 + η ) 2 V R^2 \le(1+\eta)^2V R 2 ≤ ( 1 + η ) 2 V then
return ( K = supp ( λ ) , λ , c , V ) (K=\operatorname{supp}(\lambda),\lambda,c,V) ( K = supp ( λ ) , λ , c , V )
end if
λ ← ( 1 − γ ) λ + γ e a \lambda\leftarrow(1-\gamma)\lambda+\gamma e_a λ ← ( 1 − γ ) λ + γ e a
end repeat
Rebuilding a suffix at a fixed deadline
Once a ball is installed it stays fixed for routing. Every foreground node owns at most one job, which rebuilds its suffix from top to bottom. Its deadline must be fixed before its fresh samples are drawn. This keeps rebuild decisions independent of whether those samples survive. We use the integer scheduling parameters
B s c h e d = ⌈ C B s n o d e log ( M + 2 ) ⌉ , H l e a f = 128 B s c h e d , B_{\mathrm{sched}}=\left\lceil C B_{\mathrm{snode}}\log(M+2)\right\rceil,\qquad H_{\mathrm{leaf}}=128B_{\mathrm{sched}}, B sched = ⌈ C B snode log ( M + 2 ) ⌉ , H leaf = 128 B sched ,
where C B C_B C B is sufficiently large and B s c h e d ≥ 128 B_{\mathrm{sched}}\ge128 B sched ≥ 128 . Thus an exact leaf of size O ( H l e a f ) O(H_{\mathrm{leaf}}) O ( H leaf ) fits a polynomial work budget even if all of its pairwise distances are recomputed. Immediately after a foreground node is installed, let m s t a r t m_{\mathrm{start}} m start be the current size of its input. Its next rebuild starts at installation with a deadline after
ℓ = ⌊ m s t a r t / B s c h e d ⌋ \ell=\left\lfloor m_{\mathrm{start}}/B_{\mathrm{sched}}\right\rfloor ℓ = ⌊ m start / B sched ⌋
updates of that node’s input. The job rebuilds its whole suffix. If an ancestor replaces this node first, cancel this job. Rebuild timing never uses whether the node’s sample survived, whether its score is available, or the identities in that sample. An exact leaf starts a suffix job when it first exceeds H l e a f H_{\mathrm{leaf}} H leaf , or immediately upon installation if it already exceeds that threshold. It stays exact until that job commits. Its initial size is at most 2 H l e a f 2H_{\mathrm{leaf}} 2 H leaf and it receives at most 2 H l e a f / B s c h e d 2H_{\mathrm{leaf}}/B_{\mathrm{sched}} 2 H leaf / B sched more input updates, so direct processing remains polynomial. Each foreground node may own one job. Crucially, nodes inside an uninstalled pending chain do not launch rebuild jobs . This rule avoids the recurrence U ( m ) ≃ 2 U ( m / 2 ) U(m)\simeq2U(m/2) U ( m ) ≃ 2 U ( m /2 ) that would arise from recursively replaying both an old and a pending hierarchy.
When deadlines coincide, we first route the update through the active foreground chain and its pending prefixes and perform their budgeted work. We then commit due jobs in ancestor-first order, canceling jobs in each replaced suffix. A newly installed node already includes the current update through its replay, starts its own clock at zero, and receives only future updates. Thus a suffix swap never duplicates one input update or requires a bulk replay into newly started jobs.
The initiating node’s input updates are the job’s host clock. Its fixed deadline is D D D . The job consists of a completed prefix of new nodes and one exact current residual dictionary Q Q Q ; the latter is the set not served by that prefix. Before any prefix exists, it can alias the host dictionary. A host update changes ∣ Q ∣ |Q| ∣ Q ∣ by at most one. The job updates the heaps in its completed prefix and routes the change into Q Q Q when it lies outside every completed ball. There is never a second recursively running pending hierarchy inside this job.
Let m = ∣ Q ∣ m = |Q| m = ∣ Q ∣ and let r r r count the host updates remaining before D D D . For m > H l e a f m > H_{\mathrm{leaf}} m > H leaf the job waits while r > m / B s c h e d r > m/B_{\mathrm{sched}} r > m / B sched . At the first crossing it draws a fresh uniform sample from the current Q Q Q , computes its anchors, and starts the heaps and child residual dictionary for that level. Sample computation is polynomial in s n o d e s_{\mathrm{node}} s node , d d d ; scan/copy/heap construction and catch-up take m W mW mW work for a fixed polynomial W W W in the displayed parameters. We allocate a sufficiently large constant multiple of B s c h e d W B_{\mathrm{sched}}W B sched W work per host update so that one level finishes within ⌈ m / ( 16 B s c h e d ) ⌉ \lceil m/(16B_{\mathrm{sched}})\rceil ⌈ m / ( 16 B sched )⌉ host updates. The job traverses a persistent snapshot while logging new changes, replays those changes in order faster than they arrive, and then switches its completed prefix to direct updates. It waits for the next crossing on the residual. If m ≤ H l e a f m \le H_{\mathrm{leaf}} m ≤ H leaf and r > 2 H l e a f / B s c h e d r > 2H_{\mathrm{leaf}}/B_{\mathrm{sched}} r > 2 H leaf / B sched , it maintains only the residual dictionary. Once both m ≤ H l e a f m \le H_{\mathrm{leaf}} m ≤ H leaf and r ≤ 2 H l e a f / B s c h e d r \le2H_{\mathrm{leaf}}/B_{\mathrm{sched}} r ≤ 2 H leaf / B sched hold, it builds an exact leaf in polynomial work and keeps it current through the deadline. A residual that grows past H l e a f H_{\mathrm{leaf}} H leaf while waiting resumes the large-level rule.
Uniform draws with bounded work. For a strict worst-case running-time bound, the uniform ranks can be generated with a fixed number of random bits instead of an unbounded rejection loop. For a current dictionary of size m m m , take a uniform b 0 b_0 b 0 -bit integer U U U and use rank 1 + ⌊ m U / 2 b 0 ⌋ 1 + \lfloor mU/2^{b_0} \rfloor 1 + ⌊ m U / 2 b 0 ⌋ . Its total-variation distance from the uniform rank distribution is at most m / 2 b 0 m/2^{b_0} m / 2 b 0 . We take b 0 = ⌈ log 2 ( 100 ( M + 1 ) ( D + 1 ) / δ ) ⌉ b_0 = \lceil\log_2(100(M + 1)(D + 1)/\delta)\rceil b 0 = ⌈ log 2 ( 100 ( M + 1 ) ( D + 1 ) / δ )⌉ , where D D D bounds the number of sample draws in all copies and is polynomial in the update horizon and the work parameters. Sampling without replacement can be implemented by drawing from the remaining ranks, with temporary order-statistic exclusions. A union coupling then makes all samples equal to ideal uniform samples except with the separately allocated small failure probability. The work per draw and its random-bit consumption are deterministically polynomial.
Analysis
Lemma 8.1 (Explicit-point certificate hierarchy). Let an oblivious sequence of at most T C T_C T C insertions and deletions maintain a set of at most M M M explicit points in Q d \mathbb{Q}^d Q d , with coordinate bit length at most b b b . For rational 0 < η ≤ 1 / 4 0 < \eta\le1/4 0 < η ≤ 1/4 , a randomized data structure maintains a score L L L with a current witness whenever L > 0 L > 0 L > 0 . With probability at least 1 − δ 1 - \delta 1 − δ , simultaneously at every update,
L ≤ diam ( P ) ≤ ( 1 + η ) 2 + 1 L . L \le\operatorname{diam}(P) \le\sqrt{(1+\eta)^2 + 1}\,L. L ≤ diam ( P ) ≤ ( 1 + η ) 2 + 1 L . On this event at each time at least one copy covers P P P by valid node balls and the singleton points of its exact leaf. Each copy exposes only O ( log ( M + 2 ) ) O(\log(M + 2)) O ( log ( M + 2 )) node balls and polynomially many exact-leaf points. A valid exposed ball has O ( η − 2 ) O(\eta^{-2}) O ( η − 2 ) current anchors with nonnegative rational weights summing to one. Their mean q q q and variance V V V give the radius ( 1 + η ) V (1+\eta)\sqrt{V} ( 1 + η ) V . The encodings of the weights, q q q ,
and V V V have length polynomial in the parameters of the update bound. A leaf point exposes itself with unit weight and zero variance. Update time is worst-case polynomial in d d d , b b b , η − 1 \eta^{-1} η − 1 , the encoding length of η \eta η , log ( M + 2 ) \log(M+2) log ( M + 2 ) , and log ( ( T C + 2 ) / δ ) \log((T_C+2)/\delta) log (( T C + 2 ) / δ ) . Space is M M M times a polynomial in these parameters, and the answer is cached. The guarantee for η > 1 / 4 \eta>1/4 η > 1/4 follows by running the structure with 1 / 4 1/4 1/4 .
Proof. We establish the quality of a valid chain first. We then show that its fixed deadlines leave enough time to build and that at any fixed output time an independently sampled chain is valid with constant probability.
Progress in the variance construction. If the initial farthest point is the starting point, the sample is a singleton. Otherwise, let D 0 = ∥ a 0 − b ∥ D_0=\lVert a_0-b\rVert D 0 = ∥ a 0 − b ∥ for the initial pair in Algorithm 4. The initial variance is V 0 = D 0 2 / 4 V_0=D_0^2/4 V 0 = D 0 2 /4 . With θ = ( 1 + η ) 2 − 1 \theta=(1+\eta)^2-1 θ = ( 1 + η ) 2 − 1 and γ = θ / 32 \gamma=\theta/32 γ = θ /32 , a failed stopping test moves the center from c c c to ( 1 − γ ) c + γ a (1-\gamma)c+\gamma a ( 1 − γ ) c + γ a , where R = ∥ a − c ∥ R=\lVert a-c\rVert R = ∥ a − c ∥ is the current farthest distance. The variance change is exactly
V ′ − V = γ ( R 2 − V ) − γ 2 R 2 . V' - V = \gamma(R^2-V)-\gamma^2R^2. V ′ − V = γ ( R 2 − V ) − γ 2 R 2 .
The diameter of S S S is at most 2 D 0 2D_0 2 D 0 . Since c ∈ conv ( S ) c\in\operatorname{conv}(S) c ∈ conv ( S ) , R 2 ≤ 4 D 0 2 = 16 V 0 ≤ 16 V R^2\le4D_0^2=16V_0\le16V R 2 ≤ 4 D 0 2 = 16 V 0 ≤ 16 V . While the stopping test fails, R 2 − V > θ V R^2-V>\theta V R 2 − V > θ V , so
V ′ − V ≥ γ θ V − 16 γ 2 V = θ 2 V / 64. V'-V\ge\gamma\theta V-16\gamma^2V=\theta^2V/64. V ′ − V ≥ γ θ V − 16 γ 2 V = θ 2 V /64.
On the other hand, every convex distribution on S S S has
V = 1 2 ∑ a , b ∈ S λ a λ b ∥ a − b ∥ 2 ≤ 1 2 diam ( S ) 2 ≤ 2 D 0 2 = 8 V 0 . V=\frac{1}{2}\sum_{a,b\in S}\lambda_a\lambda_b\lVert a-b\rVert^2\le\frac{1}{2}\operatorname{diam}(S)^2\le2D_0^2=8V_0. V = 2 1 a , b ∈ S ∑ λ a λ b ∥ a − b ∥ 2 ≤ 2 1 diam ( S ) 2 ≤ 2 D 0 2 = 8 V 0 .
Consequently the loop stops after O ( θ − 2 ) = O ( η − 2 ) O(\theta^{-2})=O(\eta^{-2}) O ( θ − 2 ) = O ( η − 2 ) iterations. Each iteration adds at most one support point and scans only S S S , so the running time is polynomial in s n o d e s_{\mathrm{node}} s node , d d d , η − 1 \eta^{-1} η − 1 and input bit length. Because the mixing coefficient γ \gamma γ is a fixed rational, the common denominator of all weights grows by only a fixed factor per iteration. Its bit length, and those of c c c , V V V , are therefore polynomial in b b b , d d d , η − 1 \eta^{-1} η − 1 and the encoding length of η \eta η . All comparisons use squared rational distances. In particular the serving ball has rational center and rational squared radius.
A witnessed score and a cover. On a valid chain, every point is in the first sample ball that covers it, or remains in the exact leaf. At a covering node the weighted squared distance from its anchors to any point y y y averages to V i + ∥ c i − y ∥ 2 V_i+\lVert c_i-y\rVert^2 V i + ∥ c i − y ∥ 2 . Thus the same anchors certify both the node score and the cross score used in § 4 . If every foreground node score is valid, the copy has the desired approximation. For a diameter pair x , y x,y x , y , take the first node where one endpoint, say x x x , lies in its serving ball. Both endpoints still belong to its node input. If c = c i c=c_i c = c i , r = V i r=\sqrt{V_i} r = V i , and t = ∥ c − y ∥ t=\lVert c-y\rVert t = ∥ c − y ∥ , the convex certificate gives H i 2 ≥ ∑ a λ a ∥ a − y ∥ 2 = V i + t 2 H_i^2\ge\sum_a\lambda_a\lVert a-y\rVert^2=V_i+t^2 H i 2 ≥ ∑ a λ a ∥ a − y ∥ 2 = V i + t 2 . Thus
∥ x − y ∥ ≤ ( 1 + η ) r + t ≤ ( 1 + η ) 2 + 1 H i . \lVert x-y\rVert\le(1+\eta)r+t\le\sqrt{(1+\eta)^2+1}\,H_i. ∥ x − y ∥ ≤ ( 1 + η ) r + t ≤ ( 1 + η ) 2 + 1 H i .
The exact leaf handles the case where neither endpoint was served earlier.
Completion and geometric shrinkage. A large-level job scans and catches up in m W mW mW work for a fixed polynomial W W W , including heap and dictionary operations. With the chosen budget its elapsed time in host updates is at most
⌈ m 16 B s c h e d ⌉ ≤ m 16 B s c h e d + 1 ≤ m 8 B s c h e d ( m ≥ 64 B s c h e d ) \left\lceil\frac{m}{16B_{\mathrm{sched}}}\right\rceil\le\frac{m}{16B_{\mathrm{sched}}}+1\le\frac{m}{8B_{\mathrm{sched}}}\qquad(m\ge64B_{\mathrm{sched}}) ⌈ 16 B sched m ⌉ ≤ 16 B sched m + 1 ≤ 8 B sched m ( m ≥ 64 B sched )
host updates. Replay is processed faster than new changes arrive, so the finished heaps and residual are current. There is adequate time for each phase. Since m m m changes by at most one per host update, at first crossing
r ≥ m / B s c h e d − 2. r \ge m/B_{\mathrm{sched}} - 2. r ≥ m / B sched − 2.
For m ≥ 64 B s c h e d m \ge64B_{\mathrm{sched}} m ≥ 64 B sched , after the phase at least 0.8 m / B s c h e d 0.8m/B_{\mathrm{sched}} 0.8 m / B sched updates remain. On the coverage event the new residual has at most m / 2 + m / ( 8 B s c h e d ) < 0.51 m m/2+m/(8B_{\mathrm{sched}}) < 0.51m m /2 + m / ( 8 B sched ) < 0.51 m points (for our large B s c h e d B_{\mathrm{sched}} B sched ). Thus there is time to wait again until that residual’s own threshold r ≤ ∣ Q ∣ / B s c h e d r \le|Q|/B_{\mathrm{sched}} r ≤ ∣ Q ∣/ B sched is reached. If the residual is small enough to install an exact leaf, its size through the deadline is at most H l e a f + 2 H l e a f / B s c h e d < 2 H l e a f H_{\mathrm{leaf}}+2H_{\mathrm{leaf}}/B_{\mathrm{sched}} < 2H_{\mathrm{leaf}} H leaf + 2 H leaf / B sched < 2 H leaf . If a waiting small residual grows past H l e a f H_{\mathrm{leaf}} H leaf , the preceding step had r > 2 H l e a f / B s c h e d r > 2H_{\mathrm{leaf}}/B_{\mathrm{sched}} r > 2 H leaf / B sched . Since m m m changes by at most one, there is still more than m / B s c h e d m/B_{\mathrm{sched}} m / B sched time at that crossing. The same first-crossing estimate therefore applies to the next large level. These alternatives handle the final update before installation. Every new nonterminal node sampled from m m m points is therefore sampled at most m / B s c h e d + 2 m/B_{\mathrm{sched}}+2 m / B sched + 2 host updates before the fixed install deadline. The input of that node changes by at most this many points before installation. After installation, its next job commits within m i n s t a l l / B s c h e d m_{\mathrm{install}}/B_{\mathrm{sched}} m install / B sched updates of its own input, where m i n s t a l l ≤ m + m / B s c h e d + 2 m_{\mathrm{install}} \le m+m/B_{\mathrm{sched}}+2 m install ≤ m + m / B sched + 2 . Consequently, from its sample time until its replacement, at most
m / B s c h e d + 2 + m i n s t a l l / B s c h e d ≤ 3 m / B s c h e d m/B_{\mathrm{sched}} + 2 + m_{\mathrm{install}}/B_{\mathrm{sched}} \le3m/B_{\mathrm{sched}} m / B sched + 2 + m install / B sched ≤ 3 m / B sched
relevant deletions can occur, enlarging the small-set threshold if necessary.
The input and child sizes satisfy, throughout the node’s active lifetime,
∣ P i ∣ ≥ m − 3 m / B s c h e d , ∣ P i + 1 ∣ ≤ m / 2 + 3 m / B s c h e d . |P_i| \ge m - 3m/B_{\mathrm{sched}}, \qquad|P_{i+1}| \le m/2 + 3m/B_{\mathrm{sched}}. ∣ P i ∣ ≥ m − 3 m / B sched , ∣ P i + 1 ∣ ≤ m /2 + 3 m / B sched .
For B s c h e d ≥ 128 B_{\mathrm{sched}} \ge128 B sched ≥ 128 this gives ∣ P i + 1 ∣ < 0.6 ∣ P i ∣ |P_{i+1}| < 0.6|P_i| ∣ P i + 1 ∣ < 0.6∣ P i ∣ . Thus all foreground chains and all pending prefixes have depth O ( log ( M + 2 ) ) O(\log(M + 2)) O ( log ( M + 2 )) . A pending prefix’s construction sizes decrease geometrically, apart from its controlled small changes, so its total explicit storage is linear in its host input size up to polynomial bookkeeping factors.
Survival under fixed deadlines. Fix an output time t t t in the oblivious original sequence. For a node that is active at t t t , condition on the samples in all its ancestors and on the scheduling history preceding that node’s fresh sample. Its input snapshot is then fixed. Its sample is uniform on that snapshot. The sample time and the original job’s fixed installation deadline were determined before this sample; the later rebuild deadline depends on its input size and clock, which depend on ancestors but not on this node’s own sample. Child construction times, child sizes, and the node’s own sample survival cannot change these deadlines. An ancestor replacement can only shorten its lifetime. The node’s own sample affects its serving ball and its descendants, but does not affect its own input sequence.
The union of the pre-installation host-update window and the post-installation own-input window therefore identifies, independently of this sample, at most 3 m / B s c h e d 3m/B_{\mathrm{sched}} 3 m / B sched snapshot points that could be deleted while the node is active. A uniform sample of s n o d e s_{\mathrm{node}} s node points hits this set with probability at most 3 s n o d e / B s c h e d 3s_{\mathrm{node}}/B_{\mathrm{sched}} 3 s node / B sched . Conditioning instead on the node having survived would be unnecessary and should be avoided. Fixed deadlines are essential: committing a whole pending chain whenever it happened to finish could select sample-dependent lifetimes and would need a different argument.
To account for sample-dependent coverage, we include the logical slot at its fixed installation deadline even if the coverage test fails. The event of passing coverage and losing a sample point is contained in the unconditional sample-hit event. We charge failed coverage separately. Conditioning on ancestor samples is legitimate, since these are independent of this node’s fresh sample. This separates the global coverage-failure event from the survival argument without biasing a sample.
At a fixed output time, expose the active chain from the root down. At each depth, the ancestor histories and the input clock identify the logical slot in service. Its sample-hit bound is 3 s n o d e / B s c h e d 3s_{\mathrm{node}}/B_{\mathrm{sched}} 3 s node / B sched . Summing over the O ( log ( M + 2 ) ) O(\log(M+2)) O ( log ( M + 2 )) depths gives probability at most 1 / 8 1/8 1/8 of a hit in a slot with passing coverage, for large enough C B C_B C B . We take the total probability of a failed coverage test or finite-rank coupling in a copy to be at most 1 / 8 1/8 1/8 . Thus a given copy has an entire valid cover at this time with probability at least 3 / 4 3/4 3/4 . The R h i e r R_{\mathrm{hier}} R hier copies use independent seeds on the fixed input. The probability that every copy fails at this time is at most 4 − R h i e r 4^{-R_{\mathrm{hier}}} 4 − R hier . A union bound over T C + 1 T_C+1 T C + 1 outputs proves the simultaneous guarantee for the maximum available score. Every available score is a current pair distance on every outcome.
Worst-case work and storage. One foreground update follows only the single foreground chain of a copy. At each visited node it advances that node’s sole pending job by a fixed polynomial budget and updates that job’s completed prefix, whose depth is O ( log M ) O(\log M) O ( log M ) . Thus only O ( log 2 M ) O(\log^2 M) O ( log 2 M ) prefix/node incidences are processed per point update; no pending job recursively invokes another pending job. Sample selection uses an order-statistic dictionary. Snapshot capture, heap scans, replay queues, and retirement use persistence or copy-on-write with background work. Replacing a suffix is a pointer switch; its old arenas can be reclaimed lazily under the same polynomial budget (or recycled with generation stamps). Initial and final small sets are processed directly.
Here is an explicit global retirement charge. Perform only a bounded polynomial number a a a of word allocations/initializations in a foreground update; large snapshots and arrays are allocated incrementally, or use lazy generation stamps. We keep all retired records in a reclamation queue and process at least 2 a 2a 2 a units of reclamation work per update, adjusting constants for pointer/reference cleanup. If non-retired storage is bounded by S = M poly ( d , b , s n o d e , log M ) S=M\operatorname{poly}(d,b,s_{\mathrm{node}},\log M) S = M poly ( d , b , s node , log M ) , the volume that can enter the retirement queue over any interval of u u u updates is at most S + a u S+au S + a u : it comprises records alive at the start plus records allocated during the interval. A server with rate 2 a 2a 2 a therefore has backlog at most S S S at every time (take the supremum over intervals ending at that time). Thus retired storage adds only another S S S , while reclamation cost is worst-case polynomial. Shared immutable snapshots can be reference-counted with deferred decrement work; each allocated pointer edge contributes only constant total cleanup work. Cancellation of many child jobs at an ancestor commit does not violate this burst-plus-rate bound.
The geometrically decreasing foreground input sizes have sum O ( M ) O(M) O ( M ) . Each foreground node owns one pending chain with storage linear in its input size up to polynomial factors. Hence a copy uses M poly ( d , b , s n o d e , log M ) M\operatorname{poly}(d,b,s_{\mathrm{node}},\log M) M poly ( d , b , s node , log M ) space, including current and retiring arenas. Replication adds only O ( log ( T C / δ ) ) O(\log(T_C/\delta)) O ( log ( T C / δ )) . All foreground work is explicitly capped by a polynomial budget, giving a worst-case bound regardless of the random choices. Heap distances and ball tests can be compared using rational squared distances. The final output can retain an exact squared witness distance, so arbitrary-real precision is not being hidden in a machine word.
Farthest-point lookup in a frozen sample
The main algorithm can afford polynomial preprocessing in the sample size, but it must answer each center query in time polynomial in the dimension and logarithmic parameters. We precompute a farthest sample point for each of a bounded number of projected grid sites. Accuracy at a given query requires an upper distortion bound for the whole sample and a lower bound for just one farthest point.
Algorithm
For m = 1 m = 1 m = 1 we return the unique sample point. Otherwise we compute the diameter D D D and its witnesses by examining all sample pairs, and fix s 0 ∈ S s_0 \in S s 0 ∈ S . For R = ∥ q − s 0 ∥ ≥ D / ( κ − 1 ) R = \lVert q - s_0 \rVert\ge D/(\kappa- 1) R = ∥ q − s 0 ∥ ≥ D / ( κ − 1 ) the answer s 0 s_0 s 0 suffices, since every sample point is at distance at most R + D ≤ κ R R + D \le\kappa R R + D ≤ κ R from q q q . Other queries use the following table.
We choose fixed rationals b 0 > 1 b_0 > 1 b 0 > 1 , e 0 e_0 e 0 , ν > 0 \nu> 0 ν > 0 with κ ( 1 − ν − 2 e 0 ) > b 0 + ν \kappa(1 - \nu- 2e_0) > b_0 + \nu κ ( 1 − ν − 2 e 0 ) > b 0 + ν . Such constants exist for every fixed κ > 1 \kappa> 1 κ > 1 , using a smaller rational factor internally if needed. For I ( b ) = 1 2 ( b 2 − 1 − ln b 2 ) I(b) = \frac{1}{2}(b^2 - 1 - \ln b^2) I ( b ) = 2 1 ( b 2 − 1 − ln b 2 ) we use a rational A κ > I ( b 0 ) − 1 A_\kappa> I(b_0)^{-1} A κ > I ( b 0 ) − 1 and take k = ⌈ A κ ln ( 240 m ) ⌉ k = \lceil A_\kappa\ln(240m)\rceil k = ⌈ A κ ln ( 240 m )⌉ , using an upper logarithm approximation within one. We choose a rational grid step e 0 D / ( 2 k ) ≤ h ≤ e 0 D / k e_0D/(2\sqrt{k}) \le h \le e_0D/\sqrt{k} e 0 D / ( 2 k ) ≤ h ≤ e 0 D / k and a constant R 0 > ( b 0 + ν ) / ( κ − 1 ) + e 0 R_0 > (b_0 + \nu)/(\kappa- 1) + e_0 R 0 > ( b 0 + ν ) / ( κ − 1 ) + e 0 . A table uses a normalized Gaussian projection A A A implemented by a rational matrix A ~ \widetilde{A} A , with entry error at most ν / k d \nu/\sqrt{kd} ν / k d except with probability 1 / 480 1/480 1/480 . Appendix § 12 .§ 2 gives the finite-bit sampling procedure.
We enumerate lattice sites A ~ s 0 + h j \widetilde{A}s_0 + hj A s 0 + hj within a rational radius in [ R 0 D , ( R 0 + 1 ) D ] [R_0D,(R_0 + 1)D] [ R 0 D , ( R 0 + 1 ) D ] about A ~ s 0 \widetilde{A}s_0 A s 0 . At each site we store the original identity farthest from it in projected distance. For a query we round A ~ q \widetilde{A}q A q to its nearest site, with a fixed tie rule, and return the stored point or s 0 s_0 s 0 if the site is absent. We build O ( log ( ( Q + 1 ) / δ ) ) O(\log((Q + 1)/\delta)) O ( log (( Q + 1 ) / δ )) independent tables and return the farthest of their replies in original distance.
Analysis
Lemma 9.1 (Farthest-point lookup). For every fixed κ > 1 \kappa> 1 κ > 1 , a nonempty set of m m m bounded integer points admits a randomized structure with preprocessing time and space m B κ poly κ ( L , b q , log ( Q + 2 ) ) m^{B_\kappa}\operatorname{poly}_\kappa(L, b_q, \log(Q + 2)) m B κ poly κ ( L , b q , log ( Q + 2 )) for a fixed B κ ≥ 2 B_\kappa\ge2 B κ ≥ 2 . Query time is poly κ ( L , b q , log ( m + 2 ) , log ( Q + 2 ) ) \operatorname{poly}_\kappa(L, b_q, \log(m + 2), \log(Q + 2)) poly κ ( L , b q , log ( m + 2 ) , log ( Q + 2 )) . For any prescribed list of Q Q Q rational queries in [ − Δ , Δ ] d [-\Delta,\Delta]^d [ − Δ , Δ ] d of coordinate encoding length at most b q b_q b q , independent of its seeds, it returns, for every query q q q , an identity z z z with ∥ z − q ∥ ≥ max x ∈ S ∥ x − q ∥ / κ \lVert z - q\rVert\ge\max_{x\in S}\lVert x - q\rVert/\kappa ∥ z − q ∥ ≥ max x ∈ S ∥ x − q ∥ / κ with probability 1 − δ 1 - \delta 1 − δ , using a logarithmic repetition factor. Every reply is an original sample identity on every random outcome. For m = 1 m = 1 m = 1 the unique sample point answers every query exactly. The same statement holds for canonical rational input coordinates of bounded bit length, with their bit length included in the polynomial factors. In the diameter application, b q b_q b q and log ( Q + 2 ) \log(Q + 2) log ( Q + 2 ) are polynomial in L L L .
Proof. We bound distortion for a fixed query and then account for the number of grid sites.
Projection of a true farthest point. Let Y ∼ χ k 2 Y \sim\chi_k^2 Y ∼ χ k 2 and X = Y − k X = Y - k X = Y − k , for any integer k ≥ 1 k \ge1 k ≥ 1 . Its moments are
E X = 0 , E X 2 = 2 k , E X 4 = 12 k 2 + 48 k ≤ 60 k 2 . \mathbb{E}X = 0,\qquad\mathbb{E}X^2 = 2k,\qquad\mathbb{E}X^4 = 12k^2 + 48k \le60k^2. E X = 0 , E X 2 = 2 k , E X 4 = 12 k 2 + 48 k ≤ 60 k 2 .
Interpolation between the first, second, and fourth absolute moments, followed by Cauchy–Schwarz, gives
E ∣ X ∣ ≥ ( E X 2 ) 3 / 2 ( E X 4 ) 1 / 2 , E X + = 1 2 E ∣ X ∣ , ( E X + ) 2 ≤ Pr [ X ≥ 0 ] E X 2 . \mathbb{E}|X| \ge\frac{(\mathbb{E}X^2)^{3/2}}{(\mathbb{E}X^4)^{1/2}},\qquad
\mathbb{E}X_+ = \frac{1}{2}\mathbb{E}|X|,\qquad
(\mathbb{E}X_+)^2 \le\Pr[X \ge0]\mathbb{E}X^2. E ∣ X ∣ ≥ ( E X 4 ) 1/2 ( E X 2 ) 3/2 , E X + = 2 1 E ∣ X ∣ , ( E X + ) 2 ≤ Pr [ X ≥ 0 ] E X 2 .
Consequently
Pr [ Y ≥ k ] ≥ ( E X 2 ) 2 4 E X 4 ≥ 1 60 . (21) \Pr[Y \ge k] \ge\frac{(\mathbb{E}X^2)^2}{4\mathbb{E}X^4} \ge\frac{1}{60}. \tag*{(21)} Pr [ Y ≥ k ] ≥ 4 E X 4 ( E X 2 ) 2 ≥ 60 1 . (21)
For a normalized Gaussian map A : R d → R k A : \mathbb{R}^d \to\mathbb{R}^k A : R d → R k and any fixed nonzero vector v v v , this says Pr [ ∥ A v ∥ ≥ ∥ v ∥ ] ≥ 1 / 60 \Pr[\lVert Av\rVert\ge\lVert v\rVert] \ge1/60 Pr [∥ A v ∥ ≥ ∥ v ∥] ≥ 1/60 .
For an upper multiplier b 0 > 1 b_0 > 1 b 0 > 1 , the usual exact Chernoff bound is
Pr [ ∥ A v ∥ > b 0 ∥ v ∥ ] ≤ e − k I ( b 0 ) , I ( b 0 ) = 1 2 ( b 0 2 − 1 − ln b 0 2 ) . \Pr[\lVert Av\rVert> b_0\lVert v\rVert] \le e^{-kI(b_0)}, \qquad I(b_0) = \frac{1}{2}(b_0^2 - 1 - \ln b_0^2). Pr [∥ A v ∥ > b 0 ∥ v ∥] ≤ e − k I ( b 0 ) , I ( b 0 ) = 2 1 ( b 0 2 − 1 − ln b 0 2 ) .
The elementary inequality x − ln ( 1 + x ) ≥ x 2 / [ 2 ( 1 + x ) ] x - \ln(1 + x) \ge x^2/[2(1 + x)] x − ln ( 1 + x ) ≥ x 2 / [ 2 ( 1 + x )] gives the useful explicit lower bound
I ( b 0 ) ≥ ( b 0 2 − 1 ) 2 4 b 0 2 . I(b_0) \ge\frac{(b_0^2 - 1)^2}{4b_0^2}. I ( b 0 ) ≥ 4 b 0 2 ( b 0 2 − 1 ) 2 .
Lookup accuracy at a fixed query. The entry error gives ∥ A ~ − A ∥ F ≤ ν \lVert\widetilde{A} - A\rVert_F \le\nu ∥ A − A ∥ F ≤ ν . It changes the norm of any projected difference v v v by at most ν ∥ v ∥ \nu\lVert v\rVert ν ∥ v ∥ . For a fixed query, let p ∗ ∈ S p_* \in S p ∗ ∈ S be a canonically selected true farthest point and put R = ∥ p ∗ − q ∥ R = \lVert p_* - q\rVert R = ∥ p ∗ − q ∥ . There are only m m m vectors p − q p - q p − q , including s 0 − q s_0 - q s 0 − q . Our choice of k k k bounds their combined ideal upper-tail failure probability by 1 / 240 1/240 1/240 . By (21) and a union bound, the joint event
∥ A ( p ∗ − q ) ∥ ≥ R , ∥ A ( p − q ) ∥ ≤ b 0 ∥ p − q ∥ ( p ∈ S ) , \lVert A(p_* - q)\rVert\ge R, \qquad\lVert A(p - q)\rVert\le b_0\lVert p - q\rVert\quad(p \in S), ∥ A ( p ∗ − q )∥ ≥ R , ∥ A ( p − q )∥ ≤ b 0 ∥ p − q ∥ ( p ∈ S ) ,
together with successful finite-bit coupling, has probability at least 1 / 60 − 1 / 240 − 1 / 480 > 1 / 200 1/60 - 1/240 - 1/480 > 1/200 1/60 − 1/240 − 1/480 > 1/200 . No independence between the upper and lower events is used. Let u u u be the rounded query site. Its distance from A ~ q \widetilde{A}q A q is at most h k / 2 ≤ ϵ 0 D / 2 h\sqrt{k}/2 \le\epsilon_0D/2 h k /2 ≤ ϵ 0 D /2 , so u u u lies in the table on the good event by the upper estimate for s 0 − q s_0 - q s 0 − q and the definition of R 0 R_0 R 0 . If the stored identity is x x x , then ∥ A ~ x − u ∥ ≥ ∥ A ~ p ∗ − u ∥ \lVert\widetilde{A}x - u\rVert\ge\lVert\widetilde{A}p_* - u\rVert ∥ A x − u ∥ ≥ ∥ A p ∗ − u ∥ . Applying the rounding bound at both ends gives
( b 0 + ν ) ∥ x − q ∥ ≥ ( 1 − ν ) R − ϵ 0 D ≥ ( 1 − ν − 2 ϵ 0 ) R , (b_0 + \nu)\lVert x - q\rVert\ge(1 - \nu)R - \epsilon_0D \ge(1 - \nu- 2\epsilon_0)R, ( b 0 + ν ) ∥ x − q ∥ ≥ ( 1 − ν ) R − ϵ 0 D ≥ ( 1 − ν − 2 ϵ 0 ) R ,
where D ≤ 2 R D \le2R D ≤ 2 R . Thus it suffices that
κ ( 1 − ν − 2 ϵ 0 ) ≥ b 0 + ν . (22) \kappa(1 - \nu- 2\epsilon_0) \ge b_0 + \nu. \tag*{(22)} κ ( 1 − ν − 2 ϵ 0 ) ≥ b 0 + ν . (22)
Since κ ( 1 − ν − 2 ϵ 0 ) > b 0 + ν \kappa(1 - \nu- 2\epsilon_0) > b_0 + \nu κ ( 1 − ν − 2 ϵ 0 ) > b 0 + ν , this proves the lookup guarantee for the fixed query. It holds with probability at least 1 / 200 1/200 1/200 for each independent table. Taking the farthest actual reply preserves any success. A union bound over the Q Q Q prescribed queries proves the simultaneous guarantee. On every outcome the reply is an input point.
Enumeration and query costs. A table key satisfies ∥ j ∥ ≤ C κ k \lVert j\rVert\le C_\kappa\sqrt{k} ∥ j ∥ ≤ C κ k for a fixed C κ C_\kappa C κ . The enumeration grows feasible integer prefixes recursively and discards a prefix once its squared norm exceeds the squared radius. At depth i i i , disjoint unit cubes about the feasible prefixes lie in an i i i -dimensional ball of radius C κ k + i / 2 C_\kappa\sqrt{k} + \sqrt{i}/2 C κ k + i /2 . The volume bound gives at most ( C κ ′ k / i ) i (C'_\kappa\sqrt{k}/i)^i ( C κ ′ k / i ) i prefixes. Since i ln ( k / i ) ≤ k / e i\ln(k/i) \le k/e i ln ( k / i ) ≤ k / e , the total enumeration takes exp ( O κ ( k ) ) poly ( k ) = m O κ ( 1 ) \exp(O_\kappa(k))\operatorname{poly}(k) = m^{O_\kappa(1)} exp ( O κ ( k )) poly ( k ) = m O κ ( 1 ) operations. For each full key the algorithm scans the sample and stores the maximizing original identity. Computing the sample diameter, generating the map, and building the lookup dictionary have the same polynomial bound after increasing B κ B_\kappa B κ .
A query projects its center, rounds its grid key, and looks up the stored identity in a balanced dictionary. It then evaluates the original distance. All of this takes polynomial time in L \mathcal{L} L and the query encoding bound. Independent table repetition multiplies preprocessing and query time by only a logarithmic factor. The explicit choice B 1.09 = 2000 B_{1.09} = 2000 B 1.09 = 2000 is verified in Appendix § 12 .§ 1 .
A lower bound on linear-length set streams
A single final diameter query can test one bit of a long insertion prefix. We first specify the bit bound that suffices for Theorem 1.2 . We then construct the finite instances and derive the inequality on information that forces this bound.
Write S S S for the bit length of an encoding of the state after the insertion prefix, padding shorter descriptions to the same length. Thus W W W machine words give S = O ( W w w o r d ) S = O(Ww_{\mathrm{word}}) S = O ( W w word ) . For fixed c ≥ 1 c \ge1 c ≥ 1 put g = ⌈ c ⌉ + 1 g = \lceil c\rceil+ 1 g = ⌈ c ⌉ + 1 , r = 1 / g r = 1/g r = 1/ g , δ 0 = 1 / ( 100 g ) \delta_0 = 1/(100g) δ 0 = 1/ ( 100 g ) , r 0 = r − 2 δ 0 r_0 = r - 2\delta_0 r 0 = r − 2 δ 0 , and η = 1 − h 2 ( 1 / 10 ) \eta= 1 - h_2(1/10) η = 1 − h 2 ( 1/10 ) , where h 2 h_2 h 2 is the binary entropy. All entropies are in bits.
Theorem 10.1 (Information in the insertion prefix). For every integer d ≥ 4 d \ge4 d ≥ 4 there is a finite rational set P ⊂ R d P \subset\mathbb{R}^d P ⊂ R d of size U U U with
( 25 g ) d − 1 ≤ U ≤ ( 802 g ) d , (23) (25g)^{d-1} \le U \le(802g)^d, \tag*{(23)} ( 25 g ) d − 1 ≤ U ≤ ( 802 g ) d , (23) such that the following holds. Suppose a randomized one-pass algorithm returns D / c ≤ L ≤ D D/c \le L \le D D / c ≤ L ≤ D with error at most 1 / 10 1/10 1/10 on every stream in this family. Then its state after the insertion prefix satisfies
S + ⌈ log 2 ( U + 1 ) ⌉ > η 4 exp ( ( d − 1 ) r 0 2 1000 ) . (24) S + \lceil\log_2(U + 1)\rceil> \frac{\eta}{4}\exp\left(\frac{(d-1)r_0^2}{1000}\right). \tag*{(24)} S + ⌈ log 2 ( U + 1 )⌉ > 4 η exp ( 1000 ( d − 1 ) r 0 2 ) . (24) The streams have dimension d + 1 d + 1 d + 1 , maximum support U + 1 U + 1 U + 1 or less, and length at most 2 U + 1 2U + 1 2 U + 1 . Each point is inserted at most once and deleted at most once, with all insertions first. Scaling every coordinate by the same factor yields integers of magnitude O ( g 2 d ) O(g^2\sqrt{d}) O ( g 2 d ) . The logarithmic term in (24) allows a free update clock and may be dropped when the clock is counted in the state.
Proof. § 10.1.1 constructs the net, and § 10.1.2 turns a streaming state into a message of s = S + ⌈ log 2 ( U + 1 ) ⌉ s = S + \lceil\log_2(U + 1)\rceil s = S + ⌈ log 2 ( U + 1 )⌉ bits. The decoder forces a marginal of at least η \eta η at chord length two and zero throughout [ 0 , r 0 ] [0, r_0] [ 0 , r 0 ] . The diagonal inequality and rotational averaging in § 10.2 constrain the values between these endpoints by (26) . § 10.4 shows that this recurrence is inconsistent with the two endpoint conditions unless s > ( η / 4 ) exp ( ( d − 1 ) r 0 2 / 1000 ) s > (\eta/4)\exp((d - 1)r_0^2/1000) s > ( η /4 ) exp (( d − 1 ) r 0 2 /1000 ) , as claimed.
The finite input and the decoder
A rational antipodal net
We take a real δ 0 / 2 \delta_0/2 δ 0 /2 -net V \mathcal{V} V of the unit sphere S d − 1 \mathbb{S}^{d-1} S d − 1 with
∣ V ∣ ≤ ( 1 + 4 / δ 0 ) d . |\mathcal{V}| \le(1 + 4/\delta_0)^d. ∣ V ∣ ≤ ( 1 + 4/ δ 0 ) d .
For example a maximal δ 0 / 2 \delta_0/2 δ 0 /2 -separated set has this size bound: the disjoint radius-δ 0 / 4 \delta_0/4 δ 0 /4 balls about its points fit in the radius-( 1 + δ 0 / 4 ) (1 + \delta_0/4) ( 1 + δ 0 /4 ) ball. Maximality gives the covering property. We adjoin the negatives of all selected points. From each antipodal pair we round one representative to a nearest grid point p p p and use − p -p − p for its antipode. All sites use the same grid with denominator
J = ⌈ 2 d δ 0 ⌉ . J = \left\lceil\frac{2\sqrt{d}}{\delta_0} \right\rceil. J = ⌈ δ 0 2 d ⌉ .
The rounding error is at most d / ( 2 J ) ≤ δ 0 / 4 \sqrt{d}/(2J) \le\delta_0/4 d / ( 2 J ) ≤ δ 0 /4 . After duplicates are removed, the symmetric rational set P P P has cardinality at most 2 ( 1 + 4 / δ 0 ) d ≤ ( 802 g ) d 2(1 + 4/\delta_0)^d \le(802g)^d 2 ( 1 + 4/ δ 0 ) d ≤ ( 802 g ) d , and every unit vector is within δ 0 \delta_0 δ 0 of some point of P P P . Every point of P P P has norm between 1 − δ 0 1 - \delta_0 1 − δ 0 and 1 + δ 0 1 + \delta_0 1 + δ 0 .
We fix a measurable nearest-net map
Q : S d − 1 ⟶ P Q : \mathbb{S}^{d-1} \longrightarrow\mathcal{P} Q : S d − 1 ⟶ P
with ∥ Q ( x ) − x ∥ ≤ δ 0 \lVert Q(x)-x\rVert\le\delta_0 ∥ Q ( x ) − x ∥ ≤ δ 0 and Q ( − x ) = − Q ( x ) Q(-x)=-Q(x) Q ( − x ) = − Q ( x ) . Such an odd tie rule exists: first choose the first nearest antipodal pair in a fixed ordering, then choose the nearer sign; on a sign tie use any fixed odd hemisphere convention. Ties are immaterial under the rotation distributions used below, but this makes the map exact.
For completeness, any δ 0 \delta_0 δ 0 -net of the sphere must also be exponentially large in d d d . The balls of radius 2 δ 0 2\delta_0 2 δ 0 around its sites cover the shell with radii in [ 1 , 1 + δ 0 ] [1,1+\delta_0] [ 1 , 1 + δ 0 ] . Comparing volumes gives
U ( 2 δ 0 ) d ≥ ( 1 + δ 0 ) d − 1 ≥ δ 0 . U(2\delta_0)^d \ge(1+\delta_0)^d-1 \ge\delta_0. U ( 2 δ 0 ) d ≥ ( 1 + δ 0 ) d − 1 ≥ δ 0 .
For d ≥ 2 d\ge2 d ≥ 2 , this implies U ≥ ( 1 / ( 4 δ 0 ) ) d − 1 = ( 25 g ) d − 1 U\ge(1/(4\delta_0))^{d-1}=(25g)^{d-1} U ≥ ( 1/ ( 4 δ 0 ) ) d − 1 = ( 25 g ) d − 1 , proving (23) .
All coordinates of P \mathcal{P} P have denominator J J J . The additional anchor height used below is r = 1 / g r=1/g r = 1/ g . Scaling all coordinates by J g Jg J g makes every point integral, with absolute coordinate bound O ( g J ) = O ( g 2 d ) O(gJ)=O(g^2\sqrt{d}) O ( g J ) = O ( g 2 d ) . This scaling preserves all diameter ratios. Rounding only the chosen net sites keeps the cardinality bound independent of the size of the ambient rational grid.
A cap, a target, and a fresh anchor
Alice has independent fair bits X p X_p X p , one for every p ∈ P p\in\mathcal{P} p ∈ P . She inserts ( p , 0 ) (p,0) ( p , 0 ) when X p = 1 X_p=1 X p = 1 , in canonical order, and sends the streaming state to Bob, together with her insertion count if needed to specify a free clock. Independently choose x x x uniformly on S d − 1 \mathbb{S}^{d-1} S d − 1 . Bob’s target is
y = Q ( − x ) = − Q ( x ) . y=Q(-x)=-Q(x). y = Q ( − x ) = − Q ( x ) .
He knows the bits outside
B x ∪ { y } , B x = P ∩ B ( Q ( x ) , r ) . \mathcal{B}_x\cup\{y\},\qquad\mathcal{B}_x=\mathcal{P}\cap B(Q(x),r). B x ∪ { y } , B x = P ∩ B ( Q ( x ) , r ) .
The target lies outside B x \mathcal{B}_x B x , since 2 ∥ Q ( x ) ∥ ≥ 2 ( 1 − δ 0 ) > r 2\lVert Q(x)\rVert\ge2(1-\delta_0)>r 2 ∥ Q ( x )∥ ≥ 2 ( 1 − δ 0 ) > r . Bob first inserts the fresh anchor ( Q ( x ) , r ) (Q(x),r) ( Q ( x ) , r ) , whose last coordinate distinguishes it from every Alice point. He then deletes every present point in that known complement. Thus the complete stream has all its insertions before all its deletions, and no point is ever reinserted.
There are at most 2 U + 1 2U+1 2 U + 1 updates, every prefix is a set, and at most U + 1 U+1 U + 1 points are active. Once Alice’s bits and Bob’s query are chosen, the entire update sequence is fixed independently of the algorithm’s random coins; thus this lower bound already holds for oblivious streams. If X y = 0 X_y=0 X y = 0 , only the anchor and the inserted cap points survive. With no cap point the anchor is a singleton and the diameter is zero. Otherwise any two cap points are within 2 r 2r 2 r of one another, and any cap point is within 2 r \sqrt{2}r 2 r of the anchor. Thus D ≤ 2 r D\le2r D ≤ 2 r . If X y = 1 X_y=1 X y = 1 , both ( y , 0 ) = ( − Q ( x ) , 0 ) (y,0)=(-Q(x),0) ( y , 0 ) = ( − Q ( x ) , 0 ) and the anchor survive, so
D ≥ 4 ∥ Q ( x ) ∥ 2 + r 2 ≥ 2 ∥ Q ( x ) ∥ ≥ 2 ( 1 − δ 0 ) . D\ge\sqrt{4\lVert Q(x)\rVert^2+r^2}\ge2\lVert Q(x)\rVert\ge2(1-\delta_0). D ≥ 4 ∥ Q ( x ) ∥ 2 + r 2 ≥ 2 ∥ Q ( x )∥ ≥ 2 ( 1 − δ 0 ) .
The ratio between the lower bound in the second case and the upper bound in the first is
2 ( 1 − δ 0 ) 2 r = 1 − δ 0 r = g − 1 100 > c . \frac{2(1-\delta_0)}{2r}=\frac{1-\delta_0}{r}=g-\frac{1}{100}>c. 2 r 2 ( 1 − δ 0 ) = r 1 − δ 0 = g − 100 1 > c .
On the approximation event D / c ≤ L ≤ D D/c\le L\le D D / c ≤ L ≤ D , Bob thus decodes X y = 1 X_y=1 X y = 1 exactly when L > 2 r L>2r L > 2 r (in the unscaled coordinates). Although x x x was used to describe the query distribution, Bob only needs the finite data Q ( x ) Q(x) Q ( x ) and y y y ; no real-valued side channel is provided to the decoder.
Fix public randomness and Alice’s private coins by averaging so that the average error remains at most 1/10. Bob may use fresh independent randomness, or replace it by an optimal deterministic decoder for this distribution. The resulting deterministic message M = M ( X ) M=M(X) M = M ( X ) has at most
s = S + ⌈ log 2 ( U + 1 ) ⌉ s=S+\lceil\log_2(U+1)\rceil s = S + ⌈ log 2 ( U + 1 )⌉
bits. Define
f ( A ) = H ( M ∣ X P ∖ A ) , A ⊆ P . f(A)=H(M\mid X_{\mathcal{P}\setminus A}),\qquad A\subseteq\mathcal{P}. f ( A ) = H ( M ∣ X P ∖ A ) , A ⊆ P .
The function f f f is normalized, monotone, and submodular, with f ( P ) ≤ s f(\mathcal{P})\le s f ( P ) ≤ s and singleton marginals in [ 0 , 1 ] [0,1] [ 0 , 1 ] . Normalization uses that M M M is a deterministic function of the bits; monotonicity follows by removing conditioning. For submodularity, write
f ( A ) = H ( M , X P ∖ A ) − ∣ P ∖ A ∣ . f(A)=H(M,X_{\mathcal{P}\setminus A})-|\mathcal{P}\setminus A|. f ( A ) = H ( M , X P ∖ A ) − ∣ P ∖ A ∣.
Entropy is submodular, complementation interchanges union and intersection, and the subtracted cardinality is modular. A singleton marginal is the conditional mutual information with one independent fair bit, and so lies between zero and one.
To make the randomness bookkeeping explicit, Alice’s private coins may be represented by an independent random transition-coin table indexed by update time, current state, and update symbol. Along any one prefix, each time index is used only once, so this has exactly the law of fresh private coins. Fixing the public seed and this prefix table makes M M M a deterministic function of the still-independent input bits. Bob uses fresh transition coins for his continuation and the transmitted prefix length to determine a free clock, if one is present. Averaging over the prefix table and public seed guarantees a fixed choice with the stipulated average error. No private random-tape head or other unaccounted history is needed.
For continuous sphere points x , z x,z x , z , put
a ( x , z ) = f ( B x ∪ { Q ( z ) } ) − f ( B x ) . a(x,z)=f(B_x\cup\{Q(z)\})-f(B_x). a ( x , z ) = f ( B x ∪ { Q ( z )}) − f ( B x ) .
If ∥ x − z ∥ ≤ r 0 = r − 2 δ 0 \lVert x-z\rVert\le r_0=r-2\delta_0 ∥ x − z ∥ ≤ r 0 = r − 2 δ 0 , then ∥ Q ( x ) − Q ( z ) ∥ ≤ r \lVert Q(x)-Q(z)\rVert\le r ∥ Q ( x ) − Q ( z )∥ ≤ r , so a ( x , z ) = 0 a(x,z)=0 a ( x , z ) = 0 . Let a ( t ) a(t) a ( t ) be the average of a ( x , z ) a(x,z) a ( x , z ) over rotation-invariant ordered pairs on the sphere at chord distance t ∈ [ 0 , 2 ] t\in[0,2] t ∈ [ 0 , 2 ] . Thus a ( t ) ∈ [ 0 , 1 ] a(t)\in[0,1] a ( t ) ∈ [ 0 , 1 ] and a ( t ) = 0 a(t)=0 a ( t ) = 0 for t ≤ r 0 t\le r_0 t ≤ r 0 . For z = − x z=-x z = − x , the marginal equals I ( M ; X y ∣ X P ∖ ( B x ∪ { y } ) ) I(M;X_y\mid X_{\mathcal{P}\setminus(B_x\cup\{y\})}) I ( M ; X y ∣ X P ∖ ( B x ∪ { y }) ) at fixed x x x . Before seeing M M M , the target bit is fair even given this side information. After seeing M M M , Bob decodes it with average error at most 1/10. For a fixed x x x let e x e_x e x be the conditional error of the deterministic decoder. Given the message and the side information, the target bit is determined by its error indicator, so its residual entropy is at most h 2 ( e x ) h_2(e_x) h 2 ( e x ) . Averaging and using E e x ≤ 1 / 10 \mathbb{E}e_x\le1/10 E e x ≤ 1/10 and concavity of h 2 h_2 h 2 gives the binary Fano bound [7 ]
a ( 2 ) ≥ η = 1 − h 2 ( 1 / 10 ) . (25) a(2)\ge\eta=1-h_2(1/10). \tag*{(25)} a ( 2 ) ≥ η = 1 − h 2 ( 1/10 ) . (25)
From antipodes to shorter chords
A diagonal inequality for submodular marginals
An entry on the diagonal represents information the decoder needs about its own target. An off-diagonal entry measures how much that gain can decrease if an earlier target has already been revealed. Selecting a random subcollection lets us charge the latter losses only when both indices are selected.
Lemma 10.2 (Weighted diagonal inequality). For any normalized monotone submodular f f f with total value at most s s s , any sets B 1 , … , B m B_1,\ldots,B_m B 1 , … , B m , and any elements z 1 , … , z m z_1,\ldots,z_m z 1 , … , z m with repetitions allowed, set
A i j = f ( B i ∪ { z j } ) − f ( B i ) , D = ∑ i A i i , Z = ∑ i , j A i j . A_{ij}=f(B_i\cup\{z_j\})-f(B_i),\qquad D=\sum_i A_{ii},\qquad Z=\sum_{i,j}A_{ij}. A ij = f ( B i ∪ { z j }) − f ( B i ) , D = i ∑ A ii , Z = i , j ∑ A ij . Then D 2 ≤ 2 s Z D^2\le2sZ D 2 ≤ 2 s Z .
Proof. Select a subset of indices and order it. Let U i U_i U i contain the elements selected before index i i i . Diminishing returns gives the first inequality below. For the second, contract B i B_i B i by writing g i ( U ) = f ( B i ∪ U ) − f ( B i ) g_i(U)=f(B_i\cup U)-f(B_i) g i ( U ) = f ( B i ∪ U ) − f ( B i ) . Monotonicity gives g i ( U i ∪ { z i } ) ≥ g i ( { z i } ) = A i i g_i(U_i\cup\{z_i\})\ge g_i(\{z_i\})=A_{ii} g i ( U i ∪ { z i }) ≥ g i ({ z i }) = A ii , while telescoping the gains along the preceding indices gives g i ( U i ) ≤ ∑ j p r e c e d i n g i g i ( { z j } ) g_i(U_i)\le\sum_{j\ {\rm preceding}\ i}g_i(\{z_j\}) g i ( U i ) ≤ ∑ j preceding i g i ({ z j }) . Thus
f ( U i ∪ { z i } ) − f ( U i ) ≥ f ( B i ∪ U i ∪ { z i } ) − f ( B i ∪ U i ) ≥ A i i − ∑ j p r e c e d i n g i A i j . \begin{aligned}
f(U_i\cup\{z_i\})-f(U_i)\ge f(B_i\cup U_i\cup\{z_i\})-f(B_i\cup U_i) \\
&\ge A_{ii}-\sum_{j\ {\rm preceding}\ i}A_{ij}.
\end{aligned} f ( U i ∪ { z i }) − f ( U i ) ≥ f ( B i ∪ U i ∪ { z i }) − f ( B i ∪ U i ) ≥ A ii − j preceding i ∑ A ij .
This remains valid if z i z_i z i already appeared: the chain increment is zero, and the preceding identical column subtracts A i i A_{ii} A ii from the right side. We select indices independently with probability q q q and order them uniformly. Each diagonal gain is selected with probability q q q . Each ordered pair of distinct indices is selected in that order with probability q 2 / 2 q^2/2 q 2 /2 . The chain telescopes to at most s s s , giving s ≥ q D − q 2 ( Z − D ) / 2 ≥ q D − q 2 Z / 2 s\ge qD-q^2(Z-D)/2\ge qD-q^2Z/2 s ≥ q D − q 2 ( Z − D ) /2 ≥ q D − q 2 Z /2 . If D > 0 D>0 D > 0 , use q = D / Z ≤ 1 q=D/Z\le1 q = D / Z ≤ 1 to obtain D 2 ≤ 2 s Z D^2\le2sZ D 2 ≤ 2 s Z . The case D = 0 D=0 D = 0 is immediate. □
Averaging on an affine subsphere
We realize the diagonal at any prescribed chord length using the diameters of one affine subsphere. Its center is common to all pairs, so choosing two different indices changes their separation in a way that depends only on two independent directions (Figure 3 ).
Fix t ∈ [ 0 , 2 ] t\in[0,2] t ∈ [ 0 , 2 ] , write R = t / 2 R=t/2 R = t /2 , and choose a uniform unit vector u u u . In the orthogonal hyperplane u ⊥ u^\perp u ⊥ , take independent uniform vectors v 1 , … , v m v_1,\ldots,v_m v 1 , … , v m on its unit sphere S d − 2 S^{d-2} S d − 2 . Define
x i = 1 − R 2 u + R v i , z i = 1 − R 2 u − R v i . x_i=\sqrt{1-R^2}\,u+Rv_i,\qquad z_i=\sqrt{1-R^2}\,u-Rv_i. x i = 1 − R 2 u + R v i , z i = 1 − R 2 u − R v i .
These points lie on the original unit sphere. Each diagonal pair ( x i , z i ) (x_i,z_i) ( x i , z i ) has chord distance t t t , and its law is rotationally invariant. We apply Lemma 10.2 to the finite table
A i j = a ( x i , z j ) . A_{ij}=a(x_i,z_j). A ij = a ( x i , z j ) .
Its underlying elements Q ( z j ) Q(z_j) Q ( z j ) may coincide; the preceding lemma explicitly permits this.
For i ≠ j i\ne j i = j ,
∥ x i − z j ∥ = R ∥ v i + v j ∥ = t Z 0 , Z 0 = 1 + ⟨ v i , v j ⟩ 2 . \lVert x_i-z_j\rVert=R\lVert v_i+v_j\rVert=t\sqrt{Z_0},\qquad Z_0=\frac{1+\langle v_i,v_j\rangle}{2}. ∥ x i − z j ∥ = R ∥ v i + v j ∥ = t Z 0 , Z 0 = 2 1 + ⟨ v i , v j ⟩ .
The inner-product density on S d − 2 S^{d-2} S d − 2 shows that
Z 0 ∼ Beta ( α , α ) , α = ( d − 2 ) / 2. Z_0\sim\operatorname{Beta}(\alpha,\alpha),\qquad\alpha=(d-2)/2. Z 0 ∼ Beta ( α , α ) , α = ( d − 2 ) /2.
By rotation invariance, conditional on the chord length v v v the expected entry is a ( v ) a(v) a ( v ) . Averaging over v = t Z 0 v=t\sqrt{Z_0} v = t Z 0 gives E a ( t Z 0 ) \mathbb{E}a(t\sqrt{Z_0}) E a ( t Z 0 ) for each off-diagonal entry. If D m , Z m D_m,Z_m D m , Z m denote the diagonal and total table sums, then
E D m = m a ( t ) , E Z m = m a ( t ) + m ( m − 1 ) E a ( t Z 0 ) . \mathbb{E}D_m=ma(t),\qquad\mathbb{E}Z_m=ma(t)+m(m-1)\mathbb{E}a(t\sqrt{Z_0}). E D m = ma ( t ) , E Z m = ma ( t ) + m ( m − 1 ) E a ( t Z 0 ) .
Using ( E D m ) 2 ≤ E D m 2 ≤ 2 s E Z m (\mathbb{E}D_m)^2\leq\mathbb{E}D_m^2\leq2s\mathbb{E}Z_m ( E D m ) 2 ≤ E D m 2 ≤ 2 s E Z m and letting the auxiliary table size m m m tend to infinity gives
a ( t ) 2 ≤ 2 s E a ( t Z 0 ) . (26) a(t)^2\leq2s\mathbb{E}a(t\sqrt{Z_0}). \tag*{(26)} a ( t ) 2 ≤ 2 s E a ( t Z 0 ) . (26)
The limit only concerns a mathematical table with repeated entries; it introduces no long stream or enlarged input universe.
Iterating to the zero band
A tail bound for a random chord
The recurrence averages over the length of the next chord. We bound the probability that it is too long using the even moments of one spherical coordinate. Write n = d − 1 n=d-1 n = d − 1 and W = 2 Z 0 − 1 W=2Z_0-1 W = 2 Z 0 − 1 . The variable W W W has the law of the first coordinate of a uniform point on S n − 1 S^{n-1} S n − 1 . Symmetry gives zero odd moments. The beta integral gives, for each integer j ≥ 1 j\geq1 j ≥ 1 ,
E W 2 j = Γ ( j + 1 / 2 ) Γ ( n / 2 ) π Γ ( j + n / 2 ) = ( 2 j − 1 ) ! ! n ( n + 2 ) ⋯ ( n + 2 j − 2 ) ≤ ( 2 j − 1 ) ! ! n j . \mathbb{E}W^{2j}=\frac{\Gamma(j+1/2)\Gamma(n/2)}{\sqrt{\pi}\Gamma(j+n/2)}=\frac{(2j-1)!!}{n(n+2)\cdots(n+2j-2)}\leq\frac{(2j-1)!!}{n^j}. E W 2 j = π Γ ( j + n /2 ) Γ ( j + 1/2 ) Γ ( n /2 ) = n ( n + 2 ) ⋯ ( n + 2 j − 2 ) ( 2 j − 1 )!! ≤ n j ( 2 j − 1 )!! .
Expanding the hyperbolic cosine and using monotone convergence therefore shows that for every real λ \lambda λ ,
E e λ W = E cosh ( λ W ) ≤ ∑ j = 0 ∞ λ 2 j ( 2 j − 1 ) ! ! ( 2 j ) ! n j = exp ( λ 2 2 n ) . \mathbb{E}e^{\lambda W}=\mathbb{E}\cosh(\lambda W)\leq\sum_{j=0}^{\infty}\frac{\lambda^{2j}(2j-1)!!}{(2j)!n^j}=\exp\left(\frac{\lambda^2}{2n}\right). E e λW = E cosh ( λW ) ≤ j = 0 ∑ ∞ ( 2 j )! n j λ 2 j ( 2 j − 1 )!! = exp ( 2 n λ 2 ) .
Here the j = 0 j=0 j = 0 term is interpreted as 1. Chernoff’s inequality, with λ = 2 n δ \lambda=2n\delta λ = 2 n δ , now gives the useful dimension-dependent upper tail
Pr [ Z 0 > 1 / 2 + δ ] ≤ exp ( − 2 n δ 2 ) , δ ≥ 0. (27) \Pr[Z_0>1/2+\delta]\leq\exp(-2n\delta^2),\qquad\delta\geq0. \tag*{(27)} Pr [ Z 0 > 1/2 + δ ] ≤ exp ( − 2 n δ 2 ) , δ ≥ 0. (27)
Choosing the truncation at each step
Each application of the recurrence squares the marginal, so the error from a fixed tail cutoff could exceed the quantity it is meant to bound. We increase the cutoff as the marginal shrinks and keep track of the accumulated loss in distance. Define the monotone envelope
A ( t ) = sup 0 ≤ v ≤ t a ( v ) , 0 ≤ t ≤ 2. A(t)=\sup_{0\le v\le t}a(v),\qquad0\le t\le2. A ( t ) = 0 ≤ v ≤ t sup a ( v ) , 0 ≤ t ≤ 2.
It is monotone and hence measurable, lies in [ 0 , 1 ] [0,1] [ 0 , 1 ] , vanishes on [ 0 , r 0 ] [0,r_0] [ 0 , r 0 ] , and satisfies A ( 2 ) ≥ η A(2)\ge\eta A ( 2 ) ≥ η . Taking the supremum in (26) , and using monotonicity of A A A , gives
A ( t ) 2 ≤ 2 s E A ( t Z 0 ) . (28) A(t)^2\le2s\mathbb{E}A(t\sqrt{Z_0}). \tag*{(28)} A ( t ) 2 ≤ 2 s E A ( t Z 0 ) . (28)
The number of message bits s s s is an integer and must be positive by (25) ; thus s ≥ 1 s\ge1 s ≥ 1 . Put
L = ln ( 4 s / η ) , h = ⌈ log 2 16 r 0 2 ⌉ , ℓ j = 4 s exp ( − 2 j L ) , δ j = 2 j L n . L=\ln(4s/\eta),\qquad h=\left\lceil\log_2\frac{16}{r_0^2}\right\rceil,\qquad\ell_j=4s\exp(-2^jL),\qquad\delta_j=\sqrt{\frac{2^jL}{n}}. L = ln ( 4 s / η ) , h = ⌈ log 2 r 0 2 16 ⌉ , ℓ j = 4 s exp ( − 2 j L ) , δ j = n 2 j L .
Notice that ℓ 0 = η \ell_0=\eta ℓ 0 = η and ℓ j + 1 = ℓ j 2 / ( 4 s ) \ell_{j+1}=\ell_j^2/(4s) ℓ j + 1 = ℓ j 2 / ( 4 s ) . Suppose, for a contradiction, that
L ≤ n r 0 2 1000 . (29) L\le\frac{nr_0^2}{1000}. \tag*{(29)} L ≤ 1000 n r 0 2 . (29)
Since 2 h < 32 / r 0 2 2^h<32/r_0^2 2 h < 32/ r 0 2 ,
∑ j = 0 h − 1 δ j = L n 2 h / 2 − 1 2 − 1 < ( 2 + 1 ) 2 h L n < ( 2 + 1 ) 32 1000 < 1 2 < ln 2. \begin{aligned}
\sum_{j=0}^{h-1}\delta_j
&=\sqrt{\frac{L}{n}}\frac{2^{h/2}-1}{\sqrt{2}-1}\\
&<(\sqrt{2}+1)\sqrt{\frac{2^hL}{n}}\\
&<(\sqrt{2}+1)\sqrt{\frac{32}{1000}}<\frac12<\ln2.
\end{aligned} j = 0 ∑ h − 1 δ j = n L 2 − 1 2 h /2 − 1 < ( 2 + 1 ) n 2 h L < ( 2 + 1 ) 1000 32 < 2 1 < ln 2.
In particular each δ j < 1 / 2 \delta_j<1/2 δ j < 1/2 for j < h j<h j < h . Starting from t 0 = 2 t_0=2 t 0 = 2 , define
t j + 1 = t j 1 / 2 + δ j , 0 ≤ j < h . t_{j+1}=t_j\sqrt{1/2+\delta_j},\qquad0\le j<h. t j + 1 = t j 1/2 + δ j , 0 ≤ j < h .
All these values stay in [ 0 , 2 ] [0,2] [ 0 , 2 ] . Splitting the expectation in (28) according to Z 0 ≤ 1 / 2 + δ j Z_0\le1/2+\delta_j Z 0 ≤ 1/2 + δ j , and using A ≤ 1 A\le1 A ≤ 1 , yields
A ( t j + 1 ) ≥ A ( t j ) 2 2 s − Pr [ Z 0 > 1 / 2 + δ j ] . A(t_{j+1})\ge\frac{A(t_j)^2}{2s}-\Pr[Z_0>1/2+\delta_j]. A ( t j + 1 ) ≥ 2 s A ( t j ) 2 − Pr [ Z 0 > 1/2 + δ j ] .
By (27) , the subtracted term is at most
exp ( − 2 j + 1 L ) ≤ 4 s exp ( − 2 j + 1 L ) = ℓ j 2 4 s . \exp(-2^{j+1}L)\le4s\exp(-2^{j+1}L)=\frac{\ell_j^2}{4s}. exp ( − 2 j + 1 L ) ≤ 4 s exp ( − 2 j + 1 L ) = 4 s ℓ j 2 .
If A ( t j ) ≥ ℓ j A(t_j)\ge\ell_j A ( t j ) ≥ ℓ j , the main term exceeds the tail by at least
A ( t j + 1 ) ≥ ℓ j 2 2 s − ℓ j 2 4 s = ℓ j 2 4 s = ℓ j + 1 > 0. A(t_{j+1})\ge\frac{\ell_j^2}{2s}-\frac{\ell_j^2}{4s}=\frac{\ell_j^2}{4s}=\ell_{j+1}>0. A ( t j + 1 ) ≥ 2 s ℓ j 2 − 4 s ℓ j 2 = 4 s ℓ j 2 = ℓ j + 1 > 0.
Induction from A ( 2 ) ≥ η = ℓ 0 A(2) \ge\eta= \ell_0 A ( 2 ) ≥ η = ℓ 0 gives A ( t h ) > 0 A(t_h) > 0 A ( t h ) > 0 . On the other hand, ln ( 1 + 2 δ ) ≤ 2 δ \ln(1 + 2\delta) \le2\delta ln ( 1 + 2 δ ) ≤ 2 δ gives
t h = 2 1 − h / 2 ∏ j = 0 h − 1 1 + 2 δ j ≤ r 0 2 exp ( ∑ j = 0 h − 1 δ j ) < r 0 . t_h = 2^{1-h/2}\prod_{j=0}^{h-1}\sqrt{1+2\delta_j} \le\frac{r_0}{2}\exp\left(\sum_{j=0}^{h-1}\delta_j\right) < r_0. t h = 2 1 − h /2 j = 0 ∏ h − 1 1 + 2 δ j ≤ 2 r 0 exp ( j = 0 ∑ h − 1 δ j ) < r 0 .
This contradicts the zero band of A A A . Therefore (28) is false, and
s > η 4 exp ( ( d − 1 ) r 0 2 1000 ) , s > \frac{\eta}{4}\exp\left(\frac{(d-1)r_0^2}{1000}\right), s > 4 η exp ( 1000 ( d − 1 ) r 0 2 ) ,
which proves (23). This choice of thresholds is what preserves the dependence on c c c . The squared deviations δ j 2 \delta_j^2 δ j 2 grow like 2 j 2^j 2 j , exactly the growth of − ln ( ℓ j / ( 4 s ) ) -\ln(\ell_j/(4s)) − ln ( ℓ j / ( 4 s )) . Meanwhile ∑ j δ j \sum_j\delta_j ∑ j δ j stays bounded, which is enough to reach the zero band in h h h steps.
Conversion to the streaming parameters
Proof of Theorem 1.2. For d ≥ 4 d \ge4 d ≥ 4 , one has d − 1 ≥ d / 2 d-1 \ge d/2 d − 1 ≥ d /2 . The net upper bound gives d ≥ ln U / ln ( 802 g ) d \ge\ln U/\ln(802g) d ≥ ln U / ln ( 802 g ) , hence
S + ⌈ log 2 ( U + 1 ) ⌉ > η 4 U β g , β g = 2401 5000000 g 2 ln ( 802 g ) . S + \lceil\log_2(U+1)\rceil> \frac{\eta}{4}U^{\beta_g}, \qquad\beta_g = \frac{2401}{5000000g^2\ln(802g)}. S + ⌈ log 2 ( U + 1 )⌉ > 4 η U β g , β g = 5000000 g 2 ln ( 802 g ) 2401 .
Since g ≤ c + 2 ≤ 3 c g \le c+2 \le3c g ≤ c + 2 ≤ 3 c ,
β g = Ω ( 1 c 2 log ( c + 1 ) ) . \beta_g = \Omega\left(\frac{1}{c^2\log(c+1)}\right). β g = Ω ( c 2 log ( c + 1 ) 1 ) .
For fixed c c c , the logarithmic clock term is negligible compared with U β g U^{\beta_g} U β g . Setting N = U + 1 N=U+1 N = U + 1 gives the same power lower bound in maximum active cardinality, with stream length at most 2 N − 1 2N-1 2 N − 1 and dimension O c ( log N ) O_c(\log N) O c ( log N ) .
For every sufficiently large prescribed capacity N N N , rather than only the cardinalities of this hard family, choose d = ⌊ ln ( N − 1 ) / ln ( 802 g ) ⌋ d=\lfloor\ln(N-1)/\ln(802g)\rfloor d = ⌊ ln ( N − 1 ) / ln ( 802 g )⌋ . The same construction then has U ≤ N − 1 U\le N-1 U ≤ N − 1 , length at most 2 N − 1 2N-1 2 N − 1 , and d = Θ c ( log N ) d=\Theta_c(\log N) d = Θ c ( log N ) . Its lower bound exponential in d d d therefore gives N Ω ( 1 / ( c 2 log ( c + 1 ) ) ) N^{\Omega(1/(c^2\log(c+1)))} N Ω ( 1/ ( c 2 l o g ( c + 1 ))) for every such capacity. The displayed numerical exponent β g \beta_g β g above is the direct hard-family conversion; this padding statement need not preserve that exact numerical constant.
On these instances the dimension is O c ( log N ) O_c(\log N) O c ( log N ) , the coordinates have O c ( log log N ) O_c(\log\log N) O c ( log log N ) bits, and the stream has O ( N ) O(N) O ( N ) updates. Thus a standard word has O c ( log N ) O_c(\log N) O c ( log N ) bits. Dividing the information lower bound by this word length, and absorbing polylogarithmic factors into the exponent for fixed c c c , proves Theorem 1.2 .
An estimate in [ D , c D ] [D,cD] [ D , cD ] gives the convention used here upon division by c c c . For the symmetric convention [ D / c , c D ] [D/c,cD] [ D / c , cD ] , dividing by c c c gives a one-sided factor c 2 c^2 c 2 . The conclusion that every fixed factor needs polynomial space also holds under that convention.
AI Use Statement
This work resulted from extensive interaction between the authors and OpenAI Astra, with the authors providing suggestions and critically checking Astra’s responses through iterative exchanges. OpenAI Astra was also used in writing and revising the manuscript through detailed prompts from the authors, with Gemini Argon assisting in some parts. The authors directed the process and evaluated the proposed ideas and arguments. Lean files formalizing the main theorem are available on GitHub .
Appendix
Choosing the constants for factor two
We now specify all approximation and exponent parameters. The proof of Theorem 1.1 requires only strict inequalities. Here we verify one rational choice. The resulting bounds are
Space: N 1 − 10 − 10 poly ( L ) , Worst-case update: poly ( L ) . \begin{aligned}
\text{Space:}\quad&N^{1-10^{-10}}\operatorname{poly}(\mathcal{L}),\\
\text{Worst-case update:}\quad&\operatorname{poly}(\mathcal{L}).
\end{aligned} Space: Worst-case update: N 1 − 1 0 − 10 poly ( L ) , poly ( L ) .
The algorithm maintains a cached score L L L . Every nonzero score has a witness pair of current input points; an unsuccessful copy may report zero. With probability at least 1 − δ 1-\delta 1 − δ , simultaneously after every update,
L ≤ diam ( P ) < 2 L L \le\operatorname{diam}(P) < 2L L ≤ diam ( P ) < 2 L
whenever the diameter is positive; zero diameter is handled exactly. The resource bounds and the lower inequality hold on every random outcome. All constants below are fixed, independently of N N N , d d d , Δ \Delta Δ , T T T . Table 3 lists the inequalities that determine the approximation and the space saving.
Table 3. The factor-two parameter check. All parameters are fixed independently of N N N , d d d , Δ \Delta Δ , T T T . The exponent is deliberately conservative.
Geometric and recovery constants
We use the following hull parameter, radius-scale ratio, and target ratios
a = 1581 1000 , q s c a l e = 5001 5000 , λ 0 = 7903 5000 , λ = 79 50 . a=\frac{1581}{1000},\qquad q_{\mathrm{scale}}=\frac{5001}{5000},\qquad\lambda_0=\frac{7903}{5000},\qquad\lambda=\frac{79}{50}. a = 1000 1581 , q scale = 5000 5001 , λ 0 = 5000 7903 , λ = 50 79 .
They satisfy a / q s c a l e > λ 0 > λ > 2 a/q_{\mathrm{scale}}>\lambda_0>\lambda>\sqrt{2} a / q scale > λ 0 > λ > 2 and
2 a 2 − 1 = 3.999122 < 4. 2a^2-1=3.999122<4. 2 a 2 − 1 = 3.999122 < 4.
The masking slack is 1 / 20 1/20 1/20 , the radii are r 1 = 1 r_1 = 1 r 1 = 1 , r 2 = 4 / 5 r_2 = 4/5 r 2 = 4/5 , and the potential is
ϕ ( t , q ) = q exp ( ( λ − t ) 2 q − 1 ) , t 2 + q ≤ 1. \phi(t,q) = q\exp\left(\frac{(\lambda-t)^2}{q}-1\right), \qquad t^2 + q \le1. ϕ ( t , q ) = q exp ( q ( λ − t ) 2 − 1 ) , t 2 + q ≤ 1.
The following two-cap calculation shows that the first mask ϕ ≤ 21 / 20 \phi\le21/20 ϕ ≤ 21/20 lies in the radius-4 / 5 4/5 4/5 ball centered at ( 3 / 5 ) (3/5) ( 3/5 ) times the target direction, and that the second mask ϕ ≤ ( 21 / 20 ) ( 4 / 5 ) 2 \phi\le(21/20)(4/5)^2 ϕ ≤ ( 21/20 ) ( 4/5 ) 2 is empty. Indeed, F ( 3 / 5 ) > 79 / 75 > 21 / 20 F(3/5) > 79/75 > 21/20 F ( 3/5 ) > 79/75 > 21/20 , while the global potential lower bound is ϕ > 16133 / 24000 > 84 / 125 = ( 21 / 20 ) ( 4 / 5 ) 2 \phi> 16133/24000 > 84/125 = (21/20)(4/5)^2 ϕ > 16133/24000 > 84/125 = ( 21/20 ) ( 4/5 ) 2 .
For each of the two independent Gaussian-grid stages choose
ξ = 10 − 6 , δ g = 10 − 4 , β = 1023 1000 , C g = 42300 , q 0 = 1999 2000 , τ = − ln q 0 . \xi= 10^{-6}, \qquad\delta_g = 10^{-4}, \qquad\beta= \frac{1023}{1000}, \qquad C_g = 42300, \qquad q_0 = \frac{1999}{2000}, \qquad\tau= -\ln q_0. ξ = 1 0 − 6 , δ g = 1 0 − 4 , β = 1000 1023 , C g = 42300 , q 0 = 2000 1999 , τ = − ln q 0 .
The signed target-to-bulk projection gap is at least λ − t \lambda- t λ − t :
1 − ξ ( λ 0 − t ) − δ g r i ≥ ( 1 − 10 − 6 ) ( λ 0 + 1 ) − 1 − δ g − t > λ − t . \sqrt{1-\xi}(\lambda_0-t)-\delta_g r_i \ge(1-10^{-6})(\lambda_0+1)-1-\delta_g-t > \lambda-t. 1 − ξ ( λ 0 − t ) − δ g r i ≥ ( 1 − 1 0 − 6 ) ( λ 0 + 1 ) − 1 − δ g − t > λ − t .
The core-cell bound is C g k i C_g^{k_i} C g k i because 4.132 < 2 π e < 4.133 4.132 < \sqrt{2\pi e} < 4.133 4.132 < 2 π e < 4.133 and 4.133 ⋅ 10231 = 42284.723 < C g 4.133\cdot10231 = 42284.723 < C_g 4.133 ⋅ 10231 = 42284.723 < C g . A point outside the stage mask has same-cell probability at most q 0 k i / C g k i q_0^{k_i}/C_g^{k_i} q 0 k i / C g k i , since
C g δ g 2 π e 21 / 20 < 2115 / 2066 21 / 20 < 10575000 10584118 < q 0 . \frac{C_g\delta_g}{\sqrt{2\pi e}\sqrt{21/20}} < \frac{2115/2066}{\sqrt{21/20}} < \frac{10575000}{10584118} < q_0. 2 π e 21/20 C g δ g < 21/20 2115/2066 < 10584118 10575000 < q 0 .
For the conditional projected-core tail, x = β 2 / ( 1 + ξ ) − 1 x = \beta^2/(1+\xi)-1 x = β 2 / ( 1 + ξ ) − 1 lies in ( 0.0465 , 0.047 ) (0.0465, 0.047) ( 0.0465 , 0.047 ) , and its Chernoff rate satisfies
J ≥ x 2 4 ( 1 + x ) > 0.0465 2 4 ( 1.047 ) > 1 1950 > 1 1999 > τ . J \ge\frac{x^2}{4(1+x)} > \frac{0.0465^2}{4(1.047)} > \frac{1}{1950} > \frac{1}{1999} > \tau. J ≥ 4 ( 1 + x ) x 2 > 4 ( 1.047 ) 0.046 5 2 > 1950 1 > 1999 1 > τ .
Thus both terms in the first-safe-stage argument have rational decay q 0 k i q_0^{k_i} q 0 k i .
Verification of the two masks
As in the hierarchy proof, write a bulk point in its original unit ball as t u + v tu+v t u + v , with q = ∥ v ∥ 2 q = \lVert v\rVert^2 q = ∥ v ∥ 2 and t 2 + q ≤ 1 t^2 + q \le1 t 2 + q ≤ 1 , and set
ϕ ( t , q ) = q exp ( ( λ − t ) 2 q − 1 ) . \phi(t,q) = q\exp\left(\frac{(\lambda-t)^2}{q}-1\right). ϕ ( t , q ) = q exp ( q ( λ − t ) 2 − 1 ) .
Set η m a s k = 1 / 20 \eta_{\mathrm{mask}} = 1/20 η mask = 1/20 . The first mask is ϕ ≤ 21 / 20 \phi\le21/20 ϕ ≤ 21/20 . Its possible longitudinal coordinates are determined by
F ( t ) = ( 1 − t 2 ) exp ( ( λ − t ) 2 1 − t 2 − 1 ) . F(t) = (1-t^2)\exp\left(\frac{(\lambda-t)^2}{1-t^2}-1\right). F ( t ) = ( 1 − t 2 ) exp ( 1 − t 2 ( λ − t ) 2 − 1 ) .
Differentiation gives
( log F ) ′ ( t ) = 2 q ( t ) ( 1 − t 2 ) 2 , g ( t ) = t λ 2 − λ t 2 + t 3 − λ , (\log F)'(t)=\frac{2q(t)}{(1-t^2)^2}, \qquad g(t)=t\lambda^2-\lambda t^2+t^3-\lambda, ( log F ) ′ ( t ) = ( 1 − t 2 ) 2 2 q ( t ) , g ( t ) = t λ 2 − λ t 2 + t 3 − λ ,
g ′ ( t ) = ( λ − t ) 2 + 2 t 2 > 0 , g ( 3 / 5 ) = − 0.43496 < 0. g'(t)=(\lambda-t)^2+2t^2>0, \qquad g(3/5)=-0.43496<0. g ′ ( t ) = ( λ − t ) 2 + 2 t 2 > 0 , g ( 3/5 ) = − 0.43496 < 0.
Hence F F F decreases throughout ( − 1 , 3 / 5 ] (-1,3/5] ( − 1 , 3/5 ] . At its right endpoint,
F ( 3 / 5 ) = 16 25 exp ( 0.500625 ) > 16 25 ( 1 + 1 2 + 1 8 + 1 48 ) = 79 75 > 21 20 . F(3/5)=\frac{16}{25}\exp(0.500625)>\frac{16}{25}\left(1+\frac{1}{2}+\frac{1}{8}+\frac{1}{48}\right)=\frac{79}{75}>\frac{21}{20}. F ( 3/5 ) = 25 16 exp ( 0.500625 ) > 25 16 ( 1 + 2 1 + 8 1 + 48 1 ) = 75 79 > 20 21 .
Therefore every first-mask point has t > 3 / 5 t>3/5 t > 3/5 . The entire spherical cap t ≥ 3 / 5 t\ge3/5 t ≥ 3/5 , t 2 + q ≤ 1 t^2+q\le1 t 2 + q ≤ 1 , lies in B ( ( 3 / 5 ) u , 4 / 5 ) B((3/5)u,4/5) B (( 3/5 ) u , 4/5 ) . This is the analysis-only ball for the second level.
The second mask is empty. Indeed,
( λ − t ) 2 − q ≥ m : = λ 2 / 2 − 1 = 1241 5000 . (\lambda-t)^2-q\ge m:=\lambda^2/2-1=\frac{1241}{5000}. ( λ − t ) 2 − q ≥ m := λ 2 /2 − 1 = 5000 1241 .
and thus
ϕ ( t , q ) ≥ q e m / q ≥ e m . \phi(t,q)\ge q e^{m/q}\ge em. ϕ ( t , q ) ≥ q e m / q ≥ e m .
The last inequality follows by minimizing q e m / q q e^{m/q} q e m / q over q > 0 q>0 q > 0 , whose minimum is at q = m q=m q = m . Since e > 1 + 1 + 1 / 2 + 1 / 6 + 1 / 24 = 65 / 24 e>1+1+1/2+1/6+1/24=65/24 e > 1 + 1 + 1/2 + 1/6 + 1/24 = 65/24 ,
e m > 16133 24000 > 84 125 = ( 1 + η m a s k ) r 2 2 . em>\frac{16133}{24000}>\frac{84}{125}=(1+\eta_{\mathrm{mask}})r_2^2. e m > 24000 16133 > 125 84 = ( 1 + η mask ) r 2 2 .
This proves the two-stage terminal condition with explicit slack.
Coupling the earlier density with the actual later core radius
For a normalized original-ball point z = t u + v z=tu+v z = t u + v , let u u u be the target direction, q = ∥ v ∥ 2 q=\lVert v\rVert^2 q = ∥ v ∥ 2 , t 2 + q ≤ 1 t^2+q\le1 t 2 + q ≤ 1 , and write ϕ = ϕ ( t , q ) \phi=\phi(t,q) ϕ = ϕ ( t , q ) . Set
D 0 = C g δ g 2 π e < 1.024 , σ ( ϕ ) = max { 0 , ln ( D 0 / ϕ ) } . D_0=\frac{C_g\delta_g}{\sqrt{2\pi e}}<1.024,\qquad\sigma(\phi)=\max\{0,\ln(D_0/\sqrt{\phi})\}. D 0 = 2 π e C g δ g < 1.024 , σ ( ϕ ) = max { 0 , ln ( D 0 / ϕ )} .
The conditional same-cell probability at stage i i i is at most C g − k i ( D 0 r i / ϕ ) k i C_g^{-k_i}(D_0r_i/\sqrt{\phi})^{k_i} C g − k i ( D 0 r i / ϕ ) k i . The global potential lower bound ϕ > 84 / 125 \phi>84/125 ϕ > 84/125 , together with D 0 < 128 / 125 D_0<128/125 D 0 < 128/125 and ( 128 / 125 ) 2 < ( 5 / 4 ) 2 ( 84 / 125 ) (128/125)^2<(5/4)^2(84/125) ( 128/125 ) 2 < ( 5/4 ) 2 ( 84/125 ) , gives σ ( ϕ ) < ln ( 5 / 4 ) < 9 / 40 \sigma(\phi)<\ln(5/4)<9/40 σ ( ϕ ) < ln ( 5/4 ) < 9/40 . We set A 0 = 200 A_0=200 A 0 = 200 and let B i B_i B i be the least power of two at least A 0 C g k i A_0C_g^{k_i} A 0 C g k i . Conditional on A 1 u A_1u A 1 u in its prescribed norm range, the first-stage pass probability is at most
C B 1 e σ ( ϕ ) k 1 . \frac{C}{B_1}e^{\sigma(\phi)k_1}. B 1 C e σ ( ϕ ) k 1 .
Indeed, distinct cells pass with probability 1 / B 1 1/B_1 1/ B 1 , while a shared cell contributes at most C g − k 1 e σ ( ϕ ) k 1 C_g^{-k_1}e^{\sigma(\phi)k_1} C g − k 1 e σ ( ϕ ) k 1 . This gives C = 401 C=401 C = 401 uniformly. The exponent will be paired with the tail probability at the point’s actual distance from the second core center.
Two sharper lower bounds for the potential. For every real w w w , the inequality e x ≥ 1 + x e^x \ge1+x e x ≥ 1 + x implies
q e ( λ − t ) 2 / q − 1 ≥ e w ( ( λ − t ) 2 − w q ) . q e^{(\lambda-t)^2/q-1} \ge e^w\bigl((\lambda-t)^2-wq\bigr). q e ( λ − t ) 2 / q − 1 ≥ e w ( ( λ − t ) 2 − w q ) .
Taking w = 7 / 8 w=7/8 w = 7/8 , using q ≤ 1 − t 2 q\le1-t^2 q ≤ 1 − t 2 , and minimizing the resulting quadratic in t t t gives
ϕ ≥ e 7 / 8 7 8 ( λ 2 15 / 8 − 1 ) > 119 50 21749 75000 = 2588131 3750000 > 69 100 . \phi\ge e^{7/8}\frac{7}{8}\left(\frac{\lambda^2}{15/8}-1\right)>\frac{119}{50}\frac{21749}{75000}=\frac{2588131}{3750000}>\frac{69}{100}. ϕ ≥ e 7/8 8 7 ( 15/8 λ 2 − 1 ) > 50 119 75000 21749 = 3750000 2588131 > 100 69 .
For completeness, e 7 / 8 > 119 / 50 e^{7/8}>119/50 e 7/8 > 119/50 follows by retaining the first five nonnegative terms of its Taylor series.
Also, q ↦ ϕ ( t , q ) q\mapsto\phi(t,q) q ↦ ϕ ( t , q ) decreases on 0 < q ≤ 1 − t 2 0<q\le1-t^2 0 < q ≤ 1 − t 2 , because ( λ − t ) 2 − q ≥ λ 2 / 2 − 1 > 0 (\lambda-t)^2-q\ge\lambda^2/2-1>0 ( λ − t ) 2 − q ≥ λ 2 /2 − 1 > 0 . The identity
( λ − t ) 2 − ( λ 2 − 1 ) ( 1 − t 2 ) = ( λ t − 1 ) 2 (\lambda-t)^2-(\lambda^2-1)(1-t^2)=(\lambda t-1)^2 ( λ − t ) 2 − ( λ 2 − 1 ) ( 1 − t 2 ) = ( λ t − 1 ) 2
therefore gives
ϕ ≥ e λ 2 − 2 ( 1 − t 2 ) > 41 25 ( 1 − t 2 ) . (30) \phi\ge e^{\lambda^2-2}(1-t^2)>\frac{41}{25}(1-t^2). \tag*{(30)} ϕ ≥ e λ 2 − 2 ( 1 − t 2 ) > 25 41 ( 1 − t 2 ) . (30)
The last strict inequality follows, for example, from λ 2 − 2 = 0.4964 > 0.495 \lambda^2-2=0.4964>0.495 λ 2 − 2 = 0.4964 > 0.495 and the first five Taylor terms of e 0.495 e^{0.495} e 0.495 , whose sum exceeds 1.6402 > 41 / 25 1.6402>41/25 1.6402 > 41/25 .
The actual distance from the second-core center. Consider a point in the second departure class G 2 G_2 G 2 . The first-mask geometry already proves t > 0.6 t>0.6 t > 0.6 . Its actual squared distance from the second-core center is
v ∗ 2 = ( t − 0.6 ) 2 + q ≤ 1.36 − 1.2 t < 0.64. v_*^2=(t-0.6)^2+q\le1.36-1.2t<0.64. v ∗ 2 = ( t − 0.6 ) 2 + q ≤ 1.36 − 1.2 t < 0.64.
Put
f ∗ = ( 41 / 25 ) ( 16 / 25 ) = 1.0496 , u ∗ = ( f ∗ − ϕ ) + . f_*=(41/25)(16/25)=1.0496,\qquad u_*=(f_*-\phi)_+. f ∗ = ( 41/25 ) ( 16/25 ) = 1.0496 , u ∗ = ( f ∗ − ϕ ) + .
When ϕ ≤ f ∗ \phi\le f_* ϕ ≤ f ∗ , (30) and t > 0 t>0 t > 0 imply
v ∗ 2 ≤ h ( ϕ ) : = 1.36 − 1.2 1 − ϕ / 1.64 . v_*^2\le h(\phi):=1.36-1.2\sqrt{1-\phi/1.64}. v ∗ 2 ≤ h ( ϕ ) := 1.36 − 1.2 1 − ϕ /1.64 .
Here h ( f ∗ ) = 0.64 h(f_*)=0.64 h ( f ∗ ) = 0.64 , and throughout 0.69 < ϕ ≤ f ∗ 0.69<\phi\le f_* 0.69 < ϕ ≤ f ∗ ,
h ′ ( ϕ ) = 0.6 1.64 1 − ϕ / 1.64 > 0.6 1.64 ( 0.77 ) > 0.47. h'(\phi)=\frac{0.6}{1.64\sqrt{1-\phi/1.64}}>\frac{0.6}{1.64(0.77)}>0.47. h ′ ( ϕ ) = 1.64 1 − ϕ /1.64 0.6 > 1.64 ( 0.77 ) 0.6 > 0.47.
The bound 1 − 0.69 / 1.64 < 0.77 \sqrt{1-0.69/1.64}<0.77 1 − 0.69/1.64 < 0.77 follows by squaring. For ϕ > f ∗ \phi>f_* ϕ > f ∗ use the independent inequality v ∗ 2 < 0.64 v_*^2<0.64 v ∗ 2 < 0.64 . Both cases give the uniform pointwise estimate
v ∗ 2 ≤ 0.64 − 0.47 u ∗ . (31) v_*^2\le0.64-0.47u_*. \tag*{(31)} v ∗ 2 ≤ 0.64 − 0.47 u ∗ . (31)
Because D 0 2 < 1.048576 < f ∗ D_0^2<1.048576<f_* D 0 2 < 1.048576 < f ∗ , the prior exponent vanishes when ϕ ≥ f ∗ \phi\ge f_* ϕ ≥ f ∗ . Otherwise ln ( 1 + x ) ≤ x \ln(1+x)\le x ln ( 1 + x ) ≤ x and ϕ > 0.69 \phi>0.69 ϕ > 0.69 give
σ ( ϕ ) ≤ 1 2 ln ( f ∗ / ϕ ) ≤ f ∗ − ϕ 2 ϕ < 0.75 u ∗ . (32) \sigma(\phi)\le\frac{1}{2}\ln(f_*/\phi)\le\frac{f_*-\phi}{2\phi}<0.75u_*. \tag*{(32)} σ ( ϕ ) ≤ 2 1 ln ( f ∗ / ϕ ) ≤ 2 ϕ f ∗ − ϕ < 0.75 u ∗ . (32)
A norm-tail rate using the actual radius. We condition on the second-stage target-axis norm event. Write g = A 2 u g=A_2u g = A 2 u ; then ∥ g ∥ 2 ≤ ( 1 + ξ ) k 2 \lVert g\rVert^2\le(1+\xi)k_2 ∥ g ∥ 2 ≤ ( 1 + ξ ) k 2 and
A 2 ( z − 0.6 u ) = ( t − 0.6 ) g + q Z , Z ∼ N ( 0 , I k 2 ) . A_2(z-0.6u)=(t-0.6)g+\sqrt{q}\,Z,\qquad Z\sim N(0,I_{k_2}). A 2 ( z − 0.6 u ) = ( t − 0.6 ) g + q Z , Z ∼ N ( 0 , I k 2 ) .
For v ∗ > 0 v_\ast>0 v ∗ > 0 , apply the calculation of § 6.2 to ( z − 0.6 u ) / v ∗ (z-0.6u)/v_\ast ( z − 0.6 u ) / v ∗ . The squared projected norm has moment-generating function bounded by that of ( 1 + ξ ) v ∗ 2 χ k 2 2 (1+\xi)v_\ast^2\chi_{k_2}^2 ( 1 + ξ ) v ∗ 2 χ k 2 2 . Thus, for
a 0 = β 2 r 2 2 1 + ξ , 0.6697 < a 0 < 0.67 , a_0=\frac{\beta^2r_2^2}{1+\xi},\qquad0.6697<a_0<0.67, a 0 = 1 + ξ β 2 r 2 2 , 0.6697 < a 0 < 0.67 ,
the probability of lying outside the projected second core is at most exp ( − J ∗ k 2 ) \exp(-J_\ast k_2) exp ( − J ∗ k 2 ) , where, for v ∗ 2 > 0 v_\ast^2>0 v ∗ 2 > 0 ,
J ∗ = 1 2 [ a 0 v ∗ 2 − 1 − ln a 0 v ∗ 2 ] ≥ ( a 0 − v ∗ 2 ) 2 4 a 0 v ∗ 2 ≥ J ^ ( u ∗ ) : = ( 0.0297 + 0.47 u ∗ ) 2 1.7152 . J_\ast=\frac{1}{2}\left[\frac{a_0}{v_\ast^2}-1-\ln\frac{a_0}{v_\ast^2}\right]\ge\frac{(a_0-v_\ast^2)^2}{4a_0v_\ast^2}\ge\widehat{J}(u_\ast):=\frac{(0.0297+0.47u_\ast)^2}{1.7152}. J ∗ = 2 1 [ v ∗ 2 a 0 − 1 − ln v ∗ 2 a 0 ] ≥ 4 a 0 v ∗ 2 ( a 0 − v ∗ 2 ) 2 ≥ J ( u ∗ ) := 1.7152 ( 0.0297 + 0.47 u ∗ ) 2 .
When v ∗ 2 = 0 v_\ast^2=0 v ∗ 2 = 0 , the projected point is at the core center and the tail probability is exactly zero, so the same upper bound with J ^ \widehat{J} J remains valid. The latter finite function is used in all rounding estimates below; no unbounded rate is needed.
In particular,
J ^ ( u ∗ ) ≥ 0.0297 2 1.7152 > 1 1950 . \widehat{J}(u_\ast)\ge\frac{0.0297^2}{1.7152}>\frac{1}{1950}. J ( u ∗ ) ≥ 1.7152 0.029 7 2 > 1950 1 .
The elementary square inequality gives
( 0.0297 + 0.47 u ∗ ) 2 ≥ 4 ( 0.0297 ) ( 0.47 ) u ∗ . (0.0297+0.47u_\ast)^2\ge4(0.0297)(0.47)u_\ast. ( 0.0297 + 0.47 u ∗ ) 2 ≥ 4 ( 0.0297 ) ( 0.47 ) u ∗ .
Since
0.75 ( 1.7152 ) = 1.2864 < 24 ⋅ 4 ( 0.0297 ) ( 0.47 ) = 1.340064 , 0.75(1.7152)=1.2864<24\cdot4(0.0297)(0.47)=1.340064, 0.75 ( 1.7152 ) = 1.2864 < 24 ⋅ 4 ( 0.0297 ) ( 0.47 ) = 1.340064 ,
(32) implies the key coupled bound
σ ( ϕ ) < 24 J ^ ( u ∗ ) . (33) \sigma(\phi)<24\widehat{J}(u_\ast). \tag*{(33)} σ ( ϕ ) < 24 J ( u ∗ ) . (33)
It holds also when u ∗ = 0 u_\ast=0 u ∗ = 0 , since then σ = 0 \sigma=0 σ = 0 and J ^ > 0 \widehat{J}>0 J > 0 .
Combining the two independent stages. The second-stage same-cell term has a separate stronger uniform rate:
D 0 r 2 ϕ < 1.024 ( 0.8 ) 0.69 < 0.99. \frac{D_0r_2}{\sqrt{\phi}}<\frac{1.024(0.8)}{\sqrt{0.69}}<0.99. ϕ D 0 r 2 < 0.69 1.024 ( 0.8 ) < 0.99.
The last comparison is equivalent to 0.67108864 < 0.676269 0.67108864<0.676269 0.67108864 < 0.676269 . Put ν c e l l = − ln ( 0.99 ) > 1 / 100 \nu_{\mathrm{cell}}=-\ln(0.99)>1/100 ν cell = − ln ( 0.99 ) > 1/100 . On second-core isolation, a G 2 G_2 G 2 point passes stage two only by sharing the target cell or by being a projected tail point whose different cell hashes to the target bucket. Therefore its probability of reaching the target leaf while both isolation events hold is at most
C B 1 B 2 [ e σ ( ϕ ) k 1 − ν c e l l k 2 + e σ ( ϕ ) k 1 − J ^ ( u ∗ ) k 2 ] . \frac{C}{B_1B_2}\left[e^{\sigma(\phi)k_1-\nu_{\mathrm{cell}}k_2}+e^{\sigma(\phi)k_1-\widehat{J}(u_\ast)k_2}\right]. B 1 B 2 C [ e σ ( ϕ ) k 1 − ν cell k 2 + e σ ( ϕ ) k 1 − J ( u ∗ ) k 2 ] .
The first-stage factor bounds passage without imposing first-stage isolation. Independence of the two stage seeds permits the multiplication after conditioning only on their separate axis norm events. No conditioning on the isolation event is used.
We take G = 32 G=32 G = 32 and
k 1 = ⌈ θ ln ( N + 2 ) ⌉ , k 2 = ⌈ 32 θ ln ( N + 2 ) ⌉ . k_1=\lceil\theta\ln(N+2)\rceil,\qquad k_2=\lceil32\theta\ln(N+2)\rceil. k 1 = ⌈ θ ln ( N + 2 )⌉ , k 2 = ⌈ 32 θ ln ( N + 2 )⌉ .
Uniformly over the second class,
32 ν c e l l − σ > 0.32 − 0.225 = 0.095 > τ / 2 , 32\nu_{\mathrm{cell}}-\sigma> 0.32-0.225=0.095>\tau/2, 32 ν cell − σ > 0.32 − 0.225 = 0.095 > τ /2 ,
32 J ^ − σ > 8 J ^ > 8 / 1950 > τ / 2. 32\widehat{J}-\sigma>8\widehat{J}>8/1950>\tau/2. 32 J − σ > 8 J > 8/1950 > τ /2.
The ceiling in k 1 k_1 k 1 costs at most a factor e σ < 5 / 4 e^\sigma<5/4 e σ < 5/4 ; the ceiling in k 2 k_2 k 2 only improves the bound. Hence both terms are O ( N − τ θ / 2 ) / ( B 1 B 2 ) O(N^{-\tau\theta/2})/(B_1B_2) O ( N − τ θ /2 ) / ( B 1 B 2 ) with a uniform constant, including the case of zero actual core radius. The first departure class retains its earlier O ( N − τ θ ) / ( B 1 B 2 ) O(N^{-\tau\theta})/(B_1B_2) O ( N − τ θ ) / ( B 1 B 2 ) bound.
The same indicator-weighted Markov argument, with norm and isolation failures charged separately, consequently yields
B 1 B 2 K ≤ C [ B 1 B 2 ( b + 1 ) + N 1 − ϵ 0 ] , ϵ 0 = τ θ / 2. B_1B_2K\le C\left[B_1B_2(b+1)+N^{1-\epsilon_0}\right],\qquad\epsilon_0=\tau\theta/2. B 1 B 2 K ≤ C [ B 1 B 2 ( b + 1 ) + N 1 − ϵ 0 ] , ϵ 0 = τ θ /2.
For an entirely rational capacity parameter, take
K = ⌈ C ′ [ b + 1 + N q 0 ⌊ k 1 / 2 ⌋ B 1 B 2 ] ⌉ (34) K=\left\lceil C'\left[b+1+\frac{Nq_0^{\lfloor k_1/2\rfloor}}{B_1B_2}\right]\right\rceil \tag*{(34)} K = ⌈ C ′ [ b + 1 + B 1 B 2 N q 0 ⌊ k 1 /2 ⌋ ] ⌉ (34)
with the explicit constant C ′ = 10 9 C'=10^9 C ′ = 1 0 9 . To verify this choice, the first-stage pass coefficient is at most 401, and the two second-stage coefficients are at most 400 and 1. Each exponential product is at most 2 q 0 ⌊ k 1 / 2 ⌋ 2q_0^{\lfloor k_1/2\rfloor} 2 q 0 ⌊ k 1 /2 ⌋ , including the ceilings and an upward logarithm approximation within one. The sum of both departure-class bounds is therefore at most 3 ⋅ 401 2 < 10 6 3\cdot401^2<10^6 3 ⋅ 40 1 2 < 1 0 6 times N q 0 ⌊ k 1 / 2 ⌋ / ( B 1 B 2 ) Nq_0^{\lfloor k_1/2\rfloor}/(B_1B_2) N q 0 ⌊ k 1 /2 ⌋ / ( B 1 B 2 ) . Markov’s inequality with capacity coefficient 10 9 10^9 1 0 9 gives failure probability at most 10 − 3 10^{-3} 1 0 − 3 . Indeed, q 0 ⌊ k 1 / 2 ⌋ q_0^{\lfloor k_1/2\rfloor} q 0 ⌊ k 1 /2 ⌋ differs from exp ( − τ θ ln ( N + 2 ) / 2 ) \exp(-\tau\theta\ln(N+2)/2) exp ( − τ θ ln ( N + 2 ) /2 ) by at most a fixed factor, so this capacity dominates the required load on the same success event and has the displayed total-space exponent. All its inputs are finite integers or rational constants. More explicitly, for t 0 = θ ln ( N + 2 ) t_0=\theta\ln(N+2) t 0 = θ ln ( N + 2 ) and k 1 = ⌈ t 0 ⌉ k_1=\lceil t_0\rceil k 1 = ⌈ t 0 ⌉ , the difference ∣ ⌊ k 1 / 2 ⌋ − t 0 / 2 ∣ \lvert\lfloor k_1/2\rfloor-t_0/2\rvert ∣⌊ k 1 /2 ⌋ − t 0 /2 ∣ is at most 1 / 2 1/2 1/2 , giving a factor between q 0 1 / 2 q_0^{1/2} q 0 1/2 and q 0 − 1 / 2 q_0^{-1/2} q 0 − 1/2 . Bounded-error rational logarithm approximations add only another fixed factor. This pointwise argument replaces the product of two unrelated worst cases; it does not change any maintained sketches or their updates.
The power-of-two bucket counts used in the coefficients above admit the affine binary hashes of Appendix § 12 .§ 2 .
An explicit preprocessing exponent of 2000
Take
κ = 109 100 , b 0 = 27 25 , ν = 1 10000 , ϵ 0 = 1 400 . \kappa=\frac{109}{100},\qquad b_0=\frac{27}{25},\qquad\nu=\frac{1}{10000},\qquad\epsilon_0=\frac{1}{400}. κ = 100 109 , b 0 = 25 27 , ν = 10000 1 , ϵ 0 = 400 1 .
Then
κ ( 1 − ν − 2 ϵ 0 ) = 1.084441 > 1.0801 = b 0 + ν , \kappa(1-\nu-2\epsilon_0)=1.084441>1.0801=b_0+\nu, κ ( 1 − ν − 2 ϵ 0 ) = 1.084441 > 1.0801 = b 0 + ν ,
so the approximation condition holds with fixed slack. Moreover,
I ( b 0 ) ≥ 0.1664 2 4 ( 1.1664 ) > 1 170 , I(b_0)\ge\frac{0.1664^2}{4(1.1664)}>\frac{1}{170}, I ( b 0 ) ≥ 4 ( 1.1664 ) 0.166 4 2 > 170 1 ,
because 0.02768896 ⋅ 170 = 4.7071232 > 4.6656 0.02768896\cdot170=4.7071232>4.6656 0.02768896 ⋅ 170 = 4.7071232 > 4.6656 . Choose
k = 120 ⌈ log 2 ( 240 m ) ⌉ . k=120\left\lceil\log_2(240m)\right\rceil. k = 120 ⌈ log 2 ( 240 m ) ⌉ .
Since ln 2 < 0.7 \ln2 < 0.7 ln 2 < 0.7 , we have k I ( b 0 ) > ( 120 / 119 ) ln ( 240 m ) kI(b_0) > (120/119)\ln(240m) k I ( b 0 ) > ( 120/119 ) ln ( 240 m ) ; the simultaneous ideal upper-tail failure for the m m m query vectors is at most 1 / 240 1/240 1/240 .
A near query has ∥ q − s 0 ∥ < ( 100 / 9 ) D \lVert q-s_0\rVert< (100/9)D ∥ q − s 0 ∥ < ( 100/9 ) D . Its rounded projected site lies at distance less than
1.0801 ( 100 / 9 ) D + D / 800 < 13 D 1.0801(100/9)D + D/800 < 13D 1.0801 ( 100/9 ) D + D /800 < 13 D
from A ~ s 0 \widetilde{A}_{s_0} A s 0 . We use a rational table radius between 13 D 13D 13 D and 14 D 14D 14 D . The grid-step bounds then make every table key satisfy ∥ j ∥ ≤ 11200 k \lVert j\rVert\le11200\sqrt{k} ∥ j ∥ ≤ 11200 k . At enumeration depth i i i , disjoint unit cubes around feasible integer prefixes lie in an i i i -dimensional ball of radius 11200 k + i / 2 11200\sqrt{k}+\sqrt{i}/2 11200 k + i /2 . The volume bound v i ≤ ( 2 π e / i ) i / 2 v_i \le(2\pi e/i)^{i/2} v i ≤ ( 2 π e / i ) i /2 and 2 π e < 4.14 \sqrt{2\pi e}<4.14 2 π e < 4.14 give at most
( 50000 k / i ) i ≤ 50000 k e k / ( 2 e ) \left(50000\sqrt{k/i}\right)^i \le50000^k e^{k/(2e)} ( 50000 k / i ) i ≤ 5000 0 k e k / ( 2 e )
prefixes, where i ln ( k / i ) ≤ k / e i\ln(k/i)\le k/e i ln ( k / i ) ≤ k / e was used. Since e > 8 / 3 e>8/3 e > 8/3 and ln ( 5 / 4 ) ≥ 1 / 5 > 3 / 16 \ln(5/4)\ge1/5>3/16 ln ( 5/4 ) ≥ 1/5 > 3/16 ,
50000 e 1 / ( 2 e ) < 62500 < 65536 = 2 16 . 50000e^{1/(2e)}<62500<65536=2^{16}. 50000 e 1/ ( 2 e ) < 62500 < 65536 = 2 16 .
All prefixes can therefore be enumerated in ( k + 1 ) 2 16 k (k+1)2^{16k} ( k + 1 ) 2 16 k steps up to polynomial factors, and
2 16 k ≤ 2 1920 ( 240 m ) 1920 = C m 1920 . 2^{16k}\le2^{1920}(240m)^{1920}=Cm^{1920}. 2 16 k ≤ 2 1920 ( 240 m ) 1920 = C m 1920 .
One sample scan per grid site adds one factor of m m m . Exact sample diameter computation and all coordinate and key arithmetic fit the same bound. Thus the deliberately rounded preprocessing exponent
B κ = 2000 (35) B_\kappa=2000 \tag*{(35)} B κ = 2000 (35)
is valid. Remaining factors are polynomial in d d d , log m \log m log m , log Δ \log\Delta log Δ , b q b_q b q and the logarithmic repetition parameter. The query time remains polynomial in these parameters, and every returned point is an actual member of S S S .
Oracle and cached score
We take the candidate-certificate accuracy η i n = 1 / 100 \eta_{\mathrm{in}}=1/100 η in = 1/100 . At each valid active node center c c c with variance V V V , query the frozen sample’s static 1.09 farthest-point oracle. If it returns s ∗ ∈ S s_\ast\in S s ∗ ∈ S , score the actual pair
max z an anchor ∥ z − s ∗ ∥ . \max_{\substack{z\ \text{an anchor}}}\lVert z-s_\ast\rVert. z an anchor max ∥ z − s ∗ ∥ .
This squared score is at least V + ∥ c − s ∗ ∥ 2 V+\lVert c-s_\ast\rVert^2 V + ∥ c − s ∗ ∥ 2 . The center-query variance argument therefore gives squared mixed-case factor
( 1 + η i n ) 2 + a 2 ( 1.09 ) 2 = 3.9898284241 < 3.999122. (1+\eta_{\mathrm{in}})^2+a^2(1.09)^2=3.9898284241<3.999122. ( 1 + η in ) 2 + a 2 ( 1.09 ) 2 = 3.9898284241 < 3.999122.
Both-inside-hull pairs have squared factor 2 a 2 − 1 = 3.999122 2a^2-1=3.999122 2 a 2 − 1 = 3.999122 . Both-outside pairs have squared factor ( 1 + η i n ) 2 + 1 = 2.0201 (1+\eta_{\mathrm{in}})^2+1=2.0201 ( 1 + η in ) 2 + 1 = 2.0201 . Thus the hull factor remains the largest, and it is strictly below two. Thus the choices proved in (35) and (22) apply to every center comparison in Algorithm 1.
Sample exponent, deadlines, and final space exponent
We choose the rational exponents and dimension ratio
s = 1 2003 , ρ = s 2 , G = 32 , θ = ρ 12 ( G + 1 ) . s = \frac{1}{2003}, \qquad\rho= \frac{s}{2}, \qquad G = 32, \qquad\theta= \frac{\rho}{12(G+1)}. s = 2003 1 , ρ = 2 s , G = 32 , θ = 12 ( G + 1 ) ρ .
We maintain a live sample of rate at most N s − 1 N^{s-1} N s − 1 , freeze it at global intervals H e p o c h = max { 1 , ⌊ N 1 − s / 100 ⌋ } H_{\mathrm{epoch}} = \max\{1,\lfloor N^{1-s}/100\rfloor\} H epoch = max { 1 , ⌊ N 1 − s /100 ⌋} , and build its oracle over one interval before serving it for the next. The sample cap and ball-net theorem give b = N 1 − s b = N^{1-s} b = N 1 − s poly exceptions; the additional at most 2 H e p o c h 2H_{\mathrm{epoch}} 2 H epoch intervening updates have the same order and are included in b b b . The bounded-N N N convention applies when N 1 − s < 100 N^{1-s} < 100 N 1 − s < 100 . In a finite implementation the sampling probability may be a dyadic number between N s − 1 / 4 N^{s-1}/4 N s − 1 /4 and N s − 1 N^{s-1} N s − 1 , obtained from the integer binary length of N N N and the rational constant s s s . This multiplies the exception bound by at most four, preserves the sample-size upper bound and survival probability, and changes no exponent. The epoch length can be computed by integer-power comparisons because s s s is rational.
Set
k 1 = ⌈ θ ln ( N + 2 ) ⌉ , k 2 = ⌈ G θ ln ( N + 2 ) ⌉ . k_1 = \lceil\theta\ln(N+2)\rceil, \qquad k_2 = \lceil G\theta\ln(N+2)\rceil. k 1 = ⌈ θ ln ( N + 2 )⌉ , k 2 = ⌈ Gθ ln ( N + 2 )⌉ .
Rational upper approximations to the logarithm within additive one may be used before taking these ceilings. This changes dimensions only by fixed constants. The bucket product is O ( N ρ ) O(N^\rho) O ( N ρ ) because θ ( G + 1 ) ln C g < ρ \theta(G+1)\ln C_g < \rho θ ( G + 1 ) ln C g < ρ , using ln C g < 11 < 12 \ln C_g < 11 < 12 ln C g < 11 < 12 . The pointwise coupling just proved supplies exponent saving
ϵ 0 = τ θ 2 > 1 96000 ⋅ 2003 ⋅ 33 = 1 6345504000 > 10 − 10 . \epsilon_0 = \frac{\tau\theta}{2} > \frac{1}{96000\cdot2003\cdot33} = \frac{1}{6345504000} > 10^{-10}. ϵ 0 = 2 τ θ > 96000 ⋅ 2003 ⋅ 33 1 = 6345504000 1 > 1 0 − 10 .
The remaining space exponents are
s B κ = 2000 2003 , 1 − s + ρ = 1 − 1 4006 . sB_\kappa= \frac{2000}{2003}, \qquad1-s+\rho= 1-\frac{1}{4006}. s B κ = 2003 2000 , 1 − s + ρ = 1 − 4006 1 .
All three are strictly smaller than 1 − 10 − 10 1-10^{-10} 1 − 1 0 − 10 . Oracle construction fits a global epoch with polynomial work per original update because
s ( B κ + 1 ) − 1 = − 2 2003 < 0. s(B_\kappa+1)-1 = -\frac{2}{2003} < 0. s ( B κ + 1 ) − 1 = − 2003 2 < 0.
Substituting these exponents into (3) and the per-update bound (10) proves the explicit factor-two claim. All repetitions, local reconstructions and finite-precision costs enter through the polynomial factors.
Bounded-precision implementation
The Gaussian arguments can be implemented with a prescribed finite number of random bits and a worst-case polynomial amount of arithmetic. For the recovery grids we couple the implementation to the ideal continuous construction so that every streamed point has exactly the same cell identifier. The static farthest-point oracle instead needs only a uniform bound on the perturbation of projected distances. Its lookup cells need not agree with an ideal lookup table.
Throughout this section the stream is fixed independently of the algorithm’s random seeds. This is the same oblivious-stream assumption as in the upper theorem. All arithmetic on the resulting rational coordinates, grid indices, and original squared distances is exact.
Budgets and the number of quantities to approximate
Recall that ∣ p j ∣ ≤ Δ \lvert p_j\rvert\le\Delta ∣ p j ∣ ≤ Δ for every input coordinate. Now let ℓ min > 0 \ell_{\min} > 0 ℓ m i n > 0 be a known lower bound on every recovery-grid side length. The grids in the construction have rational side lengths
ℓ i = δ g r i w , \ell_i = \delta_g r_i w, ℓ i = δ g r i w ,
where w w w belongs to the prescribed finite rational scale list. The encodings of the scale parameters and the magnitude of log ( 1 / ℓ min ) \log(1/\ell_{\min}) log ( 1/ ℓ m i n ) are polynomially bounded in the input parameters.
Let K K K be an upper bound on the total number of scalar grid rows, counting a row again if it is used at a different scale or with a different shift. There are at most T T T point identities appearing in a stream of T T T updates, even when an identity is deleted and reinserted. Consequently
E = max { 1 , T K } E = \max\{1,TK\} E = max { 1 , T K }
is a sufficient bound on the number of scalar point/grid membership tests that need to be preserved. One may union-bound over every input identity and every maintained grid, whether that particular pair is ever evaluated or not.
Let R ≥ 1 R \ge1 R ≥ 1 bound the number of independent scalar Gaussian entries generated throughout the computation, including the static-oracle maps in every frozen-sample generation and every repetition. Such a bound is known in advance. Recovery matrices are shared by all leaves at their stage; they are not generated separately for every leaf. There are polynomially many recovery matrices in the logarithmic parameters. Every static sample generation uses polynomially many maps, each with d O ( log N ) d\,O(\log N) d O ( log N ) entries, and there are at most T + 1 T+1 T + 1 generations per copy. Enumerating its large lookup table draws no additional Gaussian entries. Thus a sufficiently generous bound is
R ≤ ( N + T + d + 2 ) C ( 1 + log Δ + log ( 1 / δ ) ) C R \le(N+T+d+2)^C(1+\log\Delta+\log(1/\delta))^C R ≤ ( N + T + d + 2 ) C ( 1 + log Δ + log ( 1/ δ ) ) C
for a fixed constant C C C depending only on the fixed approximation parameters. The relevant fact is that log R \log R log R is polynomial in the allowed dimension and logarithmic parameters. Using a larger bound only increases precision logarithmically.
Gaussian maps can be indexed by their copy, scale, stage, and sample generation, reserving the largest allowed row count and ignoring unused rows. This supplies a fixed family of at most R R R entries to couple. The structural update schedule never depends on a static oracle’s returned answer. Alternatively, fresh entries can be drawn sequentially with the same deterministic upper bound on their number; the conditional union bound below is unchanged.
Generating a rounded Gaussian with bounded work
Fix an entry error h = 2 − b h=2^{-b} h = 2 − b , b ≥ 1 b \ge1 b ≥ 1 , and a desired failure budget ε c p l ∈ ( 0 , 1 ) \varepsilon_{\mathrm{cpl}} \in(0,1) ε cpl ∈ ( 0 , 1 ) . Put
L = ⌈ log 2 ( 8 R / ε c p l ) ⌉ , M = ⌈ 2 L ⌉ . L = \left\lceil\log_2(8R/\varepsilon_{\mathrm{cpl}})\right\rceil,\qquad M = \left\lceil\sqrt{2L}\right\rceil. L = ⌈ log 2 ( 8 R / ε cpl ) ⌉ , M = ⌈ 2 L ⌉ .
Only integer comparisons are needed to obtain these upper bounds. For a standard Gaussian G G G ,
Pr [ ∣ G ∣ > M ] ≤ 2 e − M 2 / 2 ≤ 2 2 − 2 L ≤ ε c p l / ( 4 R ) . \Pr[\lvert G\rvert> M] \le2e^{-M^2/2} \le2\,2^{-2L} \le\varepsilon_{\mathrm{cpl}}/(4R). Pr [∣ G ∣ > M ] ≤ 2 e − M 2 /2 ≤ 2 2 − 2 L ≤ ε cpl / ( 4 R ) .
Thus all R R R ideal Gaussian entries lie in [ − M , M ] [-M,M] [ − M , M ] except with probability at most ε c p l / 4 \varepsilon_{\mathrm{cpl}}/4 ε cpl /4 .
Here is a finite construction coupled to one ideal entry. Let U U U be uniform on ( 0 , 1 ) (0,1) ( 0 , 1 ) and set G = Φ − 1 ( U ) G=\Phi^{-1}(U) G = Φ − 1 ( U ) , where Φ \Phi Φ is the standard Gaussian distribution function. The implementation reads only the first
r = b + M 2 + 8 r=b+M^2+8 r = b + M 2 + 8
bits of U U U , obtaining a uniform integer J ∈ { 0 , … , 2 r − 1 } J\in\{0,\ldots,2^r-1\} J ∈ { 0 , … , 2 r − 1 } , and uses u J = ( J + 1 / 2 ) 2 − r u_J=(J+1/2)2^{-r} u J = ( J + 1/2 ) 2 − r . This is just a coupling description: the actual algorithm draws the r r r independent bits directly.
The clipped inverse
g M ( u ) = max { − M , min { M , Φ − 1 ( u ) } } g_M(u)=\max\{-M,\min\{M,\Phi^{-1}(u)\}\} g M ( u ) = max { − M , min { M , Φ − 1 ( u )}}
is globally Lipschitz with constant at most
2 π e M 2 / 2 ≤ 3 2 M 2 . \sqrt{2\pi}e^{M^2/2}\leq3\,2^{M^2}. 2 π e M 2 /2 ≤ 3 2 M 2 .
It follows that
∣ g M ( U ) − g M ( u J ) ∣ ≤ 3 2 M 2 − r − 1 < h / 8. |g_M(U)-g_M(u_J)|\leq3\,2^{M^2-r-1}<h/8. ∣ g M ( U ) − g M ( u J ) ∣ ≤ 3 2 M 2 − r − 1 < h /8.
We compute g M ( u J ) g_M(u_J) g M ( u J ) to additive error at most h / 4 h/4 h /4 by the bounded bisection described below, and round the result to a dyadic number with mesh at most h / 4 h/4 h /4 . The resulting rational G ~ \widetilde{G} G obeys
∣ G ~ − g M ( U ) ∣ < h , ∣ G ~ ∣ ≤ M + h , |\widetilde{G}-g_M(U)|<h,\qquad|\widetilde{G}|\leq M+h, ∣ G − g M ( U ) ∣ < h , ∣ G ∣ ≤ M + h ,
on every outcome. In particular ∣ G ~ − G ∣ < h |\widetilde{G}-G|<h ∣ G − G ∣ < h whenever ∣ G ∣ ≤ M |G|\leq M ∣ G ∣ ≤ M . Each entry uses exactly r r r random bits and a prescribed polynomial upper bound on its arithmetic work. There is no rejection loop.
A certified inverse-CDF calculation. On [ − M , M ] [-M,M] [ − M , M ] the Gaussian density is at least
m 0 = 1 3 2 − M 2 . m_0=\frac{1}{3}2^{-M^2}. m 0 = 3 1 2 − M 2 .
At a bisection midpoint x x x , evaluate Φ ( x ) \Phi(x) Φ ( x ) with absolute error at most h m 0 / 100 hm_0/100 h m 0 /100 . If its resulting interval is entirely below or above u J u_J u J , keep the appropriate half interval. If the interval contains u J u_J u J , the midpoint is within h / 50 h/50 h /50 of the clipped inverse, by the density lower bound; return it. If no such early termination occurs, at most ⌈ log 2 ( 32 ( M + 1 ) / h ) ⌉ \lceil\log_2(32(M+1)/h)\rceil ⌈ log 2 ( 32 ( M + 1 ) / h )⌉ iterations make the remaining bracket shorter than h / 8 h/8 h /8 . This argument also applies when the unclipped inverse lies outside [ − M , M ] [-M,M] [ − M , M ] : bisection converges to the appropriate endpoint. The number of iterations is bounded independently of all random outcomes.
For completeness, the needed evaluations of Φ \Phi Φ also take polynomial time. For rational x ∈ [ − M , M ] x\in[-M,M] x ∈ [ − M , M ] use
Φ ( x ) = 1 2 + 1 2 π ∫ 0 x e − t 2 / 2 d t \Phi(x)=\frac{1}{2}+\frac{1}{\sqrt{2\pi}}\int_0^x e^{-t^2/2}\,dt Φ ( x ) = 2 1 + 2 π 1 ∫ 0 x e − t 2 /2 d t
and integrate the Taylor polynomial
∑ j = 0 J 0 ( − 1 ) j t 2 j 2 j j ! \sum_{j=0}^{J_0}\frac{(-1)^j t^{2j}}{2^j j!} j = 0 ∑ J 0 2 j j ! ( − 1 ) j t 2 j
term by term. The pointwise absolute remainder is at most ( M 2 / 2 ) J 0 + 1 / ( J 0 + 1 ) ! (M^2/2)^{J_0+1}/(J_0+1)! ( M 2 /2 ) J 0 + 1 / ( J 0 + 1 )! . Taking J 0 + 1 ≥ 3 M 2 J_0+1\geq3M^2 J 0 + 1 ≥ 3 M 2 and J 0 + 1 ≥ log 2 ( 8 ( M + 1 ) / ϵ ) J_0+1\geq\log_2(8(M+1)/\epsilon) J 0 + 1 ≥ log 2 ( 8 ( M + 1 ) / ϵ ) makes the integral error below ϵ / 8 \epsilon/8 ϵ /8 , using j ! ≥ ( j / e ) j j!\geq(j/e)^j j ! ≥ ( j / e ) j and e < 3 e<3 e < 3 . The required number of terms is therefore O ( M 2 + log ( 1 / ϵ ) + log ( M + 1 ) ) O(M^2+\log(1/\epsilon)+\log(M+1)) O ( M 2 + log ( 1/ ϵ ) + log ( M + 1 )) . Exact rational intermediate values have polynomial bit length, even though cancellation can occur. The constant 1 / 2 π 1/\sqrt{2\pi} 1/ 2 π can be enclosed to the additional required precision in polynomial time: for example, use the geometrically convergent arctangent series in π = 16 arctan ( 1 / 5 ) − 4 arctan ( 1 / 239 ) \pi=16\arctan(1/5)-4\arctan(1/239) π = 16 arctan ( 1/5 ) − 4 arctan ( 1/239 ) , followed by rational bisection for the square root. These formulas give explicit certified error bounds and fixed polynomial operation counts.
Normalized maps A = G / k A = G/\sqrt{k} A = G / k are handled the same way. Approximate each G G G sufficiently finely, approximate 1 / k 1/\sqrt{k} 1/ k by rational bisection, and multiply, reserving half of the desired entry error for each operation. This adds only O ( log k + log ( M + 1 ) ) O(\log k + \log(M + 1)) O ( log k + log ( M + 1 )) precision bits. In either normalization the implementation can guarantee a prescribed entrywise error h h h on the common truncation event.
Preserving all recovery-grid identifiers
Write a scalar ideal cell identifier as
⌊ a ⋅ p ℓ + U 0 ⌋ \left\lfloor\frac{a \cdot p}{\ell} + U_0 \right\rfloor ⌊ ℓ a ⋅ p + U 0 ⌋
where a a a is a standard Gaussian row and U 0 U_0 U 0 is an independent uniform number in [ 0 , 1 ) [0,1) [ 0 , 1 ) . It is equivalent to the usual uniformly shifted grid of side ℓ \ell ℓ . Couple the implementation’s shift U ~ 0 \widetilde{U}_0 U 0 to the first b s b_s b s bits of U 0 U_0 U 0 , rounded down. Then ∣ U ~ 0 − U 0 ∣ ≤ 2 − b s |\widetilde{U}_0-U_0| \le2^{-b_s} ∣ U 0 − U 0 ∣ ≤ 2 − b s deterministically, and the implemented physical shift ℓ U ~ 0 \ell\widetilde{U}_0 ℓ U 0 is rational.
Set
η = ε c p l 8 E , h ≤ η ℓ min 2 d Δ , 2 − b s ≤ η / 2. \eta= \frac{\varepsilon_{\mathrm{cpl}}}{8E}, \qquad h \le\frac{\eta\ell_{\min}}{2d\Delta}, \qquad2^{-b_s} \le\eta/2. η = 8 E ε cpl , h ≤ 2 d Δ η ℓ m i n , 2 − b s ≤ η /2.
The entry mesh may be rounded downward to the next dyadic value. On the common Gaussian truncation event, for every input point and every grid row,
∣ a ~ ⋅ p ℓ + U ~ 0 − a ⋅ p ℓ − U 0 ∣ ≤ d Δ h ℓ min + 2 − b s ≤ η . \left| \frac{\widetilde{a}\cdot p}{\ell}+\widetilde{U}_0-\frac{a\cdot p}{\ell}-U_0 \right| \le\frac{d\Delta h}{\ell_{\min}}+2^{-b_s}\le\eta. ℓ a ⋅ p + U 0 − ℓ a ⋅ p − U 0 ≤ ℓ m i n d Δ h + 2 − b s ≤ η .
For a fixed input point, conditional on the ideal Gaussian matrix, the fractional part of a ⋅ p / ℓ + U 0 a\cdot p/\ell+U_0 a ⋅ p / ℓ + U 0 is uniform. Its distance to an integer is at most η \eta η with probability at most 2 η 2\eta 2 η . Union-bounding over the at most E E E scalar tests gives probability at most 2 E η = ε c p l / 4 2E\eta=\varepsilon_{\mathrm{cpl}}/4 2 E η = ε cpl /4 that any relevant ideal coordinate is too close to a boundary. Independence between these boundary events is unnecessary. On their complement every floor, and hence every full grid key and outer bucket identifier, is exactly unchanged.
Combining the boundary and Gaussian-truncation bounds, with probability at least 1 − ε c p l 1-\varepsilon_{\mathrm{cpl}} 1 − ε cpl all streamed grid memberships agree with the ideal continuous construction. Repeated insertions and deletions use the same stored finite matrix and shift, so the key of a point is a fixed function of its identity on every outcome, including a failed coupling outcome. Strict-turnstile legality inside every bucket is consequently preserved without any probability qualification.
This use of uniform shifts is why no anti-concentration assumption on the point coordinates or on a particular Gaussian dot product is needed. The fixed oblivious input sequence is essential to the displayed boundary union bound; it does not assert the same guarantee for points chosen after inspecting the grid seeds.
Rational-center queries in the static oracle
The static oracle is built and queried using its implemented rational matrix A ~ \widetilde{A} A . Its distance proof does not require the lookup cell of a query to agree with that under the ideal matrix. It is enough to transfer the ideal norm upper and lower events to A ~ \widetilde{A} A with the reserved allowance ν \nu ν .
Let k max k_{\max} k m a x be the largest number of rows in a normalized oracle map. We use entrywise error h ≤ ν / k max d h\le\nu/\sqrt{k_{\max}d} h ≤ ν / k m a x d on the common truncation event. For a k × d k\times d k × d map and every v ∈ R d v\in\mathbb{R}^d v ∈ R d ,
∥ ( A ~ − A ) v ∥ 2 ≤ ∥ A ~ − A ∥ F ∥ v ∥ 2 ≤ k d h ∥ v ∥ 2 ≤ ν ∥ v ∥ 2 . \|(\widetilde{A}-A)v\|_2 \le\|\widetilde{A}-A\|_F\|v\|_2 \le\sqrt{kd}\,h\|v\|_2 \le\nu\|v\|_2. ∥ ( A − A ) v ∥ 2 ≤ ∥ A − A ∥ F ∥ v ∥ 2 ≤ k d h ∥ v ∥ 2 ≤ ν ∥ v ∥ 2 .
This also holds for v = 0 v = 0 v = 0 . Hence any ideal upper bound b 0 ∥ v ∥ b_0\lVert v\rVert b 0 ∥ v ∥ transfers to ( b 0 + ν ) ∥ v ∥ (b_0+\nu)\lVert v\rVert ( b 0 + ν ) ∥ v ∥ , and ideal noncontraction transfers to ( 1 − ν ) ∥ v ∥ (1-\nu)\lVert v\rVert ( 1 − ν ) ∥ v ∥ . The perturbation estimate is uniform over all vectors. The probabilistic norm bounds for the ideal map apply to queries independent of its seeds, as in Lemma 9.1. A certificate center is a rational convex combination of input points in [ − Δ , Δ ] d [-\Delta,\Delta]^d [ − Δ , Δ ] d . Its polynomial bit bound b q b_q b q controls the cost of the projected query, grid rounding, and exact distance comparisons.
The table grid step and its enclosing radius can be chosen rationally within the intervals specified in the static-oracle lemma by integer squared comparisons or rational square-root bisection. The strict constant slack in those intervals makes this a polynomial-bit task. All table entries are original sample identities, and final scores are exact original squared distances, so projection rounding cannot create a false witness or an overestimate of the current diameter.
Resource and probability accounting
For a common precision, take the largest dyadic h ≤ 1 / 2 h \le1/2 h ≤ 1/2 satisfying both entry-error restrictions (a smaller dyadic value within a factor of two also suffices). The required number of bits is at most
O ( log ( E + 2 ) + log ( R + 2 ) + log ( 1 / ε c p l ) + log ( d Δ + 2 ) + log ( k max + 2 ) + log ( 1 + 1 / ℓ min ) + log ( 1 / ν ) ) O\bigl(\log(E+2)+\log(R+2)+\log(1/\varepsilon_{\mathrm{cpl}})
+\log(d\Delta+2)+\log(k_{\max}+2)+\log(1+1/\ell_{\min})+\log(1/\nu)\bigr) O ( log ( E + 2 ) + log ( R + 2 ) + log ( 1/ ε cpl ) + log ( d Δ + 2 ) + log ( k m a x + 2 ) + log ( 1 + 1/ ℓ m i n ) + log ( 1/ ν ) )
The shift precision, Gaussian truncation length, random-bit count per entry, and arithmetic precision are polynomial in the same parameters. In the diameter construction these are all polynomial in d d d , the input coordinate bit bound, log N \log N log N , and log ( T / δ ) \log(T/\delta) log ( T / δ ) , with constants depending only on the chosen approximation factor. Exact grid indices have polynomial bit length as well, since
∥ a ~ ⋅ p / ℓ + U ~ 0 ∥ ≤ 2 + d Δ ( M + 1 ) / ℓ min . \left\lVert\widetilde{\boldsymbol{a}}\cdot p/\ell+\widetilde{U}_0\right\rVert\le2+d\Delta(M+1)/\ell_{\min}. a ⋅ p / ℓ + U 0 ≤ 2 + d Δ ( M + 1 ) / ℓ m i n .
They can be encoded injectively as bounded binary strings for the outer pairwise-independent affine hashes.
More explicitly, choose an integer Q 0 Q_0 Q 0 above the displayed bound and encode each grid key in [ − Q 0 , Q 0 ] k [-Q_0,Q_0]^k [ − Q 0 , Q 0 ] k using a fixed-length signed integer encoding. An affine binary-linear map from that finite bit domain to the bucket bits is pairwise independent: for two distinct keys, their difference is nonzero, so each independently sampled matrix row and its independent affine offset give two independent uniform output bits. For the ideal comparison on the full lattice, extend this random hash by giving each out-of-domain cell an independent uniform bucket label. The extended family is pairwise independent, so the ideal isolation and collision estimates apply on every grid. The actual algorithm generates only the finite affine map. On the coupling event all streamed cell keys belong to the implemented domain and agree in the two processes. On every outcome the clipped implementation has bounded keys.
Generating each finite matrix takes a fixed polynomial amount of work per entry. Initial recovery matrices are generated in the allowed preprocessing; frozen static-oracle maps are generated within the already budgeted background construction job. This does not introduce a positive power of N N N into an original update and does not change any space exponent. There is no assumption of constant-time real arithmetic or an unlimited random tape.
Allocate, for example, ε c p l = δ / 10 \varepsilon_{\mathrm{cpl}}=\delta/10 ε cpl = δ /10 to the entire finite-precision coupling and distribute the remaining error budget among the ideal probabilistic lemmas. Apply the independent-copy amplification in the ideal experiment before charging the coupling failure. On the coupling event, all original-point recovery memberships are those analyzed in the continuous proof, and every static norm event transfers with its reserved slack. A union bound supplies the desired simultaneous guarantee over all T T T updates. Resource bounds, fixed bucket membership, exact sparse-recovery certification, and validity of every reported nonzero current-pair distance hold on every random outcome, independently of whether this coupling succeeds.
The Gaussian-embedding baseline
For comparison, consider an update bound of the form N α poly ( d , log N ) N^\alpha\operatorname{poly}(d,\log N) N α poly ( d , log N ) for a fixed α < 1 \alpha< 1 α < 1 . There is a substantially simpler baseline at exponent 2 / 3 2/3 2/3 when both space and update time may have that exponent. This baseline is based on Indyk’s Gaussian embedding, in the dynamic-streaming formulation of Padaki, Singal, and Waingarten [PSW26]. The implementation below makes its update and reporting costs explicit using the certified sparse-recovery primitive in this paper.
Theorem A.1 (Two-thirds-power baseline). In the same bounded-integer, oblivious, strict-turnstile model, there is a one-pass factor-two diameter estimator with
s p a c e = N 2 / 3 poly ( d , log ( N + 2 ) , log ( Δ + 2 ) , log ( ( T + 2 ) / δ ) ) , w o r s t - c a s e u p d a t e t i m e = N 2 / 3 poly ( d , log ( N + 2 ) , log ( Δ + 2 ) , log ( ( T + 2 ) / δ ) ) . \begin{aligned}
\mathit{space} &= N^{2/3}\operatorname{poly}\bigl(d,\log(N+2),\log(\Delta+2),\log((T+2)/\delta)\bigr),\\
\mathit{worst\text{-}case\ update\ time} &= N^{2/3}\operatorname{poly}\bigl(d,\log(N+2),\log(\Delta+2),\log((T+2)/\delta)\bigr).
\end{aligned} space worst - case update time = N 2/3 poly ( d , log ( N + 2 ) , log ( Δ + 2 ) , log (( T + 2 ) / δ ) ) , = N 2/3 poly ( d , log ( N + 2 ) , log ( Δ + 2 ) , log (( T + 2 ) / δ ) ) . It caches a scalar answer after every update. With probability at least 1 − δ 1-\delta 1 − δ , all answers satisfy D t / 2 ≤ L t ≤ D t D_t/2 \le L_t \le D_t D t /2 ≤ L t ≤ D t . Both approximation inequalities are conditioned on this success event.
The Gaussian maximum embedding
Put
q = ⌈ log 2 ( N + 2 ) ⌉ , γ = 1 100 q , a = 2 1 + 8 γ , k = ⌈ N 2 / ( a 2 − 1 ) q 16 ⌉ . q=\left\lceil\log_2(N+2)\right\rceil,\qquad\gamma=\frac{1}{100q},\qquad a=\frac{2}{1+8\gamma},\qquad k=\left\lceil N^{2/(a^2-1)}q^{16}\right\rceil. q = ⌈ log 2 ( N + 2 ) ⌉ , γ = 100 q 1 , a = 1 + 8 γ 2 , k = ⌈ N 2/ ( a 2 − 1 ) q 16 ⌉ .
The expansion 2 / ( a 2 − 1 ) = 2 / 3 + O ( 1 / q ) 2/(a^2-1)=2/3+O(1/q) 2/ ( a 2 − 1 ) = 2/3 + O ( 1/ q ) shows that k = N 2 / 3 poly ( log ( N + 2 ) ) k=N^{2/3}\operatorname{poly}(\log(N+2)) k = N 2/3 poly ( log ( N + 2 )) . Let G G G have k k k independent standard-Gaussian rows in R d \mathbb{R}^d R d , and put
ρ = 1 a 2 ln ( 40 k N 2 ) . \rho=\frac{1}{a}\sqrt{2\ln(40kN^2)}. ρ = a 1 2 ln ( 40 k N 2 ) .
For any fixed point set P P P of size at most N N N , with probability at least 0.9 0.9 0.9 ,
ρ ∥ x − y ∥ ≤ ∥ G x − G y ∥ ∞ ≤ a ρ ∥ x − y ∥ ( x , y ∈ P ) . (36) \rho\lVert x-y\rVert\le\lVert Gx-Gy\rVert_\infty\le a\rho\lVert x-y\rVert\qquad(x,y\in P). \tag*{(36)} ρ ∥ x − y ∥ ≤ ∥ G x − G y ∥ ∞ ≤ a ρ ∥ x − y ∥ ( x , y ∈ P ) . (36)
For completeness, for a fixed nonzero difference the normalized row inner products are independent standard Gaussians. A union bound and Pr ( ∣ Z ∣ ≥ t ) ≤ 2 e − t 2 / 2 \Pr(|Z|\ge t)\le2e^{-t^2/2} Pr ( ∣ Z ∣ ≥ t ) ≤ 2 e − t 2 /2 give upper failure at most 1 / ( 20 N 2 ) 1/(20N^2) 1/ ( 20 N 2 ) . The lower Gaussian tail is at least C ρ − 1 e − ρ 2 / 2 C\rho^{-1}e^{-\rho^2/2} C ρ − 1 e − ρ 2 /2 when ρ ≥ 2 \rho\ge2 ρ ≥ 2 . Thus the expected number of coordinates exceeding ρ \rho ρ is at least
C ρ − 1 k 1 − 1 / a 2 N − 2 / a 2 = Ω ( q 16 ( 1 − 1 / a 2 ) − 1 / 2 ) . C\rho^{-1}k^{1-1/a^2}N^{-2/a^2}=\Omega\left(q^{16(1-1/a^2)-1/2}\right). C ρ − 1 k 1 − 1/ a 2 N − 2/ a 2 = Ω ( q 16 ( 1 − 1/ a 2 ) − 1/2 ) .
The exponent is uniformly greater than one, since a > 1.9 a>1.9 a > 1.9 . For all sufficiently large N N N this exceeds ln ( 20 N 2 ) \ln(20N^2) ln ( 20 N 2 ) , so the lower failure for that difference is at most 1 / ( 20 N 2 ) 1/(20N^2) 1/ ( 20 N 2 ) . Union-bound over pairs. Bounded values of N N N are handled by storing the active set, with a fixed constant absorbed in the bounds.
We use the finite-bit Gaussian construction in Appendix § 12 .§ 2 to replace G G G by a dyadic matrix A A A of bounded entries, with
∣ A i j − G i j ∣ ≤ h , 2 d Δ h ≤ γ ρ . |A_{ij}-G_{ij}|\le h,\qquad2d\Delta h\le\gamma\rho. ∣ A ij − G ij ∣ ≤ h , 2 d Δ h ≤ γ ρ .
Its coupling failure can be made below 1/100 for one whole matrix. Every distinct pair of integer points has distance at least one. Consequently, on the embedding and rounding events,
( 1 − γ ) ρ ∥ x − y ∥ ≤ ∥ A x − A y ∥ ∞ ≤ ( a + γ ) ρ ∥ x − y ∥ . (37) (1-\gamma)\rho\lVert x-y\rVert\le\lVert Ax-Ay\rVert_\infty\le(a+\gamma)\rho\lVert x-y\rVert. \tag*{(37)} ( 1 − γ ) ρ ∥ x − y ∥ ≤ ∥ A x − A y ∥ ∞ ≤ ( a + γ ) ρ ∥ x − y ∥ . (37)
The absolute entry precision and truncation bounds have polynomial bit length in the displayed parameters. No union bound over the stream is used to increase k k k ; amplification will be outside this embedding.
Maintaining one projected coordinate range
Fix a row of A A A and write z ( x ) = ⟨ A i , x ⟩ z(x)=\langle A_i,x\rangle z ( x ) = ⟨ A i , x ⟩ . These are exact dyadic rationals with a common denominator 2 b 2^b 2 b . Maintain, for every dyadic length ℓ \ell ℓ in a fixed range, the frequency vector of interval identifiers
j ( x ) = ⌊ z ( x ) / ℓ ⌋ . j(x)=\left\lfloor z(x)/\ell\right\rfloor. j ( x ) = ⌊ z ( x ) / ℓ ⌋ .
One original update changes exactly one interval count for that row and scale. All these counts are nonnegative. Set K = ⌈ 4 / γ + 3 ⌉ K=\lceil4/\gamma+3\rceil K = ⌈ 4/ γ + 3 ⌉ and maintain the certified K K K -sparse recovery sketch of § 7.2 on interval identifiers. Use O ( log ( k K ( J + 1 ) ) ) O(\log(kK(J+1))) O ( log ( k K ( J + 1 ))) independent hash tables, where J + 1 J+1 J + 1 is the number of lengths. At a fixed time, every vector with at most K K K occupied intervals is recovered with sufficiently high probability that all such rows and scales succeed together with probability at least 0.99. This follows conditionally on A A A , since the sparse sketch seeds are independent of A A A .
For a certified, nonempty interval dictionary, let j min j_{\min} j m i n and j max j_{\max} j m a x be its extreme identifiers and put
U i , ℓ = ( j max − j min + 1 ) ℓ . U_{i,\ell}=(j_{\max}-j_{\min}+1)\ell. U i , ℓ = ( j m a x − j m i n + 1 ) ℓ .
This is always an upper bound on the actual coordinate range w i w_i w i . If the decoder does not certify completeness, ignore that scale. Also maintain the exact total mass and first two moments of z z z ; the zero-variance identity certifies w i = 0 w_i=0 w i = 0 , including any number of original points with the same projected coordinate.
Let the smallest length be the largest dyadic number at most γ 2 − b / 4 \gamma2^{-b}/4 γ 2 − b /4 , and let the largest length be the least dyadic number at least twice the absolute projected-coordinate bound. The number J + 1 J+1 J + 1 is polynomial in the logarithmic and dimension parameters. For every w i > 0 w_i>0 w i > 0 there is a length
γ w i / 4 ≤ ℓ ≤ γ w i / 2. \gamma w_i/4\le\ell\le\gamma w_i/2. γ w i /4 ≤ ℓ ≤ γ w i /2.
Its occupied-interval count is at most w i / ℓ + 2 ≤ K w_i/\ell+2\le K w i / ℓ + 2 ≤ K , and its recovered bound satisfies U i , ℓ ≤ w i + 2 ℓ ≤ ( 1 + γ ) w i U_{i,\ell}\le w_i+2\ell\le(1+\gamma)w_i U i , ℓ ≤ w i + 2 ℓ ≤ ( 1 + γ ) w i . Let C i C_i C i be the set of lengths with a certified interval dictionary for row i i i . If w i > 0 w_i>0 w i > 0 and C i ≠ ∅ C_i\ne\varnothing C i = ∅ , define
U i : = min ℓ ∈ C i U i , ℓ . U_i:=\min_{\ell\in C_i}U_{i,\ell}. U i := ℓ ∈ C i min U i , ℓ .
We use U i = 0 U_i=0 U i = 0 when the support is empty or the exact moment test gives w i = 0 w_i=0 w i = 0 . If w i > 0 w_i>0 w i > 0 and C i = ∅ C_i=\varnothing C i = ∅ , use twice the known absolute projected-coordinate bound. On the simultaneous recovery event the scale above belongs to C i C_i C i whenever w i > 0 w_i>0 w i > 0 , and hence w i ≤ U i ≤ ( 1 + γ ) w i w_i\le U_i\le(1+\gamma)w_i w i ≤ U i ≤ ( 1 + γ ) w i in all cases.
The sparse decoder costs K K K poly, and here K K K is itself polynomial in log N \log N log N . We may therefore decode every scale of every row immediately after an update and maintain U = max i U i U=\max_i U_i U = max i U i . There is no postponed large decoding job and no query-time scan.
Normalization, amplification, and the actual update bound
We choose a rational ρ ~ \tilde{\rho} ρ ~ with ρ ≤ ρ ~ ≤ ( 1 + γ ) ρ \rho\le\tilde{\rho} \le(1+\gamma)\rho ρ ≤ ρ ~ ≤ ( 1 + γ ) ρ , and cache
L = U ( 1 + γ ) ( a + γ ) ρ ~ L = \frac{U}{(1+\gamma)(a+\gamma)\tilde{\rho}} L = ( 1 + γ ) ( a + γ ) ρ ~ U
On the preceding good events, if D = diam ( P ) > 0 D = \operatorname{diam}(P) > 0 D = diam ( P ) > 0 ,
1 − γ ( 1 + γ ) 2 ( a + γ ) D ≤ L ≤ D . \frac{1-\gamma}{(1+\gamma)^2(a+\gamma)}D \le L \le D. ( 1 + γ ) 2 ( a + γ ) 1 − γ D ≤ L ≤ D .
The lower coefficient is greater than 1 / 2 1/2 1/2 . Indeed, multiplying the desired inequality by 1 + 8 γ 1+8\gamma 1 + 8 γ reduces it to positivity of
9 γ − 28 γ 2 − 17 γ 3 − 8 γ 4 , 9\gamma- 28\gamma^2 - 17\gamma^3 - 8\gamma^4, 9 γ − 28 γ 2 − 17 γ 3 − 8 γ 4 ,
which holds for 0 < γ ≤ 1 / 100 0 < \gamma\le1/100 0 < γ ≤ 1/100 .
At every fixed time, one whole copy succeeds with probability greater than 0.8. We run O ( log ( ( T + 2 ) / δ ) ) O(\log((T+2)/\delta)) O ( log (( T + 2 ) / δ )) independent whole copies and cache their median. A Chernoff bound and a union bound over the prescribed horizon give the stated simultaneous guarantee. The median tolerates scalar errors in either direction. Taking a maximum has a different justification in Algorithm 1, where every positive score has current witnesses.
An original point update computes k k k dot products, updates polynomially many interval sketches per dot product, decodes only polynomial-size sketches, and updates the cached maximum and median. Every operation therefore costs k k k poly, in the worst case. The storage is also k k k poly. Counts have O ( log ( T + 2 ) ) O(\log(T+2)) O ( log ( T + 2 )) bits, and interval keys, Gaussian approximations, moment counters, and normalization values have polynomial bit length. No step uses expiration times, an original-point replay, or an uncharged copy of the input.
All parameter choices are effectively computable with polynomial bit overhead. In particular, 2 / ( a 2 − 1 ) 2/(a^2-1) 2/ ( a 2 − 1 ) is rational with numerator and denominator polynomial in q q q ; its power and ceiling can be found by integer-power comparisons. Certified rational bounds on the logarithm and square root suffice for ρ ~ \tilde{\rho} ρ ~ and the entry-precision choices.
This baseline has a much better memory exponent than our polynomial-update construction, but it pays the same N 2 / 3 N^{2/3} N 2/3 power in update time. The two guarantees answer different versions of the time–space tradeoff.