Introduction
Computing connected components of graphs is an important task in data analysis [42 ] . At a fixed distance threshold, single-linkage clusters are precisely the connected components of the graph joining pairs of objects within that threshold [20 ] . In record linkage, connected components can group records linked by candidate matches for subsequent refinement [35 ] . When the relationship graph is too large to retain and its edges arrive as insertions and deletions, these tasks motivate recovering connectivity from a compact summary [2 ] .
A spanning forest contains one tree spanning each connected component, and is a single spanning tree when the graph is connected. Two vertices are connected in the forest exactly when they are connected in the original graph, with paths made of currently present original edges. For a graph with v v v vertices and c c c connected components, this spanning forest has v − c v-c v − c edges and can be represented in O ( v log v ) O(v\log v) O ( v log v ) bits, even though the graph itself may have Θ ( v 2 ) \Theta(v^2) Θ ( v 2 ) edges. Storing the full graph can therefore require far more memory than storing the requested answer.
In a one-pass stream, however, discarded edges cannot be revisited unless information about them has been retained. With insertions alone, an algorithm can retain a forest and discard each edge whose endpoints are already connected. If a forest edge is later deleted, a replacement may exist among those discarded edges, but the stored forest does not reveal whether such an edge exists or where to find it. The central space question is how much information about these alternatives must be retained, and how this requirement grows as the tolerated failure probability decreases.
We study this question in the fully dynamic graph-streaming model. An initially empty undirected simple graph has a fixed set of v v v labeled vertices. The algorithm processes a legal dynamic graph stream in one pass: an insertion adds an absent edge, and a deletion removes a present edge. At a requested report, it must output a spanning forest consisting of currently present original edges, with failure probability at most δ \delta δ . We design algorithms and prove matching space lower bounds, determining the optimal space complexity in bits for one report, both with unrestricted deletions and under a report-time bound on missing historical edges. We then determine the additional space required for joint correctness across multiple reports under the same promise. All update and report sequences are fixed independently of the algorithm’s random coins.
Prior algorithms, space lower bounds, and the unresolved reliability threshold
For any fixed constant c > 0 c>0 c > 0 , the AGM algorithm recovers a spanning forest using O ( v log 3 v ) O(v\log^3 v) O ( v log 3 v ) bits with failure probability at most δ = v − c \delta=v^{-c} δ = v − c [2 ] . Nelson and Yu prove that every algorithm for the same task requires Ω ( v log 3 v ) \Omega(v\log^3 v) Ω ( v log 3 v ) bits, even when constant failure probability is allowed [37 ] . Together, these results establish the optimal space at constant failure probability and at δ = v − c \delta=v^{-c} δ = v − c for fixed c > 0 c>0 c > 0 . Furthermore, the parameterization of AGM analyzed by Nelson and Yu gives an algorithm using
O ( v log 2 v log ( v / δ ) ) O\left(v\log^2 v\log(v/\delta)\right) O ( v log 2 v log ( v / δ ) )
bits at failure probability at most δ \delta δ [37 Appendix A, Theorem 5] . Separately, for every fixed 0 < ϵ < 1 0<\epsilon<1 0 < ϵ < 1 and 2 − v 1 − ϵ < δ ≤ 1 / 4 2^{-v^{1-\epsilon}}<\delta\leq1/4 2 − v 1 − ϵ < δ ≤ 1/4 , their lower-bound theorem states that every algorithm solving this task requires
Ω ( v log 2 v log ( v / δ ) ) \Omega\left(v\log^2 v\log(v/\delta)\right) Ω ( v log 2 v log ( v / δ ) )
bits [37 Theorem 3] . The two bounds match in this range, establishing the space optimality of the reparameterized AGM algorithm there. An algorithm storing the full adjacency matrix uses O ( v 2 ) O(v^2) O ( v 2 ) bits and has zero error. Standard confidence amplification by independent repetition and majority voting does not directly apply: successful runs may return different forests [37 Appendix A] .
Consider now the smaller failure probability δ = 2 − v / log 2 v \delta= 2^{-v/\log^{2} v} δ = 2 − v / l o g 2 v . At this parameter, the published AGM memory guarantee becomes O ( v 2 ) O(v^{2}) O ( v 2 ) bits, the same order as storing the full adjacency matrix. The earlier lower-bound theorem does not determine the optimal space at this parameter. This leaves the following question:
Can a spanning-forest algorithm use subquadratic space at this failure probability, and how small can the failure probability become before every algorithm requires quadratic space?
Deletion restrictions offer another way to reduce memory. With insertions alone, retaining a spanning forest uses the optimal O ( v log v ) O(v\log v) O ( v log v ) bits, whereas unrestricted insertions and deletions require Θ ( v log 3 v ) \Theta(v\log^{3} v) Θ ( v log 3 v ) bits at constant failure probability [2 , 37 ] . The bounded-deletion graph-streaming model studies this gap by limiting the total number of deletion operations. Recent work in this model addresses maximal matching [29 ] and hypergraph cut sparsification [33 ] . For a given integer Z ≥ 0 Z \ge0 Z ≥ 0 and streams with at most Z Z Z deletion operations, specializing the latter result to ordinary graphs with fixed multiplicative error below one and extracting a spanning forest gives a O ~ ( v log ( Z + 2 ) ) \widetilde{O}(v\log(Z+2)) O ( v log ( Z + 2 )) -bit algorithm with failure probability at most v − c v^{-c} v − c for some fixed constant c > 0 c > 0 c > 0 . The sparsifier is a reweighted subgraph with the same zero cuts, so its connected components coincide with those of the original graph. The exact logarithmic factors and the dependence on the full range of failure probabilities remain unresolved for spanning forests.
A total-deletion budget counts every deletion, including deletions followed by restoration before the next report. We instead consider a bound on the number of previously inserted edges that are still absent when an answer is requested. Jayaram and Woodruff study a related query-time survival promise through their L 0 L_{0} L 0 α \alpha α -property [28 ] , which compares current and historical support sizes by a ratio. Our graph-stream promise bounds their difference and allows arbitrarily many deletions and restorations between reports. The resulting question is how the optimal space depends jointly on this report-time bound and the allowed failure probability. Section 1.3 states our algorithms and matching space lower bounds for this setting; Appendix E gives further comparisons with related work.
Space-optimal algorithms at every confidence level
The following two theorems give a space lower bound and a space-optimal algorithm for every 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 . We recover the known optimal space orders in the previously resolved parameter range; the additional results determine the optimum in the remaining high-confidence range. Throughout the paper, v ≥ 2 v \ge2 v ≥ 2 . The space measures are worst-case peak space and worst-input expected peak space, in bits. Following standard asymptotic notation in theoretical computer science, an optimal space complexity of Θ ( f ) \Theta(f) Θ ( f ) combines an algorithm using O ( f ) O(f) O ( f ) bits with a matching Ω ( f ) \Omega(f) Ω ( f ) space lower bound for all algorithms meeting the same task requirements, under the specified space measure. Running-time guarantees are stated separately. The two peak-space measures are specified in Section 1.5.
Theorem 1.1 (Space lower bound at every confidence level). For v ≥ 2 v \ge2 v ≥ 2 and 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 , every algorithm that recovers a spanning forest with one report and failure probability at most δ \delta δ on unrestricted legal dynamic streams of simple graphs requires, in bits,
Ω ( min { v 2 , v log ( v / δ ) log 2 ( 2 + v log ( v / δ ) ) } ) . \Omega\left(\min\left\{v^2, v\log(v/\delta)\log^2\left(2+\frac{v}{\log(v/\delta)}\right)\right\}\right). Ω ( min { v 2 , v log ( v / δ ) log 2 ( 2 + log ( v / δ ) v ) } ) . The constants are absolute. The lower bound applies to arbitrary algorithms, including nonlinear algorithms.
Theorem 1.2 (Space-optimal fully dynamic algorithm). For v ≥ 2 v \ge2 v ≥ 2 and 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 , the one-pass algorithm recovers a spanning forest with one report and failure probability at most δ \delta δ on unrestricted legal dynamic streams of simple graphs, using, in bits,
O ( min { v 2 , v log ( v / δ ) log 2 ( 2 + v log ( v / δ ) ) } ) . (1) O\left(\min\left\{v^2, v\log(v/\delta)\log^2\left(2+\frac{v}{\log(v/\delta)}\right)\right\}\right). \tag*{(1)} O ( min { v 2 , v log ( v / δ ) log 2 ( 2 + log ( v / δ ) v ) } ) . (1) The constants are absolute. Conditional on its stored setup, the algorithm maintains a binary linear sketch over F 2 \mathbb{F}_2 F 2 . It matches Theorem 1.1 and is therefore space-optimal.
Sections 3.1–3.3 present the algorithm; Sections 3.4–3.5 prove the space lower bound. For example, at δ = 2 − v / log 2 v \delta= 2^{-v/\log^2 v} δ = 2 − v / l o g 2 v , these theorems give:
Our algorithm uses
O ( v 2 ( log log v ) 2 log 2 v ) O\left(\frac{v^2(\log\log v)^2}{\log^2 v}\right) O ( log 2 v v 2 ( log log v ) 2 )
bits,
Our space lower bound
Ω ( v 2 ( log log v ) 2 log 2 v ) \Omega\left(\frac{v^2(\log\log v)^2}{\log^2 v}\right) Ω ( log 2 v v 2 ( log log v ) 2 )
bits.
Comparing algorithmic memory guarantees, its space is a factor Θ ( ( log v / log log v ) 2 ) \Theta((\log v/\log\log v)^2) Θ (( log v / log log v ) 2 ) smaller than the previous O ( v 2 ) O(v^2) O ( v 2 ) guarantee.
More generally, for any sequence v → ∞ v \to\infty v → ∞ and 0 < δ ( v ) ≤ 1 / 4 0 < \delta(v) \le1/4 0 < δ ( v ) ≤ 1/4 , with unrestricted deletions and one report, an algorithm using o ( v 2 ) o(v^2) o ( v 2 ) bits exists if and only if log ( 1 / δ ) = o ( v ) \log(1/\delta) = o(v) log ( 1/ δ ) = o ( v ) . Every algorithm requires Ω ( v 2 ) \Omega(v^2) Ω ( v 2 ) bits if and only if log ( 1 / δ ) = Ω ( v ) \log(1/\delta) = \Omega(v) log ( 1/ δ ) = Ω ( v ) ; full adjacency storage then gives a matching O ( v 2 ) O(v^2) O ( v 2 ) -bit algorithm. Both equivalences hold for both peak-space measures (Corollary 3.7 ).
Optimal space under a report-time deletion promise
For a stream prefix w w w , let E e v e r ( w ) E^{\mathrm{ever}}(w) E ever ( w ) be the set of edge names inserted at least once and let E ( w ) E(w) E ( w ) be the current edge set. Define the historical deficit by
d ( w ) = ∣ E e v e r ( w ) ∖ E ( w ) ∣ . d(w) = \left|E^{\mathrm{ever}}(w) \setminus E(w)\right|. d ( w ) = ∣ E ever ( w ) ∖ E ( w ) ∣ .
We are given an integer Z ≥ 0 Z \ge0 Z ≥ 0 in advance and require d ( w ) ≤ Z d(w) \le Z d ( w ) ≤ Z only at reports. The stream may contain arbitrarily many deletions and restorations, and its intermediate historical deficit may exceed Z Z Z . The algorithm must nevertheless respect its space bound throughout the stream.
For a real t ≥ 1 t \ge1 t ≥ 1 , put x Z ( t ) = min { Z + 1 , v , v t } x_Z(t) = \min\{Z+1,v,\sqrt{vt}\} x Z ( t ) = min { Z + 1 , v , v t } , and define
L ( v , Z , t ) = v log v min { log 2 v , log 2 ( Z + 2 ) } + v t log ( 1 + x Z ( t ) t ) log ( 1 + v x Z ( t ) ) . (2) \mathcal{L}(v,Z,t) = v\log v\min\{\log^2 v,\log^2(Z+2)\} + vt\log\left(1+\frac{x_Z(t)}{t}\right)\log\left(1+\frac{v}{x_Z(t)}\right). \tag*{(2)} L ( v , Z , t ) = v log v min { log 2 v , log 2 ( Z + 2 )} + v t log ( 1 + t x Z ( t ) ) log ( 1 + x Z ( t ) v ) . (2)
Theorem 1.3 (Optimal one-report space under a historical-deficit promise). Let v ≥ 2 v \ge2 v ≥ 2 , let the integer Z ≥ 0 Z \ge0 Z ≥ 0 be given in advance, and let 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 . Consider one-pass spanning-forest computation on arbitrary legal update histories of v v v -vertex simple graphs, with one report, where the history and report location are fixed independently of the algorithm’s randomness. The historical deficit is required to be at most Z Z Z only at the report; its intermediate values and the total number of deletions and restorations are unrestricted.
Space lower bound. Every algorithm returning a spanning forest with failure probability at most δ \delta δ requires
Ω ( L ( v , Z , log ( 1 / δ ) ) ) bits . \Omega(\mathcal{L}(v,Z,\log(1/\delta)))\ \text{bits}. Ω ( L ( v , Z , log ( 1/ δ ))) bits . Space-optimal algorithm. Our one-pass randomized algorithm returns a spanning forest with failure probability at most δ \delta δ and uses
O ( L ( v , Z , log ( 1 / δ ) ) ) bits (3) O(\mathcal{L}(v,Z,\log(1/\delta)))\ \text{bits} \tag*{(3)} O ( L ( v , Z , log ( 1/ δ ))) bits (3) throughout every legal update history, including intermediate prefixes with historical deficit larger than Z Z Z . It therefore has optimal space complexity Θ ( L ( v , Z , log ( 1 / δ ) ) ) \Theta(\mathcal{L}(v,Z,\log(1/\delta))) Θ ( L ( v , Z , log ( 1/ δ ))) under the report-time promise and under the stronger total-deletion restriction.
The constants are absolute, and both conclusions hold for both peak-space measures.
Note. The same space lower bound holds even when the stream is restricted to at most Z Z Z deletion operations in total. The randomized algorithm is presented in Sections 4.3 and 4.6; the lower bounds are proved in Sections 4.4 and 4.5.
The zero-error endpoint. The same input promise also admits an optimal deterministic algorithm.
Theorem 1.4 (Optimal zero-error space under a historical-deficit promise). Let v ≥ 2 v \ge2 v ≥ 2 and let the integer Z ≥ 0 Z \ge0 Z ≥ 0 be given in advance. Consider legal dynamic simple-graph streams with historical deficit at most Z Z Z whenever a spanning forest is requested.
Space lower bound. Every zero-error algorithm requires
Ω ( min { v 2 , v ( Z + 1 ) log ( 1 + v Z + 1 ) } ) bits . \Omega\left(\min\left\{v^2,\ v(Z+1)\log\left(1+\frac{v}{Z+1}\right)\right\}\right)\ \text{bits}. Ω ( min { v 2 , v ( Z + 1 ) log ( 1 + Z + 1 v ) } ) bits . The lower bound needs only one report and already holds for streams with at most Z Z Z deletion operations in total. It includes randomized zero-error algorithms that return a correct answer in finite time almost surely.
Space-optimal algorithm. Our deterministic one-pass algorithm always returns a correct spanning forest at every promised report and uses
O ( min { v 2 , v ( Z + 1 ) log ( 1 + v Z + 1 ) } ) bits . (4) O\left(\min\left\{v^2,\ v(Z+1)\log\left(1+\frac{v}{Z+1}\right)\right\}\right)\ \text{bits}. \tag*{(4)} O ( min { v 2 , v ( Z + 1 ) log ( 1 + Z + 1 v ) } ) bits . (4) Its space guarantee holds throughout the stream, and it supports every finite family of reports without an advance bound on their number.
Consequently, under both the report-time promise and the stronger total-deletion restriction, the optimal space complexity among all zero-error algorithms is
Θ ( min { v 2 , v ( Z + 1 ) log ( 1 + v Z + 1 ) } ) bits . \Theta\left(\min\left\{v^2, v(Z+1)\log\left(1+\frac{v}{Z+1}\right)\right\}\right)\ \text{bits}. Θ ( min { v 2 , v ( Z + 1 ) log ( 1 + Z + 1 v ) } ) bits .
This conclusion holds for both peak-space measures.
Section 4.2 gives the deterministic algorithm and the zero-error lower bound. To our knowledge, this is the first characterization up to constant factors in bits over the full budget–confidence range, including zero error and the classical bounded-deletion subclass. At any fixed δ ∈ ( 0 , 1 / 4 ] \delta\in(0,1/4] δ ∈ ( 0 , 1/4 ] , the optimal space simplifies to
Θ ( v log v log 2 ( min { Z + 2 , v } ) ) . (5) \Theta\left(v\log v\log^2(\min\{Z+2,v\})\right). \tag*{(5)} Θ ( v log v log 2 ( min { Z + 2 , v }) ) . (5)
A constant historical-deficit budget retains the insertion-only Θ ( v log v ) \Theta(v\log v) Θ ( v log v ) space order, whereas Z = v α Z=v^\alpha Z = v α for any fixed α > 0 \alpha>0 α > 0 already has the classical fully dynamic order. For Z = ⌈ log ( v + 1 ) ⌉ Z=\lceil\log(v+1)\rceil Z = ⌈ log ( v + 1 )⌉ and δ = 1 / 4 \delta=1/4 δ = 1/4 , the optimal space changes from
Θ ( v log 3 v ) ⏟ no deletion promise to Θ ( v log v ( log log v ) 2 ) ⏟ historical deficit at most Z at the report . \underbrace{\Theta(v\log^3 v)}_{\text{no deletion promise}}
\qquad\text{to}\qquad
\underbrace{\Theta\left(v\log v(\log\log v)^2\right)}_{\text{historical deficit at most }Z\text{ at the report}}. no deletion promise Θ ( v log 3 v ) to historical deficit at most Z at the report Θ ( v log v ( log log v ) 2 ) .
Thus the promise saves a factor Θ ( ( log v / log log v ) 2 ) \Theta((\log v/\log\log v)^2) Θ (( log v / log log v ) 2 ) . At the same logarithmic budget, requiring failure probability at most v − c v^{-c} v − c for any fixed c > 0 c>0 c > 0 raises the optimum to Θ ( v log 2 v ) \Theta(v\log^2 v) Θ ( v log 2 v ) bits (Lemma 4.14 ).
For the one-report task, when 1 + log ( 1 / δ ) ≥ min { Z + 1 , v } 1+\log(1/\delta)\ge\min\{Z+1,v\} 1 + log ( 1/ δ ) ≥ min { Z + 1 , v } , the optimal space has the zero-error order, and the deterministic algorithm remains space-optimal. Corollary 4.15 gives the exact asymptotic criteria for when positive error saves space and when it has the zero-error space order.
Limits of current-graph linear sketches. The algorithm of Theorem 1.3 attains the general optimum by retaining a compressed certificate of historically inserted edges. An additional lower bound shows that algorithms retaining only graph-independent setup and a linear sketch of current adjacency require a polynomial factor more space in some parameter ranges. Both classes solve the same one-report task with the same historical-deficit promise and failure probability. A standard retained-linear algorithm , as defined in Section 6.1, chooses a finite field F F F from its input parameters and samples graph-independent setup data ρ \rho ρ before the stream. At every event boundary, its entire persistent state, including its encoding length, is an effective canonical encoding of ( ρ , M ρ x ) (\rho,M_\rho x) ( ρ , M ρ x ) , where x x x is the current adjacency vector and M ρ : F ( v 2 ) → F s ρ M_\rho:F^{\binom{v}{2}}\to F^{s\rho} M ρ : F ( 2 v ) → F s ρ is linear with columns computable from the stored description. The report distribution depends only on this pair and fresh random bits; the decoder may be nonlinear.
Theorem 1.5 (Space limitation of retained-linear algorithms under the same deficit promise). Fix constants 0 < α < β < 1 0<\alpha<\beta<1 0 < α < β < 1 . For every sufficiently large integer v v v , set Z = ⌊ v α ⌋ Z=\lfloor v^\alpha\rfloor Z = ⌊ v α ⌋ and δ = 2 − v β \delta=2^{-v^\beta} δ = 2 − v β . Consider one-pass spanning-forest recovery with one report and failure probability at most δ \delta δ on every fixed legal simple-graph stream whose historical deficit is at most Z Z Z at that report. Intermediate deficits and the total number of deletions and restorations are unrestricted.
Theorem 1.3 gives a space lower bound of Ω α , β ( v 1 + α log v ) \Omega_{\alpha,\beta}(v^{1+\alpha}\log v) Ω α , β ( v 1 + α log v ) bits for every general algorithm, matched by its history-retaining algorithm using O α , β ( v 1 + α log v ) O_{\alpha,\beta}(v^{1+\alpha}\log v) O α , β ( v 1 + α log v ) bits.
Every standard retained-linear algorithm requires Ω α , β ( v 1 + β log 2 v ) \Omega_{\alpha,\beta}(v^{1+\beta}\log^{2}v) Ω α , β ( v 1 + β log 2 v ) bits. The algorithm in Theorem 1.2 belongs to this class and uses O α , β ( v 1 + β log 2 v ) O_{\alpha,\beta}(v^{1+\beta}\log^{2}v) O α , β ( v 1 + β log 2 v ) bits, so this is the optimal space order within the restricted class.
Both lower bounds already hold for streams with at most Z Z Z deletion operations in total, and both algorithms respect their space bounds throughout every legal update history. Consequently, the optimal space within the restricted class is Θ α , β ( v β − α log v ) \Theta_{\alpha,\beta}(v^{\beta-\alpha}\log v) Θ α , β ( v β − α log v ) times the optimal space among general algorithms. The statements hold for both peak-space measures, and the hidden constants depend only on α \alpha α and β \beta β . The proof is given in Section 6, culminating in Corollary 6.1.
For example, α = 1 / 4 \alpha= 1/4 α = 1/4 and β = 1 / 2 \beta= 1/2 β = 1/2 give Z = ⌊ v 1 / 4 ⌋ Z = \lfloor v^{1/4} \rfloor Z = ⌊ v 1/4 ⌋ and δ = 2 − v \delta= 2^{-\sqrt{v}} δ = 2 − v . Our history-retaining algorithm uses O ( v 5 / 4 log v ) O(v^{5/4}\log v) O ( v 5/4 log v ) bits, whereas every algorithm in the restricted class needs Ω ( v 3 / 2 log 2 v ) \Omega(v^{3/2}\log^{2}v) Ω ( v 3/2 log 2 v ) bits under the same requirements. Since both bounds are attainable in their respective classes, the separation factor is Θ ( v 1 / 4 log v ) \Theta(v^{1/4}\log v) Θ ( v 1/4 log v ) . Algorithms that retain extra historical state alongside a linear sketch are general algorithms and are not subject to the retained-linear restriction.
Extension to jointly correct reports
We next strengthen the output requirement for the same historical-deficit model. A report is an output request made while the same one-pass algorithm continues processing the same stream; it asks for a spanning forest of the graph that is current at that moment. Let the integer Q ≥ 1 Q \ge1 Q ≥ 1 be an advance upper bound on the number of such requests. Together with v v v , Z Z Z , and the target error δ \delta δ , this bound is available to the algorithm at setup. The update sequence and all report locations are fixed independently of the algorithm’s random coins. At each report the historical deficit is at most Z Z Z ; intermediate deficits and the cumulative deletion count remain unrestricted. The joint correctness requirement is
Pr [ every requested forest is returned correctly in finite time ] ≥ 1 − δ . \Pr[\text{every requested forest is returned correctly in finite time}] \ge1-\delta. Pr [ every requested forest is returned correctly in finite time ] ≥ 1 − δ .
This is stronger than requiring each report separately to have failure probability at most δ \delta δ . For the latter, marginal guarantee, the same single-report state with error parameter δ \delta δ can be reused at every fixed report location, without knowing the number of requests in advance. Joint correctness is an optional stronger requirement, and the report-count parameter measures its additional space cost.
Simultaneous guarantees over many outputs are standard in streaming: strong tracking asks for accurate answers at every prefix [5 ] , and explicit query budgets also appear in the study of repeated streaming queries [25 ] . For dynamic connectivity, Gibb et al. guarantee correctness of all connectivity queries with high probability over polynomial-length update sequences [18 ] . Here we separate the number of requested forests from the number of updates, which can be arbitrarily large between reports. Our input model remains oblivious: allowing an algorithm to retain earlier answers does not allow the update sequence or report locations to depend on those answers.
Reusing our read-only single-report algorithm with error parameter δ / Q \delta/Q δ / Q and applying a union bound gives joint correctness directly. The main question is whether a different algorithm can use less space. Joint correctness does not require each report to have failure probability at most δ / Q \delta/Q δ / Q : errors across reports may be correlated, and the algorithm may retain information acquired during earlier updates and reports. We prove a matching space lower bound that permits this information to be retained and used, establishing that the space cost of the standard δ / Q \delta/Q δ / Q allocation is optimal up to constant factors.
Theorem 1.6 (Optimal space for jointly correct reports). Let v ≥ 2 v \ge2 v ≥ 2 , let integers Z ≥ 0 Z \ge0 Z ≥ 0 and Q ≥ 1 Q \ge1 Q ≥ 1 be given in advance, and let 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 . Consider fixed legal dynamic simple-graph streams with at most Q Q Q report requests and historical deficit at most Z Z Z at each report.
Space lower bound. Every algorithm making all requested forests correct with probability at least 1 − δ 1-\delta 1 − δ requires
Ω ( L ( v , Z , log ( Q / δ ) ) ) bits , \Omega(\mathcal{L}(v,Z,\log(Q/\delta)))\ \text{bits}, Ω ( L ( v , Z , log ( Q / δ ))) bits , even when it retains and uses information from earlier reports. This lower bound already holds on streams whose historical deficit is at most Z Z Z at every prefix.
Space-optimal algorithm by reuse. Running the one-pass randomized algorithm of Theorem 1.3 with error parameter δ / Q \delta/Q δ / Q makes all requested forests correct with probability at least 1 − δ 1-\delta 1 − δ and uses
O ( L ( v , Z , log ( Q / δ ) ) ) bits O(\mathcal{L}(v,Z,\log(Q/\delta)))\ \text{bits} O ( L ( v , Z , log ( Q / δ ))) bits throughout the stream, including intermediate prefixes that violate the report-time promise. It therefore has optimal space complexity Θ ( L ( v , Z , log ( Q / δ ) ) ) \Theta(\mathcal{L}(v,Z,\log(Q/\delta))) Θ ( L ( v , Z , log ( Q / δ ))) .
The constants are absolute, and both conclusions hold for both peak-space measures.
At Q = 1 Q=1 Q = 1 , this theorem recovers the one-report historical-deficit characterization rather than defining a separate input model. For Q > 1 Q>1 Q > 1 , restored queries can reuse the same historical edges without increasing the deficit budget; their cumulative deletion count can grow with Q Q Q . The resulting dependence on Q Q Q therefore requires a separate lower-bound argument that accounts for information learned across reports.
For example, fix Z = ⌈ log ( v + 1 ) ⌉ Z=\lceil\log(v+1)\rceil Z = ⌈ log ( v + 1 )⌉ and joint failure probability δ = 1 / 4 \delta=1/4 δ = 1/4 . Increasing the report allowance changes the optimal space from
Θ ( v log v ( log log v ) 2 ) ⏟ Q = 1 to Θ ( v log 2 v ) ⏟ Q = v . \underbrace{\Theta\left(v\log v(\log\log v)^2\right)}_{Q=1}
\quad\text{to}\quad
\underbrace{\Theta\left(v\log^2 v\right)}_{Q=v}. Q = 1 Θ ( v log v ( log log v ) 2 ) to Q = v Θ ( v log 2 v ) .
The memory requirement grows by a factor Θ ( log v / ( log log v ) 2 ) \Theta(\log v/(\log\log v)^2) Θ ( log v / ( log log v ) 2 ) although the joint reliability target is unchanged, and the larger bound remains necessary even when earlier answers are retained. It already matches the zero-error space order. More generally, when 1 + log ( Q / δ ) ≥ min { Z + 1 , v } 1+\log(Q/\delta)\ge\min\{Z+1,v\} 1 + log ( Q / δ ) ≥ min { Z + 1 , v } , the optimal space has the zero-error order in Theorem 1.4 . If a single algorithm must handle every finite number of promised reports without an advance report-count bound, this same space order is necessary even at any fixed 0 < δ ≤ 1 / 4 0<\delta\le1/4 0 < δ ≤ 1/4 ; the deterministic algorithm attains it. Section 5 proves the joint lower bound and this saturation statement.
Model conventions and organization
All space bounds measure total peak memory in bits, including setup data, stored randomness, retained state, decoding workspace, and output buffers. The algorithms stay within their stated memory limits on every random tape. The matching lower bounds hold both for worst-case peak space and for worst-input expected peak space, with expectation taken over the algorithm’s private randomness without conditioning on success. After reading the input parameters, the algorithms use polynomially many bit operations in v v v for setup, each update, and each report. The linearity claim in Theorem 1.2 is conditional on the stored setup data. The space lower bounds apply to arbitrary nonlinear algorithms with unrestricted computation; the separate linear-sketch comparison explicitly restricts the retained state. Stream length is unrestricted, and zero error requires each requested correct answer to arrive in finite time almost surely. Appendix A gives the full conventions. Section 2 explains the obstacles and the ideas that yield the matching bounds. Section 3 presents the unrestricted one-report algorithm, analyzes its space, and proves a matching lower bound against arbitrary nonlinear algorithms. Section 4 develops the one-report historical-deficit characterization, including the space-optimal deterministic algorithm and lower bounds already valid for the bounded-deletion subclass. Section 5 determines the additional cost of joint correctness across reports and proves the matching lower bound allowing retained answers. Section 6 proves the additional lower bound for retained-linear algorithms, showing why this class cannot match the optimal historical-deficit algorithm in some parameter ranges. The appendices supply the full model, auxiliary information and probability arguments, algebraic constructions, and implementation details. Appendix E gives further comparisons with related work.
Technical Overview: Algorithm Design and Matching Space Lower Bounds
The overview begins with the unrestricted one-report problem and develops its basic recovery mechanism and space lower bound. Historical information then makes deletion promises useful, while repeated reports introduce a further difficulty: earlier answers can teach the algorithm about the same source. Throughout this overview, A = ⌈ log ( v + 1 ) ⌉ A = \lceil\log(v + 1) \rceil A = ⌈ log ( v + 1 )⌉ , t = 1 + log ( 1 / δ ) t = 1 + \log(1/\delta) t = 1 + log ( 1/ δ ) , and τ 0 = ⌈ log ( 64 / δ ) ⌉ = Θ ( t ) \tau_0 = \lceil\log(64/\delta) \rceil= \Theta(t) τ 0 = ⌈ log ( 64/ δ )⌉ = Θ ( t ) .
Reducing row width, levels, and banks together
Classical graph sketches recover an edge leaving a component by combining vertex summaries so that internal edges cancel [2 ] . At a suitable sampling level, a nonempty cut has a small nonempty sample that can be recovered. Repeated cut recovery merges the components into a spanning forest. Each independent bank stores one copy of the recovery data, with fresh sampling randomness and nested sampling levels. The main stored array has one recovery row per vertex, sampling level, and bank.
Replacing the sparse-recovery code alone cannot reduce space to the stated level. For b ≤ v b \le v b ≤ v , encoding b b b edge names from a Θ ( v 2 ) \Theta(v^2) Θ ( v 2 ) -element universe still costs Θ ( b log ( v 2 / b ) ) = Θ ( b A ) \Theta(b \log(v^2/b)) = \Theta(bA) Θ ( b log ( v 2 / b )) = Θ ( b A ) bits, even with an entropy-optimal code. A narrower row would also remain replicated over the old sampling and merging schedules. The algorithm therefore changes the encoded universe and the schedule together: neighbor encoding reduces row width, a sampled-universe bitmap shortens the hierarchy, and an initial neighbor-recovery step reduces the number of components needing repair. The two logarithms in the final bound count levels and banks after these costs have been balanced.
Algorithm design: vertex-domain recovery and shorter schedules
Recovering a cut through its vertices. The algorithm encodes a vertex’s neighbors over the v v v -vertex universe, rather than naming edges from the ( v 2 ) \binom{v}{2} ( 2 v ) possible pairs. Let H H H be a binary syndrome matrix that recovers vectors supported on sufficiently few vertices. If X X X is the current symmetric adjacency matrix, vertex u u u retains y u = H X e u y_u = HX e_u y u = H X e u ; write h u = H e u h_u = He_u h u = H e u . Insertion and deletion both toggle the two endpoint syndromes. For a vertex set C C C , let I C I_C I C be its diagonal indicator. The crossing-edge adjacency is X C = I C X + X I C X_C = I_C X + X I_C X C = I C X + X I C over F 2 \mathbb{F}_2 F 2 , and
∑ u ∈ C ( h u y u T + y u h u T ) = H X C H T . (6) \sum_{u \in C} \left(h_u y_u^{\mathsf{T}} + y_u h_u^{\mathsf{T}}\right) = H X_C H^{\mathsf{T}}. \tag*{(6)} u ∈ C ∑ ( h u y u T + y u h u T ) = H X C H T . (6)
Thus internal edges cancel while the remaining matrix can be decoded through vertex coordinates on both sides of an edge.
Consider triangles on { 1 , 2 , 3 } \{1,2,3\} { 1 , 2 , 3 } and { 4 , 5 , 6 } \{4,5,6\} { 4 , 5 , 6 } , joined by { 1 , 4 } \{1,4\} { 1 , 4 } , { 2 , 4 } \{2,4\} { 2 , 4 } , { 3 , 5 } \{3,5\} { 3 , 5 } , and take C = { 1 , 2 , 3 } C=\{1,2,3\} C = { 1 , 2 , 3 } . The internal edge { 1 , 2 } \{1,2\} { 1 , 2 } contributes h 1 h 2 T + h 2 h 1 T h_1h_2^{\mathsf{T}}+h_2h_1^{\mathsf{T}} h 1 h 2 T + h 2 h 1 T twice and cancels. The remaining sum is
( h 1 + h 2 ) h 4 T + h 4 ( h 1 + h 2 ) T + h 3 h 5 T + h 5 h 3 T . (h_1+h_2)h_4^{\mathsf{T}}+h_4(h_1+h_2)^{\mathsf{T}}+h_3h_5^{\mathsf{T}}+h_5h_3^{\mathsf{T}}. ( h 1 + h 2 ) h 4 T + h 4 ( h 1 + h 2 ) T + h 3 h 5 T + h 5 h 3 T .
Writing B = H X C B=HX_C B = H X C , this matrix is B H T BH^{\mathsf{T}} B H T and is decoded in two passes. First, decoding its rows after transposition recovers B B B , whose nonzero columns are h 4 , h 4 , h 5 , h 1 + h 2 , h 3 h_4,h_4,h_5,h_1+h_2,h_3 h 4 , h 4 , h 5 , h 1 + h 2 , h 3 . Second, decoding those columns returns { 4 } , { 4 } , { 5 } , { 1 , 2 } , { 3 } \{4\},\{4\},\{5\},\{1,2\},\{3\} { 4 } , { 4 } , { 5 } , { 1 , 2 } , { 3 } , respectively, recovering all three crossing edges, including the two incident to vertex 4 4 4 .
A cut with O ( b ) O(b) O ( b ) edges has only O ( b ) O(b) O ( b ) endpoints. This permits O ( b log ( 1 + v / b ) ) O(b\log(1+v/b)) O ( b log ( 1 + v / b )) bits per neighbor syndrome, with one deterministic code shared by all levels and banks. The shared matrix H H H and serial decoding workspace fit O ( v b log ( 1 + v / b ) ) O(vb\log(1+v/b)) O ( v b log ( 1 + v / b )) bits. Realizing this bound requires charging the code’s construction and decoder, not just its output length. § 3.1 gives the precise interface and cut decoder. Construction takes polynomial time, and decoding does so even on syndromes with no sparse preimage.
Shortening the schedule. At sampling rate Θ ( b / v ) \Theta(b/v) Θ ( b / v ) , a bank stores one live bit for each selected edge name in the entire universe. The sampling seed fixes the bitmap’s coordinate set independently of the graph, and selected positions can be recomputed without storing edge identifiers. This top representation uses O ( v b ) O(vb) O ( v b ) bits and reduces the number of retained sampling levels to O ( log ( 2 + v / b ) ) O(\log(2+v/b)) O ( log ( 2 + v / b )) .
During the bootstrap phase, singleton queries recover min { b , deg ( u ) } \min\{b,\deg(u)\} min { b , deg ( u )} neighbors at each vertex with the required confidence. A spanning forest of their union has at most O ( v / b ) O(v/b) O ( v / b ) unfinished components , meaning components that still have an outgoing edge in the current graph: any such component must contain more than b b b vertices. Fresh banks then process these unfinished components. § 3.2 proves this invariant and gives the full algorithm, including the bitmap overflow cap and the error allocation.
Verifying recovered cuts. The per-vertex row combines a neighbor syndrome with an independent O ( A + τ 0 ) O(A+\tau_0) O ( A + τ 0 ) -bit verification fingerprint. Verification must not bias the sampling analysis: first analyze an ideal execution with exact candidate checks, then bound the probability that independent fingerprints change any answer on that trace. This also allows later cuts to depend on earlier recovered edges.
Balancing the threshold. For the sketching algorithm, let r ∗ = log ( 2 + v / ( A + τ 0 ) ) r_*=\log(2+v/(A+\tau_0)) r ∗ = log ( 2 + v / ( A + τ 0 )) . Choosing b b b at scale max { 8 , ( A + τ 0 ) / r ∗ } \max\{8,(A+\tau_0)/r_*\} max { 8 , ( A + τ 0 ) / r ∗ } makes the row width O ( b log ( 1 + v / b ) + A + τ 0 ) = O ( A + τ 0 ) O(b\log(1+v/b)+A+\tau_0)=O(A+\tau_0) O ( b log ( 1 + v / b ) + A + τ 0 ) = O ( A + τ 0 ) and makes both the level count and total bank count O ( r ∗ ) O(r_*) O ( r ∗ ) . Their product yields O ( v ( A + τ 0 ) r ∗ 2 ) O(v(A+\tau_0)r_*^2) O ( v ( A + τ 0 ) r ∗ 2 ) space, while storing the adjacency matrix gives the quadratic cap. With this choice, the algorithm uses the space stated in Theorem 1.2 . The space accounting and optimization are in § 3.3 . Conditional on setup, neighbor rows, top bits, and binary-expanded fingerprints are linear in adjacency; report-time forests are temporary and discarded afterward.
Matching space lower bounds for arbitrary algorithms
The lower-bound source is a bipartite graph with Θ ( v ) \Theta(v) Θ ( v ) independent neighborhoods, each an m m m -subset of a Θ ( v ) \Theta(v) Θ ( v ) -vertex column universe. Deleting a proper subset T T T of one neighborhood S S S leaves that row with a surviving edge. Every valid spanning forest reveals such an edge, so the saved state lets a decoder find an element of S ∖ T S \setminus T S ∖ T . This is the subset version of the universal relation problem [31 , 37 ] ; the state may be entirely nonlinear, since only its information content matters.
The forest guarantee holds for every fixed source and query. Lemma 3.4 converts this premise into a lossless source encoding with information cost Ω ( L log ( 2 + m / L ) log ( U / m ) ) \Omega(L\log(2+m/L)\log(U/m)) Ω ( L log ( 2 + m / L ) log ( U / m )) , where L = ln ( 1 / β ) L = \ln(1/\beta) L = ln ( 1/ β ) for error β \beta β and m ≥ L m \ge L m ≥ L . The column-universe size satisfies U ≥ C m U \ge Cm U ≥ C m for an absolute constant C C C . The factor L log ( 2 + m / L ) L\log(2+m/L) L log ( 2 + m / L ) reflects the expected number of successful stages of this encoding, each saving approximately log ( U / m ) \log(U/m) log ( U / m ) bits by recovering one source member. These stages belong to the information-theoretic encoding and are distinct from the algorithm’s recovery rounds. By the information chain rule, the saved state must account for all source rows, although each query deletes edges from only one.
In the high-confidence range, neighborhoods of size about v t \sqrt{vt} v t balance the two entropy factors, making each logarithm of order log ( 2 + v / t ) \log(2+v/t) log ( 2 + v / t ) up to constant cutoffs. The published constant-success lower bound covers smaller t t t [37 ] ; capping the confidence used by the reduction gives the quadratic endpoint. Proposition 3.6 combines these ranges and accounts for the original expected peak space through a finite simulation of the saved state.
Historical-deficit algorithms and matching space lower bounds
For the historical-deficit analysis, we use the following profile for integers Z ≥ 0 Z \ge0 Z ≥ 0 and real z ≥ 1 z \ge1 z ≥ 1 . It retains the integer parameter A A A and is equivalent up to constant factors to L \mathcal{L} L in (1.2):
B Z = min { A 2 , log 2 ( Z + 2 ) } , μ = min { Z + 1 , v } , x z = min { μ , v z } , B_Z = \min\{A^2,\log^2(Z+2)\}, \qquad\mu= \min\{Z+1,v\}, \qquad x_z = \min\{\mu,\sqrt{vz}\}, B Z = min { A 2 , log 2 ( Z + 2 )} , μ = min { Z + 1 , v } , x z = min { μ , v z } ,
L ( v , Z , z ) = v A B Z + v z log ( 1 + x z / z ) log ( 1 + v / x z ) . (7) \mathcal{L}(v,Z,z) = vAB_Z + vz\log(1+x_z/z)\log(1+v/x_z). \tag*{(7)} L ( v , Z , z ) = v A B Z + v z log ( 1 + x z / z ) log ( 1 + v / x z ) . (7)
Our algorithm exploits an advance bound Z Z Z on the number of currently absent historical edges by maintaining compressed information about past connectivity. The promise is imposed only at the report; intermediate deficits and the total number of deletions are unrestricted. The algorithm adapts sparse connectivity certificates to retain historical edge names [36 , 27 ] . For threshold q q q , it maintains a monotone historical edge set S S S , accepting a new name exactly when its endpoints have minimum cut below q q q in S S S . Previously rejected names remain rejected on reinsertion because historical connectivity only increases. At stream prefix w w w , one live bit per accepted edge identifies the currently present subset W = S ∩ E ( w ) W = S \cap E(w) W = S ∩ E ( w ) .
The historical edge set S S S has at most q ( v − 1 ) q(v-1) q ( v − 1 ) edges. Each unfinished component of W W W has at least q q q stored names across its historical cut, all currently absent. Since one absent name can be charged at most twice, the number of components of W W W exceeds that of the current graph by at most 2 d / q 2d/q 2 d / q , where d = ∣ E e v e r ∖ E ∣ d = |E^{\mathrm{ever}} \setminus E| d = ∣ E ever ∖ E ∣ . The same cut argument shows that d < q d < q d < q makes W W W span the current graph. A compressed representation and polynomial-time cut tests fit O ( v q log ( 1 + v / q ) ) O(vq\log(1+v/q)) O ( v q log ( 1 + v / q )) bits. Choosing q = Z + 1 q = Z+1 q = Z + 1 for Z < v Z < v Z < v yields a zero-error algorithm with the stated memory use; the adjacency bitmap covers larger Z Z Z . The density and implementation bounds hold through arbitrary intermediate deficits and restoration cycles. The matching space lower bound already holds for the subclass of streams with at most Z Z Z deletion operations: its sources cannot share a prefix state because a common deletion query requires disjoint surviving edges.
For positive error, the algorithm combines historical state with independent randomized repair, an approach also used in bounded-deletion matching [29 ] . Here, retaining a smaller historical edge set leaves only a bounded component excess to repair. Maintaining historical edges and their live bits on sampled streams replaces the unrestricted algorithm’s top bitmaps, and fresh banks complete the recovery using the same cut-decoding interface. At a fixed report, the absent historical names form a fixed set of size at most Z Z Z , independently of the algorithm’s coins. The analysis of these sampled edge sets counts only the currently absent names; earlier deletions followed by restoration do not enter the count. Historical sparsity holds throughout the stream, so intermediate violations of the report-time promise cannot increase the space cap. This algorithm uses less space when Z Z Z is small; the unrestricted algorithm remains available in the complementary regime.
To prove the stronger lower bound for the total-deletion subclass, partition source rows into blocks and query only one block, spending at most k ( m − 1 ) ≤ Z k(m-1) \le Z k ( m − 1 ) ≤ Z deletions for k k k rows of size m m m . The information chain still charges every block. To analyze a block, we reduce k k k rows to one coordinate using the construction of Nelson and Yu [37 Lemma 3] . Our information bound is measured under the original input law, although the auxiliary protocol is conditioned on joint success across the k k k rows. This yields the constant-error term v A B z vABz v A B z . A single-row query then captures the additional confidence cost without losing its error dependence.
The source-size optimization explains the scale x z x_z x z in the main formula. With μ = min { Z + 1 , v } \mu= \min\{Z+1,v\} μ = min { Z + 1 , v } , define
Γ v , μ ( z ) = max m ∈ [ 1 , μ ] z log ( 1 + m / z ) log ( 1 + v / m ) , Γ v , μ ( 0 ) = 0. (8) \Gamma_{v,\mu}(z) = \max_{m \in[1,\mu]} z \log(1+m/z)\log(1+v/m), \qquad\Gamma_{v,\mu}(0) = 0. \tag*{(8)} Γ v , μ ( z ) = m ∈ [ 1 , μ ] max z log ( 1 + m / z ) log ( 1 + v / m ) , Γ v , μ ( 0 ) = 0. (8)
For z ≥ 1 z \ge1 z ≥ 1 , its real maximizer is m = min { μ , v z } m = \min\{\mu,\sqrt{vz}\} m = min { μ , v z } : increasing the source size allows more encoding stages but reduces the information supplied by one recovered neighbor. The classical square-root balance [31 , 37 ] persists until the total-deletion budget in the lower-bound subclass caps the source size. Integer and graph-size restrictions change the bound only by absolute factors. Section 4 proves the invariants of the maintained edge sets, both lower bounds, and the matching algorithm choices.
Limits of current-graph linear sketches. An additional lower bound explains the advantage of this algorithm over the class retaining only graph-independent setup and a linear image of current adjacency. Under this retained-state restriction, a communication decoder can subtract queried edges directly from the sketch; the resulting state has the same report law as an insertion-only presentation of the residual graph under the same advertised Z Z Z . Section 6 uses this virtual subtraction to prove that the restricted class needs a polynomial factor more space than the algorithm retaining historical edges in the regimes of Corollary 6.1.
Matching lower bounds for jointly correct reports
For at most Q Q Q fixed reports, each satisfying the same historical-deficit promise, running the single-report algorithm at error δ / Q \delta/Q δ / Q makes the probability of any incorrect report at most δ \delta δ by a union bound. This standard extension reuses the same maintained state and its space cap throughout the stream.
The matching lower bound must allow earlier answers to teach the algorithm about later queries. The reduction repeatedly queries one source graph and restores it after each report. Deleting a proper subset of one row’s neighborhood forces a forest to reveal a surviving neighbor; restoration returns the deficit to zero without introducing new historical names. All queries are drawn in advance conditional on the source, independently of the algorithm’s coins and answers.
Joint success identifies one fixed round with small first-failure probability, as in tracking lower bounds with independent inputs across rounds [Bla18, Section 7 of the full version]. Here, globally conditioning on earlier success could change the source distribution and invalidate the information bound. For each fixed source, the reduction conditions the boundary-state distribution on earlier success, then mixes these conditional distributions using the original source law. The retained state still includes everything learned from earlier reports, and the next query remains fresh conditional on that source. A uniform lower bound on sourcewise survival controls both the error and expected message length by constant factors. The normalized one-query channel has error O ( δ / Q ) O(\delta/Q) O ( δ / Q ) , while its message length remains controlled by the original expected peak space. Optimizing the source size yields the matching lower bound for joint correctness, including saturation at the zero-error space order. Section 5 gives the finite query law, normalization, and saturation argument.
An Optimal-Space Algorithm and Matching Lower Bound without Deletion Promises
This section proves the unrestricted one-report lower bound and algorithm guarantees in Theorems 1.1 and 1.2. The design of the spanning-forest algorithm combines small-cut recovery from vertex summaries with a reduction in the number of components before repair. The analysis then selects its parameters and accounts for its space usage. A matching space lower bound for arbitrary algorithms follows by encoding independent neighborhoods and querying one row at a time. This section gives both arguments without assuming a deletion budget.
For the algorithm and its space analysis, A = ⌈ log ( v + 1 ) ⌉ A = \lceil\log(v + 1)\rceil A = ⌈ log ( v + 1 )⌉ , τ 0 = ⌈ log ( 64 / δ ) ⌉ \tau_0 = \lceil\log(64/\delta)\rceil τ 0 = ⌈ log ( 64/ δ )⌉ , and U = A + τ 0 U = A + \tau_0 U = A + τ 0 . We first analyze the sketching algorithm for a general recovery threshold b ≥ 8 b \ge8 b ≥ 8 , then choose b b b in § 3.3 after accounting for all memory. This analysis assumes τ 0 ≤ v \tau_0 \le v τ 0 ≤ v and b ≤ v / 32768 b \le v/32768 b ≤ v /32768 ; § 3.3 also justifies the exact-adjacency alternatives. The cutoff corresponds to the codec’s density threshold: its required recovery sparsity is 1024 b 1024b 1024 b , which is then at most v / 32 v/32 v /32 . All guarantees concern each fixed legal dynamic graph stream. The space convention of § 1.5 counts setup, retained state, and the peak update and report workspace. Appendix § 7 gives the machine model and the finite-simulation lemma used by the lower bound.
Cut recovery and verification in the algorithm
The binary-code interface. The first building block recovers every cut containing at most K = 512 b K = 512b K = 512 b edges from vertex-neighbor summaries. For this value of K K K , Corollary C.2 supplies a deterministic binary matrix H ∈ F 2 r × v H \in\mathbb{F}_2^{r \times v} H ∈ F 2 r × v with r ≤ v r \le v r ≤ v and r = O ( b H b ) r = O(bH_b) r = O ( b H b ) , where H b = log ( 1 + v / b ) H_b = \log(1 + v/b) H b = log ( 1 + v / b ) . Every binary vector of weight at most 2 K 2K 2 K is recovered from its syndrome. Construction, the stored matrix, and decoding use O ( v b H b ) O(vbH_b) O ( v b H b ) bits of peak memory and polynomially many bit operations on every input. On an arbitrary syndrome the decoder returns a vector passing its support and syndrome checks, or declares failure. The same matrix serves all sampling levels and banks, because its guarantee is uniform over all sparse inputs, including inputs that depend on H H H . The construction and its resource accounting appear in Appendix § 9 , with the streamed constructor detailed in §C.2.1. Using the same matrix-existence guarantee, Appendix § 10 .§ 5 gives an exhaustive-search implementation with the same space order at the cost of exponential running time.
The following lemma constructs a two-sided cut measurement from stored vertex-neighbor syndromes and bounds the workspace for recovering its edges. Its row-then-column decoder uses a two-stage algebraic structure also appearing in tensor-product recovery over the reals [23 Section II-B] .
Lemma 3.1 (Bilinear recovery of a sparse cut). Let 1 ≤ b ≤ v 1 \le b \le v 1 ≤ b ≤ v , K = 512 b K = 512b K = 512 b , and H ∈ F 2 r × v H \in\mathbb{F}_2^{r \times v} H ∈ F 2 r × v with r ≤ v r \le v r ≤ v . Suppose H H H has a deterministic decoder that recovers every binary vector of weight at most 2 K 2K 2 K from its syndrome. On every input, the decoder uses at most S d e c S_{\mathrm{dec}} S dec bits of workspace, takes polynomially many bit operations, and returns either a vector passing its support and syndrome checks or failure. For a fixed simple graph G G G , retain at every vertex u u u the r r r -bit vector
y u = H adj G ( u ) , y_u = H\operatorname{adj}_G(u), y u = H adj G ( u ) ,
where the adjacency column is a v v v -bit vector. From this state, the stored matrix, and a given vertex cut C C C , a deterministic polynomial-time algorithm selects at most one candidate crossing-edge set of size at most K K K . If the true cut has at most K K K edges, the selected set is exactly that cut. Beyond the retained state and matrix, the computation uses O ( v r + v A + S d e c ) O(vr+vA+S_{\mathrm{dec}}) O ( v r + v A + S dec ) bits.
Proof. Let X X X be the symmetric adjacency matrix of G G G , I C I_C I C the diagonal indicator of C C C , and h u = H e u h_u=He_u h u = H e u column u u u of H H H . Then y u = H X e u y_u=HXe_u y u = H X e u , and the crossing-edge adjacency matrix is X C = I C X + X I C X_C=I_CX+XI_C X C = I C X + X I C over F 2 \mathbb{F}_2 F 2 . Consequently,
M C = ∑ u ∈ C ( h u y u T + y u h u T ) = H ( I C X + X I C ) H T = H X C H T . (9) \begin{aligned}
M_C=\sum_{u\in C}\left(h_uy_u^{\mathsf{T}}+y_uh_u^{\mathsf{T}}\right) \\
&=H(I_CX+XI_C)H^{\mathsf{T}}=HX_CH^{\mathsf{T}}. \tag*{(9)}
\end{aligned} M C = u ∈ C ∑ ( h u y u T + y u h u T ) = H ( I C X + X I C ) H T = H X C H T . (9)
An internal edge contributes twice and cancels, while a crossing edge contributes exactly its two symmetric outer products.
Use the sparse decoder on each of the r r r rows of M C M_C M C to obtain a row of a matrix B ∈ F 2 r × v B\in\mathbb{F}_2^{r\times v} B ∈ F 2 r × v ; declare failure if a row has no sparse preimage. Next decode each column of B B B in turn. Collect at most 2 K 2K 2 K ordered nonzero pairs from these column vectors, rejecting immediately on overflow. Finally, check that the collected pairs contain no self-loops, occur in symmetric pairs, cross C C C , and represent at most K K K unordered edges. When the lemma is applied to a sampled graph, also require that each candidate name belongs to the sampled level. If any check fails, select no candidate. Otherwise, select this one edge set, without consulting a fingerprint.
When the true cut has at most K K K edges, its endpoint support has size at most 2 K 2K 2 K . Every row of H X C HX_C H X C is supported there, so decoding the rows of M C M_C M C recovers B = H X C B=HX_C B = H X C . Every column of X C X_C X C has weight at most K K K , so decoding the columns then recovers the true cut, which passes all consistency checks.
The stored M C M_C M C and B B B use r 2 ≤ v r r^2\le vr r 2 ≤ v r and r v rv r v bits, respectively. Only one decoded column is held at a time, and the ordered list costs O ( K A ) = O ( v A ) O(KA)=O(vA) O ( K A ) = O ( v A ) bits because K = 512 b K=512b K = 512 b and b ≤ v b\le v b ≤ v . With serial decoder calls, the total additional workspace is O ( v r + v A + S d e c ) O(vr+vA+S_{\mathrm{dec}}) O ( v r + v A + S dec ) bits. There are at most r + v r+v r + v calls, each on an input of polynomial length; all matrix operations and candidate checks are polynomial as well.
The interface preceding the lemma meets these hypotheses with r = O ( b H b ) r=O(bH_b) r = O ( b H b ) and S d e c = O ( v b H b ) S_{\mathrm{dec}}=O(vbH_b) S dec = O ( v b H b ) . The total cut-decoding space, including the stored matrix, vertex summaries, decoder scratch, candidates, and indices, is O ( v b H b ) O(vbH_b) O ( v b H b ) ; the O ( v A ) O(vA) O ( v A ) term fits this bound because b H b ≥ log ( 1 + v ) bH_b\ge\log(1+v) b H b ≥ log ( 1 + v ) . The decoder’s all-input time guarantee applies even when a dense cut has no sparse preimage, so such cuts cannot violate the time cap.
Independent verification. Structural checks alone cannot certify a candidate produced from a dense cut. The algorithm therefore selects the entire candidate before consulting an independent fingerprint. Write N E = ( v 2 ) N_E=\binom{v}{2} N E = ( 2 v ) and identify edge names with 1 , … , N E 1,\ldots,N_E 1 , … , N E . Each bank chooses an independent uniform point z z z in a binary extension field of degree
w = τ 0 + 10 A + 20 = O ( A + τ 0 ) . (10) w=\tau_0+10A+20=O(A+\tau_0). \tag*{(10)} w = τ 0 + 10 A + 20 = O ( A + τ 0 ) . (10)
At every vertex and retained level the algorithm stores ∑ e z e \sum_e z^e ∑ e z e over incident present sampled names. Internal edges cancel in the cut sum. The selected candidate is tested once against this sum; a mismatch causes rejection without trying another candidate. For distinct true and candidate crossing sets, their difference is a nonzero symmetric-difference polynomial of degree at most N E N_E N E . Consequently, a false candidate passes with probability at most N E / 2 w N_E/2^w N E / 2 w . The simple-graph promise keeps edge multiplicities in { 0 , 1 } \{0,1\} { 0 , 1 } , so no nonzero edge coefficient vanishes modulo two.
The shared field is constructed using the bounded random procedure of Lemma C.7 , with degree and trial parameter
w = τ 0 + 10 A + 20 , a = τ 0 + 10 A + 20. (11) w = \tau_0 + 10A + 20,\qquad a = \tau_0 + 10A + 20. \tag*{(11)} w = τ 0 + 10 A + 20 , a = τ 0 + 10 A + 20. (11)
Corollary C.8 bounds the construction scratch by O ( w + log ( a + 1 ) ) O(w + \log(a + 1)) O ( w + log ( a + 1 )) bits and its running time by a polynomial on every tape. Field-construction failure has probability at most δ / 64 \delta/64 δ /64 . Conditional on successful construction, fresh independent w w w -bit strings are exactly uniform field points. If construction fails, a retained flag makes the report procedure output an empty forest, with the same space and time caps. The deterministic finite-search alternative is recorded in Appendix § 10 .§ 5 .
For the collision analysis, an ideal execution replaces fingerprint tests by exact equality tests. Its cuts and candidates depend only on the fixed input, the deterministic code, and the sampling hashes; they are independent of the verification field and points. If the ideal execution of this report makes at most N t e s t N_{\mathrm{test}} N test candidate tests, the polynomial root bound and a union bound give collision probability at most N t e s t N E / 2 w N_{\mathrm{test}}N_E/2^w N test N E / 2 w , conditional on successful field construction. In particular, N t e s t ≤ 64 v 3 N_{\mathrm{test}} \le64v^3 N test ≤ 64 v 3 makes this probability at most δ / 64 \delta/64 δ /64 . § 3.2 verifies this test bound after defining the sampling levels and query schedule. On successful field construction, if no fingerprint collision occurs on the ideal trace, actual and ideal reports agree inductively, even when earlier returned edges determine later cuts. This argument preserves the original law of the sampling hashes; it does not condition that law on successful fingerprint tests.
An insertion or deletion of { u , u ′ } \{u,u'\} { u , u ′ } toggles h u ′ h_{u'} h u ′ in y u y_u y u , h u h_u h u in y u ′ y_{u'} y u ′ , and z i d ( { u , u ′ } ) z^{\mathrm{id}(\{u,u'\})} z id ({ u , u ′ }) at both endpoints. These updates maintain the summaries exactly through arbitrarily many legal deletions and reinsertions.
A graph algorithm with fewer levels and rounds
The algorithm keeps an exact bitmap only for a sampled edge universe, while vertex syndromes handle shallower sampling levels. At a report, it first recovers enough neighbors of each vertex to obtain large components and then repairs the remaining component boundaries. Its parameters depend on v v v , δ \delta δ , and the chosen threshold b b b .
Algorithm outline. The sketching branch has the following four steps.
Setup. Construct the shared code and verification field, and initialize independent bootstrap and repair banks. Each bank stores its sampling seed, verification point, vertex rows, and top bitmap.
Stream update. Toggle the two endpoint rows at every level sampling the edge and its top live bit when selected. Recompute selected-name ranks by universe scans, charging their indices and workspace.
Singleton bootstrap at a report. Query each singleton in each bootstrap bank and insert returned edges into a temporary forest, discarding edges that would create cycles.
Component repair at the same report. For each fresh repair bank, freeze the current components and try to recover an outgoing edge from each. Collect all proposals before merging; finally output the forest and discard report workspace.
The small hash field has degree O ( log v ) O(\log v) O ( log v ) , so deterministic irreducible-polynomial enumeration and hash evaluation are polynomial in v v v .
For every bank, Lemma B.1 supplies an independent ( 2 b + 2 ) (2b + 2) ( 2 b + 2 ) -wise full-name hash into h = ⌈ log ( N E + 1 ) ⌉ + 8 h = \lceil\log(N_E + 1)\rceil+ 8 h = ⌈ log ( N E + 1 )⌉ + 8 bits, using O ( b A ) O(bA) O ( b A ) seed bits and polynomial construction and evaluation time. A name belongs to level j j j when its first j j j hash bits are zero. The bank uses depth
L = max { 0 , ⌈ log ( v / ( 128 b ) ) ⌉ } , p = 2 − L , C t o p = min { N E , ⌈ 16 N E p + 2 b ⌉ } . (12) L = \max\{0,\lceil\log(v/(128b))\rceil\}, \qquad p = 2^{-L}, \qquad C_{\mathrm{top}} = \min\{N_E,\lceil16N_Ep + 2b\rceil\}. \tag*{(12)} L = max { 0 , ⌈ log ( v / ( 128 b ))⌉} , p = 2 − L , C top = min { N E , ⌈ 16 N E p + 2 b ⌉} . (12)
The bank stores binary neighbor rows at levels 0 , … , L 0,\ldots,L 0 , … , L . During setup, enumerate the fixed universe of selected top-level names; if its size exceeds C t o p C_{\mathrm{top}} C top , permanently use an empty top graph. Otherwise, retain one live bit per selected name, indexed by its position among the selected names in the fixed universe order. To find this position, scan the original universe up to this name and count the names selected at level L L L ; the list of edge names is never stored. Thus the top graph always consists of present original edges and costs O ( v b ) O(vb) O ( v b ) bits per bank. Lemma B.1 bounds overflow by 16 − 2 b 16^{-2b} 1 6 − 2 b , including the impossible-overflow case C t o p = N E C_{\mathrm{top}} = N_E C top = N E .
The algorithm’s singleton bootstrap targets min { b , deg G ( u ) } \min\{b,\deg_G(u)\} min { b , deg G ( u )} distinct neighbors at each vertex to reduce the number of unfinished components before repair. Related neighborhood-recovery and contraction steps appear in dynamic-stream spanner constructions [34 ] . The bootstrap uses
ℓ = ⌊ τ 0 + A + 2 b − 1 ⌋ (13) \ell= \left\lfloor\frac{\tau_0 + A + 2}{b - 1}\right\rfloor \tag*{(13)} ℓ = ⌊ b − 1 τ 0 + A + 2 ⌋ (13)
independent banks. In each bank every query remains the singleton { u } \{u\} { u } , even while returned edges are merged into a forest. At each shallow level, apply Lemma 3.1 with C = { u } C = \{u\} C = { u } , followed by the independent verification procedure above, and interpret the accepted incident edges as candidate neighbors. The top bitmap instead supplies present sampled neighbors directly. Return b b b distinct neighbors if its top bitmap or any accepted shallow candidate provides at least b b b ; otherwise use its accepted level-zero list if that list has fewer than b b b entries. A bank may return fewer true neighbors on failure. In the ideal execution, level zero recovers all neighbors whenever deg G ( u ) ≤ K \deg_G(u) \le K deg G ( u ) ≤ K . For larger degree, a shallow sampling level or the top bitmap supplies at least b b b neighbors except with probability at most 2 1 − b 2^{1-b} 2 1 − b for each fixed vertex and bank. To obtain this bound, choose a shallow scale or top sample with mean at least 64 b 64b 64 b . The lower-tail calculation of Lemma B.1 gives
Pr ( X < b ) ≤ 2 − b . (14) \Pr(X < b) \le2^{-b}. \tag*{(14)} Pr ( X < b ) ≤ 2 − b . (14)
Combining this lower-tail estimate with the shallow upper-tail bound, or with the bitmap overflow bound at the top level, gives the claimed per-vertex failure probability of at most 2 1 − b 2^{1-b} 2 1 − b .
Independence of the ℓ \ell ℓ banks and a union bound over the fixed singleton vertices bound the probability that some vertex has no successful bank by
v ( 2 1 − b ) ℓ ≤ v 2 − τ 0 − A − 2 ≤ 2 − τ 0 − 2 , v(2^{1-b})^\ell\le v2^{-\tau_0-A-2} \le2^{-\tau_0-2}, v ( 2 1 − b ) ℓ ≤ v 2 − τ 0 − A − 2 ≤ 2 − τ 0 − 2 ,
since v < 2 A v < 2^A v < 2 A . The same ideal equality test covers all singleton queries, even when the union forest is updated between them. When every vertex has a successful bank, every unfinished component of the union of returned edges has more than b b b vertices. Here a component is unfinished if it has an outgoing edge in the current graph G G G . Indeed, if a component contains a vertex u u u of degree at least b b b , it contains both u u u and the b b b distinct neighbors returned by a successful bank, so it has at least b + 1 b+1 b + 1 vertices. If all its vertices have degree below b b b , a vertex with a true outgoing edge has a successful bank returning all its neighbors, also a contradiction. Incremental cycle filtering stores just a forest of this union, with excess at most v / ( b + 1 ) v/(b+1) v / ( b + 1 ) , in O ( v A ) O(vA) O ( v A ) bits; the union itself is never archived.
The repair phase uses fresh banks and freezes the current components at the beginning of each round. Its parameters are
λ = ⌈ log ( 2 + v / b ) ⌉ , R 2 = 8 λ + 2 ⌈ 2 τ 0 / b ⌉ . \lambda= \left\lceil\log(2+v/b)\right\rceil,\qquad R_2 = 8\lambda+ 2\left\lceil2\tau_0/b\right\rceil. λ = ⌈ log ( 2 + v / b ) ⌉ , R 2 = 8 λ + 2 ⌈ 2 τ 0 / b ⌉ .
If a cut’s top-level sample has mean at least 64 b 64b 64 b , its top bitmap misses the cut with probability at most 2 − b + 16 − 2 b ≤ 2 1 − b 2^{-b}+16^{-2b}\leq2^{1-b} 2 − b + 1 6 − 2 b ≤ 2 1 − b . If the top-level mean is below 64 b 64b 64 b , a nonempty cut has a retained shallow level whose sample is nonempty and K K K -sparse except with probability at most 2 1 − b 2^{1-b} 2 1 − b . Collect all proposals before making any merge. The analysis of the fresh rounds uses the good/bad-round argument of Nelson and Yu [37 Appendix A] , starting from the smaller excess established by the bootstrap. If more than half of the unfinished components fail to propose an outgoing edge, call the round bad. Markov’s inequality bounds its conditional probability by 2 2 − b 2^{2-b} 2 2 − b . In a good round the proposal graph merges at least half as many components as there are successful proposals, so component excess decreases by a factor at most 3 / 4 3/4 3/4 . Since the initial excess is at most v / ( b + 1 ) < 2 λ v/(b+1)<2^\lambda v / ( b + 1 ) < 2 λ and ( 3 / 4 ) 4 < 1 / 2 (3/4)^4<1/2 ( 3/4 ) 4 < 1/2 , 4 λ 4\lambda 4 λ good rounds suffice. Failure requires at least R 2 / 2 R_2/2 R 2 /2 bad rounds. Repair sampling uses fresh randomness independent of the bootstrap, so conditioning on bootstrap success leaves its sampling law unchanged. The conditional estimates and a union bound over the bad-round positions give
Pr ( repair fails ∣ bootstrap succeeds ) ≤ 2 R 2 ( 2 2 − b ) R 2 / 2 ≤ 2 − b R 2 / 4 ≤ 2 − τ 0 . \Pr(\text{repair fails}\mid\text{bootstrap succeeds})\leq2^{R_2}(2^{2-b})^{R_2/2}\leq2^{-bR_2/4}\leq2^{-\tau_0}. Pr ( repair fails ∣ bootstrap succeeds ) ≤ 2 R 2 ( 2 2 − b ) R 2 /2 ≤ 2 − b R 2 /4 ≤ 2 − τ 0 .
To account for verification, put J = ℓ + R 2 J=\ell+R_2 J = ℓ + R 2 . Each bank handles at most v v v singleton or frozen-component queries, and each queried cut selects at most one candidate per level, tested at most once. The exact top bitmaps require no additional fingerprint tests. Since b ≥ 8 b\geq8 b ≥ 8 and τ 0 ≤ v \tau_0\leq v τ 0 ≤ v , the definitions give λ ≤ A ≤ v \lambda\leq A\leq v λ ≤ A ≤ v , ℓ ≤ v \ell\leq v ℓ ≤ v , R 2 ≤ 10 v R_2\leq10v R 2 ≤ 10 v , and L + 1 ≤ A + 4 ≤ 3 v L+1\leq A+4\leq3v L + 1 ≤ A + 4 ≤ 3 v . Thus the ideal execution of a single report makes at most
N t e s t ≤ J ( L + 1 ) v ≤ 64 v 3 N_{\mathrm{test}}\leq J(L+1)v\leq64v^3 N test ≤ J ( L + 1 ) v ≤ 64 v 3
candidate tests, giving the δ / 64 \delta/64 δ /64 collision allowance from § 3.1 . Including verification and field construction, the total error bound is
2 − τ 0 − 2 + 2 − τ 0 + δ / 64 + δ / 64 < δ . 2^{-\tau_0-2}+2^{-\tau_0}+\delta/64+\delta/64<\delta. 2 − τ 0 − 2 + 2 − τ 0 + δ /64 + δ /64 < δ .
All space and running-time caps hold on every tape, including the failure branches. Before optimization, the algorithm uses peak space
O ( v ( L + 1 ) [ λ + τ 0 + A b ] [ b H b + A + τ 0 ] ) (15) O\left(v(L+1)\left[\lambda+\frac{\tau_0+A}{b}\right]\left[bH_b+A+\tau_0\right]\right) \tag*{(15)} O ( v ( L + 1 ) [ λ + b τ 0 + A ] [ b H b + A + τ 0 ] ) (15)
This includes the stored dense matrix, every O ( v b ) O(vb) O ( v b ) bitmap, the O ( J b A ) O(JbA) O ( J b A ) hash seeds, all verification seeds, bilinear workspace, bootstrap and frozen-part arrays, universe-rank scans, and output. Universe scans recompute ranks, so each top level retains only its O ( v b ) O(vb) O ( v b ) -bit live bitmap. The bitmap remains exact after arbitrarily many simple updates because each selected name has one live bit.
Memory accounting. The following table records the retained arrays and the largest simultaneously needed workspace. Temporary forests are maintained by cycle filtering, and report scratch is discarded before the next event. Thus reports do not change the persistent graph state.
Table 1.
The bilinear workspace fits the bound because r 2 ≤ v r r^2 \leq vr r 2 ≤ v r , and all candidate generation is serial. Code setup and every decoding call are polynomial even on an unpromised input, and field construction has a fixed trial cap. After saturating confidence at the exact-storage threshold, every retained parameter and loop count is polynomial in v v v . Reading a longer parameter header adds its own input-reading time.
With the parameter choice justified next and the exact-adjacency alternative, the resulting algorithm uses peak space
O ( min { v 2 , v ( A + τ 0 ) log 2 ( 2 + v A + τ 0 ) } ) . (16) O\left(\min\left\{v^2,v(A+\tau_0)\log^2\left(2+\frac{v}{A+\tau_0}\right)\right\}\right). \tag*{(16)} O ( min { v 2 , v ( A + τ 0 ) log 2 ( 2 + A + τ 0 v ) } ) . (16)
The optimized algorithm and its retained linear state
The following interface summarizes the preceding algorithm and allows its code implementation to be supplied independently.
Lemma 3.2 (Vertex-syndrome compiler). Let v ≥ 2 v \geq2 v ≥ 2 , A = ⌈ log ( v + 1 ) ⌉ A=\lceil\log(v+1)\rceil A = ⌈ log ( v + 1 )⌉ , and τ 0 = ⌈ log ( 64 / δ ) ⌉ \tau_0=\lceil\log(64/\delta)\rceil τ 0 = ⌈ log ( 64/ δ )⌉ for 0 < δ ≤ 1 / 4 0<\delta\leq1/4 0 < δ ≤ 1/4 , and suppose τ 0 ≤ v \tau_0\leq v τ 0 ≤ v . For 8 ≤ b ≤ v / 32768 8\leq b\leq v/32768 8 ≤ b ≤ v /32768 , suppose a deterministic binary syndrome on v v v coordinates recovers every 1024 b 1024b 1024 b -sparse binary vector. The syndrome has r ≤ v r\leq v r ≤ v rows with r = O ( b H b ) r=O(bH_b) r = O ( b H b ) , and uses O ( v b H b ) O(vbH_b) O ( v b H b ) bits for construction, storage, and decoding, where H b = log ( 1 + v / b ) H_b=\log(1+v/b) H b = log ( 1 + v / b ) . Its deterministic constructor must use polynomially many bit operations in v v v , with an absolute exponent. Its decoder must have bounded polynomial work on every input and either return a vector meeting its support and syndrome checks or fail. Then one-report simple-graph spanning forests have a linear-sketch algorithm over F 2 \mathbb{F}_2 F 2 with peak space
O ( v λ ( λ + A + τ 0 b ) [ b H b + A + τ 0 ] ) , λ = ⌈ log ( 2 + v / b ) ⌉ . (17) O\left(v\lambda\left(\lambda+\frac{A+\tau_0}{b}\right)\left[bH_b+A+\tau_0\right]\right),\qquad\lambda=\lceil\log(2+v/b)\rceil. \tag*{(17)} O ( v λ ( λ + b A + τ 0 ) [ b H b + A + τ 0 ] ) , λ = ⌈ log ( 2 + v / b )⌉ . (17) The error is at most δ \delta δ on every fixed legal dynamic graph stream, and running time is polynomial on every tape. The algorithm uses v v v , δ \delta δ , and the chosen threshold b b b . The range τ 0 > v \tau_0>v τ 0 > v is handled by exact adjacency in the optimization below.
Proof. Sections 3.1 and 3.2 give the algorithm for the stated free parameter b b b . The two-pass decoder uses the hypothesized 1024 b 1024b 1024 b -sparse code at cut threshold 512 b 512b 512 b , and selects its candidate before verification. The preceding error calculation is below δ \delta δ . There are O ( λ ) O(\lambda) O ( λ ) levels and O ( λ + ( A + τ 0 ) / b ) O(\lambda+(A+\tau_0)/b) O ( λ + ( A + τ 0 ) / b ) banks; summing the resource table proves (3.9). The code and field construction, universe scans, candidate checks, and output operations all have polynomial running time on every tape under the stated codec hypothesis. Neighbor syndromes, top bits, and binary-expanded fingerprints are linear in current adjacency; setup and overflow flags are graph independent. Proposition 3.3 below records this map explicitly.
Choosing the recovery threshold. The code of Corollary C.2 satisfies every hypothesis of Lemma 3.2, including setup space and all-input decoding time. With U = A + τ 0 U=A+\tau_0 U = A + τ 0 , choose
r 0 = ⌈ log ( 2 + v / U ) ⌉ , b = max { 8 , ⌈ U / r 0 ⌉ } . (18) r_0=\lceil\log(2+v/U)\rceil,\qquad b=\max\{8,\lceil U/r_0\rceil\}. \tag*{(18)} r 0 = ⌈ log ( 2 + v / U )⌉ , b = max { 8 , ⌈ U / r 0 ⌉} . (18)
Then L + 1 L+1 L + 1 , λ \lambda λ , H b = O ( r 0 ) H_b=O(r_0) H b = O ( r 0 ) , U / b ≤ r 0 U/b\leq r_0 U / b ≤ r 0 , b ≤ 8 + U / r 0 b\leq8+U/r_0 b ≤ 8 + U / r 0 , and r 0 = O ( A ) ≤ O ( U ) r_0=O(A)\leq O(U) r 0 = O ( A ) ≤ O ( U ) . Hence a row costs b H b + U = O ( U ) bH_b+U=O(U) b H b + U = O ( U ) bits, and both the level count and bank count are O ( r 0 ) O(r_0) O ( r 0 ) . Equations (3.7) and (3.9) give O ( v U r 0 2 ) O(vUr_0^2) O ( v U r 0 2 ) space.
The algorithm uses exact adjacency if U > v U>v U > v , if b > v / 32768 b>v/32768 b > v /32768 , if the fixed finite cutoff of the codec is not met, or if its full integer resource estimate favors exact storage. The threshold b > v / 32768 b>v/32768 b > v /32768 implies v U τ 0 2 = Ω ( v 2 ) vU\tau_0^2 = \Omega(v^2) v U τ 0 2 = Ω ( v 2 ) with an absolute constant. Bounded small v v v are absorbed by the same convention. A code-table estimate reaching v 2 v^2 v 2 can therefore select adjacency before any code is constructed. With these branches, the algorithm supports read-only reports and uses space
O ( min { v 2 , v ( A + τ 0 ) log 2 ( 2 + v A + τ 0 ) } ) . (19) O\left(\min\left\{v^2, v(A+\tau_0)\log^2\left(2+\frac{v}{A+\tau_0}\right)\right\}\right). \tag*{(19)} O ( min { v 2 , v ( A + τ 0 ) log 2 ( 2 + A + τ 0 v ) } ) . (19)
The two savings are simultaneous: vertex-domain coding reduces a row to O ( U ) O(U) O ( U ) bits at this threshold, and the bitmap and bootstrap reduce both scheduling counts to O ( r 0 ) O(r_0) O ( r 0 ) . Keeping a b A bA b A -bit edge row or an A A A -scale repair depth would leave an additional A / H b A/H_b A / H b factor when H b = o ( A ) H_b=o(A) H b = o ( A ) .
The persistent binary map. The following proposition makes explicit the retained-linear property of the algorithm attaining the space bound in Theorem 1.2 : conditional on setup, its retained graph state is a binary linear image of current adjacency, as formalized in § 6.1 . For one report on an arbitrary fixed legal dynamic graph stream, put
A = ⌈ log ( v + 1 ) ⌉ , t = 1 + log ( 1 / δ ) , S ( v , t ) = min { v 2 , v ( A + t ) log 2 ( 2 + v A + t ) } . (20) A=\lceil\log(v+1)\rceil,\qquad t=1+\log(1/\delta),\qquad S(v,t)=\min\left\{v^2,v(A+t)\log^2\left(2+\frac{v}{A+t}\right)\right\}. \tag*{(20)} A = ⌈ log ( v + 1 )⌉ , t = 1 + log ( 1/ δ ) , S ( v , t ) = min { v 2 , v ( A + t ) log 2 ( 2 + A + t v ) } . (20)
The setup depends on v v v and δ \delta δ alone, and the space bound includes its construction and decoding workspace.
Proposition 3.3 (Optimal fixed-field retained sketch). The algorithm uses O ( S ( v , t ) ) O(S(v,t)) O ( S ( v , t )) bits of peak space on every random tape. Every algorithm meeting the same error requirement needs Ω ( S ( v , t ) ) \Omega(S(v,t)) Ω ( S ( v , t )) bits, both for worst-case peak space and for worst-input expected peak space under the original coin law. Thus the optimal space complexity is Θ ( S ( v , t ) ) \Theta(S(v,t)) Θ ( S ( v , t )) in both measures, with absolute constants. The algorithm has polynomial setup and per-event running time on every tape. Conditional on its retained graph-independent setup ρ \rho ρ , every completed-event graph-dependent state is
M ρ x ∈ F 2 s , M ρ : F 2 ( v 2 ) ⟶ F 2 s linear , (21) M_\rho x\in\mathbb{F}_2^s,\qquad M_\rho:\mathbb{F}_2^{v\choose2}\longrightarrow\mathbb{F}_2^s\ \text{linear}, \tag*{(21)} M ρ x ∈ F 2 s , M ρ : F 2 ( 2 v ) ⟶ F 2 s linear , (21) where x x x is current zero–one adjacency. The dimension can be fixed by zero padding. Both an insertion and a deletion toggle the corresponding column. Reports are read only; their temporary forests and scratch are charged but not retained. Every zero-error algorithm, including randomized algorithms, needs Ω ( v 2 ) \Omega(v^2) Ω ( v 2 ) bits; a deterministic algorithm storing binary adjacency always returns a correct forest using O ( v 2 ) O(v^2) O ( v 2 ) bits.
Proof. Lemma 3.2 and its optimization establish the algorithm’s stated memory use; Proposition 3.6 below proves the matching space lower bound. The retained map, including failure branches, is specified below because § 6.1 uses this exact state interface. The parameters are
τ 0 = ⌈ log ( 64 / δ ) ⌉ , U = A + τ 0 , r 0 = ⌈ log ( 2 + v / U ) ⌉ , b = max { 8 , ⌈ U / r 0 ⌉ } , H b = log ( 1 + v / b ) . (22) \tau_0=\lceil\log(64/\delta)\rceil,\qquad U=A+\tau_0,\qquad r_0=\lceil\log(2+v/U)\rceil,\qquad b=\max\{8,\lceil U/r_0\rceil\},\qquad H_b=\log(1+v/b). \tag*{(22)} τ 0 = ⌈ log ( 64/ δ )⌉ , U = A + τ 0 , r 0 = ⌈ log ( 2 + v / U )⌉ , b = max { 8 , ⌈ U / r 0 ⌉} , H b = log ( 1 + v / b ) . (22)
For the instantiated code, n = v n=v n = v and k = 2 K = 1024 b k=2K=1024b k = 2 K = 1024 b , where K = 512 b K=512b K = 512 b is the cut threshold. Corollary C.2 gives row width O ( b log ( e v / b ) ) O(b\log(ev/b)) O ( b log ( e v / b )) and a deterministic all-input checked decoder. Both passes of cut recovery have binary sparse preimages, so no stronger field-input promise is required. The deterministic code introduces no failure event, including for intermediate vectors that depend on its matrix.
Candidate-name lists fit the charged workspace. If 4 K ≤ v 4K\le v 4 K ≤ v , a nonzero kernel vector of weight at most 4 K 4K 4 K could be partitioned into two distinct binary vectors of weight at most 2 K 2K 2 K with the same syndrome, contradicting unique recovery. Thus every set of at most 4 K 4K 4 K columns is linearly independent, and r ≥ 4 K r \ge4K r ≥ 4 K . The O ( K log v ) O(K \log v) O ( K log v ) list bits are absorbed by O ( v r + v log v ) O(vr + v \log v) O ( v r + v log v ) . If 4 K > v 4K > v 4 K > v , the identity or exact branch has K = 512 b = O ( v ) K = 512b = O(v) K = 512 b = O ( v ) , so O ( v log v ) O(v \log v) O ( v log v ) scratch suffices. Exact adjacency may already be selected when 2 K ≥ v / 32 2K \ge v/32 2 K ≥ v /32 . The full code table and O ( v b log ( e v / b ) ) O(vb \log(ev/b)) O ( v b log ( e v / b )) decoder scratch are included in (15) .
In the sketching branch, each bank’s top depth and cap are
L = max { 0 , ⌈ log ( v 128 b ) ⌉ } , p = 2 − L , C t o p = min { N E , ⌈ 16 N E p + 2 b ⌉ } . (23) L = \max\left\{0, \left\lceil\log\left(\frac{v}{128b}\right) \right\rceil\right\}, \qquad p = 2^{-L}, \qquad C_{\mathrm{top}} = \min\left\{N_E, \left\lceil16N_Ep + 2b \right\rceil\right\}. \tag*{(23)} L = max { 0 , ⌈ log ( 128 b v ) ⌉ } , p = 2 − L , C top = min { N E , ⌈ 16 N E p + 2 b ⌉ } . (23)
The sampling seed determines overflow before any graph is processed. An overflow flag selects a zero top block; otherwise every top bit is a fixed projection of current adjacency. No selected-name list is retained. For this retained-map implementation, the verification-field constants may be increased to
w ∗ = a ∗ = τ 0 + 10 A + 40. (24) w_* = a_* = \tau_0 + 10A + 40. \tag*{(24)} w ∗ = a ∗ = τ 0 + 10 A + 40. (24)
Index the banks by i i i . Conditional on successful bounded field construction, each bank chooses an independent uniform w ∗ w_* w ∗ -bit point z i z_i z i . At vertex u u u and level j j j its fingerprint is
Z u , i , j = ∑ e ∋ u χ i , j ( e ) x e z i id ( e ) ∈ F 2 w ∗ . (25) Z_{u,i,j} = \sum_{e \ni u} \chi_{i,j}(e)x_e z_i^{\operatorname{id}(e)} \in\mathbb{F}_2^{w_*}. \tag*{(25)} Z u , i , j = e ∋ u ∑ χ i , j ( e ) x e z i id ( e ) ∈ F 2 w ∗ . (25)
In the fixed binary basis, these are F 2 \mathbb{F}_2 F 2 -linear coordinates. The ideal-trace argument above applies unchanged: field-search failure and fingerprint collisions are charged separately, and uniform points require no rejection sampler. All failure flags are graph independent and select fixed zero blocks.
The neighbor syndromes, top bitmap, and expanded fingerprints concatenate to (21) . Reports discard partitions, proposals, and the working forest before the next event, leaving exactly ( ρ , M ρ x ) (\rho, M_\rho x) ( ρ , M ρ x ) as persistent state. The stored code tables and seeds generate columns of M ρ M_\rho M ρ as needed. Before optimization, the algorithm uses peak space
O ( v ( L + 1 ) [ λ + τ 0 + A b ] [ b H b + A + τ 0 ] ) , λ = ⌈ log ( 2 + v / b ) ⌉ . (26) O\left(v(L+1)\left[\lambda+ \frac{\tau_0 + A}{b}\right]\left[bH_b + A + \tau_0\right]\right), \qquad\lambda= \left\lceil\log(2 + v/b) \right\rceil. \tag*{(26)} O ( v ( L + 1 ) [ λ + b τ 0 + A ] [ b H b + A + τ 0 ] ) , λ = ⌈ log ( 2 + v / b ) ⌉ . (26)
It includes the full code tables, maximum decoder scratch, verification field and points, rank scans, hashes, partitions, and output. The parameter relations above give O ( v U r 0 2 ) O(vUr_0^2) O ( v U r 0 2 ) ; exact adjacency gives the cap in (20) . Confidence is read with saturation at v v v , so every field degree and loop count in the sketching branch is polynomial in v v v . Reading the finite parameter headers is charged separately. A zero-error algorithm also meets every positive-error guarantee. The quadratic high-confidence lower bound of Proposition 3.6 therefore gives its Ω ( v 2 ) \Omega(v^2) Ω ( v 2 ) lower bound, matched by exact adjacency.
Encoding a source under pointwise error
For the lower bound, correctness on every fixed stream gives a strong premise: every fixed source and deletion query has small error. The proof first converts this premise into an information bound, then embeds independent sources as graph neighborhoods. Information is measured under the joint distribution of the source and the generated message, without conditioning on successful decoding. Logarithms in information quantities are binary, while ln \ln ln is natural. The underlying one-way communication task is the subset version of universal relation: an encoder given a set S S S sends one message to a decoder, which is given a proper subset T ⊂ S T \subset S T ⊂ S and must return an element of S ∖ T S \setminus T S ∖ T . The argument adapts the universal-relation encoding of Kapralov et al. [31 Section 3.1] and its information formulation by Nelson and Yu [37 Appendix B] , keeping the source cardinality explicit.
The lossless encoding reuses one message across a sequence of growing query subsets. At each stage, it adds any successfully recovered element to the queried subset, then fills to the next prescribed size with unused members of S S S , ordered by an independent random permutation of the source universe. The recovered elements influence later queries, whose distributions therefore need not remain uniform. An adaptive-filling density estimate bounds this departure from uniformity. The encoding argument below explains its role; Appendix § 8 .§ 2 gives the full encoding proof and density calculation.
Lemma 3.4 (Pointwise-error source encoding). There are absolute constants C , β ∗ > 0 C, \beta_* > 0 C , β ∗ > 0 with the following property. Let L = ln ( 1 / β ) L = \ln(1/\beta) L = ln ( 1/ β ) , 0 < β < β ∗ 0 < \beta< \beta_* 0 < β < β ∗ , m ≥ L m \ge L m ≥ L , and U ≥ C m U \ge Cm U ≥ C m . Let S S S be uniform among the m m m -subsets of [ U ] [U] [ U ] . A message M M M is generated from S S S , independently of the query. Suppose a decoder, given M M M and any T ⊊ S T \subsetneq S T ⊊ S , outputs a member of S ∖ T S \setminus T S ∖ T with error at most β \beta β for every fixed pair ( S , T ) (S,T) ( S , T ) , where probability includes the message and fresh decoder coins. Then
I ( S ; M ) = Ω ( L log ( 2 + m / L ) log ( U / m ) ) . (27) I(S;M) = \Omega\left(L\log(2 + m/L)\log(U/m)\right). \tag*{(27)} I ( S ; M ) = Ω ( L log ( 2 + m / L ) log ( U / m ) ) . (27) The decoder may be randomized, and message length is unrestricted. The decoder is a total output channel: a failure symbol is permitted, but each simulated call terminates. The common finite cutoff supplies this condition in the forest application.
Encoding argument. Reuse the message for R = Θ ( L log ( 2 + m / L ) ) R = \Theta(L\log(2 + m/L)) R = Θ ( L log ( 2 + m / L )) queries whose sizes increase geometrically. Each successful query reveals one new member of S S S ; an independent random permutation fills the query to the next prescribed size. Although the revealed members influence later queries, the adaptive-filling calculation bounds each query law, conditional on S S S , M M M , by β − 1 / 4 \beta^{-1/4} β − 1/4 times the corresponding uniform-subset law. Fresh decoder coins and the pointwise error premise then bound each stage’s error by β 3 / 4 \beta^{3/4} β 3/4 , so a constant fraction of the R R R stages succeed in expectation.
The message, one success flag per stage, the shared permutations and decoder tapes, and the residual set S ∖ S r e c S \setminus S_{\mathrm{rec}} S ∖ S rec reconstruct S S S losslessly, where S r e c S_{\mathrm{rec}} S rec is the set of revealed members. Reconstruction replays each successful output and fills from the remaining residual elements. Elements revealed later could not have been chosen as earlier fillers, which makes the replay exact. The flags cost R R R bits, while each revealed member saves order log ( U / m ) \log(U/m) log ( U / m ) bits in the residual description. The resulting information bound is I ( S ; M ) ≥ E ∣ S r e c ∣ log ( ( U − m ) / m ) − R I(S;M) \ge\mathbb{E}|S_{\mathrm{rec}}|\log((U-m)/m) - R I ( S ; M ) ≥ E ∣ S rec ∣ log (( U − m ) / m ) − R . This proves the claimed order once U / m U/m U / m is sufficiently large. Appendix § 8 .§ 2 gives the exact query sizes, rounding estimates, density bound, and lossless entropy calculation.
The full-confidence spanning-forest space lower bound
The following graph reduction uses at most Z Z Z deletion operations in its single query. Consequently its hard streams satisfy the historical-deficit promise with budget Z Z Z . The unrestricted application may take Z Z Z large enough to impose no constraint; § 4 uses the same interface to prove lower bounds already under the stronger total-deletion restriction. Only one row is queried, but the information chain rule charges every source row.
Lemma 3.5 (Exact single-row interface). There are absolute β 0 , C 0 > 0 \beta_0,C_0 > 0 β 0 , C 0 > 0 such that, for every integer Z ≥ 0 Z \ge0 Z ≥ 0 , every 0 < η < β 0 / 2 0 < \eta< \beta_0/2 0 < η < β 0 /2 , L η = ln ( 1 / ( 2 η ) ) L_\eta= \ln(1/(2\eta)) L η = ln ( 1/ ( 2 η )) , and positive integers N , U , m N,U,m N , U , m satisfying
m ≥ L η , U ≥ C 0 m , N + U ≤ v , m − 1 ≤ Z , m \ge L_\eta,\qquad U \ge C_0m,\qquad N+U \le v,\qquad m-1 \le Z, m ≥ L η , U ≥ C 0 m , N + U ≤ v , m − 1 ≤ Z , every spanning-forest algorithm required to have error at most η \eta η on all legal streams with at most Z Z Z deletion operations requires space s s s satisfying
s + 1 = Ω ( N L η log ( 2 + m / L η ) log ( U / m ) ) (28) s + 1 = \Omega\left(NL_\eta\log(2 + m/L_\eta)\log(U/m)\right) \tag*{(28)} s + 1 = Ω ( N L η log ( 2 + m / L η ) log ( U / m ) ) (28) for both peak-space measures, using one report and a simple graph.
Proof. Independently draw N N N uniform m m m -subset source rows and insert their bipartite edges in a common prefix. A query deletes only one row’s subset; at most m − 1 m-1 m − 1 deletions suffice, and a spanning forest exposes an incident edge in that row’s nonempty remaining set. Use a common finite cutoff with extra error at most η \eta η and let M 0 M_0 M 0 be the tagged original prefix state. Its original-law entropy is O ( s + 1 ) O(s+1) O ( s + 1 ) . For row i i i , view the simulation as a single-row encoder: given S i S_i S i , it privately samples the other independent rows and simulates the common insertion prefix to form M 0 M_0 M 0 . It sends M i = ( S < i , M 0 ) M_i=(S_{<i},M_0) M i = ( S < i , M 0 ) , revealing only the preceding rows alongside the saved state. For every fixed pair ( S i , T i ) (S_i,T_i) ( S i , T i ) its error, averaged over the other independent source rows, is at most 2 η 2\eta 2 η . This follows from correctness on each fixed stream and the common finite cutoff; the query remains independent of the prefix message given S i S_i S i . Lemma 3.4 with β = 2 η \beta=2\eta β = 2 η therefore bounds its external information I ( S i ; S < i , M 0 ) = I ( S i ; M 0 ∣ S < i ) I(S_i;S_{<i},M_0)=I(S_i;M_0\mid S_{<i}) I ( S i ; S < i , M 0 ) = I ( S i ; M 0 ∣ S < i ) from below by Ω ( L η log ( 2 + m / L η ) log ( U / m ) ) \Omega(L_\eta\log(2+m/L_\eta)\log(U/m)) Ω ( L η log ( 2 + m / L η ) log ( U / m )) . Summing the information lower bound by the chain rule bounds it by I ( S 1 , … , S N ; M 0 ) ≤ H ( M 0 ) I(S_1,\ldots,S_N;M_0)\le H(M_0) I ( S 1 , … , S N ; M 0 ) ≤ H ( M 0 ) , proving (3.20).
Proposition 3.6 (Matching space lower bound at every confidence level). For spanning-forest output on fixed legal dynamic graph streams without a deletion or length promise, let v ≥ 2 v\ge2 v ≥ 2 , 0 < δ ≤ 1 / 4 0<\delta\le1/4 0 < δ ≤ 1/4 , A = ⌈ log ( v + 1 ) ⌉ A=\lceil\log(v+1)\rceil A = ⌈ log ( v + 1 )⌉ , and t = 1 + log ( 1 / δ ) t=1+\log(1/\delta) t = 1 + log ( 1/ δ ) . For any algorithm meeting these requirements, let s s s denote either its worst-case peak space or its worst-input expected peak space. Then
s + 1 = Ω ( min { v 2 , v ( A + t ) log 2 ( 2 + v A + t ) } ) . (29) s+1=\Omega\left(\min\left\{v^2,\;v(A+t)\log^2\left(2+\frac{v}{A+t}\right)\right\}\right). \tag*{(29)} s + 1 = Ω ( min { v 2 , v ( A + t ) log 2 ( 2 + A + t v ) } ) . (29)
Proof. The constant-success lower bound of Nelson and Yu [37 ] gives s + 1 = Ω ( v A 3 ) s+1=\Omega(vA^3) s + 1 = Ω ( v A 3 ) for worst-case peak space. It gives the same expected-peak lower bound: stop a simulation before its charged memory exceeds 16 ( s + 1 ) 16(s+1) 16 ( s + 1 ) bits. For each fixed stream, Markov’s inequality loses at most 1 / 16 1/16 1/16 success probability. The resulting hard-space algorithm has success at least 11 / 16 > 2 / 3 11/16>2/3 11/16 > 2/3 . A memory-length guard uses O ( log ( s + 2 ) ) O(\log(s+2)) O ( log ( s + 2 )) additional bits, so the hard cap remains O ( s + 1 ) O(s+1) O ( s + 1 ) . Applying the published theorem proves the claim with expectation taken over the original coin law.
The confidence term follows from a direct argument. Let C ≥ 4 C\ge4 C ≥ 4 be a sufficiently large absolute constant for both Lemma 3.4 and Lemma 3.5. Put
N = ⌊ v / 2 ⌋ , U = ⌈ v / 2 ⌉ , L = min { ln 1 2 δ , U 16 C 2 } , β = e − L , m = ⌊ U L 2 C ⌋ . (30) N=\lfloor v/2\rfloor,\qquad U=\lceil v/2\rceil,\qquad L=\min\left\{\ln\frac{1}{2\delta},\frac{U}{16C^2}\right\},\qquad\beta=e^{-L},\qquad m=\left\lfloor\frac{\sqrt{UL}}{2C}\right\rfloor. \tag*{(30)} N = ⌊ v /2 ⌋ , U = ⌈ v /2 ⌉ , L = min { ln 2 δ 1 , 16 C 2 U } , β = e − L , m = ⌊ 2 C U L ⌋ . (30)
First suppose v v v and t t t exceed sufficiently large absolute constants. They may be chosen so that U ≥ 16 C 2 U\ge16C^2 U ≥ 16 C 2 , L ≥ 1 L\ge1 L ≥ 1 , and β \beta β is below both lemmas’ fixed thresholds. Since L ≤ U / ( 16 C 2 ) L\le U/(16C^2) L ≤ U / ( 16 C 2 ) ,
m ≥ 2 L ≥ L , m ≤ U 8 C 2 + 1 ≤ U 4 C 2 ≤ U C 2 , 2 δ ≤ β . (31) m\ge2L\ge L,\qquad m\le\frac{U}{8C^2}+1\le\frac{U}{4C^2}\le\frac{U}{C^2},\qquad2\delta\le\beta. \tag*{(31)} m ≥ 2 L ≥ L , m ≤ 8 C 2 U + 1 ≤ 4 C 2 U ≤ C 2 U , 2 δ ≤ β . (31)
Thus all source-encoding hypotheses hold, even when the original confidence exponent is arbitrarily larger than v v v .
Apply Lemma 3.5 with error η = β / 2 ≥ δ \eta=\beta/2\ge\delta η = β /2 ≥ δ , so L η = L L_\eta=L L η = L , and the parameters N , U , m N,U,m N , U , m in (3.22). Its source hypotheses follow from (3.23), and N + U = v N+U=v N + U = v . There is no deletion promise, so the required m − 1 m-1 m − 1 deletions are legal. The lemma uses one row’s query at a time and charges all N N N independent source rows by the information chain rule, using a common finite cutoff and the tagged original state with entropy O ( s + 1 ) O(s+1) O ( s + 1 ) . Hence, for both peak-space measures,
s + 1 = Ω ( v L log ( 2 + m / L ) log ( U / m ) ) . (32) s+1=\Omega\left(vL\log(2+m/L)\log(U/m)\right). \tag*{(32)} s + 1 = Ω ( v L log ( 2 + m / L ) log ( U / m ) ) . (32)
Write x = U / L ≥ 16 C 2 x = U/L \ge16C^2 x = U / L ≥ 16 C 2 . Because the unrounded value in (30) is at least 2 L ≥ 2 2L \ge2 2 L ≥ 2 , rounding changes it by at most a constant factor. Consequently,
log ( 2 + m / L ) = Θ ( log ( 2 + x ) ) , log ( U / m ) = Θ ( log ( 2 + x ) ) . \log(2 + m/L) = \Theta(\log(2 + x)), \qquad\log(U/m) = \Theta(\log(2 + x)). log ( 2 + m / L ) = Θ ( log ( 2 + x )) , log ( U / m ) = Θ ( log ( 2 + x )) .
The constants depend only on the fixed absolute C C C ; the lower bound on x x x keeps both logarithms positive. Also L = Θ ( min { t , v } ) L = \Theta(\min\{t,v\}) L = Θ ( min { t , v }) . Hence (32) gives
s + 1 = Ω ( v min { t , v } log 2 ( 2 + v min { t , v } ) ) . (33) s + 1 = \Omega\left(v\min\{t,v\}\log^2\left(2 + \frac{v}{\min\{t,v\}}\right)\right). \tag*{(33)} s + 1 = Ω ( v min { t , v } log 2 ( 2 + min { t , v } v ) ) . (33)
For bounded t t t , the required bound is absorbed by v A 3 vA^3 v A 3 . Bounded v v v follows from the space-accounting convention. When t ≤ A t \le A t ≤ A the right-hand side of (29) is O ( v A 3 ) O(vA^3) O ( v A 3 ) ; when A ≤ t ≤ v A \le t \le v A ≤ t ≤ v it is O ( v t log 2 ( 2 + v / t ) ) O(vt\log^2(2 + v/t)) O ( v t log 2 ( 2 + v / t )) ; and when t ≥ v t \ge v t ≥ v it is at most v 2 v^2 v 2 . The baseline and (33) therefore prove (29) in all ranges. ▢
For the final simplification, log v ≤ A ≤ log v + 1 \log v \le A \le\log v + 1 log v ≤ A ≤ log v + 1 and log ( 1 / δ ) ≥ 2 \log(1/\delta) \ge2 log ( 1/ δ ) ≥ 2 give
log ( v / δ ) ≤ A + t ≤ 2 log ( v / δ ) , \log(v/\delta) \le A + t \le2\log(v/\delta), log ( v / δ ) ≤ A + t ≤ 2 log ( v / δ ) ,
log ( v / δ ) ≤ A + τ 0 ≤ 4 log ( v / δ ) . \log(v/\delta) \le A + \tau_0 \le4\log(v/\delta). log ( v / δ ) ≤ A + τ 0 ≤ 4 log ( v / δ ) .
For any u > 0 u > 0 u > 0 and c ≥ 1 c \ge1 c ≥ 1 , concavity and monotonicity of the logarithm imply
1 c log ( 2 + v / u ) ≤ log ( 2 + v / ( c u ) ) ≤ log ( 2 + v / u ) . \frac{1}{c}\log(2 + v/u) \le\log(2 + v/(cu)) \le\log(2 + v/u). c 1 log ( 2 + v / u ) ≤ log ( 2 + v / ( c u )) ≤ log ( 2 + v / u ) .
Thus replacing u u u by c u cu c u in v u log 2 ( 2 + v / u ) vu\log^2(2 + v/u) v u log 2 ( 2 + v / u ) changes its value by a factor between 1 / c 1/c 1/ c and c c c ; taking the minimum with v 2 v^2 v 2 preserves this comparison. The substitutions of log ( v / δ ) \log(v/\delta) log ( v / δ ) for A + t A + t A + t and A + τ 0 A + \tau_0 A + τ 0 therefore change the full space expressions only by absolute factors, absorbed by the O O O and Ω \Omega Ω notation. The algorithm’s memory use in (19) and the space lower bound (29) prove Theorems 1.1 and 1.2, including both peak-space measures. The lower bound uses legal edge deletions and applies to arbitrary nonlinear algorithms; the algorithm designed above uses the matching amount of memory with the retained binary map specified above. The next consequence identifies exactly when its space advantage over explicit adjacency persists.
Corollary 3.7 (The exact boundary of subquadratic space). Consider any sequence v → ∞ v \to\infty v → ∞ and errors 0 < δ ( v ) ≤ 1 / 4 0 < \delta(v) \le1/4 0 < δ ( v ) ≤ 1/4 , with t = 1 + log ( 1 / δ ) t = 1 + \log(1/\delta) t = 1 + log ( 1/ δ ) . The fully dynamic one-report optimal space complexity is o ( v 2 ) o(v^2) o ( v 2 ) if and only if t = o ( v ) t = o(v) t = o ( v ) . It is Θ ( v 2 ) \Theta(v^2) Θ ( v 2 ) if and only if t = Ω ( v ) t = \Omega(v) t = Ω ( v ) . These statements concern both peak-space measures in Theorem 1.2. Oscillating sequences can satisfy neither alternative.
Proof. Put u = ( A + t ) / v u = (A + t)/v u = ( A + t ) / v and ϕ ( u ) = min { 1 , u log 2 ( 2 + 1 / u ) } \phi(u) = \min\{1, u\log^2(2 + 1/u)\} ϕ ( u ) = min { 1 , u log 2 ( 2 + 1/ u )} . The normalized optimal space complexity is Θ ( ϕ ( u ) ) \Theta(\phi(u)) Θ ( ϕ ( u )) with absolute constants. As u ↓ 0 u \downarrow0 u ↓ 0 , u log 2 ( 2 + 1 / u ) → 0 u\log^2(2 + 1/u) \to0 u log 2 ( 2 + 1/ u ) → 0 . For every fixed ϵ > 0 \epsilon> 0 ϵ > 0 , u ≥ ϵ u \ge\epsilon u ≥ ϵ gives ϕ ( u ) ≥ min { 1 , ϵ } > 0 \phi(u) \ge\min\{1,\epsilon\} > 0 ϕ ( u ) ≥ min { 1 , ϵ } > 0 . Thus a vanishing ratio is equivalent to u → 0 u \to0 u → 0 , whereas a uniform positive lower bound is equivalent to lim inf u > 0 \liminf u > 0 lim inf u > 0 : if lim inf u = 0 \liminf u = 0 lim inf u = 0 , select a subsequence tending to zero. Since A / v → 0 A/v \to0 A / v → 0 , these are respectively t = o ( v ) t = o(v) t = o ( v ) and t = Ω ( v ) t = \Omega(v) t = Ω ( v ) . Finally, log ( 1 / δ ) ≤ t ≤ 3 2 log ( 1 / δ ) \log(1/\delta) \le t \le\frac{3}{2}\log(1/\delta) log ( 1/ δ ) ≤ t ≤ 2 3 log ( 1/ δ ) , so both criteria can equivalently use log ( 1 / δ ) \log(1/\delta) log ( 1/ δ ) in place of t t t , as in the introduction. ▢
For example t = v / f ( v ) t = v/f(v) t = v / f ( v ) with f ( v ) → ∞ f(v) \to\infty f ( v ) → ∞ and f ( v ) = o ( v / A ) f(v) = o(v/A) f ( v ) = o ( v / A ) has optimal space complexity Θ ( v 2 log 2 ( 2 + f ( v ) ) / f ( v ) ) \Theta(v^2\log^2(2 + f(v))/f(v)) Θ ( v 2 log 2 ( 2 + f ( v )) / f ( v )) . Here f f f may grow arbitrarily slowly, by Theorem 1.2. The following section determines how far a report-time historical-deficit promise can reduce this space requirement.
Optimal Spanning-Forest Space under a Historical-Deficit Bound
At a fixed legal stream prefix w w w , write E e v e r ( w ) E^{\mathrm{ever}}(w) E ever ( w ) for the edge names inserted at least once and E ( w ) E(w) E ( w ) for the current edge set. The historical deficit is
d ( w ) = ∣ E e v e r ( w ) ∖ E ( w ) ∣ . (34) d(w) = \left|E^{\mathrm{ever}}(w) \setminus E(w)\right|. \tag*{(34)} d ( w ) = ∣ E ever ( w ) ∖ E ( w ) ∣ . (34)
The integer Z ≥ 0 Z \ge0 Z ≥ 0 is given in advance, and the single report is promised to satisfy d ( w ) ≤ Z d(w) \le Z d ( w ) ≤ Z . The total number of deletions and restorations and all intermediate values of d d d are unrestricted. An edge deleted and then restored contributes zero to d ( w ) d(w) d ( w ) ; the full set E e v e r ( w ) E^{\mathrm{ever}}(w) E ever ( w ) is an analysis device and is never stored. Update and report sequences are fixed independently of the algorithm’s random coins.
We first design a deterministic algorithm that is correct at every promised report, and prove a matching lower bound for all zero-error algorithms. For positive error, we combine the same compressed storage of historical edge names and live bits with the cut-recovery tools of § 3 . Both algorithms maintain their space bounds on every legal update history, even when the deficit exceeds Z Z Z between reports. The matching lower bounds use only the smaller class of streams with at most Z Z Z deletion operations in total: an indexed-block argument gives the constant-error baseline, and a single-row argument retains the additional cost of confidence. These algorithms for the full historical-deficit model and lower bounds for its bounded-deletion subclass establish Theorems 1.3 and 1.4. Throughout this section, A = ⌈ log ( v + 1 ) ⌉ A = \lceil\log(v + 1)\rceil A = ⌈ log ( v + 1 )⌉ , μ = min { Z + 1 , v } \mu= \min\{Z + 1,v\} μ = min { Z + 1 , v } , and B Z = min { A 2 , log 2 ( Z + 2 ) } B_Z = \min\{A^2,\log^2(Z + 2)\} B Z = min { A 2 , log 2 ( Z + 2 )} . For positive failure probability, write t = 1 + log ( 1 / δ ) t = 1 + \log(1/\delta) t = 1 + log ( 1/ δ ) . Write c ( G ) c(G) c ( G ) for the number of connected components, including isolated vertices. Use N E = ( v 2 ) N_E = \binom{v}{2} N E = ( 2 v ) for the edge-universe size and m m m for the size of one source neighborhood in the lower bounds.
Maintaining historical connectivity in compressed space
The number of currently absent historical edges limits how many stored historical edge names can be absent at a report. The data structure adapts classical sparse connectivity certificates by maintaining a monotone set of historical edge names [36 , 27 ] . Its distinct edge names and live bits control the component excess caused by currently absent names; the implementation also accounts for compressed storage and update workspace.
Lemma 4.1 (Maintaining historical edges and their live subset). For any integer q ≥ 1 q \ge1 q ≥ 1 , a deterministic data structure processes any legal dynamic graph stream and maintains a set S S S of historical edge names together with its live subset W W W , with the following properties. Write d S = ∣ S ∖ W ∣ d_S = |S \setminus W| d S = ∣ S ∖ W ∣ for the number of stored names currently absent.
∣ S [ U ] ∣ ≤ q ( ∣ U ∣ − 1 ) ( ∅ ≠ U ⊆ [ v ] ) , W = S ∩ E ( G ) , |S[U]| \le q(|U| - 1) \quad(\varnothing\ne U \subseteq[v]), \qquad W = S \cap E(G), ∣ S [ U ] ∣ ≤ q ( ∣ U ∣ − 1 ) ( ∅ = U ⊆ [ v ]) , W = S ∩ E ( G ) , c ( W ) − c ( G ) ≤ 2 d S q ≤ 2 d ( w ) q . (35) c(W) - c(G) \le\frac{2d_S}{q} \le\frac{2d(w)}{q}. \tag*{(35)} c ( W ) − c ( G ) ≤ q 2 d S ≤ q 2 d ( w ) . (35) These inequalities hold at every event boundary, since S ∖ W ⊆ E e v e r ( w ) ∖ E ( w ) S \setminus W \subseteq E^{\mathrm{ever}}(w) \setminus E(w) S ∖ W ⊆ E ever ( w ) ∖ E ( w ) . If d S < q d_S < q d S < q , then W W W spans G G G ; in particular, this holds when d ( w ) < q d(w) < q d ( w ) < q . The density invariant does not require any bound on d ( w ) d(w) d ( w ) or on past deletions. For 1 ≤ q ≤ v + 1 1 \le q \le v + 1 1 ≤ q ≤ v + 1 , its space, including its update and traversal scratch, is
O ( v q log ( 1 + v / q ) ) . (36) O(vq\log(1 + v/q)). \tag*{(36)} O ( v q log ( 1 + v / q )) . (36) The representation stores each accepted name once, together with its live bit. Lemma 4.2 provides polynomial-time maintenance using this amount of memory.
Proof. The historical set S S S is never reduced, and an insertion of a stored name only sets its live bit to one. On insertion of a name e = { u , u ′ } ∉ S e = \{u,u'\} \notin S e = { u , u ′ } ∈ / S , accept it if and only if the minimum u u u –u ′ u' u ′ cut in the historical graph ( [ v ] , S ) ([v], S) ([ v ] , S ) has size less than q q q ; otherwise reject it. Acceptance adds the name with a live bit equal to one, while a deletion clears a stored live bit and otherwise has no effect. These operations preserve the live invariant because each edge has multiplicity zero or one throughout the stream. Because all historical cuts only grow, rejection is permanent, and each accepted name is stored only once even after arbitrarily many reinsertion cycles.
Induct on accepted names for the density invariant. If adding e e e would first violate it, there is a set U U U containing both endpoints with ∣ S [ U ] ∣ = q ( ∣ U ∣ − 1 ) |S[U]| = q(|U| - 1) ∣ S [ U ] ∣ = q ( ∣ U ∣ − 1 ) before insertion. For any nontrivial B ⊂ U B \subset U B ⊂ U , the two smaller-set inequalities imply
∣ ∂ S [ U ] B ∣ ≥ q ( ∣ U ∣ − 1 ) − q ( ∣ B ∣ − 1 ) − q ( ∣ U ∖ B ∣ − 1 ) = q . |\partial_{S[U]}B| \ge q(|U| - 1) - q(|B| - 1) - q(|U \setminus B| - 1) = q. ∣ ∂ S [ U ] B ∣ ≥ q ( ∣ U ∣ − 1 ) − q ( ∣ B ∣ − 1 ) − q ( ∣ U ∖ B ∣ − 1 ) = q .
Every global cut separating the endpoints consequently has at least q q q historical edges, contradicting acceptance. Thus ∣ S ∣ ≤ q ( v − 1 ) |S| \le q(v - 1) ∣ S ∣ ≤ q ( v − 1 ) .
Let C C C be a component of W W W which is not a whole component of the current graph. Some current edge crosses C C C . Since C C C is a component of W = S ∩ E ( w ) W = S \cap E(w) W = S ∩ E ( w ) , this edge cannot belong to S S S and was therefore rejected when first inserted. The historical set S S S only grows, so the minimum cut between its endpoints in ( [ v ] , S ) ([v], S) ([ v ] , S ) remains at least q q q . It follows that ∣ ∂ S C ∣ ≥ q |\partial_S C| \ge q ∣ ∂ S C ∣ ≥ q . Every such crossing historical name is absent from the current graph and belongs to S ∖ W S \setminus W S ∖ W . Since S ⊆ E e v e r ( w ) S \subseteq E^{\mathrm{ever}}(w) S ⊆ E ever ( w ) and W = S ∩ E ( w ) W = S \cap E(w) W = S ∩ E ( w ) , the number of absent stored names is at most d ( w ) d(w) d ( w ) . Call a component of W W W unfinished when it has an outgoing edge in G G G . If N N N components are unfinished, summing their cuts gives q N ≤ 2 d S ≤ 2 d ( w ) qN \le2d_S \le2d(w) q N ≤ 2 d S ≤ 2 d ( w ) . The component excess is at most N N N , proving (4.2). If d S < q d_S < q d S < q , even one unfinished component would need at least q q q distinct absent stored names on its boundary, which is impossible.
The set and its live bits are stored by combinatorial rank rather than by listing edge names. With C q = min { N E , q ( v − 1 ) } C_q = \min\{N_E, q(v - 1)\} C q = min { N E , q ( v − 1 )} , the sparse branch uses
O ( log ( N E C q ) + C q + v A ) = O ( v q log ( 1 + v / q ) ) O\left(\log\binom{N_E}{C_q} + C_q + vA\right) = O\left(vq\log(1 + v/q)\right) O ( log ( C q N E ) + C q + v A ) = O ( v q log ( 1 + v / q ) )
bits; a two-bit-per-name representation handles the dense branch. Appendix D.1 verifies that rank updates, traversal, and all temporary copies fit within the same memory allowance. The endpoint cut test fits the same cap by Lemma 4.2, whose implementation is given next.
The graph invariant specifies which edge names the data structure accepts. For efficient maintenance, integral flows directly on the compressed names implement this acceptance test.
Lemma 4.2 (Polynomial-time operations on compressed historical edge storage). For every integer 1 ≤ q ≤ v + 1 1 \le q \le v + 1 1 ≤ q ≤ v + 1 , the data structure of (4.2), which stores each accepted edge name once, supports deterministic updates and traversals using polynomially many bit operations in v v v , on every legal dynamic graph stream, using space
O ( v q log ( 1 + v / q ) ) . (37) O(vq\log(1 + v/q)). \tag*{(37)} O ( v q log ( 1 + v / q )) . (37) Its historical set S S S , current live subset W W W , density invariant, component-excess bound, and exact-spanning guarantee when d S < q d_S < q d S < q are unchanged.
Implementation idea. To test historical endpoint connectivity without constructing an explicit adjacency list, scan the compressed names to enumerate the residual arcs of a unit-capacity flow network, with two directed arcs per stored edge. The transient flow uses two bits per edge, and the search uses O ( v A ) O(vA) O ( v A ) bits for its queue, visited flags, and predecessor data. These arrays, together with the compressed-name traversal workspace, fit the same space bound. At most v − 1 v - 1 v − 1 augmentations determine whether the endpoint cut is below q q q . Appendix D.2 gives the residual-arc representation, exact acceptance test, and workspace accounting.
A space-optimal deterministic spanning-forest algorithm
Theorem 1.4 follows from a deterministic algorithm that always returns a correct forest at a promised report and a matching space lower bound that also applies to randomized zero-error algorithms. The following statement also records an equivalent binomial expression for the space.
Theorem 4.3 (Optimal zero-error space under a historical-deficit bound). For every v ≥ 2 v \ge2 v ≥ 2 and advance integer Z ≥ 0 Z \ge0 Z ≥ 0 , consider fixed legal dynamic graph streams whose report prefix w w w satisfies d ( w ) ≤ Z d(w) \le Z d ( w ) ≤ Z . The optimal space complexity among algorithms that return a correct spanning forest in finite time with probability one on every such stream is
Θ ( min { v 2 , v ( Z + 1 ) log ( 1 + v Z + 1 ) } ) (38) \Theta\left(\min\left\{v^2,\ v(Z+1)\log\left(1+\frac{v}{Z+1}\right)\right\}\right) \tag*{(38)} Θ ( min { v 2 , v ( Z + 1 ) log ( 1 + Z + 1 v ) } ) (38) bits, for both peak-space measures of Appendix § 7 . Equivalently, this order is
Θ ( v log ( v + min { Z , v } + 1 v ) ) . (39) \Theta\left(v\log\left(\frac{v+\min\{Z,v\}+1}{v}\right)\right). \tag*{(39)} Θ ( v log ( v v + min { Z , v } + 1 ) ) . (39) The space lower bound applies to all zero-error algorithms, including randomized ones, and requires only one report after a common-length insertion prefix followed by at most Z Z Z deletion operations in total. The deterministic algorithm returns a correct spanning forest at every promised report, permits any finite number of such reports, and has polynomial time per event with all scratch and output charged. Its space bound holds throughout every legal update history, without any intermediate deficit bound or limit on deletion and restoration operations. In particular, Z = 0 Z = 0 Z = 0 has order v log ( v + 1 ) v\log(v+1) v log ( v + 1 ) , and Z ≥ v Z \ge v Z ≥ v has order v 2 v^2 v 2 .
Proof. Algorithm and memory use. For Z ≤ v Z \le v Z ≤ v , use the historical edge data structure of Lemma 4.1 , which stores each accepted name once, with q = Z + 1 q = Z+1 q = Z + 1 . At every promised report, d S ≤ d ( w ) ≤ Z < q d_S \le d(w) \le Z < q d S ≤ d ( w ) ≤ Z < q , so its live subset spans the current graph. Scanning this subset and retaining a temporary forest gives a read-only report using space
O ( v ( Z + 1 ) log ( 1 + v / ( Z + 1 ) ) ) . (40) O\left(v(Z+1)\log(1+v/(Z+1))\right). \tag*{(40)} O ( v ( Z + 1 ) log ( 1 + v / ( Z + 1 )) ) . (40)
Lemma 4.2 implements its acceptance test with bounded integral flow and polynomial work. For Z > v Z > v Z > v , retain the N E N_E N E -bit adjacency bitmap and compute a spanning forest by a read-only scan at each report. Its O ( v log ( v + 1 ) ) O(v\log(v+1)) O ( v log ( v + 1 )) traversal, component, and output scratch fits O ( v 2 ) O(v^2) O ( v 2 ) bits. The deficit header can be saturated at the branch threshold, so a large Z Z Z does not require retaining its full description. Both branches have polynomial time per event and a deterministic hard space cap. For the branch that stores historical edges, the monotone historical set always has at most q ( v − 1 ) q(v-1) q ( v − 1 ) names, regardless of the number of past restorations or the current deficit. Report workspace is discarded after output, leaving the stored edge names and live bits, or the bitmap, unchanged.
Lower bound. For v ≥ 4 v \ge4 v ≥ 4 , put N = ⌊ v / 2 ⌋ N = \lfloor v/2\rfloor N = ⌊ v /2 ⌋ , U = ⌈ v / 2 ⌉ U = \lceil v/2\rceil U = ⌈ v /2 ⌉ , and m = min { Z + 1 , ⌊ U / 2 ⌋ } ≥ 1 m = \min\{Z+1,\lfloor U/2\rfloor\} \ge1 m = min { Z + 1 , ⌊ U /2 ⌋} ≥ 1 . Use N N N row vertices and U U U column vertices. Independently choose an arbitrary m m m -subset S i ⊆ [ U ] S_i \subseteq[U] S i ⊆ [ U ] at each row, and insert the corresponding bipartite edges in canonical order. This gives
M = ( U m ) N M = \binom{U}{m}^{N} M = ( m U ) N
sources, all of length N m Nm N m . For any two different sources choose a row i i i where the sets S i , S i ′ S_i,S_i' S i , S i ′ differ. Append the common continuation that deletes the edges of S i ∩ S i ′ S_i \cap S_i' S i ∩ S i ′ at this row and requests a report. Both streams are legal, and the continuation uses
∣ S i ∩ S i ′ ∣ ≤ m − 1 ≤ Z |S_i \cap S_i'| \le m - 1 \le Z ∣ S i ∩ S i ′ ∣ ≤ m − 1 ≤ Z
deletions in total, and therefore has historical deficit at most Z Z Z at every prefix. The two residual incident sets at row i i i are nonempty and disjoint. Every spanning forest must contain an incident edge at this nonisolated row, so no forest is valid for both continuations. This remains true if a forest uses several edges incident to the row.
Thus the positive-probability supports of the original prefix-state distributions of distinct sources are disjoint. Indeed, a shared state would induce the same future law on the common continuation, contradicting zero-error correctness and finite response with probability one. Choose a shortest positive-probability state for each source. These are M M M distinct binary strings, whose average length is at least log M − 2 \log M - 2 log M − 2 . For each fixed source, its original expected prefix-state length is at least its chosen minimum; that length is bounded by the expected peak space on a legal immediate-report completion. Consequently, both space metrics are
Ω ( N log ( U m ) ) , (41) \Omega\left(N \log\binom{U}{m}\right), \tag*{(41)} Ω ( N log ( m U ) ) , (41)
under the original state distribution.
If Z + 1 ≤ U / 2 Z + 1 \le U/2 Z + 1 ≤ U /2 , the standard binomial estimates and N , U = Θ ( v ) N,U = \Theta(v) N , U = Θ ( v ) give
N log ( U Z + 1 ) = Θ ( v ( Z + 1 ) log ( 1 + v / ( Z + 1 ) ) ) . N \log\binom{U}{Z+1} = \Theta\left(v(Z+1)\log(1+v/(Z+1))\right). N log ( Z + 1 U ) = Θ ( v ( Z + 1 ) log ( 1 + v / ( Z + 1 )) ) .
When the choice of m m m is capped at ⌊ U / 2 ⌋ \lfloor U/2 \rfloor ⌊ U /2 ⌋ , log ( U m ) = Θ ( U ) \log\binom{U}{m} = \Theta(U) log ( m U ) = Θ ( U ) , so (4.8) is Ω ( v 2 ) \Omega(v^2) Ω ( v 2 ) . In this case Z + 1 = Ω ( v ) Z+1 = \Omega(v) Z + 1 = Ω ( v ) and the expression in (38) is Θ ( v 2 ) \Theta(v^2) Θ ( v 2 ) as well. The space-accounting convention and exact bitmap cover v < 4 v < 4 v < 4 . Finally, the binomial entropy estimate with a = min { Z , v } + 1 ≤ v + 1 a = \min\{Z,v\} + 1 \le v + 1 a = min { Z , v } + 1 ≤ v + 1 gives
log ( v + a v ) = Θ ( a log ( 1 + v / a ) ) , \log\binom{v+a}{v} = \Theta(a\log(1+v/a)), log ( v v + a ) = Θ ( a log ( 1 + v / a )) ,
which proves the equivalent form (39) and completes the proof of Theorem 1.4 .
The v 2 v^2 v 2 saturation relies on the simple-graph promise that edge multiplicities remain in { 0 , 1 } \{0,1\} { 0 , 1 } . For example, an entire graph may be deleted and restored arbitrarily often. Since complete restoration leaves no historical edge absent, the deterministic algorithm with budget Z = 0 Z = 0 Z = 0 answers every such report exactly. It uses O ( v log v ) O(v\log v) O ( v log v ) space throughout the stream, regardless of how many reports are requested.
A recovery algorithm using the report-time deficit
For positive error, the algorithm reuses the binary cut decoder and independent verification from § 3 . A spanning forest of the stored live edges supplies the initial partition, so no singleton bootstrap is needed. Sampled historical-edge data structures replace the top bitmaps; at a report, each repair bank freezes the current components, collects outgoing-edge proposals, and then merges. Write τ 0 = ⌈ log ( 64 / δ ) ⌉ \tau_0 = \lceil\log(64/\delta)\rceil τ 0 = ⌈ log ( 64/ δ )⌉ and first suppose 32 τ 0 < Z ≤ v 32\tau_0 < Z \le v 32 τ 0 < Z ≤ v . Choose any integer 8 ≤ b ≤ Z 8 \le b \le Z 8 ≤ b ≤ Z and set K = 512 b K = 512b K = 512 b as in the cut decoder. Instantiate Corollary C.2 with n = v n = v n = v and k = min { 2 K , v } = min { 1024 b , v } k = \min\{2K,v\} = \min\{1024b,v\} k = min { 2 K , v } = min { 1024 b , v } , using H = I v H = I_v H = I v when k ≥ v / 32 k \ge v/32 k ≥ v /32 . This meets the required recovery guarantee because every binary v v v -vector of weight at most 2 K 2K 2 K has weight at most k k k . The row bound remains r = O ( b log ( 1 + v / b ) ) r = O(b \log(1 + v/b)) r = O ( b log ( 1 + v / b )) and total codec space is O ( v b log ( 1 + v / b ) ) O(vb \log(1 + v/b)) O ( v b log ( 1 + v / b )) ; in the identity branch these bounds follow from v ≤ 32768 b v \le32768b v ≤ 32768 b . Put
λ = ⌈ log ( 2 + 2 Z / b ) ⌉ , L = ⌈ log ( 64 Z / b ) ⌉ , R = 8 λ + 2 ⌈ 2 τ 0 / b ⌉ . (42) \lambda= \lceil\log(2 + 2Z/b) \rceil,\quad L = \lceil\log(64Z/b) \rceil,\quad R = 8\lambda+ 2\lceil2\tau_0/b \rceil. \tag*{(42)} λ = ⌈ log ( 2 + 2 Z / b )⌉ , L = ⌈ log ( 64 Z / b )⌉ , R = 8 λ + 2 ⌈ 2 τ 0 / b ⌉ . (42)
The algorithm maintains the compressed historical edge data structure with threshold b b b on the entire raw stream. At the fixed report prefix w w w , its live graph W 0 W_0 W 0 has component excess at most 2 d ( w ) / b ≤ 2 Z / b 2d(w)/b \le2Z/b 2 d ( w ) / b ≤ 2 Z / b by Lemma 4.1 . Each independent bank has the standard ( 2 b + 2 ) (2b + 2) ( 2 b + 2 ) -wise full-name hash into F 2 h \mathbb{F}_{2^h} F 2 h , where h = ⌈ log ( N E + 1 ) ⌉ + 8 h = \lceil\log(N_E + 1) \rceil+ 8 h = ⌈ log ( N E + 1 )⌉ + 8 ; level j j j retains names with j j j leading zero bits. Since b ≥ 8 b \ge8 b ≥ 8 and Z ≤ v Z \le v Z ≤ v , the inequality 64 Z / b ≤ 8 v 64Z/b \le8v 64 Z / b ≤ 8 v holds, hence L ≤ ⌈ log v ⌉ + 3 < h L \le\lceil\log v \rceil+ 3 < h L ≤ ⌈ log v ⌉ + 3 < h . Each bank maintains the same compressed data structure with threshold b + 1 b + 1 b + 1 on its raw level-L L L sample. At all shallower levels it retains the binary vertex syndromes and independent verification fingerprints of § 3 . The live edge sets of all sampled data structures are always subgraphs of their current sampled graphs.
Lemma B.1 supplies the full-name hash and tails: a fixed cut with dyadic mean in ( 64 b , 128 b ] (64b, 128b] ( 64 b , 128 b ] is nonempty and K K K -sparse except with probability 2 1 − b 2^{1-b} 2 1 − b ; a top cut of mean at least 64 b 64b 64 b is nonempty except with probability 2 − b 2^{-b} 2 − b . At this report, put E m i s s = E e v e r ( w ) ∖ E ( w ) E_{\mathrm{miss}} = E^{\mathrm{ever}}(w) \setminus E(w) E miss = E ever ( w ) ∖ E ( w ) , so that ∣ E m i s s ∣ ≤ Z \lvert E_{\mathrm{miss}}\rvert\le Z ∣ E miss ∣ ≤ Z . For the top-level selected edge universe P P P , let Y = ∣ E m i s s ∩ P ∣ Y = \lvert E_{\mathrm{miss}} \cap P\rvert Y = ∣ E miss ∩ P ∣ . The choice of depth gives p = Pr ( e ∈ P ) ≤ b / ( 64 Z ) p = \Pr(e \in P) \le b/(64Z) p = Pr ( e ∈ P ) ≤ b / ( 64 Z ) , and hence E Y ≤ b / 64 \mathbb{E}Y \le b/64 E Y ≤ b /64 . The set E m i s s E_{\mathrm{miss}} E miss is fixed independently of the bank’s coins, so ( b + 1 ) (b + 1) ( b + 1 ) -wise independence gives
Pr ( Y > b ) ≤ E ( Y b + 1 ) = ( ∣ E m i s s ∣ b + 1 ) p b + 1 ≤ ( e b 64 ( b + 1 ) ) b + 1 ≤ 16 − ( b + 1 ) . (43) \begin{aligned}
\Pr(Y > b) \le\mathbb{E}\binom{Y}{b+1} = \binom{\lvert E_{\mathrm{miss}}\rvert}{b+1}p^{b+1} \\
&\le\left(\frac{eb}{64(b+1)}\right)^{b+1} \le16^{-(b+1)}. \tag*{(43)}
\end{aligned} Pr ( Y > b ) ≤ E ( b + 1 Y ) = ( b + 1 ∣ E miss ∣ ) p b + 1 ≤ ( 64 ( b + 1 ) e b ) b + 1 ≤ 1 6 − ( b + 1 ) . (43)
The binomial coefficient is zero if ∣ E m i s s ∣ < b + 1 \lvert E_{\mathrm{miss}}\rvert< b + 1 ∣ E miss ∣ < b + 1 . The sampled subhistory has ever-inserted and current edge sets whose difference is exactly E m i s s ∩ P E_{\mathrm{miss}} \cap P E miss ∩ P . Thus its top-level data structure with threshold b + 1 b + 1 b + 1 has at most Y Y Y absent stored names and, on Y ≤ b Y \le b Y ≤ b , its live subset spans the current sample by Lemma 4.1 . For a cut frozen before this bank is inspected and having top-level mean at least 64 b 64b 64 b , the top-sample forest can miss the cut only if the current sample has no crossing edge or Y > b Y > b Y > b . Under the fresh bank’s sampling law, these events have probability at most 2 − b 2^{-b} 2 − b and 16 − ( b + 1 ) 16^{-(b+1)} 1 6 − ( b + 1 ) , respectively. A union bound therefore gives failure probability at most 2 − b + 16 − ( b + 1 ) ≤ 2 1 − b 2^{-b} + 16^{-(b+1)} \le2^{1-b} 2 − b + 1 6 − ( b + 1 ) ≤ 2 1 − b . This argument uses only the deficit at the report and imposes no restriction on earlier deletions or intermediate deficits.
A report starts from a spanning forest of W 0 W_0 W 0 . In each bank the algorithm freezes its current connected components. For each component, it selects an outgoing edge from the top-level forest if one exists, and otherwise queries the shallow vertex syndromes; all proposals are collected before any merge. In the ideal execution every unfinished component fails to propose an outgoing edge with conditional probability at most 2 1 − b 2^{1-b} 2 1 − b . Call the round bad if more than half the unfinished components fail; by Markov’s inequality, its conditional probability is at most 2 2 − b 2^{2-b} 2 2 − b . A good round reduces component excess by a factor at most 3 / 4 3/4 3/4 : at least half of the unfinished components propose an edge, and their proposal graph merges at least half that many components. Since ( 3 / 4 ) 4 < 1 / 2 (3/4)^4 < 1/2 ( 3/4 ) 4 < 1/2 and 2 Z / b < 2 λ 2Z/b < 2^\lambda 2 Z / b < 2 λ by (42) , 4 λ 4\lambda 4 λ good rounds reduce the initial excess of at most 2 Z / b 2Z/b 2 Z / b below one, hence to zero. Failure therefore requires more than R − 4 λ ≥ R / 2 R - 4\lambda\ge R/2 R − 4 λ ≥ R /2 bad rounds. The conditional bounds imply that any specified R / 2 R/2 R /2 rounds are all bad with probability at most ( 2 2 − b ) R / 2 (2^{2-b})^{R/2} ( 2 2 − b ) R /2 . Taking a union bound over their possible positions gives
2 R ( 2 2 − b ) R / 2 ≤ 2 − b R / 4 ≤ 2 − τ 0 . (44) 2^R(2^{2-b})^{R/2} \le2^{-bR/4} \le2^{-\tau_0}. \tag*{(44)} 2 R ( 2 2 − b ) R /2 ≤ 2 − b R /4 ≤ 2 − τ 0 . (44)
Here the first inequality uses b / 2 − 2 ≥ b / 4 b/2 - 2 \ge b/4 b /2 − 2 ≥ b /4 for b ≥ 8 b \ge8 b ≥ 8 , and the second follows from the choice of R R R in (42) . There are at most v v v frozen components per bank and level, so the ideal trace has at most N t e s t ≤ R ( L + 1 ) v ≤ 64 v 3 N_{\mathrm{test}} \le R(L + 1)v \le64v^3 N test ≤ R ( L + 1 ) v ≤ 64 v 3 tests; here λ ≤ A ≤ v \lambda\le A \le v λ ≤ A ≤ v , R ≤ 10 v R \le10v R ≤ 10 v , and L ≤ A + 3 L \le A + 3 L ≤ A + 3 . The independent verification and bounded field construction use the separate error allowances of (11) . Together with (44) , their total report error is below δ \delta δ .
With H b = log ( 1 + v / b ) H_b = \log(1 + v/b) H b = log ( 1 + v / b ) , the binary matrix and bilinear scratch cost O ( v r + v A ) O(vr + vA) O ( v r + v A ) . Each of the v R L vRL v R L retained vertex rows has O ( b H b + A + τ 0 ) O(bH_b + A + \tau_0) O ( b H b + A + τ 0 ) bits, and all historical edge data structures together cost O ( v b H b ( R + 1 ) ) O(vbH_b(R + 1)) O ( v b H b ( R + 1 )) . Full-domain hash seeds use O ( R b A ) O(RbA) O ( R b A ) bits and verification seeds use O ( R ( A + τ 0 ) ) O(R(A + \tau_0)) O ( R ( A + τ 0 )) bits. Since A ≤ v A \le v A ≤ v , the hash seeds fit even when H b H_b H b is small. Including all component, enumeration, field, and output scratch, the algorithm uses peak space
O ( v λ ( λ + τ 0 / b ) [ b H b + A + τ 0 ] ) . (45) O\left(v\lambda(\lambda+ \tau_0/b)[bH_b + A + \tau_0]\right). \tag*{(45)} O ( v λ ( λ + τ 0 / b ) [ b H b + A + τ 0 ] ) . (45)
Reports only read persistent syndromes, stored edge sets and live bits, matrices, and seeds; all working partitions and proposal arrays are reset. The space bound also holds at unpromised intermediate prefixes: each copy of the data structure always has at most q ( v − 1 ) q(v - 1) q ( v − 1 ) stored names, its live bits and all source syndromes remain exact through arbitrary restoration cycles, and every other dimension is fixed from v v v , Z Z Z , δ \delta δ at setup. The algorithm neither stores the full historical edge set nor tests whether d ( w ) ≤ Z d(w) \le Z d ( w ) ≤ Z . Since reports leave the persistent state unchanged, the same failure bound applies separately to each promised report in any fixed finite reporting schedule. The joint correctness requirement for the entire schedule is treated in § 5 .
Selecting an algorithm for each parameter range. For every Z ≥ 0 Z \ge0 Z ≥ 0 and 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 , choose an algorithm using O ( L ′ ( v , Z , t ) ) O(L'(v, Z, t)) O ( L ′ ( v , Z , t )) bits, as specified by (7) . The choice depends only on the input parameters, using the following cases in order:
If Z ≤ 32 τ 0 Z \le32\tau_0 Z ≤ 32 τ 0 or t ≥ v t \ge v t ≥ v , use the deterministic algorithm.
Otherwise, if μ ≤ v t \mu\le\sqrt{vt} μ ≤ v t , use the deficit-sensitive algorithm.
Otherwise, use the unrestricted algorithm of § 3 .
The analysis below verifies the space bound in each case.
The exact simple-graph algorithm uses space
E = v μ log ( 1 + v / μ ) (46) E = v\mu\log(1 + v/\mu) \tag*{(46)} E = v μ log ( 1 + v / μ ) (46)
up to an absolute factor. Whenever t ≥ μ / 97 t \ge\mu/97 t ≥ μ /97 , the second term of (7) is Ω ( E ) \Omega(E) Ω ( E ) : one has x t ≥ μ / 97 x_t \ge\mu/\sqrt{97} x t ≥ μ / 97 , x t / t ≤ 97 x_t/t \le97 x t / t ≤ 97 , and log ( 1 + z ) ≥ z / [ ( 1 + 97 ) ln 2 ] \log(1 + z) \ge z/[(1 + 97)\ln2] log ( 1 + z ) ≥ z / [( 1 + 97 ) ln 2 ] for 0 ≤ z ≤ 97 0 \le z \le97 0 ≤ z ≤ 97 . Since τ 0 = ⌈ log ( 64 / δ ) ⌉ ≤ 3 t \tau_0 = \lceil\log(64/\delta)\rceil\le3t τ 0 = ⌈ log ( 64/ δ )⌉ ≤ 3 t , the condition Z ≤ 32 τ 0 Z \le32\tau_0 Z ≤ 32 τ 0 implies μ ≤ Z + 1 ≤ 96 t + 1 ≤ 97 t \mu\le Z + 1 \le96t + 1 \le97t μ ≤ Z + 1 ≤ 96 t + 1 ≤ 97 t . Thus the deterministic algorithm meets the required space bound when Z ≤ 32 τ 0 Z \le32\tau_0 Z ≤ 32 τ 0 , as well as when t ≥ v t \ge v t ≥ v . It includes Z = 0 Z = 0 Z = 0 . In (19) , the additive 2 2 2 keeps the logarithmic factor bounded below before the quadratic cap applies. In (7) , x t = μ x_t = \mu x t = μ and t log ( 1 + x t / t ) = Θ ( μ ) t\log(1 + x_t/t) = \Theta(\mu) t log ( 1 + x t / t ) = Θ ( μ ) when t ≥ v t \ge v t ≥ v , so the confidence term already has the zero-error space order O ( μ ) O(\mu) O ( μ ) .
It remains to consider Z > 32 τ 0 Z > 32\tau_0 Z > 32 τ 0 and t < v t < v t < v . First suppose μ ≤ v t \mu\le\sqrt{vt} μ ≤ v t . Then Z < v Z < v Z < v , and the deficit-sensitive algorithm applies. Choose
a 0 = ⌈ log ( 2 + Z / τ 0 ) ⌉ , b = max { δ , ⌈ τ 0 / a 0 ⌉ } . a_0 = \lceil\log(2 + Z/\tau_0)\rceil,\qquad b = \max\{\delta,\lceil\tau_0/a_0\rceil\}. a 0 = ⌈ log ( 2 + Z / τ 0 )⌉ , b = max { δ , ⌈ τ 0 / a 0 ⌉} .
Here b ≤ Z b \le Z b ≤ Z , λ = O ( a 0 ) \lambda= O(a_0) λ = O ( a 0 ) , τ 0 / b ≤ a 0 \tau_0/b \le a_0 τ 0 / b ≤ a 0 , and b ≤ 8 + τ 0 / a 0 b \le8 + \tau_0/a_0 b ≤ 8 + τ 0 / a 0 . Substituting in (45) gives
O ( v [ A a 0 2 + τ 0 a 0 ( H b + a 0 ) ] ) . (47) O\left(v\left[Aa_0^2 + \tau_0a_0(H_b + a_0)\right]\right). \tag*{(47)} O ( v [ A a 0 2 + τ 0 a 0 ( H b + a 0 ) ] ) . (47)
Let J μ = log ( 1 + v / μ ) J_\mu= \log(1+v/\mu) J μ = log ( 1 + v / μ ) . The branch condition μ 2 ≤ v t \mu^2 \le vt μ 2 ≤ v t and τ 0 ≥ t \tau_0 \ge t τ 0 ≥ t imply μ / τ 0 ≤ v / μ \mu/\tau_0 \le v/\mu μ / τ 0 ≤ v / μ . Therefore, a 0 = O ( J μ ) a_0 = O(J_\mu) a 0 = O ( J μ ) , and, as b ≥ τ 0 / a 0 b \ge\tau_0/a_0 b ≥ τ 0 / a 0 ,
H b ≤ log ( 1 + v a 0 / τ 0 ) ≤ log a 0 + log ( 1 + v / μ ) + log ( 1 + μ / τ 0 ) = O ( J μ ) . H_b \le\log(1+va_0/\tau_0)
\le\log a_0+\log(1+v/\mu)+\log(1+\mu/\tau_0)=O(J_\mu). H b ≤ log ( 1 + v a 0 / τ 0 ) ≤ log a 0 + log ( 1 + v / μ ) + log ( 1 + μ / τ 0 ) = O ( J μ ) .
Also a 0 = O ( log ( 1 + μ / t ) ) a_0 = O(\log(1+\mu/t)) a 0 = O ( log ( 1 + μ / t )) and τ 0 = Θ ( t ) \tau_0 = \Theta(t) τ 0 = Θ ( t ) . Consequently, the second term of (47) is at most an absolute constant times v t log ( 1 + μ / t ) log ( 1 + v / μ ) vt\log(1+\mu/t)\log(1+v/\mu) v t log ( 1 + μ / t ) log ( 1 + v / μ ) , exactly the confidence term of (7) , because now x t = μ x_t=\mu x t = μ . Its first term is O ( v A B Z ) O(vABZ) O ( v A B Z ) , using Z < v Z<v Z < v and a 0 = O ( log ( Z + 2 ) ) a_0=O(\log(Z+2)) a 0 = O ( log ( Z + 2 )) . The algorithm therefore uses the stated amount of memory in this case.
Finally, suppose μ > v t \mu>\sqrt{vt} μ > v t . Now x t = v t x_t=\sqrt{vt} x t = v t , and B Z = Θ ( A 2 ) B_Z=\Theta(A^2) B Z = Θ ( A 2 ) , since t ≥ 3 t\ge3 t ≥ 3 implies Z + 1 > 3 v Z+1>\sqrt{3v} Z + 1 > 3 v . Use (16) . If t ≤ A t\le A t ≤ A , the sketching term is O ( v A 3 ) O(vA^3) O ( v A 3 ) and is covered by the baseline. If t > A t>A t > A , then A + τ 0 = O ( t ) A+\tau_0=O(t) A + τ 0 = O ( t ) and
log ( 2 + v A + τ 0 ) = O ( log ( 1 + v / t ) ) . \log\left(2+\frac{v}{A+\tau_0}\right)=O\left(\log\left(1+\sqrt{v/t}\right)\right). log ( 2 + A + τ 0 v ) = O ( log ( 1 + v / t ) ) .
For this inequality use t < v t<v t < v and 2 + v / t ≤ ( 1 + v / t ) 2 2+v/t\le(1+\sqrt{v/t})^2 2 + v / t ≤ ( 1 + v / t ) 2 . The algorithm uses O ( v t log 2 ( 1 + v / t ) ) O(vt\log^2(1+\sqrt{v/t})) O ( v t log 2 ( 1 + v / t )) space, matching the second term of (7) in this case.
Constant-error lower bounds under a total deletion bound
We prove the lower bound using only streams with at most Z Z Z deletion operations in total. These streams satisfy d ( w ) ≤ Z d(w)\le Z d ( w ) ≤ Z at every prefix, so the bound also applies to algorithms whose only input promise is the deficit bound at the report. The graph reduction starts with N = h k N=hk N = hk row vertices and a shared universe of U U U column vertices, with N + U ≤ v N+U\le v N + U ≤ v . Each row has an independent m m m -element neighborhood, and the rows are partitioned into h h h blocks of k k k rows. After all N m Nm N m source edges have been inserted, a query selects one block and deletes a proper subset of the neighborhood of each of its rows. This uses at most k ( m − 1 ) ≤ Z k(m-1)\le Z k ( m − 1 ) ≤ Z deletions. Every queried row remains nonisolated, so a correct spanning forest reveals a surviving neighbor for every one of the k k k rows and solves their universal-relation instances jointly. The information argument below charges the saved prefix state for all h h h independent blocks, although each stream queries only one block.
The coordinate construction of Nelson and Yu [37 Lemma 3] admits an external-information accounting bound in place of its message-length bound. The following argument gives this accounting directly and specifies its conditioning variables. Combined with the sparse perturbed universal-relation bound stated below in Lemma 4.6, whose proof is in Appendix § 8 .§ 4 , it gives the information bound for this reduction.
In this section, W W W denotes the success event and 1 W \mathbf{1}_W 1 W its binary indicator. The notation I π ( ⋅ ; ⋅ ∣ C , W ) I_\pi(\cdot;\cdot\mid C,W) I π ( ⋅ ; ⋅ ∣ C , W ) means conditional mutual information under the success-conditioned law π ( ⋅ ∣ W ) \pi(\cdot\mid W) π ( ⋅ ∣ W ) , averaged over C C C under that same law. We write I π ( ⋅ ; ⋅ ∣ C , 1 W ) I_\pi(\cdot;\cdot\mid C,\mathbf{1}_W) I π ( ⋅ ; ⋅ ∣ C , 1 W ) when conditioning on the indicator as a random variable, which averages over its values.
Lemma 4.4 (Two elementary success-conditioning bounds). Let π \pi π be any joint law and let W W W be any event with probability p > 0 p>0 p > 0 , including an event depending on private decoder coins. For any collection of variables V V V ,
D K L ( π [ V ∣ W ] ∥ π [ V ] ) ≤ log ( 1 / p ) . (48) D_{\mathrm{KL}}(\pi[V\mid W]\|\pi[V])\le\log(1/p). \tag*{(48)} D KL ( π [ V ∣ W ] ∥ π [ V ]) ≤ log ( 1/ p ) . (48) If A A A and B B B are conditionally independent given C C C under π \pi π , then
I π ( A ; B ∣ C , W ) ≤ log ( 1 / p ) . (49) I_\pi(A;B\mid C,W)\le\log(1/p). \tag*{(49)} I π ( A ; B ∣ C , W ) ≤ log ( 1/ p ) . (49) For arbitrary A , M A,M A , M one also has
p I π ( A ; M ∣ W ) ≤ I π ( A ; M ) + H π ( 1 W ) ≤ I π ( A ; M ) + 1. (50) pI_\pi(A;M\mid W)\le I_\pi(A;M)+H_\pi(\mathbf{1}_W)\le I_\pi(A;M)+1. \tag*{(50)} p I π ( A ; M ∣ W ) ≤ I π ( A ; M ) + H π ( 1 W ) ≤ I π ( A ; M ) + 1. (50)
Proof. The likelihood ratio in (4.15) is Pr ( W ∣ V ) / p ≤ 1 / p \Pr(W \mid V)/p \le1/p Pr ( W ∣ V ) / p ≤ 1/ p . To prove (4.16), expand the relative entropy in (4.15) for V = ( A , B , C ) V=(A,B,C) V = ( A , B , C ) against the reference factorization π [ C ] π [ A ∣ C ] π [ B ∣ C ] \pi[C]\pi[A\mid C]\pi[B\mid C] π [ C ] π [ A ∣ C ] π [ B ∣ C ] . The expansion is I π ( A ; B ∣ C , W ) I_\pi(A;B\mid C,W) I π ( A ; B ∣ C , W ) plus three nonnegative relative-entropy terms. Finally,
p I π ( A ; M ∣ W ) ≤ I π ( A ; M ∣ 1 W ) ≤ I π ( A ; M , 1 W ) ≤ I π ( A ; M ) + H π ( 1 W ) , pI_\pi(A;M\mid W)\le I_\pi(A;M\mid\mathbf{1}_W)\le I_\pi(A;M,\mathbf{1}_W)\le I_\pi(A;M)+H_\pi(\mathbf{1}_W), p I π ( A ; M ∣ W ) ≤ I π ( A ; M ∣ 1 W ) ≤ I π ( A ; M , 1 W ) ≤ I π ( A ; M ) + H π ( 1 W ) ,
which proves (4.17). None of these arguments requires W W W to be a deterministic function of A A A and M M M .
Lemma 4.5 (Coordinate reduction with external information). Let k k k be even and let ( X j , Y j ) j = 1 k (X_j,Y_j)_{j=1}^k ( X j , Y j ) j = 1 k be independent pairs with common law D D D . Consider a one-way protocol with randomized message M M M and possibly randomized output O = ( O 1 , … , O k ) O=(O_1,\ldots,O_k) O = ( O 1 , … , O k ) satisfying the Markov conditions
M ↔ X k ↔ Y k , O ↔ ( M , Y k ) ↔ X k . M\leftrightarrow X^k\leftrightarrow Y^k,\qquad O\leftrightarrow(M,Y^k)\leftrightarrow X^k. M ↔ X k ↔ Y k , O ↔ ( M , Y k ) ↔ X k . Any shared random seed used by the decoder is included in M M M . Let π \pi π be the joint law of ( X k , Y k , M , O ) (X^k,Y^k,M,O) ( X k , Y k , M , O ) . Suppose it solves all k k k relations with probability p ≥ 1 / 2 p\ge1/2 p ≥ 1/2 , and put J = I π ( X k ; M ) J=I_\pi(X^k;M) J = I π ( X k ; M ) . There is one input law D ′ D' D ′ and one generalized one-coordinate protocol with message M ^ \widehat{M} M such that, simultaneously,
D K L ( D ′ [ X ] ∥ D [ X ] ) , D K L ( D ′ [ Y ] ∥ D [ Y ] ) ≤ K , D_{\mathrm{KL}}(D'[X]\Vert D[X]),\qquad D_{\mathrm{KL}}(D'[Y]\Vert D[Y])\le K, D KL ( D ′ [ X ] ∥ D [ X ]) , D KL ( D ′ [ Y ] ∥ D [ Y ]) ≤ K , E x D K L ( D ′ [ Y ∣ x ] ∥ D [ Y ∣ x ] ) , E y D K L ( D ′ [ X ∣ y ] ∥ D [ X ∣ y ] ) ≤ K / k , \mathbb{E}_xD_{\mathrm{KL}}(D'[Y\mid x]\Vert D[Y\mid x]),\qquad\mathbb{E}_yD_{\mathrm{KL}}(D'[X\mid y]\Vert D[X\mid y])\le K/k, E x D KL ( D ′ [ Y ∣ x ] ∥ D [ Y ∣ x ]) , E y D KL ( D ′ [ X ∣ y ] ∥ D [ X ∣ y ]) ≤ K / k , I D ′ ( M ^ ; Y ∣ X ) ≤ K / k , I_{D'}(\widehat{M};Y\mid X)\le K/k, I D ′ ( M ; Y ∣ X ) ≤ K / k , Pr D ′ ( e r r o r ) ≤ K / k , \Pr_{D'}(\mathit{error})\le K/\sqrt{k}, D ′ Pr ( error ) ≤ K / k , I D ′ ( X ; M ^ ∣ Y ) ≤ K ( J + 1 ) / k , (51) I_{D'}(X;\widehat{M}\mid Y)\le K(J+1)/k, \tag*{(51)} I D ′ ( X ; M ∣ Y ) ≤ K ( J + 1 ) / k , (51) where K K K is an absolute constant and the conditional expectations use the displayed D ′ D' D ′ marginals.
Coordinate reduction and original-law accounting. Let W W W be the event that all k k k answers are correct and set A = ( X k , Y k ) A=(X^k,Y^k) A = ( X k , Y k ) . The original one-way law gives I π ( A ; M ) = I π ( X k ; M ) = J I_\pi(A;M)=I_\pi(X^k;M)=J I π ( A ; M ) = I π ( X k ; M ) = J . The coordinate construction of Nelson and Yu chooses a random coordinate together with partially exposed source and query coordinates, under the success-conditioned law. Its information chain rule yields
E λ I D ′ ( X ; M ^ ∣ Y ) ≤ 2 k I π ( A ; M ∣ W ) ≤ 2 ( J + 1 ) k p ≤ 4 ( J + 1 ) k . \mathbb{E}_\lambda I_{D'}(X;\widehat{M}\mid Y)\le\frac{2}{k}I_\pi(A;M\mid W)\le\frac{2(J+1)}{kp}\le\frac{4(J+1)}{k}. E λ I D ′ ( X ; M ∣ Y ) ≤ k 2 I π ( A ; M ∣ W ) ≤ k p 2 ( J + 1 ) ≤ k 4 ( J + 1 ) .
The middle inequality is (4.17). It charges the message under its original law, even though the auxiliary coordinate distribution is conditioned on success. The construction has mean conditional KL and one-way dependence O ( 1 / k ) O(1/k) O ( 1/ k ) , mean error O ( k − 1 / 2 ) O(k^{-1/2}) O ( k − 1/2 ) , and constant marginal KL. Markov’s inequality selects one coordinate view for which all seven required bounds hold simultaneously. Appendix B.3 specifies the two equivalent coordinate views and proves each of these estimates. In particular, the accounting does not reveal future source rows or charge a success-conditioned message length.
The coordinate protocol can have a perturbed input law. The following source-size-sensitive interface specifies exactly which deviations the encoding tolerates. Its proof is deferred to Appendix B.4; the statement makes the composition with Lemma 4.5 explicit.
Lemma 4.6 (Sparse perturbed universal relation). Fix a constant K 0 K_0 K 0 . There are absolute constants c 0 , C 0 > 0 c_0,C_0>0 c 0 , C 0 > 0 and a sufficiently small β 0 > 0 \beta_0>0 β 0 > 0 , with their admissible values allowed to depend on K 0 K_0 K 0 , as follows. Put L = ln ( 1 / β ) L=\ln(1/\beta) L = ln ( 1/ β ) and suppose
0 < β < β 0 , m ≥ L , U ≥ C 0 m . 0<\beta<\beta_0,\qquad m\ge L,\qquad U\ge C_0m. 0 < β < β 0 , m ≥ L , U ≥ C 0 m .
There is a distribution D = D ( U , m , β ) \mathcal{D} = \mathcal{D}(U,m,\beta) D = D ( U , m , β ) on T ⊊ S ⊆ [ U ] T \subsetneq S \subseteq[U] T ⊊ S ⊆ [ U ] with ∣ S ∣ = m |S| = m ∣ S ∣ = m for which the following holds. Suppose a distribution D ′ \mathcal{D}' D ′ and a generalized one-way protocol with message M M M and output O O O satisfying the Markov condition O ↔ ( M , T ) ↔ S O \leftrightarrow(M,T) \leftrightarrow S O ↔ ( M , T ) ↔ S have error at most β \beta β and
D K L ( D ′ [ S ] ∥ D [ S ] ) ≤ K 0 , D_{\mathrm{KL}}(\mathcal{D}'[S]\Vert\mathcal{D}[S]) \le K_0, D KL ( D ′ [ S ] ∥ D [ S ]) ≤ K 0 ,
E s ∼ D ′ [ S ] D K L ( D ′ [ T ∣ S = s ] ∥ D [ T ∣ S = s ] ) ≤ η , \mathbb{E}_{s\sim\mathcal{D}'[S]}D_{\mathrm{KL}}(\mathcal{D}'[T\mid S=s]\Vert\mathcal{D}[T\mid S=s]) \le\eta, E s ∼ D ′ [ S ] D KL ( D ′ [ T ∣ S = s ] ∥ D [ T ∣ S = s ]) ≤ η ,
E t ∼ D ′ [ T ] D K L ( D ′ [ S ∣ T = t ] ∥ D [ S ∣ T = t ] ) ≤ η , \mathbb{E}_{t\sim\mathcal{D}'[T]}D_{\mathrm{KL}}(\mathcal{D}'[S\mid T=t]\Vert\mathcal{D}[S\mid T=t]) \le\eta, E t ∼ D ′ [ T ] D KL ( D ′ [ S ∣ T = t ] ∥ D [ S ∣ T = t ]) ≤ η ,
I ( M ; T ∣ S ) ≤ η , η ≤ c 0 β 2 . I(M;T\mid S) \le\eta,\qquad\eta\le c_0\beta^2. I ( M ; T ∣ S ) ≤ η , η ≤ c 0 β 2 .
Then
I ( S ; M ∣ T ) = Ω ( L log ( 2 + m / L ) log ( U / m ) ) . I(S;M\mid T) = \Omega\left(L\log(2+m/L)\log(U/m)\right). I ( S ; M ∣ T ) = Ω ( L log ( 2 + m / L ) log ( U / m ) ) .
The marginal KL bound on T T T supplied by Nelson and Yu is permissible but is not needed for this particular formulation.
Proposition 4.7 (Sparse product relation: external information). For all sufficiently large even k k k , and integers m ≥ C 1 log ( k + 1 ) m \ge C_1\log(k+1) m ≥ C 1 log ( k + 1 ) and U ≥ C 2 m U \ge C_2m U ≥ C 2 m , there is a product hard law for k k k universal-relation instances, whose independent source sets are uniform m m m -subsets of [ U ] [U] [ U ] , with the following property. Every randomized one-way protocol obeying both Markov conditions of Lemma 4.5 , with any shared random seed included in its message, and solving all k k k instances with probability at least 1 / 2 1/2 1/2 obeys
I ( S k ; M ) = Ω ( k log ( k + 1 ) log ( 2 + m log ( k + 1 ) ) log U m ) . (52) I(S^k;M) = \Omega\left(k\log(k+1)\log\left(2+\frac{m}{\log(k+1)}\right)\log\frac{U}{m}\right). \tag*{(52)} I ( S k ; M ) = Ω ( k log ( k + 1 ) log ( 2 + log ( k + 1 ) m ) log m U ) . (52)
Proof. Choose the hard law of Lemma 4.6 with β = C β / k \beta= C_\beta/\sqrt{k} β = C β / k before applying the coordinate lemma. Choose the absolute constant C β C_\beta C β large enough that the K / k K/k K / k conditional KL and approximate-one-way bounds are at most c 0 β 2 c_0\beta^2 c 0 β 2 , and the coordinate error is at most β \beta β . The marginal KL terms are bounded by the fixed constant K K K . For sufficiently large k k k , the sparse lemma applies with L = ln ( 1 / β ) = Θ ( log ( k + 1 ) ) L = \ln(1/\beta) = \Theta(\log(k+1)) L = ln ( 1/ β ) = Θ ( log ( k + 1 )) and yields coordinate information
Ω ( log ( k + 1 ) log ( 2 + m log ( k + 1 ) ) log U m ) . \Omega\left(\log(k+1)\log\left(2+\frac{m}{\log(k+1)}\right)\log\frac{U}{m}\right). Ω ( log ( k + 1 ) log ( 2 + log ( k + 1 ) m ) log m U ) .
Compare this with K ( I ( S k ; M ) + 1 ) / k K(I(S^k;M)+1)/k K ( I ( S k ; M ) + 1 ) / k from (51) . For sufficiently large k k k the additive one is absorbed, proving (52) . □ \square □
Proposition 4.8 (Spanning-forest lower bound from indexed graph blocks). Suppose N = h k N = hk N = hk , where k , m , U k,m,U k , m , U satisfy the preceding proposition, and
N + U ≤ v , k ( m − 1 ) ≤ Z . N+U \le v,\qquad k(m-1) \le Z. N + U ≤ v , k ( m − 1 ) ≤ Z . A spanning-forest algorithm with error at most 1 / 4 1/4 1/4 on every fixed legal stream with at most Z Z Z deletion operations requires
s + 1 = Ω ( N log ( k + 1 ) log ( 2 + m log ( k + 1 ) ) log U m ) (53) s+1 = \Omega\left(N\log(k+1)\log\left(2+\frac{m}{\log(k+1)}\right)\log\frac{U}{m}\right) \tag*{(53)} s + 1 = Ω ( N log ( k + 1 ) log ( 2 + log ( k + 1 ) m ) log m U ) (53) for either space measure s s s of Appendix § 7 . The hard streams are legal, have exactly N m Nm N m insertions followed by at most k ( m − 1 ) ≤ Z k(m-1) \le Z k ( m − 1 ) ≤ Z deletions, and request one report. In particular, their historical deficit never exceeds Z Z Z .
Proof. Use N N N row vertices and U U U column vertices. Independently draw each row source S i S_i S i uniformly among the m m m -subsets and insert all its incident edges in a common canonical order. Partition the rows into h h h consecutive blocks of size k k k ; write B j B_j B j for the entire source tuple in block j j j . The query chooses one block j j j , supplies proper subsets T i T_i T i of its k k k source sets, deletes only those row edges, and reports. Every queried row stays nonisolated. A correct spanning forest provides a valid incident edge for every one of those k k k rows, and hence solves all its k k k relations. At most k ( m − 1 ) k(m-1) k ( m − 1 ) deletions are used, independently of the number h h h of possible blocks.
Apply Lemma A.1 with one common cutoff to this finite family, with added error at most 1 / 8 1/8 1/8 . Let M 0 M_0 M 0 be the tagged original prefix state or the constant-size timeout symbol. Each prefix has a legal immediate-report completion. Under its original randomness E ∣ M 0 ∣ ≤ s + O ( 1 ) \mathbb{E}|M_0| \le s + O(1) E ∣ M 0 ∣ ≤ s + O ( 1 ) , uniformly over the fixed source prefix. The state-entropy bound gives
H ( M 0 ) ≤ E ∣ M 0 ∣ + log ( E ∣ M 0 ∣ + 1 ) = O ( s + 1 ) . (54) H(M_0) \le\mathbb{E}|M_0| + \log(\mathbb{E}|M_0| + 1) = O(s + 1). \tag*{(54)} H ( M 0 ) ≤ E ∣ M 0 ∣ + log ( E ∣ M 0 ∣ + 1 ) = O ( s + 1 ) . (54)
The simulation truncates running time while preserving the original state-length charge. The protocol for every queried stream succeeds with probability at least 5 / 8 > 1 / 2 5/8 > 1/2 5/8 > 1/2 .
For block j j j , reveal only Q j = ( B 1 , … , B j − 1 ) Q_j = (B_1,\ldots,B_{j-1}) Q j = ( B 1 , … , B j − 1 ) , independent of B j B_j B j . Alice samples future blocks privately and generates M 0 M_0 M 0 . The message M j = ( Q j , M 0 ) M_j = (Q_j, M_0) M j = ( Q j , M 0 ) is an ordinary randomized one-way channel from B j B_j B j ; the queried subset tuple is generated independently from its product hard conditional law given B j B_j B j . It satisfies the exact Markov condition required in (52) . The decoder continues from M 0 M_0 M 0 on this one block and obtains all k k k requested elements with success at least 1 / 2 1/2 1/2 . Thus (52) bounds
I ( B j ; M j ) = I ( B j ; M 0 ∣ B 1 , … , B j − 1 ) I(B_j;M_j) = I(B_j;M_0 \mid B_1,\ldots,B_{j-1}) I ( B j ; M j ) = I ( B j ; M 0 ∣ B 1 , … , B j − 1 )
from below. Sum over j j j and apply the chain rule:
∑ j = 1 h I ( B j ; M 0 ∣ B 1 , … , B j − 1 ) = I ( B 1 , … , B h ; M 0 ) ≤ H ( M 0 ) . \sum_{j=1}^{h} I(B_j;M_0 \mid B_1,\ldots,B_{j-1}) = I(B_1,\ldots,B_h;M_0) \le H(M_0). j = 1 ∑ h I ( B j ; M 0 ∣ B 1 , … , B j − 1 ) = I ( B 1 , … , B h ; M 0 ) ≤ H ( M 0 ) .
Since h k = N hk = N hk = N , (54) gives (53) . The argument uses only the guarantee for the single block selected by the query. □
Relation to prior lower bounds. The coordinate sampling, success conditioning, and approximate protocol construction are those of Nelson and Yu [37 Lemma 3] . The constant-error external-information consequence also follows from exact channel simulation with shared randomness [24 Result 1] , constant-error truncation, and that coordinate lemma. The simulation bound controls communication averaged over the source distribution and protocol randomness. Equation (B.7) in Appendix § 8 .§ 3 proves the external-information bound directly under the original message law. Lemma 4.6 extends the encoding in their Appendix B to track source cardinality. Indexed direct-sum reductions spending deletions on a single graph block are also used by Khanna et al. [29 Sections 1.2 and 4] . To lower-bound spanning-forest reporting on fixed input sequences, the reduction combines this deletion-budget allocation with the source-cardinality-sensitive extension of the relation of Nelson and Yu.
The block construction covers growing budgets. For bounded budgets, the insertion-only lower bound of Lemma B.2 applies: a uniformly chosen labeled tree must be recovered exactly, and Fano’s inequality charges Ω ( v log ( v + 1 ) ) \Omega(v\log(v+1)) Ω ( v log ( v + 1 )) bits under the original expected-state law. Combining the two cases gives a bound uniform in Z Z Z .
Corollary 4.9 (Matching constant-error lower bound on the bounded-deletion subclass). For all v ≥ 2 v \ge2 v ≥ 2 and integers Z ≥ 0 Z \ge0 Z ≥ 0 , an algorithm returning a spanning forest with error at most 1 / 4 1/4 1/4 on every fixed legal stream with at most Z Z Z deletion operations requires
Ω ( v log ( v + 1 ) min { log 2 ( Z + 2 ) , log 2 ( v + 1 ) } ) (55) \Omega\left(v\log(v+1)\min\left\{\log^{2}(Z+2),\log^{2}(v+1)\right\}\right) \tag*{(55)} Ω ( v log ( v + 1 ) min { log 2 ( Z + 2 ) , log 2 ( v + 1 ) } ) (55) bits, for both peak-space measures. The hard streams are legal, use at most Z Z Z deletion operations in total, and need only one report. The algorithm in Theorem 4.13 uses space matching this lower bound on simple graphs.
Proof. Put
x = min { Z + 1 , v 1 / 4 } . x=\min\left\{\sqrt{Z+1},v^{1/4}\right\}. x = min { Z + 1 , v 1/4 } .
First suppose x x x and v v v exceed sufficiently large absolute constants, and define
k = m = 2 ⌊ x / 2 ⌋ , N = k ⌊ v 2 k ⌋ , U = ⌊ v / 2 ⌋ . k=m=2\lfloor x/2\rfloor,\qquad N=k\left\lfloor\frac{v}{2k}\right\rfloor,\qquad U=\lfloor v/2\rfloor. k = m = 2 ⌊ x /2 ⌋ , N = k ⌊ 2 k v ⌋ , U = ⌊ v /2 ⌋ .
Then k k k is even, k ≥ x / 2 k\ge x/2 k ≥ x /2 , N = Θ ( v ) N=\Theta(v) N = Θ ( v ) , N + U ≤ v N+U\le v N + U ≤ v , m ≥ C 1 log ( k + 1 ) m\ge C_1\log(k+1) m ≥ C 1 log ( k + 1 ) , and U ≥ C 2 m U\ge C_2m U ≥ C 2 m . For k ≥ 2 k\ge2 k ≥ 2 the number of deletions is at most
k ( m − 1 ) = k ( k − 1 ) ≤ k 2 − 2 ≤ Z − 1 ≤ Z . k(m-1)=k(k-1)\le k^2-2\le Z-1\le Z. k ( m − 1 ) = k ( k − 1 ) ≤ k 2 − 2 ≤ Z − 1 ≤ Z .
Moreover,
log ( U / m ) = Θ ( log ( v + 1 ) ) , log ( 2 + m log ( k + 1 ) ) = Θ ( log ( k + 1 ) ) , \log(U/m)=\Theta(\log(v+1)),\qquad\log\left(2+\frac{m}{\log(k+1)}\right)=\Theta(\log(k+1)), log ( U / m ) = Θ ( log ( v + 1 )) , log ( 2 + log ( k + 1 ) m ) = Θ ( log ( k + 1 )) ,
and
log ( k + 1 ) = Θ ( min { log ( Z + 2 ) , log ( v + 1 ) } ) . \log(k+1)=\Theta\left(\min\{\log(Z+2),\log(v+1)\}\right). log ( k + 1 ) = Θ ( min { log ( Z + 2 ) , log ( v + 1 )} ) .
Proposition 4.8 therefore gives (55) .
If the required absolute threshold on x x x or v v v fails, either Z Z Z or v v v is bounded by an absolute constant. The minimum of the two squared logarithms in (55) is then bounded by an absolute constant. Lemma B.2 supplies the claimed lower bound in all those cases, including Z = 0 Z=0 Z = 0 .
Tight dependence on the deficit bound. The bound grows as v log v log 2 ( Z + 2 ) v\log v\log^{2}(Z+2) v log v log 2 ( Z + 2 ) until it reaches the v log 3 v v\log^{3}v v log 3 v order. In particular, for every fixed ε > 0 \varepsilon>0 ε > 0 , Z ≥ v ε Z\ge v^\varepsilon Z ≥ v ε already attains that order, with a lower-bound constant allowed to depend on ε \varepsilon ε . The deficit-sensitive algorithm in Theorem 4.13 uses space matching this lower bound also for Z Z Z smaller than every positive power of v v v , at constant error. The external-information indexed-block proposition makes this possible by concentrating deletions on the queried block.
Confidence lower bounds under a total deletion bound
The proof retains the source-entropy factor in the local single-row information bound rather than replacing it by Θ ( log v ) \Theta(\log v) Θ ( log v ) . The resulting bound has absolute constants for every positive error, including confidence exponents arbitrarily close to v v v . This gives the matching confidence lower bound in Theorem 4.13 . Again, the hard inputs use at most Z Z Z deletion operations in total, which is stronger than the report-time historical-deficit promise. Throughout, put
v ≥ 2 , Z ∈ Z ≥ 0 , 0 < δ ≤ 1 / 4 , v\ge2,\qquad Z\in\mathbb{Z}_{\ge0},\qquad0<\delta\le1/4, v ≥ 2 , Z ∈ Z ≥ 0 , 0 < δ ≤ 1/4 ,
A = ⌈ log ( v + 1 ) ⌉ , t = 1 + log ( 1 / δ ) , B Z = min { A 2 , log 2 ( Z + 2 ) } . A=\lceil\log(v+1)\rceil,\qquad t=1+\log(1/\delta),\qquad B_Z=\min\left\{A^2,\log^2(Z+2)\right\}. A = ⌈ log ( v + 1 )⌉ , t = 1 + log ( 1/ δ ) , B Z = min { A 2 , log 2 ( Z + 2 ) } .
The parameter s s s denotes either worst-case peak space or worst-input expected peak space for the one-report problem, under the original coin law. The lower bounds already hold when correctness is required only on the bounded-deletion subclass just described. The argument uses the single-row information bound (3.20) from Section 3, the high-confidence exact-space regime (B.16)–(B.17) in Appendix B.6, and the constant-error lower bound (4.22) proved above.
Proposition 4.10 (Source-size-sensitive confidence lower bound). There are absolute constants c ∈ ( 0 , 1 ) c \in(0,1) c ∈ ( 0 , 1 ) and v 0 v_0 v 0 such that, for v ≥ v 0 v \ge v_0 v ≥ v 0 , let
M = min { Z + 1 , ⌊ c v ⌋ } , Ψ = max 1 ≤ m ≤ M t log ( 1 + m / t ) log ( 1 + v / m ) . (56) M = \min\{Z+1,\lfloor cv\rfloor\}, \qquad\Psi= \max_{1\le m\le M} t\log(1+m/t)\log(1+v/m). \tag*{(56)} M = min { Z + 1 , ⌊ c v ⌋} , Ψ = 1 ≤ m ≤ M max t log ( 1 + m / t ) log ( 1 + v / m ) . (56) Then both peak-space measures satisfy
s + 1 = Ω ( v A B Z + v Ψ ) . (57) s+1 = \Omega(vAB_Z+v\Psi). \tag*{(57)} s + 1 = Ω ( v A B Z + v Ψ ) . (57) All constants are absolute. The hard streams are legal, use at most Z Z Z deletion operations in total, and require only one report.
How the source regimes combine. For a fixed admissible neighborhood size m m m , the exact single-row interface (3.20) gives the desired two entropy factors when m m m is large relative to t t t and the error is sufficiently small. When m = O ( t ) m=O(t) m = O ( t ) , the same source argument with a relaxed positive error gives the exact-space order v m log ( 1 + v / m ) vm\log(1+v/m) v m log ( 1 + v / m ) , which dominates v t log ( 1 + m / t ) log ( 1 + v / m ) vt\log(1+m/t)\log(1+v/m) v t log ( 1 + m / t ) log ( 1 + v / m ) ; the precise statement is Theorem B.3. At bounded confidence the constant-error baseline absorbs this term. The maximum over m m m can therefore be taken while keeping the same advertised budget and the original coin law. The maximum of the baseline and confidence lower bounds is at least half their sum. Appendix B.7 gives the uniform constants, finite cutoffs, and endpoint checks. □
The source parameter has a direct interpretation: it is the number of possible neighbors retained in each hard input row. In the source-encoding regime, increasing it adds encoding stages but reduces the information supplied by a recovered neighbor. Their product, rather than either factor separately, determines the hardest source scale.
Lemma 4.11 (Exact continuous optimization). For positive real v , t v,t v , t , the function
f ( m ) = log ( 1 + m / t ) log ( 1 + v / m ) , m > 0 , f(m)=\log(1+m/t)\log(1+v/m), \qquad m>0, f ( m ) = log ( 1 + m / t ) log ( 1 + v / m ) , m > 0 , is strictly increasing up to m = v t m=\sqrt{vt} m = v t and strictly decreasing thereafter. If M ≥ 1 M\ge1 M ≥ 1 is an integer and v t ≥ 1 \sqrt{vt}\ge1 v t ≥ 1 , its maximum over integers 1 ≤ m ≤ M 1\le m\le M 1 ≤ m ≤ M lies between 1 2 f ( y ) \frac{1}{2}f(y) 2 1 f ( y ) and f ( y ) f(y) f ( y ) , where y = min { M , v t } y=\min\{M,\sqrt{vt}\} y = min { M , v t } .
Proof. Set m = t e z m=te^z m = t e z , a = ln ( v / t ) a=\ln(v/t) a = ln ( v / t ) , and G ( z ) = ln ln ( 1 + e z ) G(z)=\ln\ln(1+e^z) G ( z ) = ln ln ( 1 + e z ) . Since ln ( 1 + e z ) > 0 \ln(1+e^z)>0 ln ( 1 + e z ) > 0 for every real z z z , the function G G G is smooth on all of R \mathbb{R} R . Direct differentiation gives
G ′ ′ ( z ) = e z ( ln ( 1 + e z ) − e z ) ( 1 + e z ) 2 ln 2 ( 1 + e z ) < 0. G''(z)=\frac{e^z\bigl(\ln(1+e^z)-e^z\bigr)}{(1+e^z)^2\ln^2(1+e^z)}<0. G ′′ ( z ) = ( 1 + e z ) 2 ln 2 ( 1 + e z ) e z ( ln ( 1 + e z ) − e z ) < 0.
The inequality follows from ln ( 1 + u ) < u \ln(1+u)<u ln ( 1 + u ) < u for u > 0 u>0 u > 0 , so G G G is strictly concave and G ′ G' G ′ is strictly decreasing. Using log x = ln x / ln 2 \log x=\ln x/\ln2 log x = ln x / ln 2 , we have ln f ( t e z ) = G ( z ) + G ( a − z ) − 2 ln ( ln 2 ) \ln f(te^z)=G(z)+G(a-z)-2\ln(\ln2) ln f ( t e z ) = G ( z ) + G ( a − z ) − 2 ln ( ln 2 ) . Its derivative G ′ ( z ) − G ′ ( a − z ) G'(z)-G'(a-z) G ′ ( z ) − G ′ ( a − z ) is therefore positive for z < a / 2 z<a/2 z < a /2 and negative for z > a / 2 z>a/2 z > a /2 , proving the continuous assertion. For the integer maximum take m = ⌊ y ⌋ m=\lfloor y\rfloor m = ⌊ y ⌋ , so y / 2 ≤ m ≤ y y/2\le m\le y y /2 ≤ m ≤ y . Concavity gives log ( 1 + m / t ) ≥ 1 2 log ( 1 + y / t ) \log(1+m/t)\ge\frac{1}{2}\log(1+y/t) log ( 1 + m / t ) ≥ 2 1 log ( 1 + y / t ) , and the second factor increases when m m m decreases. The continuous maximum is also an upper bound on the integer maximum. □
Corollary 4.12 (A closed-form confidence lower bound with absolute constants). Put
x t = min { Z + 1 , v , v t } . (58) x_t = \min\{Z+1,v,\sqrt{vt}\}. \tag*{(58)} x t = min { Z + 1 , v , v t } . (58) For all parameters above, both peak-space measures satisfy
s + 1 = Ω ( v A min { A 2 , log 2 ( Z + 2 ) } + v t log ( 1 + x t / t ) log ( 1 + v / x t ) ) . (59) s+1=\Omega\left(vA\min\{A^2,\log^2(Z+2)\}+vt\log(1+x_t/t)\log(1+v/x_t)\right). \tag*{(59)} s + 1 = Ω ( v A min { A 2 , log 2 ( Z + 2 )} + v t log ( 1 + x t / t ) log ( 1 + v / x t ) ) . (59) The constant is absolute, independent of Z Z Z and the error. Legal streams with at most Z Z Z total deletion operations and one report suffice. For v ≥ v 0 v\ge v_0 v ≥ v 0 , the second term is Θ ( v Ψ ) \Theta(v\Psi) Θ ( v Ψ ) , evaluating the full variational expression in (56) .
Proof. For sufficiently large v v v , let M M M be as in (56) . Since μ = min { Z + 1 , v } \mu=\min\{Z+1,v\} μ = min { Z + 1 , v } , it follows that ( c / 2 ) μ ≤ M ≤ μ (c/2)\mu\le M\le\mu ( c /2 ) μ ≤ M ≤ μ . For y = min { M , v t } y=\min\{M,\sqrt{vt}\} y = min { M , v t } this implies ( c / 2 ) x t ≤ y ≤ x t (c/2)x_t\le y\le x_t ( c /2 ) x t ≤ y ≤ x t . Concavity of the first logarithm and monotonicity of the second give f ( y ) ≥ ( c / 2 ) f ( x t ) f(y)\ge(c/2)f(x_t) f ( y ) ≥ ( c /2 ) f ( x t ) ; continuous optimality gives the reverse inequality f ( y ) ≤ f ( x t ) f(y)\le f(x_t) f ( y ) ≤ f ( x t ) . Lemma 4.11 therefore shows Ψ = Θ ( t f ( x t ) ) \Psi=\Theta(tf(x_t)) Ψ = Θ ( t f ( x t )) . Substitute this in (57) .
For bounded v v v , the first term of (59) is uniformly bounded in Z Z Z , while t f ( x t ) ≤ v / ( ln 2 ) 2 tf(x_t)\le v/(\ln2)^2 t f ( x t ) ≤ v / ( ln 2 ) 2 uniformly in δ \delta δ . The space-accounting convention therefore applies; the guarantees for both peak-space measures and source legality are inherited from (57) .
Space-optimal algorithms at every deficit bound and confidence
Combining the algorithm and space analysis from Section 4.3 with the space lower bound of Corollary 4.12 establishes the following optimality and implementation guarantees.
Theorem 4.13 (Optimal one-report space under a historical-deficit bound). Let v ≥ 2 v\ge2 v ≥ 2 , let Z ≥ 0 Z\ge0 Z ≥ 0 be an integer given in advance, and let 0 < δ ≤ 1 / 4 0<\delta\le1/4 0 < δ ≤ 1/4 . Consider fixed legal dynamic graph streams whose single report prefix w w w satisfies d ( w ) ≤ Z d(w)\le Z d ( w ) ≤ Z , without any restriction on previous deficits or the total number of deletion and restoration operations. Put
A = ⌈ log ( v + 1 ) ⌉ , t = 1 + log ( 1 / δ ) , μ = min { Z + 1 , v } , x t = min { μ , v t } , A=\lceil\log(v+1)\rceil,\qquad t=1+\log(1/\delta),\qquad\mu=\min\{Z+1,v\},\qquad x_t=\min\{\mu,\sqrt{vt}\}, A = ⌈ log ( v + 1 )⌉ , t = 1 + log ( 1/ δ ) , μ = min { Z + 1 , v } , x t = min { μ , v t } , L ′ ( v , Z , t ) = v A min { A 2 , log 2 ( Z + 2 ) } + v t log ( 1 + x t / t ) log ( 1 + v / x t ) . (60) \mathcal{L}'(v,Z,t)=vA\min\{A^2,\log^2(Z+2)\}+vt\log(1+x_t/t)\log(1+v/x_t). \tag*{(60)} L ′ ( v , Z , t ) = v A min { A 2 , log 2 ( Z + 2 )} + v t log ( 1 + x t / t ) log ( 1 + v / x t ) . (60) The algorithm uses O ( L ′ ( v , Z , t ) ) O(\mathcal{L}'(v,Z,t)) O ( L ′ ( v , Z , t )) bits, while every algorithm for this task requires Ω ( L ′ ( v , Z , t ) ) \Omega(\mathcal{L}'(v,Z,t)) Ω ( L ′ ( v , Z , t )) bits under either peak-space measure. Thus the optimal space complexity in both measures is
Θ ( L ′ ( v , Z , 1 + log ( 1 / δ ) ) ) , (61) \Theta(\mathcal{L}'(v,Z,1+\log(1/\delta))), \tag*{(61)} Θ ( L ′ ( v , Z , 1 + log ( 1/ δ ))) , (61) with absolute constants. The lower bound already holds on the subclass of streams with at most Z Z Z deletion operations in total. The algorithm uses polynomially many bit operations in v + min { t , v } v+\min\{t,v\} v + min { t , v } for setup, each update, and each read-only report, in addition to reading the parameter headers. Its hard space cap holds on every random tape and every legal update history, including intermediate prefixes with d ( w ) > Z d(w)>Z d ( w ) > Z ; it does not store or test d ( w ) d(w) d ( w ) . Parameter saturation and the resulting finite running-time bounds are given in Appendix D.3. At zero error, the deterministic algorithm and the lower bound for all zero-error algorithms give the optimal space in (38) ; the algorithm is correct at every promised report, without a bound on their number, and retains its hard space cap throughout the stream (Theorem 4.3 ).
Proof. The lower bound follows from Corollary 4.12 in both peak-space measures, because its hard streams with at most Z Z Z total deletions satisfy the report-time deficit promise. To implement the algorithm within this space, use the historical edge data structure of Lemma 4.2, the binary codec of Corollary C.2, and the independent verification procedure of (3.3) in the algorithms of Section 4.3. The data-structure lemma preserves its acceptance predicate and space bound; the uniform binary codec preserves sparse-cut recovery and row width; and the bounded field preserves the fingerprint collision bound along the ideal trace with the same setup-error allowance. Thus (4.12) and (3.8) still hold, with the polynomial exact alternative (4.7). The parameter selection in Section 4.3, using (4.13)–(4.14), proves O ( L ′ ) O(\mathcal{L}^{\prime}) O ( L ′ ) over every parameter range, including all stored randomness and the setup, decoding, and output workspace.
After saturation, every sketching branch has Z ≤ v Z \le v Z ≤ v when it stores historical edges, τ 0 ≤ v + 6 \tau_0 \le v + 6 τ 0 ≤ v + 6 , b ≤ v b \le v b ≤ v , and polynomially many banks and retained levels. All code setup, small-field arithmetic, cut recovery, unit-capacity flows, binomial ranks, bitmap rank scans, hash operations and bounded verification-field trials have fixed polynomial time in bit operations. Every report has bounded running time, including on setup failure, and resets its working partitions without changing persistent tables, seeds or live bits. The density invariant of the stored historical edge sets holds on all histories, and the other arrays have dimensions fixed at setup, so neither the hard cap nor the per-event time bound depends on intermediate deficits or on the number of restoration cycles. The hard cap also bounds the expected memory usage under the original coin law.
To obtain the simplified expression in the introduction, note that log v ≤ A ≤ 2 log v \log v \le A \le2\log v log v ≤ A ≤ 2 log v , so replacing A A A by log v \log v log v changes the baseline by at most a factor of eight. For the envelope in (2.3),
Γ v , μ ( z ) ≤ Γ v , μ ( c z ) ≤ c Γ v , μ ( z ) ( z ≥ 1 , c ≥ 1 ) , \Gamma_{v,\mu}(z) \le\Gamma_{v,\mu}(cz) \le c\Gamma_{v,\mu}(z) \qquad(z \ge1,\ c \ge1), Γ v , μ ( z ) ≤ Γ v , μ ( cz ) ≤ c Γ v , μ ( z ) ( z ≥ 1 , c ≥ 1 ) ,
because, for each fixed m m m , the function z log ( 1 + m / z ) z\log(1+m/z) z log ( 1 + m / z ) is increasing and grows by at most a factor of c c c when z z z is multiplied by c c c . Lemma 4.11 identifies the confidence term with v Γ v , μ ( t ) v\Gamma_{v,\mu}(t) v Γ v , μ ( t ) . Since log ( 1 / δ ) ≥ 2 \log(1/\delta) \ge2 log ( 1/ δ ) ≥ 2 and log ( 1 / δ ) ≤ t ≤ 3 2 log ( 1 / δ ) \log(1/\delta) \le t \le\frac{3}{2}\log(1/\delta) log ( 1/ δ ) ≤ t ≤ 2 3 log ( 1/ δ ) , these comparisons give
L ( v , Z , log ( 1 / δ ) ) ≤ L ′ ( v , Z , t ) ≤ 8 L ( v , Z , log ( 1 / δ ) ) . \mathcal{L}(v,Z,\log(1/\delta)) \le\mathcal{L}^{\prime}(v,Z,t) \le8\mathcal{L}(v,Z,\log(1/\delta)). L ( v , Z , log ( 1/ δ )) ≤ L ′ ( v , Z , t ) ≤ 8 L ( v , Z , log ( 1/ δ )) .
The comparison is uniform over all allowed parameters. Absorbing these factors in the algorithmic O O O bound and the matching Ω \Omega Ω lower bound gives the simplified characterization in Theorem 1.3. □ \square □
The optimal space in different regimes and its saturation threshold
The closed form describes both the familiar confidence regimes and the point at which randomization ceases to save an asymptotic factor over exact recovery. The following consequences express the space tradeoff directly in the parameters of the problem.
Lemma 4.14 (Optimal space at constant and polynomially small error). At any fixed δ ∈ ( 0 , 1 / 4 ] \delta\in(0,1/4] δ ∈ ( 0 , 1/4 ] , the one-report optimal space under the historical-deficit promise has order v A min { A 2 , log 2 ( Z + 2 ) } vA\min\{A^2,\log^2(Z+2)\} v A min { A 2 , log 2 ( Z + 2 )} . If t = Θ ( A ) t=\Theta(A) t = Θ ( A ) with fixed positive comparison constants, it has order
v A 2 min { log ( 1 + Z + 1 A ) , A } . (62) vA^2\min\left\{\log\left(1+\frac{Z+1}{A}\right),A\right\}. \tag*{(62)} v A 2 min { log ( 1 + A Z + 1 ) , A } . (62)
The hidden constants may depend on the stated fixed comparisons.
Proof. At constant t t t , the confidence envelope is at most O ( A log ( 1 + μ ) ) O(A\log(1+\mu)) O ( A log ( 1 + μ )) and is absorbed by A B Z AB_Z A B Z . For t = Θ ( A ) t=\Theta(A) t = Θ ( A ) , first suppose μ ≥ v 1 / 4 \mu\ge v^{1/4} μ ≥ v 1/4 . The constant-error baseline is Θ ( v A 3 ) \Theta(vA^3) Θ ( v A 3 ) and the fully dynamic algorithm uses space of that order; the expression (4.29) has the same order. If μ < v 1 / 4 \mu< v^{1/4} μ < v 1/4 , then, for sufficiently large v v v , x t = μ x_t=\mu x t = μ and log ( 1 + v / μ ) = Θ ( A ) \log(1+v/\mu)=\Theta(A) log ( 1 + v / μ ) = Θ ( A ) . The confidence term is therefore Θ ( v A 2 log ( 1 + μ / A ) ) \Theta(vA^2\log(1+\mu/A)) Θ ( v A 2 log ( 1 + μ / A )) . It absorbs the baseline: for μ ≤ A \mu\le A μ ≤ A , use log 2 ( μ + 1 ) = O ( μ ) = O ( A log ( 1 + μ / A ) ) \log^2(\mu+1)=O(\mu)=O(A\log(1+\mu/A)) log 2 ( μ + 1 ) = O ( μ ) = O ( A log ( 1 + μ / A )) ; for μ > A \mu>A μ > A , expand log μ = log A + log ( μ / A ) \log\mu=\log A+\log(\mu/A) log μ = log A + log ( μ / A ) , and use log 2 A = O ( A ) \log^2 A=O(A) log 2 A = O ( A ) and log ( μ / A ) ≤ A \log(\mu/A)\le A log ( μ / A ) ≤ A . The minimum with A A A does not bind in this smaller-deficit range. Absolute factors cover bounded v v v . At fixed error, A = Θ ( log v ) A=\Theta(\log v) A = Θ ( log v ) and min { log 2 v , log 2 ( Z + 2 ) } = log 2 ( min { v , Z + 2 } ) \min\{\log^2v,\log^2(Z+2)\}=\log^2(\min\{v,Z+2\}) min { log 2 v , log 2 ( Z + 2 )} = log 2 ( min { v , Z + 2 }) , giving the simplified form in (1.5).
Corollary 4.15 (When positive error reaches the zero-error space order). Suppose v → ∞ v\to\infty v → ∞ and μ = min { Z + 1 , v } → ∞ \mu=\min\{Z+1,v\}\to\infty μ = min { Z + 1 , v } → ∞ . Let E = v μ log ( 1 + v / μ ) E=v\mu\log(1+v/\mu) E = v μ log ( 1 + v / μ ) be the zero-error space scale. For positive error, the one-report optimal space complexity is o ( E ) o(E) o ( E ) if and only if t = o ( μ ) t=o(\mu) t = o ( μ ) , and it is Θ ( E ) \Theta(E) Θ ( E ) if and only if t = Ω ( μ ) t=\Omega(\mu) t = Ω ( μ ) . Here too an oscillating sequence need not belong to either class. If μ \mu μ stays bounded, positive-error and zero-error optimal space complexities already have the same order v log v v\log v v log v ; the growth hypothesis matters.
Proof. Write J = log ( 1 + v / μ ) J=\log(1+v/\mu) J = log ( 1 + v / μ ) . The baseline divided by E E E is A B Z / ( μ J ) AB_Z/(\mu J) A B Z / ( μ J ) . If μ ≤ v \mu\le\sqrt{v} μ ≤ v , then J = Ω ( A ) J=\Omega(A) J = Ω ( A ) and B Z ≤ log 2 ( μ + 1 ) B_Z\le\log^2(\mu+1) B Z ≤ log 2 ( μ + 1 ) , so the ratio is O ( log 2 ( μ + 1 ) / μ ) = o ( 1 ) O(\log^2(\mu+1)/\mu)=o(1) O ( log 2 ( μ + 1 ) / μ ) = o ( 1 ) . If μ > v \mu>\sqrt{v} μ > v , it is at most A 3 / v = o ( 1 ) A^3/\sqrt{v}=o(1) A 3 / v = o ( 1 ) . These estimates are uniform along the assumed growing sequence.
For 1 ≤ t ≤ μ 1\le t\le\mu 1 ≤ t ≤ μ , put r = μ / t ≥ 1 r=\mu/t\ge1 r = μ / t ≥ 1 . Evaluating the envelope at m = μ m=\mu m = μ gives the lower bound below. If its maximizer is μ \mu μ , the normalized confidence term equals the lower bound. Otherwise, x = v t < μ x=\sqrt{vt}<\mu x = v t < μ , hence a = v / μ < r a=v/\mu<r a = v / μ < r , and log ( 1 + v / t ) ≤ log ( 1 + r ) \log(1+\sqrt{v/t})\le\log(1+r) log ( 1 + v / t ) ≤ log ( 1 + r ) , while J ≥ 1 J\ge1 J ≥ 1 . Thus in both cases
log ( 1 + r ) r ≤ Γ v , μ ( t ) μ J ≤ log 2 ( 1 + r ) r . (63) \frac{\log(1+r)}{r}\le\frac{\Gamma_{v,\mu}(t)}{\mu J}\le\frac{\log^2(1+r)}{r}. \tag*{(63)} r log ( 1 + r ) ≤ μ J Γ v , μ ( t ) ≤ r log 2 ( 1 + r ) . (63)
Both bounds tend to zero as r → ∞ r\to\infty r → ∞ . For t ≥ μ t\ge\mu t ≥ μ , the maximizer is μ \mu μ and the same ratio lies between 1 1 1 and 1 / ln 2 1/\ln2 1/ ln 2 . More generally, if t / μ ≥ ϵ > 0 t/\mu\ge\epsilon>0 t / μ ≥ ϵ > 0 , evaluation at μ \mu μ gives a positive lower bound ϵ log ( 1 + 1 / ϵ ) \epsilon\log(1+1/\epsilon) ϵ log ( 1 + 1/ ϵ ) . Combine these statements with the vanishing baseline and the absolute-constant characterization. The converse directions follow by taking a subsequence on which t / μ t/\mu t / μ is respectively bounded away from zero or tends to zero. The deterministic zero-error algorithm always uses O ( E ) O(E) O ( E ) bits.
Tight space at near-linear confidence exponents. Fix p , κ > 0 p,\kappa>0 p , κ > 0 , let Z ≥ κ v Z\ge\kappa v Z ≥ κ v , and set t = v / A p t=v/A^p t = v / A p . For sufficiently large v v v , depending only on p , κ p,\kappa p , κ , x t = v t = v / A p / 2 x_t=\sqrt{vt}=v/A^{p/2} x t = v t = v / A p /2 . Consequently, (4.26) gives
s + 1 = Ω p , κ ( v 2 ( log A ) 2 A p ) , (64) s+1=\Omega_{p,\kappa}\left(\frac{v^2(\log A)^2}{A^p}\right), \tag*{(64)} s + 1 = Ω p , κ ( A p v 2 ( log A ) 2 ) , (64)
because log ( 1 + x t / t ) = log ( 1 + v / x t ) = log ( 1 + A p / 2 ) = Θ p ( log A ) \log(1+x_t/t)=\log(1+v/x_t)=\log(1+A^{p/2})=\Theta_p(\log A) log ( 1 + x t / t ) = log ( 1 + v / x t ) = log ( 1 + A p /2 ) = Θ p ( log A ) . The v A 3 vA^3 v A 3 baseline is smaller for sufficiently large v v v . This conclusion retains both entropy factors without requiring a fixed polynomial gap between t t t and v v v . The algorithm of Theorem 4.13 matches the space lower bound and uses polynomially many bit operations per event.
Joint Correctness over Multiple Reports
We now extend the one-report result of Theorem 4.13 to jointly correct reports in the same historical-deficit model. Let Z ≥ 0 Z\ge0 Z ≥ 0 and Q ≥ 1 Q\ge1 Q ≥ 1 be integers given in advance, where Q Q Q bounds the number of report requests. Fix a legal sequence of updates and report requests independently of the algorithm’s random coins and answers. If its report prefixes are w 1 , … , w r w_1,\ldots,w_r w 1 , … , w r , with r ≤ Q r\le Q r ≤ Q , the promise is $d(w_j)\le Z for every j j j . At report j j j , the algorithm must output a spanning forest F j F_j F j of the current graph G ( w j ) G(w_j) G ( w j ) , using currently present edges. For 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 , joint correctness requires
Pr [ F j is a spanning forest of G ( w j ) for every 1 ≤ j ≤ r ] ≥ 1 − δ . \Pr\left[F_j\text{ is a spanning forest of }G(w_j)\text{ for every }1 \le j \le r\right] \ge1-\delta. Pr [ F j is a spanning forest of G ( w j ) for every 1 ≤ j ≤ r ] ≥ 1 − δ .
The probability is over the algorithm’s coins for the whole execution; a missing or nonterminating response counts as failure. The number of deletions and restorations, and the historical deficit between reports, remain unrestricted; the algorithm’s space guarantee must hold throughout the stream.
A failure probability of at most δ \delta δ for each report separately does not by itself imply this joint guarantee. Reusing our read-only one-report algorithm with error parameter δ / Q \delta/Q δ / Q and applying a union bound gives an algorithm for the joint task directly. The space question is whether this sufficient error allocation is also optimal. Joint correctness does not require each report to have error at most δ / Q \delta/Q δ / Q , and errors across reports can be correlated. Consequently, substituting δ / Q \delta/Q δ / Q into the single-report space lower bound does not establish a lower bound for the joint task.
The main result of this section is a matching space lower bound for every algorithm satisfying joint correctness, including algorithms that retain and use information acquired during earlier updates and reports. The proof must account for this accumulated information when the same source graph is restored and queried repeatedly. Together with the direct algorithmic extension, this lower bound establishes Theorem 1.6.
Optimal joint recovery and a fixed query distribution
The following theorem states the algorithm’s space guarantee and a matching lower bound for every algorithm meeting the joint correctness requirement. It uses the same function L ′ \mathcal{L}' L ′ as the one-report result, with confidence parameter 1 + log ( Q / δ ) 1+\log(Q/\delta) 1 + log ( Q / δ ) .
Theorem 5.1 (Optimal space for jointly correct spanning-forest reports). Let v ≥ 2 v \ge2 v ≥ 2 , let the integers Z ≥ 0 Z \ge0 Z ≥ 0 and Q ≥ 1 Q \ge1 Q ≥ 1 be given in advance, and let 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 . Consider every fixed legal event sequence with at most Q Q Q report requests and d ≤ Z d \le Z d ≤ Z at each report. Each request asks for a spanning forest of the current graph, and all answers must be correct together with probability at least 1 − δ 1-\delta 1 − δ . Put
A = ⌈ log ( v + 1 ) ⌉ , τ = 1 + log ( Q / δ ) , μ = min { Z + 1 , v } , x τ = min { μ , v τ } . A=\lceil\log(v+1)\rceil,\quad\tau=1+\log(Q/\delta),\quad\mu=\min\{Z+1,v\},\quad x_\tau=\min\{\mu,\sqrt{v\tau}\}. A = ⌈ log ( v + 1 )⌉ , τ = 1 + log ( Q / δ ) , μ = min { Z + 1 , v } , x τ = min { μ , v τ } . The optimal space complexity for this task is
Θ ( v A min { A 2 , log 2 ( Z + 2 ) } + v τ log ( 1 + x τ / τ ) log ( 1 + v / x τ ) ) = Θ ( L ′ ( v , Z , τ ) ) . (65) \Theta\left(vA\min\{A^2,\log^2(Z+2)\}+v\tau\log(1+x_\tau/\tau)\log(1+v/x_\tau)\right)=\Theta\left(\mathcal{L}'(v,Z,\tau)\right). \tag*{(65)} Θ ( v A min { A 2 , log 2 ( Z + 2 )} + v τ log ( 1 + x τ / τ ) log ( 1 + v / x τ ) ) = Θ ( L ′ ( v , Z , τ ) ) . (65) The expression is in bits, the constants are absolute, and the characterization holds for both peak-space measures. The read-only single-report algorithm, run with error parameter δ / Q \delta/Q δ / Q , uses O ( L ′ ( v , Z , τ ) ) O(\mathcal{L}'(v,Z,\tau)) O ( L ′ ( v , Z , τ )) bits with a hard cap on every legal update sequence and polynomial setup, update, and report time in bit operations after reading the parameter headers. Every algorithm meeting the joint error requirement needs Ω ( L ′ ( v , Z , τ ) ) \Omega(\mathcal{L}'(v,Z,\tau)) Ω ( L ′ ( v , Z , τ )) bits, even when Q Q Q is known in advance and information from earlier reports is retained. The event sequence is fixed independently of the algorithm’s coins and answers. The algorithm’s hard cap holds even at intermediate prefixes where d > Z d>Z d > Z . The lower-bound streams can satisfy d ≤ Z d\le Z d ≤ Z at every prefix.
To prove the matching dependence on Q Q Q , we repeatedly delete and restore edges of one fixed source graph, keeping the historical deficit at most Z Z Z throughout. An algorithm may retain information acquired during these updates and reports, so a later round cannot be treated as a new independent source instance.
We use the low-error-round approach for tracking lower bounds of Błasiok [7 Section 7, Lemma 29 of the full version] . That lemma samples independent input pairs across rounds; here all rounds concern the same source graph. Conditioning globally on earlier success can therefore bias the source distribution and invalidate the information lower bound. Lemma 5.3 instead normalizes the surviving state channel separately for each fixed source, while drawing the source from its original distribution. The next query remains independent of the retained state conditional on the source. A uniform lower bound on the probability of earlier success controls both the auxiliary error and the expected message length, preserving the space charge under the algorithm’s original random coins.
There is a second issue: the selected round supplies a small average error under a fixed input distribution, rather than a pointwise guarantee for every source and query. Lemma 5.2 supplies a query distribution independent of the message channel for which this average guarantee implies the required information lower bound. This also keeps the queries fixed independently of the algorithm’s answers.
Lemma 5.2 (A finite distributional query law). There are absolute constants C , β ∗ > 0 C, \beta_* > 0 C , β ∗ > 0 such that, if 0 < β < β ∗ 0 < \beta< \beta_* 0 < β < β ∗ , L = ln ( 1 / β ) L = \ln(1/\beta) L = ln ( 1/ β ) , m ≥ L m \ge L m ≥ L , and U ≥ C m U \ge Cm U ≥ C m , there is a finite law D β \mathcal{D}_\beta D β on T ⊊ S ⊆ [ U ] T \subsetneq S \subseteq[U] T ⊊ S ⊆ [ U ] with S S S uniform among the m m m -subsets. This law has the following property. For every randomized message satisfying the Markov condition M ↔ S ↔ T M \leftrightarrow S \leftrightarrow T M ↔ S ↔ T , a total decoder that finds a member of S ∖ T S \setminus T S ∖ T with distributional error at most β \beta β satisfies
I ( S ; M ) = Ω ( L log ( 2 + m / L ) log ( U / m ) ) . I(S; M) = \Omega\left(L \log(2 + m/L) \log(U/m)\right). I ( S ; M ) = Ω ( L log ( 2 + m / L ) log ( U / m ) ) . The law depends only on U U U , m m m , β \beta β , not on the message channel. Private decoder randomness and an explicit failure output are allowed.
The law chooses one of the source-encoding query sizes uniformly, then a uniform subset of that size. The adaptive-density estimate used in Lemma 3.4 bounds the loss when the same decoder is reused during the encoding. Consequently an average error bound under this fixed law yields the required information cost. Appendix B.8 gives the complete proof.
A lower bound allowing learning between reports
The communication message below is the algorithm’s actual retained state immediately before one selected round. It therefore includes all information learned from earlier reports. Sourcewise normalization changes only the auxiliary communication experiment; the streaming algorithm is always charged under its original random coins.
Lemma 5.3 (Repeated queries to one restored source). Let q , N , U , m q, N, U, m q , N , U , m be positive integers, N + U ≤ v N+U \le v N + U ≤ v , m − 1 ≤ Z m-1 \le Z m − 1 ≤ Z , and 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 . Suppose
16 δ / q ≤ β < β ∗ , L = ln ( 1 / β ) , m ≥ L , U ≥ C m . 16\delta/q \le\beta< \beta_*, \qquad L = \ln(1/\beta), \qquad m \ge L, \qquad U \ge Cm. 16 δ / q ≤ β < β ∗ , L = ln ( 1/ β ) , m ≥ L , U ≥ C m . A spanning-forest algorithm with joint error at most δ \delta δ on all fixed streams with at most q + 1 q+1 q + 1 reports and historical deficit at most Z Z Z requires space s s s satisfying
s + 1 = Ω ( N L log ( 2 + m / L ) log ( U / m ) ) . s+1 = \Omega\left(NL \log(2 + m/L) \log(U/m)\right). s + 1 = Ω ( N L log ( 2 + m / L ) log ( U / m ) ) . This holds for both peak-space measures of Appendix A. The source streams have d ≤ Z d \le Z d ≤ Z at every prefix, and their graphs are connected at every report. The original advertised headers are unchanged.
Proof. One source and legal restored cycles. Independently choose N N N uniform m m m -subsets X = ( S 1 , … , S N ) X = (S_1,\ldots,S_N) X = ( S 1 , … , S N ) of a right universe of size U U U . Include a fixed clique on the right vertices so that every report graph is connected. Its edges remain present at every report and therefore contribute nothing to the report-time historical deficit. Left vertex i i i has exactly the neighbors S i S_i S i . If N + U < v N+U<v N + U < v , attach each unused vertex to one fixed right vertex by a fixed edge. Insert these fixed edges and the source edges in a canonical order. The insertion prefix has the same length for every source.
At each of q q q rounds, independently conditional on X X X , choose a uniform row I I I and draw T ∣ S I T \mid S_I T ∣ S I from the law of Lemma 5.2 . Delete T T T in that row, request a forest, and restore T T T . After all q q q cycles, we request one final report on the restored base graph. Under the transducer model of Appendix § 7 , a jointly successful run must produce every requested answer in finite time. This final request therefore ensures that such a run completes all preceding restorations and report cleanup; the analysis stops at the final response.
Each cycle returns to the same graph and never introduces a new historical name. Its maximum deficit is ∣ T ∣ ≤ m − 1 ≤ Z |T| \le m-1 \le Z ∣ T ∣ ≤ m − 1 ≤ Z . At its report every left vertex retains a neighbor, and the right clique is intact, so the graph is connected. If synchronized cycle boundaries are desired, after restoration perform m − 1 − ∣ T ∣ m-1-|T| m − 1 − ∣ T ∣ deletion–reinsertion pairs on one fixed clique edge. Each cycle then has length 2 ( m − 1 ) + 1 2(m-1)+1 2 ( m − 1 ) + 1 , independently of I , T I,T I , T . The padding has deficit at most one; when m = 1 m=1 m = 1 it is empty. It does not change any report graph or the ever-inserted set. The argument below uses these padded cycles. All input streams are fixed independently of the algorithm’s private coins and responses.
Finite simulation and one round of low conditional loss. This source and query law has finite support. By Lemma A.1 , choose one finite analytic cutoff ℓ c u t \ell_{\mathrm{cut}} ℓ cut for the source prefix and for each entire cycle, losing at most an additional δ \delta δ on every complete stream. The closing report justifies completion of each preceding segment on the original jointly successful event. For 1 ≤ j ≤ q 1 \le j \le q 1 ≤ j ≤ q , let E j E_j E j be the event that the source prefix and the first j j j cycles complete within these cutoffs and all their reports are correct. Let E 0 E_0 E 0 denote the sure event, so that any timeout during the source prefix belongs to E 0 ∖ E 1 E_0 \setminus E_1 E 0 ∖ E 1 . Thus
Pr ( E q ∣ X = x ) ≥ 1 − 2 δ ≥ 1 2 for every source x . (66) \Pr(E_q \mid X=x) \ge1-2\delta\ge\frac{1}{2}\quad\text{for every source }x. \tag*{(66)} Pr ( E q ∣ X = x ) ≥ 1 − 2 δ ≥ 2 1 for every source x . (66)
Indeed, the same lower bound holds for every fixed complete query sequence, and can then be averaged conditional on x x x . Let λ j = Pr ( E j − 1 ∖ E j ) \lambda_j=\Pr(E_{j-1}\setminus E_j) λ j = Pr ( E j − 1 ∖ E j ) . These discarded masses are disjoint, so
∑ j = 1 q λ j = 1 − Pr ( E q ) ≤ 2 δ . (67) \sum_{j=1}^{q}\lambda_j=1-\Pr(E_q)\le2\delta. \tag*{(67)} j = 1 ∑ q λ j = 1 − Pr ( E q ) ≤ 2 δ . (67)
Choose a fixed index j j j with λ j ≤ 2 δ / q \lambda_j\le2\delta/q λ j ≤ 2 δ / q . Its choice depends only on the algorithm and the finite input law.
Normalize the channel separately at each source. Set a ( x ) = Pr ( E j − 1 ∣ X = x ) a(x)=\Pr(E_{j-1}\mid X=x) a ( x ) = Pr ( E j − 1 ∣ X = x ) , so a ( x ) ≥ 1 / 2 a(x)\ge1/2 a ( x ) ≥ 1/2 by (5.5). For each fixed source x x x , let the message channel sample the original state at the boundary immediately before round j j j , conditional on E j − 1 E_{j-1} E j − 1 for this particular x x x . At j = 1 j=1 j = 1 , there is no past event; simulate the source prefix with its cutoff and tag a prefix timeout as failure. The source marginal for this communication experiment is again the original uniform product law. For j ≥ 2 j\ge2 j ≥ 2 , an equivalent implementation lets an encoder knowing x x x repeatedly sample its old query history and private bits until its simulated past passes the cutoffs and is correct. The auxiliary channel transmits a tagged original boundary state, or the constant-size failure symbol for a prefix timeout at j = 1 j=1 j = 1 . This message M M M includes any information the algorithm retained from earlier reports. Query histories and sampling-trial counters remain private to the encoder; the streaming space premise continues to use the original coin law.
The next row and query are fresh, conditional on X X X . Let p e r r p_{\mathrm{err}} p err be the average error probability of extracting an edge in that row from its report, with the current simulation cutoff and any failure tag counted as errors. A current query error entails loss of E j E_j E j . Therefore, under the newly normalized channel,
p e r r ≤ E X Pr ( E j − 1 ∩ E j c ∣ X ) a ( X ) ≤ 2 Pr ( E j − 1 ∩ E j c ) = 2 λ j ≤ 4 δ q . (68) p_{\mathrm{err}} \le\mathbb{E}_X \frac{\Pr(E_{j-1} \cap E_j^c \mid X)}{a(X)}
\le2\Pr(E_{j-1} \cap E_j^c)=2\lambda_j \le\frac{4\delta}{q}. \tag*{(68)} p err ≤ E X a ( X ) Pr ( E j − 1 ∩ E j c ∣ X ) ≤ 2 Pr ( E j − 1 ∩ E j c ) = 2 λ j ≤ q 4 δ . (68)
The sourcewise normalization, rather than global conditioning on E j − 1 E_{j-1} E j − 1 , preserves the original source law.
For the expected-space assertion, let P P P be the peak memory of the original run on the sampled complete stream, including its closing report. The worst-input expected-peak premise gives E [ P ∣ X = x ] ≤ s \mathbb{E}[P \mid X=x] \le s E [ P ∣ X = x ] ≤ s for every x x x , by averaging over the independent conditional query sequences. The message is a tagged original boundary state, dominated by P + O ( 1 ) P+O(1) P + O ( 1 ) before normalization. Consequently,
E [ ∣ M ∣ ∣ X = x ] ≤ E [ P ∣ X = x ] + O ( 1 ) a ( x ) ≤ 2 s + O ( 1 ) , H ( M ) = O ( s + 1 ) . (69) \mathbb{E}[|M| \mid X=x] \le\frac{\mathbb{E}[P \mid X=x]+O(1)}{a(x)} \le2s+O(1), \qquad H(M)=O(s+1). \tag*{(69)} E [ ∣ M ∣ ∣ X = x ] ≤ a ( x ) E [ P ∣ X = x ] + O ( 1 ) ≤ 2 s + O ( 1 ) , H ( M ) = O ( s + 1 ) . (69)
At j = 1 j=1 j = 1 the same bound holds without division. Hard space gives the same entropy bound by counting original states and the failure symbol. Thus (69) follows from the peak-space premise under the original coin law.
The indexed information sum. Applying Markov’s inequality to the uniform row choice in (68) , at least N / 2 N/2 N /2 rows have query error at most 8 δ / q ≤ β / 2 8\delta/q \le\beta/2 8 δ / q ≤ β /2 . For each such row i i i , expose only the preceding source rows and use the message ( S < i , M ) (S_{<i},M) ( S < i , M ) . The original product source law and freshness of the current query given S i S_i S i imply that ( S < i , M ) ↔ S i ↔ T i (S_{<i},M) \leftrightarrow S_i \leftrightarrow T_i ( S < i , M ) ↔ S i ↔ T i forms the required Markov chain. Future rows remain private to the encoder. Applying (5.2) gives
I ( S i ; M ∣ S < i ) = I ( S i ; S < i , M ) ≥ c L log ( 2 + m / L ) log ( U / m ) . I(S_i;M \mid S_{<i})=I(S_i;S_{<i},M)\ge cL\log(2+m/L)\log(U/m). I ( S i ; M ∣ S < i ) = I ( S i ; S < i , M ) ≥ c L log ( 2 + m / L ) log ( U / m ) .
Summing these nonnegative row terms and using (69) proves
c N 2 L log ( 2 + m / L ) log ( U / m ) ≤ I ( X ; M ) ≤ H ( M ) = O ( s + 1 ) . \frac{cN}{2}L\log(2+m/L)\log(U/m)\le I(X;M)\le H(M)=O(s+1). 2 c N L log ( 2 + m / L ) log ( U / m ) ≤ I ( X ; M ) ≤ H ( M ) = O ( s + 1 ) .
The segment cutoffs belong to the finite simulation of Lemma A.1 . Its decoder receives only T i T_i T i , ( S < i , M ) (S_{<i},M) ( S < i , M ) , and fresh private coins. This proves (5.4). □
Joint space optimality and its saturation point
The preceding lemma isolates the cost of repeated queries. Optimizing the source size now gives the same entropy envelope as in the one-report theorem, with confidence parameter τ = 1 + log ( Q / δ ) \tau=1+\log(Q/\delta) τ = 1 + log ( Q / δ ) .
Proof of Theorem 5.1. Write B Z = min { A 2 , log 2 ( Z + 2 ) } B_Z=\min\{A^2,\log^2(Z+2)\} B Z = min { A 2 , log 2 ( Z + 2 )} . The one-report lower bound in Theorem 4.13 already gives Ω ( v A B Z ) \Omega(vAB_Z) Ω ( v A B Z ) . It also proves (5.1) when Q = 1 Q=1 Q = 1 . Suppose Q ≥ 2 Q\ge2 Q ≥ 2 , put q = Q − 1 q=Q-1 q = Q − 1 , and take N = ⌊ v / 2 ⌋ N=\lfloor v/2\rfloor N = ⌊ v /2 ⌋ , U = ⌈ v / 2 ⌉ U=\lceil v/2\rceil U = ⌈ v /2 ⌉ . Choose an absolute c > 0 c>0 c > 0 sufficiently small that m ≤ c v m\le cv m ≤ c v implies U ≥ C m U\ge Cm U ≥ C m . For any integer
1 ≤ m ≤ min { Z + 1 , ⌊ c v ⌋ } , Φ m = τ log ( 1 + m / τ ) log ( 1 + v / m ) , 1\le m\le\min\{Z+1,\lfloor cv\rfloor\}, \qquad\Phi_m=\tau\log(1+m/\tau)\log(1+v/m), 1 ≤ m ≤ min { Z + 1 , ⌊ c v ⌋} , Φ m = τ log ( 1 + m / τ ) log ( 1 + v / m ) ,
the argument below proves the lower bound Ω ( v Φ m ) \Omega(v\Phi_m) Ω ( v Φ m ) . If τ \tau τ or m m m is below a sufficiently large absolute constant, then Φ m = O ( A B Z ) \Phi_m = O(AB_Z) Φ m = O ( A B Z ) : bounded m m m gives Φ m = O ( A ) \Phi_m = O(A) Φ m = O ( A ) , and bounded τ \tau τ gives Φ m = O ( A log ( m + 1 ) ) = O ( A B Z ) \Phi_m = O(A\log(m+1)) = O(AB_Z) Φ m = O ( A log ( m + 1 )) = O ( A B Z ) . Otherwise, choose
L = min { ln q 16 δ , m 2 } , β = e − L . (70) L = \min\left\{\ln\frac{q}{16\delta},\frac{m}{2}\right\},\qquad\beta=e^{-L}. \tag*{(70)} L = min { ln 16 δ q , 2 m } , β = e − L . (70)
The absolute thresholds ensure L > ln ( 1 / β ∗ ) L > \ln(1/\beta_*) L > ln ( 1/ β ∗ ) . Since q ≥ Q / 2 q \ge Q/2 q ≥ Q /2 , one has L = Θ ( min { τ , m } ) L = \Theta(\min\{\tau,m\}) L = Θ ( min { τ , m }) , as well as β ≥ 16 δ / q \beta\ge16\delta/q β ≥ 16 δ / q and m ≥ L m \ge L m ≥ L . Lemma 5.3 applies and gives
s + 1 = Ω ( v L log ( 2 + m / L ) log ( U / m ) ) = Ω ( v Φ m ) . (71) s+1 = \Omega\left(vL\log(2+m/L)\log(U/m)\right)=\Omega(v\Phi_m). \tag*{(71)} s + 1 = Ω ( v L log ( 2 + m / L ) log ( U / m ) ) = Ω ( v Φ m ) . (71)
The last comparison holds in both regimes τ ≤ m \tau\le m τ ≤ m and τ > m \tau> m τ > m , with absolute constants. The cap m ≤ c v m \le cv m ≤ c v makes log ( U / m ) \log(U/m) log ( U / m ) comparable to log ( 1 + v / m ) \log(1+v/m) log ( 1 + v / m ) . Maximize over the displayed integers m m m and use Lemma 4.11 . The capped endpoint min { Z + 1 , ⌊ c v ⌋ } \min\{Z+1,\lfloor cv\rfloor\} min { Z + 1 , ⌊ c v ⌋} is within an absolute factor of μ \mu μ for sufficiently large v v v . The maximum is therefore
Θ ( τ log ( 1 + x τ / τ ) log ( 1 + v / x τ ) ) . \Theta\left(\tau\log(1+x_\tau/\tau)\log(1+v/x_\tau)\right). Θ ( τ log ( 1 + x τ / τ ) log ( 1 + v / x τ ) ) .
The space-accounting convention covers bounded v v v . Combining this with the one-report baseline proves the lower bound. Its repeated-source confidence family has connected report graphs; no such strengthening of the single-report baseline is needed here.
For joint recovery, we instantiate the read-only algorithm of Theorem 4.13 at error δ / Q \delta/Q δ / Q . On a fixed input stream its at most Q Q Q report prefixes are fixed independently of the coins; a union bound gives joint error at most δ \delta δ . Its stored state is unchanged by reports, so the same per-prefix guarantee applies despite all earlier reports. The algorithm uses O ( L ′ ( v , Z , τ ) ) O(\mathcal{L}'(v,Z,\tau)) O ( L ′ ( v , Z , τ )) bits, matching the optimal space order in (65) . Its hard space cap and polynomial per-event running time follow from Theorem 4.13 .
The finite parameter implementation in Appendix § 10 .§ 4 shows that this choice also has the claimed bounds when Q Q Q , Z Z Z , and the confidence exponent arrive as binary headers. It preserves the error allowance under rounding and uses the deterministic algorithm when the parameters saturate. The same hard cap bounds the expected peak memory under the original random coins. This verifies the joint correctness and space guarantees of the reused algorithm. Finally, log ( Q / δ ) ≤ τ ≤ 3 2 log ( Q / δ ) \log(Q/\delta) \le\tau\le\frac{3}{2}\log(Q/\delta) log ( Q / δ ) ≤ τ ≤ 2 3 log ( Q / δ ) . Applying the constant-factor comparisons at the end of the proof of Theorem 4.13 with error δ / Q \delta/Q δ / Q gives
L ( v , Z , log ( Q / δ ) ) ≤ L ′ ( v , Z , τ ) ≤ 8 L ( v , Z , log ( Q / δ ) ) . \mathcal{L}(v,Z,\log(Q/\delta))\le\mathcal{L}'(v,Z,\tau)\le8\mathcal{L}(v,Z,\log(Q/\delta)). L ( v , Z , log ( Q / δ )) ≤ L ′ ( v , Z , τ ) ≤ 8 L ( v , Z , log ( Q / δ )) .
Thus the algorithm and the matching space lower bound above establish the simplified finite-report, positive-error statements of Theorem 1.6 .
□ \square □
Saturation and repeated queries. For τ ≥ μ \tau\ge\mu τ ≥ μ the joint optimal space complexity is already the zero-error space order Θ ( v μ log ( 1 + v / μ ) ) \Theta(v\mu\log(1+v/\mu)) Θ ( v μ log ( 1 + v / μ )) . In particular, with fixed positive error, a report allowance exponential in μ \mu μ already requires this much space. If no report-count bound is supplied in advance, any algorithm required to meet the same fixed joint error bound on every finite promised event sequence therefore needs the zero-error space order, even when positive error is allowed. The deterministic algorithm is space-optimal for zero-error recovery already with one report.
The report factor is Q Q Q , not min { Q , Z } \min\{Q,Z\} min { Q , Z } . Each cycle above restores the same historical source, so the number of queries does not increase the absent-name budget. The construction therefore allows arbitrarily many tests of the same source while respecting the same historical-deficit promise throughout.
Limitations of Retained Linear Sketches under a Historical-Deficit Bound
Kallaugher and Price [32 ] establish space separations between turnstile streaming and linear sketching for streams with restricted length or intermediate values. § 4 already determines the optimal space among all algorithms under the report-time historical-deficit promise and gives an algorithm attaining it. This section proves an additional lower bound for algorithms retaining only graph-independent setup and a linear sketch of the current graph. In some parameter ranges, this class requires a polynomial factor more space than the already established optimum, attained by our algorithm retaining historical edges. The comparison uses the same input promise and error requirement for both classes, and both lower bounds already hold on streams with at most Z Z Z total deletion operations.
The distinction is about the entire persistent state. A decoder may be nonlinear and use fresh randomness; the restriction is that no additional information about the update history survives between events. This allows a communication decoder to subtract a query virtually, without spending any of the stream’s deletion budget.
The retained-state model
A standard retained linear sketch chooses a finite field F F F from its parameters and samples graph-independent data ρ \rho ρ before the stream. Its entire persistent state at each event boundary, including its encoding length, is an effective canonical encoding of ( ρ , M ρ x ) (\rho,M_\rho x) ( ρ , M ρ x ) . Here x x x is the current adjacency vector, and M ρ : F ( v 2 ) → F s ρ M_\rho:F^{\binom{v}{2}}\to F^{s_\rho} M ρ : F ( 2 v ) → F s ρ is linear with columns computable from the stored description. Thus the pair determines both the stored bits and their length, and its canonical encoding can be computed from the pair. Setup and updates finish almost surely. The report law depends only on this pair and fresh coins; failure and nonresponse count as errors. All descriptions and temporary workspace count toward peak space. This standard linear interface is stricter than a controller retaining linear sketches together with nonlinear state.
A matching class-specific lower bound and the resulting space gap
Corollary 6.1 (Polynomial space separation at positive error). Fix constants 0 < α < β < 1 0<\alpha<\beta<1 0 < α < β < 1 , let Z = ⌊ v α ⌋ Z=\lfloor v^\alpha\rfloor Z = ⌊ v α ⌋ , and suppose t = 1 + log ( 1 / δ ) = Θ ( v β ) t=1+\log(1/\delta)=\Theta(v^\beta) t = 1 + log ( 1/ δ ) = Θ ( v β ) . For one report under the historical-deficit bound Z Z Z , the optimal space complexity among general algorithms is Θ α , β ( v 1 + α log v ) \Theta_{\alpha,\beta}(v^{1+\alpha}\log v) Θ α , β ( v 1 + α log v ) , whereas among standard retained-linear sketches it is Θ α , β ( v 1 + β log 2 v ) \Theta_{\alpha,\beta}(v^{1+\beta}\log^2 v) Θ α , β ( v 1 + β log 2 v ) . Both space lower bounds already hold for the subclass with at most Z Z Z total deletion operations. Consequently, their ratio is Θ α , β ( v β − α log v ) \Theta_{\alpha,\beta}(v^{\beta-\alpha}\log v) Θ α , β ( v β − α log v ) . The comparison uses exactly the retained-state class of Section 6.1 and holds for both space metrics. The constants also depend on the fixed comparisons in the hypotheses on t t t .
Proof. For general algorithms, μ = min { Z + 1 , v } = Θ ( v α ) \mu=\min\{Z+1,v\}=\Theta(v^\alpha) μ = min { Z + 1 , v } = Θ ( v α ) , t / μ → ∞ t/\mu\to\infty t / μ → ∞ , and x t = μ x_t=\mu x t = μ for sufficiently large v v v . Thus the confidence term in (7) is
v t log ( 1 + μ / t ) log ( 1 + v / μ ) = Θ α ( v 1 + α log v ) , vt\log(1+\mu/t)\log(1+v/\mu)=\Theta_{\alpha}(v^{1+\alpha}\log v), v t log ( 1 + μ / t ) log ( 1 + v / μ ) = Θ α ( v 1 + α log v ) ,
using log ( 1 + u ) = Θ ( u ) \log(1+u)=\Theta(u) log ( 1 + u ) = Θ ( u ) for 0 < u ≤ 1 0<u\le1 0 < u ≤ 1 . The baseline O ( v A 3 ) O(vA^3) O ( v A 3 ) is smaller, so Theorem 4.13 gives the claimed optimal space complexity: its algorithm works under the report-time historical-deficit promise, and its lower bound already holds in the smaller subclass with at most Z Z Z total deletion operations. Proposition 3.3 supplies a retained-linear algorithm: since A = o ( t ) A = o(t) A = o ( t ) and t = Θ ( v β ) t = \Theta(v^{\beta}) t = Θ ( v β ) with β < 1 \beta< 1 β < 1 , its memory use is O β ( v t log 2 v ) = o ( v 2 ) O_{\beta}(vt\log^{2} v) = o(v^{2}) O β ( v t log 2 v ) = o ( v 2 ) , independently of Z Z Z . For the matching lower bound, it suffices to assume correctness only on the total-deletion subclass. Replay the proof of the single-row interface (28) , with virtual subtraction instead of streaming deletions. Set
N = ⌊ v / 2 ⌋ , U = ⌈ v / 2 ⌉ , m = ⌊ v t ⌋ , L = ln ( 1 / ( 2 δ ) ) . N = \lfloor v/2 \rfloor,\qquad U = \lceil v/2 \rceil,\qquad m = \lfloor\sqrt{vt} \rfloor,\qquad L = \ln(1/(2\delta)). N = ⌊ v /2 ⌋ , U = ⌈ v /2 ⌉ , m = ⌊ v t ⌋ , L = ln ( 1/ ( 2 δ )) .
For sufficiently large v v v , L = Θ ( t ) L = \Theta(t) L = Θ ( t ) , m ≥ L m \ge L m ≥ L , U ≥ C m U \ge C m U ≥ C m , and 2 δ < β ∗ 2\delta< \beta_{\ast} 2 δ < β ∗ , where C , β ∗ C,\beta_{\ast} C , β ∗ are from Lemma 3.4. Draw N N N independent uniform m m m -subset rows S i ⊆ [ U ] S_i \subseteq[U] S i ⊆ [ U ] and insert their bipartite edges in one common prefix. This prefix has no deletions and belongs to that subclass for the same advertised value of Z Z Z .
Alice sends her original boundary state, including ρ \rho ρ . For a query T ⊊ S i T \subsetneq S_i T ⊊ S i , let y y y be the adjacency of the edges from row i i i to T T T . Bob computes M ρ x − M ρ y = M ρ ( x − y ) M_{\rho}x - M_{\rho}y = M_{\rho}(x-y) M ρ x − M ρ y = M ρ ( x − y ) , canonically re-encodes the state, and invokes the report decoder with fresh coins. The residual graph is simple. By the exact retained-state definition, its state and report law equal those of its insertion-only presentation under the same advertised Z Z Z . That presentation uses no deletions and has historical deficit zero, so it is legal with this parameter Z Z Z . Therefore, the error is at most δ \delta δ for every fixed source and query. A correct spanning forest contains an incident edge in row i i i and supplies a member of S i ∖ T S_i \setminus T S i ∖ T . Bob performs the subtraction and re-encoding locally in the communication protocol, so this step consumes none of the stream’s deletion budget.
Write s s s for either space charge. Each source prefix has a legal immediate-report completion, so its original expected state length is at most s + O ( 1 ) s + O(1) s + O ( 1 ) . Since the source/query family is finite, almost-sure setup and updates and finite correct report paths permit a common finite cutoff with total additional error at most δ \delta δ . Let M 0 M_0 M 0 be the tagged original prefix state when reached, and a constant-size timeout symbol otherwise. Then
H ( M 0 ) ≤ E ∣ M 0 ∣ + log ( e ( E ∣ M 0 ∣ + 1 ) ) = O ( s + 1 ) . H(M_0) \le\mathbb{E}|M_0| + \log(e(\mathbb{E}|M_0| + 1)) = O(s + 1). H ( M 0 ) ≤ E ∣ M 0 ∣ + log ( e ( E ∣ M 0 ∣ + 1 )) = O ( s + 1 ) .
The cutoff produces total decoder channels and does not condition the original coin law. For row i i i expose only preceding rows: the message is ( S < i , M 0 ) (S_{<i}, M_0) ( S < i , M 0 ) and future rows are sampled privately. Its error for every fixed ( S i , T ) (S_i,T) ( S i , T ) , averaged over the other independent rows, is at most 2 δ 2\delta 2 δ ; the query is independent of the message given S i S_i S i . Apply (27) with error 2 δ 2\delta 2 δ and sum by the information chain rule to obtain
O ( s + 1 ) ≥ H ( M 0 ) ≥ ∑ i = 1 N I ( S i ; M 0 ∣ S < i ) = Ω ( N L log ( 2 + m / L ) log ( U / m ) ) . O(s + 1) \ge H(M_0) \ge\sum_{i=1}^{N} I(S_i; M_0 \mid S_{<i}) = \Omega(NL\log(2 + m/L)\log(U/m)). O ( s + 1 ) ≥ H ( M 0 ) ≥ i = 1 ∑ N I ( S i ; M 0 ∣ S < i ) = Ω ( N L log ( 2 + m / L ) log ( U / m )) .
Both logarithmic factors have order Θ β ( log v ) \Theta_{\beta}(\log v) Θ β ( log v ) , since m / L m/L m / L and U / m U/m U / m have order Θ ( v ( 1 − β ) / 2 ) \Theta(v^{(1-\beta)/2}) Θ ( v ( 1 − β ) /2 ) . Hence s + 1 = Ω β ( v t log 2 v ) s + 1 = \Omega_{\beta}(vt\log^{2} v) s + 1 = Ω β ( v t log 2 v ) for both metrics. Combining the two optimal space complexities and dividing proves the ratio.
A linear image of current adjacency attains the unrestricted optimum. Under the historical-deficit promise, our algorithm retaining historical edges attains the smaller optimal space, while standard retained-linear sketches cannot match it in the stated parameter range. The lower bound concerns the retained-state class defined above; algorithms that combine linear sketches with a separate historical edge set and its live bits belong to the general class.
Graph-Stream Conventions and Finite Simulation
The vertex universe is [ v ] [v] [ v ] , v ≥ 2 v \ge2 v ≥ 2 , and the edge names are the ( v 2 ) \binom{v}{2} ( 2 v ) loopless undirected pairs. An insertion adds an absent name and a deletion removes a present name; every prefix is a simple graph. The historical-deficit task has an advance integer parameter Z ≥ 0 Z \ge0 Z ≥ 0 and requires at most Z Z Z previously inserted edge names to be absent at each report. Intermediate deficits and the total number of deletion operations are unrestricted. The total-deletion subclass permits at most Z Z Z deletion operations over the entire stream; every such stream satisfies the historical-deficit promise. The fully dynamic task has no deletion header or promise. A finite legal dynamic graph stream contains at most Q Q Q REPORT symbols, or asks for one answer at EOF. Its length is not announced and the stream is fixed independently of the algorithm’s private randomness. An answer is any spanning forest consisting of current original edge names. Failure, malformed output, and nonresponse count as errors. A zero-error algorithm may use randomness, but must return every requested correct answer in finite time with probability one on each promised input.
An algorithm is an event-driven private-randomness transducer. Its future law is determined by its complete state and the next input symbol. Fresh bits are independent on request. Retained seeds, readable indices, head positions, control registers, input/output buffers, and all update and decoding scratch count toward space. There is no free clock, reusable random tape, input-position register, or archive of previous outputs. A complete state has a charged binary encoding, so hard peak s s s allows fewer than 2 s + 1 2^{s+1} 2 s + 1 states. An update ends before the next symbol is requested; a report is assessed when its answer is emitted. The algorithms presented here are uniform with their stated all-tape work bounds. Lower bounds permit arbitrary nonlinear transitions and unbounded computation.
Expected space is the supremum, over fixed legal dynamic graph streams, of the expected peak space over the algorithm’s private randomness, without conditioning on success. For each peak-space measure, the optimal space complexity is the infimum over algorithms satisfying the specified output and error requirements on every input allowed by the promise. Space is measured as peak space plus one to include constant endpoints. For the final graph-space bounds, which are uniformly O ( v 2 ) O(v^2) O ( v 2 ) , this convention absorbs bounded vertex counts into the absolute constants. Every lower-bound source uses synchronized prefixes and arrival boundaries. Finite cutoffs in communication proofs are analytic devices, not supplied resources. All algorithms are binary unless written in.
Setup reads the structural parameters and then the confidence parameter as delimited canonical binary fields; confidence may be supplied by an integer exponent together with a separate zero-error flag. Only the current bit is available as input, and every accumulator retained while parsing counts toward space. Because the headers can be arbitrarily long, a field that has reached its saturation threshold is still read through its delimiter without retaining a position counter. In particular, the deficit budget Z Z Z can be saturated at its proved vertex threshold, so longer descriptions add reading time without increasing the retained value. Reading the parameter headers adds work linear in their actual length; subsequent per-event running time has the dependence stated in each theorem. Randomized forest claims concern streams fixed independently of the private coins. Deterministic invariants hold pathwise and therefore also permit legal answer-adaptive input selection.
Finite-family simulation
Lemma A.1 (Finite-family simulation). Consider a finite family of fixed legal update/request streams and any algorithm that produces all requested correct responses in finite time with probability at least 1 − δ 1-\delta 1 − δ on each stream. For every η > 0 \eta> 0 η > 0 , their communication simulations may use one finite computation cutoff, with error at most δ + η \delta+\eta δ + η per stream. At a common boundary the message is a tagged original complete state or a constant-size failure symbol. If every source prefix has a promised
completion, its message entropy is O ( s + 1 ) O(s+1) O ( s + 1 ) for hard peak space s s s , and O ( S + 1 ) O(S+1) O ( S + 1 ) for worst-input expected peak space S S S . The cutoff need not be stored by the original streaming algorithm.
Proof. For a fixed finite stream, the probability of producing all requested correct responses only after time T s i m T_{\mathrm{sim}} T sim tends to zero as T s i m → ∞ T_{\mathrm{sim}} \to\infty T sim → ∞ . Take a common T s i m T_{\mathrm{sim}} T sim making this probability at most η \eta η on every stream in the finite family. Simulate the prefix and each tested continuation for at most T s i m T_{\mathrm{sim}} T sim computation steps, and return failure on timeout. Any run producing its required correct responses within T s i m T_{\mathrm{sim}} T sim steps also passes both parts; it need not halt after its final response. A valid early terminal output is represented as an absorbing complete state; report completion is determined by the simulated execution. Additional simulations beyond a true legal endpoint may be cut off or assigned failure without a correctness premise.
Without conditioning on successful reach, use a constant-size tag on the reached complete state and a constant-size timeout message. For each prefix choose any one promised completion to bound its expected state length by S + O ( 1 ) S+O(1) S + O ( 1 ) . A binary string of expected length L L L has entropy at most L + log 2 ( e ( L + 1 ) ) = O ( L + 1 ) L+\log_2(e(L+1))=O(L+1) L + log 2 ( e ( L + 1 )) = O ( L + 1 ) . The hard bound follows by counting state strings. The communication observer’s cutoff is fixed independently of the hidden input and private coins. If J J J legal simulations are unioned, choose the cutoff loss for each stream to be at most η / J \eta/J η / J ; no uniform algorithmic running-time assertion is needed.
Auxiliary Probability and Information Arguments
Sampling estimates for cut recovery
This section isolates the elementary probability facts from the graph and coding implementations. Its random variables are sampled edge names , not update occurrences.
Lemma B.1 (Explicit hashes and bounded-independence tails). Let N E = ( v 2 ) N_E=\binom{v}{2} N E = ( 2 v ) , A = ⌈ log ( v + 1 ) ⌉ A=\lceil\log(v+1)\rceil A = ⌈ log ( v + 1 )⌉ , and b ≥ 8 b\ge8 b ≥ 8 . A bank has a ( 2 b + 2 ) (2b+2) ( 2 b + 2 ) -wise independent map from the N E N_E N E names to h = ⌈ log ( N E + 1 ) ⌉ + 8 h=\lceil\log(N_E+1)\rceil+8 h = ⌈ log ( N E + 1 )⌉ + 8 bits, with O ( b A ) O(bA) O ( b A ) seed bits and polynomial setup and evaluation work in v + b v+b v + b . Each level j ≤ h j\le h j ≤ h retains names whose first j j j hash bits are zero.
For any fixed set of names, its sampled size X X X at rate p = 2 − j p=2^{-j} p = 2 − j has mean μ \mu μ and satisfies
E ∣ X − μ ∣ 2 b ≤ 4 ( 4 b μ + 16 b 2 ) b . (72) \mathbb{E}|X-\mu|^{2b}\le4(4b\mu+16b^2)^b. \tag*{(72)} E ∣ X − μ ∣ 2 b ≤ 4 ( 4 b μ + 16 b 2 ) b . (72) Consequently,
μ ≥ 64 b ⟹ Pr ( X < b ) ≤ 2 − b , μ ≤ 128 b ⟹ Pr ( X > 512 b ) ≤ 2 − b . (73) \begin{aligned}
\mu&\ge64b \implies\Pr(X<b)\le2^{-b},\\
\mu&\le128b \implies\Pr(X>512b)\le2^{-b}. \tag*{(73)}
\end{aligned} μ μ ≥ 64 b ⟹ Pr ( X < b ) ≤ 2 − b , ≤ 128 b ⟹ Pr ( X > 512 b ) ≤ 2 − b . (73) If a fixed set of currently absent historical names has sampled mean at most b / 64 b/64 b /64 , its sampled size exceeds b b b with probability at most 16 − ( b + 1 ) 16^{-(b+1)} 1 6 − ( b + 1 ) . If the whole universe is sampled, a cap of C = min { N E , ⌈ 16 N E p + 2 b ⌉ } C=\min\{N_E,\lceil16N_Ep+2b\rceil\} C = min { N E , ⌈ 16 N E p + 2 b ⌉} overflows with probability at most 16 − 2 b 16^{-2b} 1 6 − 2 b . All these probabilities are under the bank’s original sampling law.
Proof. Construct F 2 h \mathbb{F}_{2^h} F 2 h by enumerating monic binary polynomials and testing irreducibility. There are 2 h = O ( v 2 ) 2^h=O(v^2) 2 h = O ( v 2 ) candidates; repeated squaring and gcd use O ( h ) O(h) O ( h ) bits and polynomial work. Evaluate a random polynomial of degree at most 2 b + 1 2b+1 2 b + 1 on distinct field encodings of the names. Vandermonde independence gives the claimed joint law, including when fewer than 2 b + 2 2b+2 2 b + 2 names exist. The full field word is evaluated before its first j j j bits are tested.
The case μ = 0 \mu=0 μ = 0 is deterministic, so assume μ > 0 \mu>0 μ > 0 . Every term in the centered 2 b 2b 2 b th moment involves at most 2 b 2b 2 b distinct names, so it equals the fully independent moment. In that case, for ∣ s ∣ ≤ 1 |s| \le1 ∣ s ∣ ≤ 1 , E e s ( X − μ ) ≤ e μ s 2 \mathbb{E}e^{s(X-\mu)} \le e^{\mu s^2} E e s ( X − μ ) ≤ e μ s 2 . For u ≤ 2 μ u \le2\mu u ≤ 2 μ , applying Markov’s inequality with s = ± u / ( 2 μ ) s = \pm u/(2\mu) s = ± u / ( 2 μ ) gives the two-sided tail 2 e − u 2 / ( 4 μ ) 2e^{-u^2/(4\mu)} 2 e − u 2 / ( 4 μ ) . For u > 2 μ u > 2\mu u > 2 μ , the choices s = ± 1 s = \pm1 s = ± 1 give 2 e μ − u ≤ 2 e − u / 2 2e^{\mu-u} \le2e^{-u/2} 2 e μ − u ≤ 2 e − u /2 . Thus the tail is bounded for all u ≥ 0 u \ge0 u ≥ 0 by 2 e − u 2 / ( 4 μ ) + 2 e − u / 2 2e^{-u^2/(4\mu)} + 2e^{-u/2} 2 e − u 2 / ( 4 μ ) + 2 e − u /2 . Integrating 2 b u 2 b − 1 2bu^{2b-1} 2 b u 2 b − 1 against this bound gives 2 ( 4 μ ) b b ! + 2 2 b ( 2 b ) ! 2(4\mu)^b b! + 2^{2b}(2b)! 2 ( 4 μ ) b b ! + 2 2 b ( 2 b )! , which is bounded by (B.1).
For μ ≥ 64 b \mu\ge64b μ ≥ 64 b , the ratio ( 4 b μ + 16 b 2 ) / ( μ − b ) 2 (4b\mu+16b^2)/(\mu-b)^2 ( 4 b μ + 16 b 2 ) / ( μ − b ) 2 decreases with μ \mu μ . Markov’s inequality therefore bounds Pr ( X < b ) \Pr(X < b) Pr ( X < b ) by 4 ( 272 / 3969 ) b ≤ 2 − b 4(272/3969)^b \le2^{-b} 4 ( 272/3969 ) b ≤ 2 − b . For μ ≤ 128 b \mu\le128b μ ≤ 128 b , the upper tail is at most 4 ( 528 / 3842 ) b ≤ 2 − b 4(528/3842)^b \le2^{-b} 4 ( 528/3842 ) b ≤ 2 − b . For an integer r r r not exceeding the independence order, E ( X ) r ≤ μ r \mathbb{E}(X)_r \le\mu^r E ( X ) r ≤ μ r , where ( X ) r (X)_r ( X ) r is the falling factorial. Taking r = b + 1 r = b+1 r = b + 1 proves the absent-name bound using r ! ≥ ( r / e ) r r! \ge(r/e)^r r ! ≥ ( r / e ) r . Taking r = 2 b r = 2b r = 2 b , each factor in ( C + 1 ) 2 b (C+1)_{2b} ( C + 1 ) 2 b is at least 16 N E p 16N_Ep 16 N E p , which proves the universe cap when C < N E C < N_E C < N E . When C = N E C = N_E C = N E , overflow is impossible. All seeds and scratch have the stated bounds. Different banks use independent seeds; the estimates within a bank apply to each fixed set of names.
For a nonempty cut of size at most 512 b 512b 512 b , level zero is decoded exactly. Otherwise, either the deepest retained sample has mean at least 64 b 64b 64 b , or a shallower dyadic level has mean in ( 64 b , 128 b ] (64b,128b] ( 64 b , 128 b ] . Equations (B.1)–(B.2), followed by the appropriate bound for the top-level data structure or bitmap, are precisely the per-cut guarantees used in § 3 and § 4 . This reasoning also supplies b b b distinct sampled neighbors in a singleton bootstrap. It remains valid conditional on earlier banks, because the input stream is fixed and the current bank is fresh.
Pointwise source encoding
This pointwise-error adaptation of the lossless source encoding [31 , 37 ] uses only the adaptive-filling density calculation {(B.12)}–{(B.13)} in Appendix § 8 .§ 4 . It does not invoke the perturbed input-law conclusion of Lemma 4.6.
Proof of Lemma 3.4. Set α = 100 / L \alpha= 100/L α = 100/ L , q = 1 − α q = 1-\alpha q = 1 − α , z = α m z = \alpha m z = α m , and
R = ⌈ ln z 100 α ⌉ , r i = ⌊ m ( 1 − q i ) ⌋ ( 0 ≤ i < R ) , r R = m . R = \left\lceil\frac{\ln z}{100\alpha} \right\rceil, \qquad r_i = \left\lfloor m(1-q^i) \right\rfloor\quad(0 \le i < R), \qquad r_R = m. R = ⌈ 100 α ln z ⌉ , r i = ⌊ m ( 1 − q i ) ⌋ ( 0 ≤ i < R ) , r R = m .
Choose β ∗ \beta_* β ∗ small enough that L ≥ 20000 / ln 100 L \ge20000/\ln100 L ≥ 20000/ ln 100 . These choices ensure α ≤ 1 / 2 \alpha\le1/2 α ≤ 1/2 , R ≥ 2 R \ge2 R ≥ 2 , and R = Θ ( L log ( 2 + m / L ) ) R = \Theta(L\log(2+m/L)) R = Θ ( L log ( 2 + m / L )) uniformly, including m = Θ ( L ) m = \Theta(L) m = Θ ( L ) . For i < R − 1 i < R-1 i < R − 1 , r i + 1 − r i ≥ z 49 / 50 − 1 > 1 r_{i+1}-r_i \ge z^{49/50}-1 > 1 r i + 1 − r i ≥ z 49/50 − 1 > 1 , because q R ≥ e − 2 α R ≥ z − 1 / 50 q^R \ge e^{-2\alpha R} \ge z^{-1/50} q R ≥ e − 2 α R ≥ z − 1/50 . In particular, all queried sets have size less than m m m .
Expose a fresh independent decoder tape and an independent uniform permutation of [ U ] [U] [ U ] at each of the R R R stages; denote their entire collection by Π \Pi Π . These tapes are independent of ( S , M ) (S,M) ( S , M ) . Start at T 0 = ∅ T_0 = \varnothing T 0 = ∅ and initialize the recovered set S r e c = ∅ S_{\mathrm{rec}} = \varnothing S rec = ∅ . At stage i i i , run the decoder on ( M , T i ) (M,T_i) ( M , T i ) . If its output belongs to S ∖ T i S \setminus T_i S ∖ T i , record a success flag, collect the output in S r e c S_{\mathrm{rec}} S rec , and add it to T i T_i T i . Otherwise, record a failure flag. Fill to size r i + 1 r_{i+1} r i + 1 with the first available members of S S S in the stage’s permutation. This operation always exists, and the recovered members are distinct.
For fixed S , M S,M S , M , the distribution of T i T_i T i satisfies
Pr ( T i = B ∣ S , M ) ≤ ( m r i ) − 1 ∏ j = 0 i − 1 m − r j r i − r j ≤ β − 1 / 4 ( m r i ) − 1 (74) \Pr(T_i = B \mid S,M) \le\binom{m}{r_i}^{-1} \prod_{j=0}^{i-1} \frac{m-r_j}{r_i-r_j} \le\beta^{-1/4}\binom{m}{r_i}^{-1} \tag*{(74)} Pr ( T i = B ∣ S , M ) ≤ ( r i m ) − 1 j = 0 ∏ i − 1 r i − r j m − r j ≤ β − 1/4 ( r i m ) − 1 (74)
for every r i r_i r i -subset B B B of S S S ; the empty product at i = 0 i=0 i = 0 is one. The combinatorial adaptive-filling and rounding calculations (B.12)–(B.13) of Lemma 4.6, with starting index zero, prove (B.3), uniformly down to m = L m=L m = L . They allow every adaptive forced choice; averaging over the fresh decoder tapes therefore also permits randomized choices.
At stage i i i the current decoder tape is fresh, independently of the history that selected T i T_i T i . For an independent uniform r i r_i r i -subset of S S S , pointwise error and averaging over S , M S,M S , M give error at most β \beta β . The density domination (B.3) consequently gives actual stage error at most β 3 / 4 \beta^{3/4} β 3/4 . Consequently,
E ∣ S r e c ∣ ≥ R ( 1 − β 3 / 4 ) ≥ R / 2. (75) \mathbb{E}|S_{\mathrm{rec}}| \ge R(1-\beta^{3/4}) \ge R/2. \tag*{(75)} E ∣ S rec ∣ ≥ R ( 1 − β 3/4 ) ≥ R /2. (75)
Thus density domination controls the adaptive query sequence while only the decoder tapes need to be fresh.
Given M M M , Π \Pi Π , the R R R flags, and the residual set B = S ∖ S r e c B=S\setminus S_{\mathrm{rec}} B = S ∖ S rec , a lossless decoder reconstructs S S S . It reruns each successful query, and fills from the unused residual members in the stage permutation. An element recovered at a later successful stage was not a filler at an earlier stage; excluding such future elements therefore leaves every earlier list of first fillers unchanged. Induction reconstructs the same queried sets and outputs. Fresh decoder tapes are shared in this lossless reconstruction, so no determinization of the original decoder is needed.
The flags reveal a = ∣ S r e c ∣ a=|S_{\mathrm{rec}}| a = ∣ S rec ∣ , so the conditional residual entropy is at most E log ( U m − a ) \mathbb{E}\log\binom{U}{m-a} E log ( m − a U ) . Since Π \Pi Π is independent of ( S , M ) (S,M) ( S , M ) , losslessness and the entropy chain rule imply
I ( S ; M ) ≥ log ( U m ) − R − E log ( U m − ∣ S r e c ∣ ) ≥ E ∣ S r e c ∣ log U − m m − R . (76) I(S;M) \ge\log\binom{U}{m}-R-\mathbb{E}\log\binom{U}{m-|S_{\mathrm{rec}}|} \ge\mathbb{E}|S_{\mathrm{rec}}|\log\frac{U-m}{m}-R. \tag*{(76)} I ( S ; M ) ≥ log ( m U ) − R − E log ( m − ∣ S rec ∣ U ) ≥ E ∣ S rec ∣ log m U − m − R . (76)
The last inequality follows by cancelling factorials. Choose C C C large enough that log ( ( U − m ) / m ) \log((U-m)/m) log (( U − m ) / m ) absorbs the flag cost in (B.5). Equations (B.4)–(B.5) and the estimate for R R R prove (3.19). □ \square □
External-information accounting for the coordinate reduction
Proof of Lemma 4.5. Let π \pi π be the joint law of ( X k , Y k , M , O ) (X^k,Y^k,M,O) ( X k , Y k , M , O ) and let W W W be the event that all k k k answers are correct. The proof uses the coordinate construction of Nelson and Yu [37 ] , as follows. Choose a uniform permutation κ \kappa κ of [ k ] [k] [ k ] , independently of π \pi π , and independent uniform positions
s ∈ { k / 2 + 1 , … , k } , t ∈ { 1 , … , k / 2 } . s\in\{k/2+1,\ldots,k\},\qquad t\in\{1,\ldots,k/2\}. s ∈ { k /2 + 1 , … , k } , t ∈ { 1 , … , k /2 } .
The first view sets i = κ ( s ) i=\kappa(s) i = κ ( s ) , g = κ ( [ 1 , s − 1 ] ) g=\kappa([1,s-1]) g = κ ([ 1 , s − 1 ]) , and h = κ ( [ t , k ] ) ∖ { i } h=\kappa([t,k])\setminus\{i\} h = κ ([ t , k ]) ∖ { i } . Equivalently, the second view sets i = κ ( t ) i=\kappa(t) i = κ ( t ) , g = κ ( [ 1 , s ] ) ∖ { i } g=\kappa([1,s])\setminus\{i\} g = κ ([ 1 , s ]) ∖ { i } , and h = κ ( [ t + 1 , k ] ) h=\kappa([t+1,k]) h = κ ([ t + 1 , k ]) . These induce the same distribution of ( i , g , h ) (i,g,h) ( i , g , h ) : in both views, the disjoint sets g ∖ h g\setminus h g ∖ h , g ∩ h g\cap h g ∩ h , h ∖ g h\setminus g h ∖ g , and { i } \{i\} { i } have sizes t − 1 t-1 t − 1 , s − t s-t s − t , k − s k-s k − s , and 1 1 1 , respectively, and their labels are uniform under the random permutation κ \kappa κ . In both views i ∉ g ∪ h i\notin g\cup h i ∈ / g ∪ h . Draw r r r from π [ X g , Y h ∣ W ] \pi[X_g,Y_h\mid W] π [ X g , Y h ∣ W ] .
For each λ = ( i , g , h , r ) \lambda=(i,g,h,r) λ = ( i , g , h , r ) , let D λ ′ D'_\lambda D λ ′ be the law of ( X i , Y i ) (X_i,Y_i) ( X i , Y i ) conditional on ( X g , Y h ) = r , W (X_g,Y_h)=r,W ( X g , Y h ) = r , W . On input ( x , y ) (x,y) ( x , y ) the generalized protocol samples its message from
π [ M ∣ X i = x , Y i = y , ( X g , Y h ) = r , W ] , \pi[M\mid X_i=x,Y_i=y,(X_g,Y_h)=r,W], π [ M ∣ X i = x , Y i = y , ( X g , Y h ) = r , W ] ,
and, given ( m , y ) (m,y) ( m , y ) , samples its output from
π [ O i ∣ Y i = y , M = m , ( X g , Y h ) = r , W ] . \pi[O_i\mid Y_i=y,M=m,(X_g,Y_h)=r,W]. π [ O i ∣ Y i = y , M = m , ( X g , Y h ) = r , W ] .
The message may depend on Bob’s input; the argument below bounds this dependence. Private output coins can be removed by the Bayes-optimal determinization in Lemma 4.6.
External-information accounting. Let A = ( X k , Y k ) A=(X^k,Y^k) A = ( X k , Y k ) . Under every original one-way protocol,
I π ( A ; M ) = I π ( X k ; M ) = I . (77) I_\pi(A;M)=I_\pi(X^k;M)=\mathcal{I}. \tag*{(77)} I π ( A ; M ) = I π ( X k ; M ) = I . (77)
For fixed κ \kappa κ , t t t , write X h e a d = X κ ( [ 1 , k / 2 ] ) X_{\mathrm{head}} = X_\kappa([1,k/2]) X head = X κ ([ 1 , k /2 ]) , X t a i l = X κ ( [ k / 2 + 1 , k ] ) X_{\mathrm{tail}} = X_\kappa([k/2+1,k]) X tail = X κ ([ k /2 + 1 , k ]) , and Y s u f f i x = Y κ ( [ t , k ] ) Y_{\mathrm{suffix}} = Y_\kappa([t,k]) Y suffix = Y κ ([ t , k ]) . Average over r r r and telescope over s s s in the first view. The resulting mean coordinate information is exactly
E λ I D λ ′ ( X ; M ^ ∣ Y ) = 2 k E κ , t I π ( X t a i l ; M ∣ X h e a d , Y s u f f i x , W ) ≤ 2 k I π ( A ; M ∣ W ) ≤ 2 ( J + 1 ) k p ≤ 4 ( J + 1 ) k . (78) \begin{aligned}
\mathbb{E}_{\lambda} I_{D'_\lambda}(X;\widehat{M}\mid Y) = \frac{2}{k}\mathbb{E}_{\kappa,t} I_\pi(X_{\mathrm{tail}};M\mid X_{\mathrm{head}},Y_{\mathrm{suffix}},W) \\
&\le\frac{2}{k} I_\pi(A;M\mid W) \\
&\le\frac{2(\mathcal{J}+1)}{kp} \le\frac{4(\mathcal{J}+1)}{k}. \tag*{(78)}
\end{aligned} E λ I D λ ′ ( X ; M ∣ Y ) = k 2 E κ , t I π ( X tail ; M ∣ X head , Y suffix , W ) ≤ k 2 I π ( A ; M ∣ W ) ≤ k p 2 ( J + 1 ) ≤ k 4 ( J + 1 ) . (78)
The first inequality is just the information chain rule: the conditioning tuple ( X h e a d , Y s u f f i x ) (X_{\mathrm{head}},Y_{\mathrm{suffix}}) ( X head , Y suffix ) is a subtuple of A A A , so it and X t a i l X_{\mathrm{tail}} X tail reveal no more than A A A . The second uses (4.17) and (B.6). There is no additional conditioned message, output, future source row, or decoder coin in this step. The permutation only chooses coordinates and is independent before the success conditioning.
Approximate one-way property. Using the second view and telescoping over t t t , the mean value of I ( M ^ ; Y ∣ X ) I(\widehat{M};Y\mid X) I ( M ; Y ∣ X ) is
2 k E κ , s I π ( Y κ ( [ 1 , k / 2 ] ) ; M ∣ X κ ( [ 1 , s ] ) , Y κ ( [ k / 2 + 1 , k ] ) , W ) . (79) \frac{2}{k}\mathbb{E}_{\kappa,s} I_\pi\left(Y_\kappa([1,k/2]);M\mid X_\kappa([1,s]),Y_\kappa([k/2+1,k]),W\right). \tag*{(79)} k 2 E κ , s I π ( Y κ ([ 1 , k /2 ]) ; M ∣ X κ ([ 1 , s ]) , Y κ ([ k /2 + 1 , k ]) , W ) . (79)
Without conditioning on W W W , the two arguments are conditionally independent: all source X X X coordinates for the first group of Y Y Y coordinates are already supplied, and the pairs are independent. The message is generated from X k X^k X k alone. (49) bounds (B.8) by 2 log ( 1 / p ) / k ≤ 2 / k 2\log(1/p)/k\le2/k 2 log ( 1/ p ) / k ≤ 2/ k .
Decoder error. The original O i O_i O i is correct under the law conditioned on W W W . The constructed decoder resamples it without knowing X i X_i X i . Pinsker’s inequality bounds the resulting error by a constant times
I π ( X i ; O i ∣ Y i , M , ( X g , Y h ) = r , W ) . \sqrt{I_\pi(X_i;O_i\mid Y_i,M,(X_g,Y_h)=r,W)}. I π ( X i ; O i ∣ Y i , M , ( X g , Y h ) = r , W ) .
Average, apply Jensen, enlarge O i O_i O i to O O O , and telescope in the first view. The quantity inside the averaged square root is at most
2 k E κ , t I π ( X t a i l ; O ∣ X h e a d , Y s u f f i x , M , W ) ≤ 2 log ( 1 / p ) k . (80) \frac{2}{k}\mathbb{E}_{\kappa,t} I_\pi(X_{\mathrm{tail}};O\mid X_{\mathrm{head}},Y_{\mathrm{suffix}},M,W)\le\frac{2\log(1/p)}{k}. \tag*{(80)} k 2 E κ , t I π ( X tail ; O ∣ X head , Y suffix , M , W ) ≤ k 2 log ( 1/ p ) . (80)
For the final inequality use (4.16). To check the required unconditioned independence, the omitted Y Y Y coordinates have positions below t ≤ k / 2 t\le k/2 t ≤ k /2 , and their corresponding X X X coordinates are all in X h e a d X_{\mathrm{head}} X head . Given these head coordinates, the omitted Y Y Y coordinates are independent of the tail, the message, and the supplied Y Y Y coordinates. The decoder depends only on Y k Y^k Y k , M M M and its fresh private coins. This proves mean error O ( k − 1 / 2 ) O(k^{-1/2}) O ( k − 1/2 ) even when W W W involves those decoder coins.
Distribution perturbations. For each ( i , g , h ) (i,g,h) ( i , g , h ) , the original X i X_i X i and Y i Y_i Y i are individually independent of ( X g , Y h ) (X_g,Y_h) ( X g , Y h ) . Apply (4.15) and the relative-entropy chain rule to obtain, after averaging over r r r , both marginal KL bounds at most log ( 1 / p ) ≤ 1 \log(1/p)\le1 log ( 1/ p ) ≤ 1 . For the forward conditional KL bound, use the second view and the reverse-order chain rule for the first half of the Y Y Y coordinates. Its mean is
2 k E κ , s E C ∼ π [ C ∣ W ] D K L ( π [ Y κ ( [ 1 , k / 2 ] ) ∣ C , W ] ∥ π [ Y κ ( [ 1 , k / 2 ] ) ∣ C ] ) , C = ( X κ ( [ 1 , s ] ) , Y κ ( [ k / 2 + 1 , k ] ) ) . (81) \frac{2}{k}\mathbb{E}_{\kappa,s}\mathbb{E}_{C\sim\pi[C\mid W]}D_{\mathrm{KL}}\left(\pi[Y_\kappa([1,k/2])\mid C,W]\mathbin{\|}\pi[Y_\kappa([1,k/2])\mid C]\right),\quad C=(X_\kappa([1,s]),Y_\kappa([k/2+1,k])). \tag*{(81)} k 2 E κ , s E C ∼ π [ C ∣ W ] D KL ( π [ Y κ ([ 1 , k /2 ]) ∣ C , W ] ∥ π [ Y κ ([ 1 , k /2 ]) ∣ C ] ) , C = ( X κ ([ 1 , s ]) , Y κ ([ k /2 + 1 , k ])) . (81)
The reference conditional factors into the relevant D [ Y j ∣ X j ] \mathcal{D}[Y_j\mid X_j] D [ Y j ∣ X j ] , since s > k / 2 s>k/2 s > k /2 . The conditional relative entropy in (B.10) is at most log ( 1 / p ) \log(1/p) log ( 1/ p ) by (4.15) and the chain rule. This gives 2 / k 2/k 2/ k . The reverse conditional KL bound follows in the first view by the forward-order chain rule for X t a i l X_{\mathrm{tail}} X tail , conditioned on X h e a d , Y s u f f i x X_{\mathrm{head}},Y_{\mathrm{suffix}} X head , Y suffix ; its reference conditional factors into D [ X j ∣ Y j ] \mathcal{D}[X_j\mid Y_j] D [ X j ∣ Y j ] . It has the same 2 / k 2/k 2/ k bound.
There are seven nonnegative quantities: two marginal KL terms, two conditional KL terms, approximate-one-way information, decoder error, and coordinate information. Applying Markov’s inequality to each with a sufficiently large absolute factor and taking a union bound selects a single λ \lambda λ satisfying all the displayed bounds simultaneously. This proves (4.18). ∎
Source-cardinality accounting in the information lower bound
Constants are absolute unless otherwise indicated. The N N N -fold relation asks for one element of S i ∖ T i S_i \setminus T_i S i ∖ T i for every i ∈ [ N ] i \in[N] i ∈ [ N ] , where T i ⊂ S i ⊆ [ U ] T_i \subset S_i \subseteq[U] T i ⊂ S i ⊆ [ U ] .
Lemma 4.6 refines the source-size accounting in Nelson and Yu [37 Appendix B] , whose encoding builds on Kapralov et al. [31 Section 3.1] . The encoding below retains the source cardinality m = ∣ S ∣ m = |S| m = ∣ S ∣ as a free parameter: the universe-only theorem chooses m = U log ( 1 / β ) m = \sqrt{U}\log(1/\beta) m = U log ( 1/ β ) , whereas here m m m controls the total number of deletions in the lower-bound subclass. The following proof records the rounding and perturbed-distribution estimates needed for this parameter extension. The indexed-block application in § 4.4 then charges external information.
Proof of Lemma 4.6. If the generalized protocol’s output uses additional private coins, replace it, for each pair ( M , T ) (M,T) ( M , T ) , by a deterministic Bayes-optimal output under D ′ D' D ′ . This cannot increase its error and does not change the joint law of ( S , T , M ) (S,T,M) ( S , T , M ) , any KL term, or either information cost. Communication protocols here have no computational restriction. Write O ( M , T ) O(M,T) O ( M , T ) for this deterministic output function; it is the same function in every reuse and in the lossless decoder.
Hard distribution and number of stages. Take
α = 100 / L , q = 1 − α , z = α m , R = ⌊ ln z 100 α ⌋ , r j = ⌊ m ( 1 − q j ) ⌋ ( 0 ≤ j < R ) . \alpha= 100/L,\qquad q = 1-\alpha,\qquad z = \alpha m,\qquad R = \left\lfloor\frac{\ln z}{100\alpha}\right\rfloor,\qquad r_j = \left\lfloor m(1-q^j)\right\rfloor\quad(0 \le j < R). α = 100/ L , q = 1 − α , z = α m , R = ⌊ 100 α ln z ⌋ , r j = ⌊ m ( 1 − q j ) ⌋ ( 0 ≤ j < R ) .
Since m ≥ L m \ge L m ≥ L , it follows that z ≥ 100 z \ge100 z ≥ 100 and R = ⌊ L ln ( 100 m / L ) / 10000 ⌋ R = \lfloor L\ln(100m/L)/10000\rfloor R = ⌊ L ln ( 100 m / L ) /10000 ⌋ . Taking β 0 \beta_0 β 0 small enough that L ≥ 20000 / ln 100 L \ge20000/\ln100 L ≥ 20000/ ln 100 ensures both α ≤ 1 / 2 \alpha\le1/2 α ≤ 1/2 and R ≥ 2 R \ge2 R ≥ 2 , including at m = L m = L m = L . Define r R = m r_R = m r R = m only for the last filling step of the encoding. Let S S S be uniform among the m m m -subsets of [ U ] [U] [ U ] . Choose i 0 i_0 i 0 uniformly from { 0 , … , R − 1 } \{0,\ldots,R-1\} { 0 , … , R − 1 } , then choose T T T uniformly among the r i 0 r_{i_0} r i 0 -subsets of S S S .
For j < R − 1 j < R-1 j < R − 1 ,
r j + 1 − r j ≥ α m q j − 1 ≥ z 49 / 50 − 1 > 1 , r_{j+1}-r_j \ge\alpha m q^j - 1 \ge z^{49/50}-1 > 1, r j + 1 − r j ≥ α m q j − 1 ≥ z 49/50 − 1 > 1 ,
because q R ≥ e − 2 α R ≥ z − 1 / 50 q^R \ge e^{-2\alpha R} \ge z^{-1/50} q R ≥ e − 2 α R ≥ z − 1/50 . Thus all cardinalities are distinct, all T T T are proper subsets, and every encoding step can add a newly found element. Also, by reducing β 0 \beta_0 β 0 if necessary,
R = Θ ( L log ( 2 + m / L ) ) . (82) R = \Theta\bigl(L\log(2+m/L)\bigr). \tag*{(82)} R = Θ ( L log ( 2 + m / L ) ) . (82)
An exact density bound for adaptive filling. Fix S S S , a message M M M , and a starting index i 0 i_0 i 0 . Start from a uniform r i 0 r_{i_0} r i 0 -subset T 0 T_0 T 0 of S S S . In stage j j j , a deterministic rule may add one selected member of S ∖ T S \setminus T S ∖ T , then fill uniformly at random to size r j + 1 r_{j+1} r j + 1 . The rule can depend on everything exposed so far. At every stage i < R i < R i < R , for every fixed r i r_i r i -subset A ⊆ S A \subseteq S A ⊆ S ,
Pr ( T i = A ∣ S , M , i 0 ) ≤ ( m r i ) − 1 ∏ j = i 0 i − 1 m − r j r i − r j . (83) \Pr(T_i = A \mid S,M,i_0) \le\binom{m}{r_i}^{-1}\prod_{j=i_0}^{i-1}\frac{m-r_j}{r_i-r_j}. \tag*{(83)} Pr ( T i = A ∣ S , M , i 0 ) ≤ ( r i m ) − 1 j = i 0 ∏ i − 1 r i − r j m − r j . (83)
To see this, T 0 T_0 T 0 must lie in A A A , which has probability ( r i r i 0 ) / ( m r i 0 ) \binom{r_i}{r_{i_0}}/\binom{m}{r_{i_0}} ( r i 0 r i ) / ( r i 0 m ) . Conditional on every earlier set lying in A A A , the largest probability that the next set still lies in A A A occurs when the optional forced element is in A A A . Its value is at most
( r i − r j − 1 r j + 1 − r j − 1 ) ( m − r j − 1 r j + 1 − r j − 1 ) . \frac{\binom{r_i-r_{j-1}}{r_{j+1}-r_{j-1}}}{\binom{m-r_{j-1}}{r_{j+1}-r_{j-1}}}. ( r j + 1 − r j − 1 m − r j − 1 ) ( r j + 1 − r j − 1 r i − r j − 1 ) .
If no element is forced, the corresponding probability is no larger. Multiplying these conditional bounds and cancelling factorials gives (B.12). If a forced element lies outside A A A , the desired event has probability zero. This proof permits adaptive choices, without assuming independence of the selected elements.
The next estimate bounds the product, including the integer rounding. For j < i j<i j < i , writing h = i − j h=i-j h = i − j , its factor is at most
m q j + 1 m q j ( 1 − q h ) − 1 . \frac{mq^{j}+1}{mq^{j}(1-q^{h})-1}. m q j ( 1 − q h ) − 1 m q j + 1 .
Writing b = m q j ( 1 − q h ) = m q i ( q − h − 1 ) b=mq^{j}(1-q^{h})=mq^{i}(q^{-h}-1) b = m q j ( 1 − q h ) = m q i ( q − h − 1 ) gives b ≥ m q i α h ≥ z 49 / 50 h > 2 b\ge mq^{i}\alpha h\ge z^{49/50}h>2 b ≥ m q i α h ≥ z 49/50 h > 2 . The logarithm of this factor is therefore at most
− ln ( 1 − q h ) + ln ( 1 + 1 m q j ) − ln ( 1 − 1 / b ) ≤ − ln ( 1 − e − α h ) + 3 z 49 / 50 h . -\ln(1-q^{h})+\ln\left(1+\frac{1}{mq^{j}}\right)-\ln(1-1/b)\le-\ln(1-e^{-\alpha h})+\frac{3}{z^{49/50}h}. − ln ( 1 − q h ) + ln ( 1 + m q j 1 ) − ln ( 1 − 1/ b ) ≤ − ln ( 1 − e − α h ) + z 49/50 h 3 .
This uses m q j ≥ b mq^{j}\ge b m q j ≥ b , ln ( 1 + x ) ≤ x \ln(1+x)\le x ln ( 1 + x ) ≤ x , and − ln ( 1 − x ) ≤ 2 x -\ln(1-x)\le2x − ln ( 1 − x ) ≤ 2 x for 0 ≤ x ≤ 1 / 2 0\le x\le1/2 0 ≤ x ≤ 1/2 . Summing, and weakening 1 / h 1/h 1/ h to 1 1 1 , gives
ln ∏ j = i 0 i − 1 m − r j r i − r j ≤ ∑ h ≥ 1 − ln ( 1 − e − α h ) + 3 R z 49 / 50 . \ln\prod_{j=i_{0}}^{i-1}\frac{m-r_{j}}{r_{i}-r_{j}}\le\sum_{h\ge1}-\ln(1-e^{-\alpha h})+\frac{3R}{z^{49/50}}. ln j = i 0 ∏ i − 1 r i − r j m − r j ≤ h ≥ 1 ∑ − ln ( 1 − e − α h ) + z 49/50 3 R .
For the decreasing nonnegative function f ( x ) = − ln ( 1 − e − x ) f(x)=-\ln(1-e^{-x}) f ( x ) = − ln ( 1 − e − x ) , the sum is at most α − 1 ∫ 0 ∞ f ( x ) d x = π 2 / ( 6 α ) \alpha^{-1}\int_{0}^{\infty}f(x)\,dx=\pi^{2}/(6\alpha) α − 1 ∫ 0 ∞ f ( x ) d x = π 2 / ( 6 α ) . Moreover,
3 R z 49 / 50 ≤ 3 100 α ln z z 49 / 50 < 1 100 α ( z ≥ 100 ) . \frac{3R}{z^{49/50}}\le\frac{3}{100\alpha}\frac{\ln z}{z^{49/50}}<\frac{1}{100\alpha}\qquad(z\ge100). z 49/50 3 R ≤ 100 α 3 z 49/50 ln z < 100 α 1 ( z ≥ 100 ) .
Consequently, the logarithm is less than 2 / α = L / 50 2/\alpha=L/50 2/ α = L /50 . The following weaker bound is convenient:
Pr ( T i = A ∣ S , M , i 0 ) ≤ β − 1 / 4 ( m r i ) − 1 . (84) \Pr(T_i=A\mid S,M,i_0)\le\beta^{-1/4}\binom{m}{r_i}^{-1}. \tag*{(84)} Pr ( T i = A ∣ S , M , i 0 ) ≤ β − 1/4 ( r i m ) − 1 . (84)
The estimate is uniform down to m = L m=L m = L .
Lossless encoding under the actual perturbed law. Draw ( S , T 0 , M ) (S,T_0,M) ( S , T 0 , M ) according to D ′ D' D ′ and the generalized protocol. Public randomness consists of an independent uniform permutation of [ U ] [U] [ U ] for each stage; it is independent of this triple. Finite marginal and forward conditional KL ensure that ∣ S ∣ = m |S|=m ∣ S ∣ = m , T 0 ⊊ S T_0\subsetneq S T 0 ⊊ S , and ∣ T 0 ∣ = r i 0 |T_0|=r_{i_0} ∣ T 0 ∣ = r i 0 for a unique i 0 i_0 i 0 . Write T 0 T_0 T 0 and M M M , initialize the recovered set S r e c = ∅ S_{\mathrm{rec}}=\varnothing S rec = ∅ , and reuse the output function on ( M , T ) (M,T) ( M , T ) in stages i 0 , … , R − 1 i_0,\ldots,R-1 i 0 , … , R − 1 . If the output belongs to S ∖ T S\setminus T S ∖ T , record a one-bit success flag, collect that output in a set S r e c S_{\mathrm{rec}} S rec , and add it to T T T . Otherwise, record a zero flag. Fill T T T to r j + 1 r_{j+1} r j + 1 using the smallest remaining elements of S S S in that stage’s public permutation. Finally, write S ∖ ( T 0 ∪ S r e c ) S\setminus(T_0\cup S_{\mathrm{rec}}) S ∖ ( T 0 ∪ S rec ) . Pad the flags to R R R bits.
The decoder knows T 0 T_0 T 0 , M M M , the flags, the final residual set, and the public permutations. It regenerates successful outputs and fills each stage from the still unconsumed residual elements. This reproduces the encoder: an element that is to be recovered in a later successful stage was not selected as a filler in an earlier stage, so excluding all such elements cannot change an earlier selection of the smallest fillers. Induction on stages proves exact reconstruction. Fresh permutations per stage make the uniform filling in (B.12) literal; their use does not change this losslessness argument.
Write I = I ( S ; M ∣ T ) I=I(S;M\mid T) I = I ( S ; M ∣ T ) . Uniformity of the base law’s S S S marginal and the first KL bound give H ( S ) ≥ log ( U m ) − K 0 H(S)\ge\log\binom{U}{m}-K_0 H ( S ) ≥ log ( m U ) − K 0 . Uniformity of the base conditional S ∣ T = t S\mid T=t S ∣ T = t and the reverse conditional KL bound give
I ( S ; T 0 ) ≤ log ( U m ) − E log ( U − ∣ T 0 ∣ m − ∣ T 0 ∣ ) + η . I(S;T_0)\le\log\binom{U}{m}-\mathbb{E}\log\binom{U-|T_0|}{m-|T_0|}+\eta. I ( S ; T 0 ) ≤ log ( m U ) − E log ( m − ∣ T 0 ∣ U − ∣ T 0 ∣ ) + η .
Conditioning on the public permutations, the message contributes exactly I \mathcal{I} I information; the flags contribute at most R R R ; the residual set contributes at most
log ( R + 1 ) + E log ( U − ∣ T 0 ∣ m − ∣ T 0 ∣ − ∣ S r e c ∣ ) . \log(R+1)+\mathbb{E}\log\binom{U-|T_0|}{m-|T_0|-|S_{\mathrm{rec}}|}. log ( R + 1 ) + E log ( m − ∣ T 0 ∣ − ∣ S rec ∣ U − ∣ T 0 ∣ ) .
The factorial ratio of the two binomial terms is at least ( ( U − m ) / m ) ∣ S r e c ∣ ((U-m)/m)^{|S_{\mathrm{rec}}|} (( U − m ) / m ) ∣ S rec ∣ . Lossless decoding therefore implies
I ≥ E ∣ S r e c ∣ log U − m m − R − log ( R + 1 ) − K 0 − η . (85) \mathcal{I} \ge\mathbb{E}|S_{\mathrm{rec}}|\log\frac{U-m}{m}-R-\log(R+1)-K_0-\eta. \tag*{(85)} I ≥ E ∣ S rec ∣ log m U − m − R − log ( R + 1 ) − K 0 − η . (85)
Decoupling for the success analysis. Let P P P be the actual law of ( S , T 0 , M ) (S,T_0,M) ( S , T 0 , M ) . Let P ~ \widetilde{P} P first draw S ∼ D ′ [ S ] S\sim D'[S] S ∼ D ′ [ S ] , then draw T 0 ∼ D [ T ∣ S ] T_0\sim D[T\mid S] T 0 ∼ D [ T ∣ S ] and M ∼ P [ M ∣ S ] M\sim P[M\mid S] M ∼ P [ M ∣ S ] independently conditional on S S S . Pinsker, conditional Jensen, the bound on I ( M ; T 0 ∣ S ) I(M;T_0\mid S) I ( M ; T 0 ∣ S ) , and the forward conditional KL bound imply
∥ P − P ~ ∥ T V = O ( η ) = O ( β ) . (86) \lVert P-\widetilde{P}\rVert_{\mathrm{TV}}=O(\sqrt{\eta})=O(\beta). \tag*{(86)} ∥ P − P ∥ TV = O ( η ) = O ( β ) . (86)
One can obtain this in two steps: first replace M ∣ S , T 0 M\mid S,T_0 M ∣ S , T 0 by M ∣ S M\mid S M ∣ S under the original ( S , T 0 ) (S,T_0) ( S , T 0 ) marginal, then replace T 0 ∣ S T_0\mid S T 0 ∣ S by the base conditional. This avoids conditioning a uniform starting subset on a message that depended on that subset.
First apply (B.15) to a single decoder test. Its failure indicator, as a function of ( S , T , M ) (S,T,M) ( S , T , M ) , lies in [ 0 , 1 ] [0,1] [ 0 , 1 ] and has expectation at most β \beta β under P P P . Thus, under P ~ \widetilde{P} P , a fresh base conditional test T T T with the same S , M S,M S , M has expected error
p e r r ≤ β + ∥ P − P ~ ∥ T V = O ( β ) . p_{\mathrm{err}}\le\beta+\lVert P-\widetilde{P}\rVert_{\mathrm{TV}}=O(\beta). p err ≤ β + ∥ P − P ∥ TV = O ( β ) .
For fixed S , M S,M S , M , let p e r r , i ( S , M ) p_{\mathrm{err},i}(S,M) p err , i ( S , M ) be its error on a uniform r i r_i r i -subset. Since i 0 i_0 i 0 is uniform and independent of M M M conditional on S S S , (B.13) gives
E P ~ ∣ S r e c ∣ ≥ R + 1 2 − β − 1 / 4 E S , M 1 R ∑ i 0 = 0 R − 1 ∑ i = i 0 R − 1 p e r r , i ( S , M ) ≥ R 2 − R β − 1 / 4 p e r r = R 2 − O ( R β 3 / 4 ) . \begin{aligned}
\mathbb{E}_{\widetilde{P}}|S_{\mathrm{rec}}|\ge\frac{R+1}{2}-\beta^{-1/4}\mathbb{E}_{S,M}\frac{1}{R}\sum_{i_0=0}^{R-1}\sum_{i=i_0}^{R-1}p_{\mathrm{err},i}(S,M) \\
&\ge\frac{R}{2}-R\beta^{-1/4}p_{\mathrm{err}}=\frac{R}{2}-O(R\beta^{3/4}).
\end{aligned} E P ∣ S rec ∣ ≥ 2 R + 1 − β − 1/4 E S , M R 1 i 0 = 0 ∑ R − 1 i = i 0 ∑ R − 1 p err , i ( S , M ) ≥ 2 R − R β − 1/4 p err = 2 R − O ( R β 3/4 ) .
Apply (B.15) a second time to transfer the expected number of recovered elements back to the actual law. The two initial laws are passed through the same randomized encoding channel, using independent public permutations. Total variation cannot increase under this channel, and 0 ≤ ∣ S r e c ∣ ≤ R 0\le|S_{\mathrm{rec}}|\le R 0 ≤ ∣ S rec ∣ ≤ R , so
∣ E P ∣ S r e c ∣ − E P ~ ∣ S r e c ∣ ∣ ≤ R ∥ P − P ~ ∥ T V = O ( R η ) = O ( R β ) . \left|\mathbb{E}_{P}|S_{\mathrm{rec}}|-\mathbb{E}_{\widetilde{P}}|S_{\mathrm{rec}}|\right|\le R\lVert P-\widetilde{P}\rVert_{\mathrm{TV}}=O(R\sqrt{\eta})=O(R\beta). E P ∣ S rec ∣ − E P ∣ S rec ∣ ≤ R ∥ P − P ∥ TV = O ( R η ) = O ( R β ) .
Thus E P ∣ S r e c ∣ ≥ R / 3 \mathbb{E}_{P}|S_{\mathrm{rec}}|\ge R/3 E P ∣ S rec ∣ ≥ R /3 for small enough β 0 \beta_0 β 0 . Choose C 0 C_0 C 0 large enough that log ( ( U − m ) / m ) \log((U-m)/m) log (( U − m ) / m ) absorbs the absolute O ( R + K 0 ) O(R+K_0) O ( R + K 0 ) terms in (B.14). Equations (B.11) and (B.14) give the claimed lower bound. □
The insertion-only baseline
Lemma B.2 (Insertion-only forest baseline). For v ≥ 2 v\ge2 v ≥ 2 , a spanning-forest algorithm with error at most 1 / 4 1/4 1/4 needs Ω ( v log ( v + 1 ) ) \Omega(v\log(v+1)) Ω ( v log ( v + 1 )) bits on insertion-only simple streams with one report, for both peak-space measures of Appendix A.
Proof. For v ≥ 3 v\ge3 v ≥ 3 , draw a uniformly random labeled tree T T T on [ v ] [v] [ v ] ; there are M = v v − 2 M=v^{v-2} M = v v − 2 such trees. Insert its v − 1 v-1 v − 1 edges in canonical order and request one report. The only spanning forest of a tree is that tree itself. All insertion prefixes have the same length.
Apply Lemma A.1 with one common cutoff to this finite family of streams, with extra failure probability at most 1 / 8 1/8 1/8 . Let M 0 M_0 M 0 be the tagged original complete prefix state, or a constant-size timeout symbol. Under every fixed tree’s original randomness its expected encoded length is at most s + O ( 1 ) s + O(1) s + O ( 1 ) , where s s s is the worst-input expected peak space. Averaging preserves this bound, and consequently
H ( M 0 ) ≤ E ∣ M 0 ∣ + log ( E ∣ M 0 ∣ + 1 ) = O ( s + 1 ) . H(M_0) \le\mathbb{E}|M_0| + \log(\mathbb{E}|M_0| + 1) = O(s + 1). H ( M 0 ) ≤ E ∣ M 0 ∣ + log ( E ∣ M 0 ∣ + 1 ) = O ( s + 1 ) .
The decoder, using M 0 M_0 M 0 and fresh coins, estimates T T T with error at most 3 / 8 3/8 3/8 . Map every output that is not a labeled tree on [ v ] [v] [ v ] , including timeout, to a fixed tree. Fano’s inequality and the Markov chain T ↔ M 0 ↔ T ^ T \leftrightarrow M_0 \leftrightarrow\hat{T} T ↔ M 0 ↔ T ^ give
H ( M 0 ) ≥ I ( T ; M 0 ) ≥ I ( T ; T ^ ) ≥ log M − 1 − ( 3 / 8 ) log M = ( 5 / 8 ) ( v − 2 ) log v − 1. H(M_0) \ge I(T;M_0) \ge I(T;\hat{T}) \ge\log M - 1 - (3/8)\log M = (5/8)(v - 2)\log v - 1. H ( M 0 ) ≥ I ( T ; M 0 ) ≥ I ( T ; T ^ ) ≥ log M − 1 − ( 3/8 ) log M = ( 5/8 ) ( v − 2 ) log v − 1.
Thus s + 1 = Ω ( v log ( v + 1 ) ) s+1 = \Omega(v\log(v+1)) s + 1 = Ω ( v log ( v + 1 )) , including bounded v v v by the space-accounting convention. The hard-peak case follows from the same argument or from counting bounded complete-state encodings.
Positive error at the zero-error space order
Theorem B.3 (The zero-error space order at sufficiently high confidence). There is an absolute c ∗ > 0 c_* > 0 c ∗ > 0 such that, for every fixed K ∗ > 0 K_* > 0 K ∗ > 0 , the following holds. If 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 and the integer historical-deficit budget Z ≥ 0 Z \ge0 Z ≥ 0 satisfies
Z + 1 ≤ c ∗ v , Z + 1 ≤ K ∗ ln ( 1 / δ ) , (87) Z + 1 \le c_*v,\qquad Z + 1 \le K_*\ln(1/\delta), \tag*{(87)} Z + 1 ≤ c ∗ v , Z + 1 ≤ K ∗ ln ( 1/ δ ) , (87) then the optimal space complexity for one spanning-forest report under this historical-deficit promise is
Θ K ∗ ( v ( Z + 1 ) log ( 1 + v Z + 1 ) ) (88) \Theta_{K_*}\left(v(Z + 1)\log\left(1 + \frac{v}{Z + 1}\right)\right) \tag*{(88)} Θ K ∗ ( v ( Z + 1 ) log ( 1 + Z + 1 v ) ) (88) for both peak-space measures. The lower bound already holds for the subclass with at most Z Z Z total deletion operations and requires only one report on a simple graph. The deterministic zero-error algorithm of Theorem 4.3 uses the matching amount of memory and permits any finite number of reports. The bounded-error assertion concerns fixed legal simple-graph streams.
Proof. Write m = Z + 1 m = Z + 1 m = Z + 1 and choose K = max { 2 , 2 K ∗ } K = \max\{2, 2K_*\} K = max { 2 , 2 K ∗ } . Take N = ⌊ v / 2 ⌋ N = \lfloor v/2\rfloor N = ⌊ v /2 ⌋ and U = ⌈ v / 2 ⌉ U = \lceil v/2\rceil U = ⌈ v /2 ⌉ . Choose c ∗ c_* c ∗ small enough that U ≥ C 0 m U \ge C_0m U ≥ C 0 m , where C 0 C_0 C 0 is the exact-law universal-relation source-size constant. Set
β = e − m / K . \beta= e^{-m/K}. β = e − m / K . The confidence assumption and δ ≤ 1 / 4 \delta\le1/4 δ ≤ 1/4 imply
m K ≤ 1 2 ln ( 1 / δ ) ≤ ln ( 1 / ( 2 δ ) ) , β ≥ 2 δ . (89) \frac{m}{K} \le\frac{1}{2}\ln(1/\delta) \le\ln(1/(2\delta)),\qquad\beta\ge2\delta. \tag*{(89)} K m ≤ 2 1 ln ( 1/ δ ) ≤ ln ( 1/ ( 2 δ )) , β ≥ 2 δ . (89) If m m m exceeds a sufficiently large constant depending only on K ∗ K_* K ∗ , then β < β 0 \beta< \beta_0 β < β 0 . Relax the algorithm’s error to δ ′ = β / 2 ≥ δ \delta' = \beta/2 \ge\delta δ ′ = β /2 ≥ δ and apply Lemma 3.5 with L ′ = ln ( 1 / ( 2 δ ′ ) ) = m / K L' = \ln(1/(2\delta')) = m/K L ′ = ln ( 1/ ( 2 δ ′ )) = m / K . The query uses at most m − 1 = Z m - 1 = Z m − 1 = Z deletions, and m ≥ L ′ m \ge L' m ≥ L ′ . The resulting lower bound is
Ω ( N m / K log ( 2 + K ) log ( U / m ) ) = Ω K ∗ ( v m log ( 1 + v / m ) ) . \Omega\left(N^{m/K}\log(2 + K)\log(U/m)\right) = \Omega_{K_*}\left(vm\log(1 + v/m)\right). Ω ( N m / K log ( 2 + K ) log ( U / m ) ) = Ω K ∗ ( v m log ( 1 + v / m ) ) . Here U / m ≥ C 0 U/m \ge C_0 U / m ≥ C 0 makes the two logarithmic forms comparable. The finite cutoff uses the relaxed positive error budget and charges original-law entropy. If m m m is below the stated threshold, the insertion-only Cayley/Fano lower bound Ω ( v log ( v + 1 ) ) \Omega(v\log(v + 1)) Ω ( v log ( v + 1 )) implies the same result with a constant depending on K ∗ K_* K ∗ .
Theorem 4.3 gives the matching O ( v m log ( 1 + v / m ) ) O(vm\log(1 + v/m)) O ( v m log ( 1 + v / m )) hard cap by deterministically storing historical edge names and their live bits. This deterministic algorithm attains the stated memory use under both peak-space measures, performs polynomial work, and does not depend on δ \delta δ or report count.
Uniform source regimes for the confidence lower bound
Proof of Proposition 4.10 . Let c ∗ c_\ast c ∗ be the constant in Theorem B.3 , and let C 0 , β 0 C_0,\beta_0 C 0 , β 0 be those in Lemma 3.5 . Choose
c ≤ min { c ∗ / 2 , 1 / ( 8 C 0 ) , 1 / 16 } , η 0 = min { 1 / 8 , β 0 / 4 } , c \le\min\{c_\ast/2,1/(8C_0),1/16\}, \qquad\eta_0=\min\{1/8,\beta_0/4\}, c ≤ min { c ∗ /2 , 1/ ( 8 C 0 ) , 1/16 } , η 0 = min { 1/8 , β 0 /4 } ,
and an absolute v 0 v_0 v 0 ensuring ⌊ c v ⌋ ≥ 1 \lfloor cv\rfloor\ge1 ⌊ c v ⌋ ≥ 1 . Fix an admissible m m m and write Φ m = t log ( 1 + m / t ) log ( 1 + v / m ) \Phi_m=t\log(1+m/t)\log(1+v/m) Φ m = t log ( 1 + m / t ) log ( 1 + v / m ) .
If m ≤ 64 t m\le64t m ≤ 64 t , use the lower-bound proof of Theorem B.3 with source size m m m and the fixed constant K ∗ = 96 / ln 2 K_\ast=96/\ln2 K ∗ = 96/ ln 2 . Indeed, m ≤ c ∗ v m\le c_\ast v m ≤ c ∗ v , and log ( 1 / δ ) ≥ 2 \log(1/\delta)\ge2 log ( 1/ δ ) ≥ 2 gives
m ≤ 64 t ≤ K ∗ ln ( 1 / δ ) . m\le64t\le K_\ast\ln(1/\delta). m ≤ 64 t ≤ K ∗ ln ( 1/ δ ) .
The source needs only m − 1 ≤ Z m-1\le Z m − 1 ≤ Z total deletion operations. The proof therefore gives
s + 1 = Ω ( v m log ( 1 + v / m ) ) = Ω ( v Φ m ) , s+1=\Omega(vm\log(1+v/m))=\Omega(v\Phi_m), s + 1 = Ω ( v m log ( 1 + v / m )) = Ω ( v Φ m ) ,
using t log ( 1 + m / t ) ≤ m / ln 2 t\log(1+m/t)\le m/\ln2 t log ( 1 + m / t ) ≤ m / ln 2 . These streams are legal even for the total-deletion subclass at the monitor’s original advertised budget Z Z Z .
If m > 64 t m>64t m > 64 t and δ ≤ η 0 \delta\le\eta_0 δ ≤ η 0 , apply (28) with N = ⌊ v / 2 ⌋ N=\lfloor v/2\rfloor N = ⌊ v /2 ⌋ , U = ⌈ v / 2 ⌉ U=\lceil v/2\rceil U = ⌈ v /2 ⌉ , and source size m m m . Its hypotheses hold:
L = ln ( 1 / ( 2 δ ) ) = Θ ( t ) , m ≥ L , U ≥ C 0 m , m − 1 ≤ Z . L=\ln(1/(2\delta))=\Theta(t), \qquad m\ge L,\qquad U\ge C_0m,\qquad m-1\le Z. L = ln ( 1/ ( 2 δ )) = Θ ( t ) , m ≥ L , U ≥ C 0 m , m − 1 ≤ Z .
The restriction m ≤ c v ≤ v / 16 m\le cv\le v/16 m ≤ c v ≤ v /16 yields, with absolute constants,
log ( 2 + m / L ) = Θ ( log ( 1 + m / t ) ) , log ( U / m ) = Θ ( log ( 1 + v / m ) ) . \log(2+m/L)=\Theta(\log(1+m/t)),\qquad\log(U/m)=\Theta(\log(1+v/m)). log ( 2 + m / L ) = Θ ( log ( 1 + m / t )) , log ( U / m ) = Θ ( log ( 1 + v / m )) .
Thus (28) gives s + 1 = Ω ( v Φ m ) s+1=\Omega(v\Phi_m) s + 1 = Ω ( v Φ m ) again.
In the remaining case δ > η 0 \delta>\eta_0 δ > η 0 , t = O ( 1 ) t=O(1) t = O ( 1 ) and
Φ m = O ( A log ( m + 1 ) ) = O ( A min { A , log ( Z + 2 ) } ) = O ( A B Z ) . \Phi_m=O(A\log(m+1))=O(A\min\{A,\log(Z+2)\})=O(ABZ). Φ m = O ( A log ( m + 1 )) = O ( A min { A , log ( Z + 2 )}) = O ( A B Z ) .
Corollary 4.9, namely (55) , therefore absorbs this term. Its use of log ( v + 1 ) \log(v+1) log ( v + 1 ) rather than A A A changes only an absolute constant.
The constants work uniformly for every admissible m m m , so take the maximum and combine it with (55) . The maximum of two lower bounds is at least half their sum; a common hard distribution is unnecessary. Every imported family has synchronized finite source prefixes. Its common finite-family simulation cutoff, tagged original prefix state M 0 M_0 M 0 , and bound H ( M 0 ) = O ( s + 1 ) H(M_0)=O(s+1) H ( M 0 ) = O ( s + 1 ) remain unchanged. In particular, the expected space charge is neither truncated nor conditioned on successful responses, and choosing m m m does not alter the original law.
The finite distributional query law
Proof of Lemma 5.2 . Use the construction in the proof of Lemma 3.4 . Namely, put α = 100 / L \alpha=100/L α = 100/ L , q 0 = 1 − α q_0=1-\alpha q 0 = 1 − α , z = α m z=\alpha m z = α m ,
R = ⌊ ln z 100 α ⌋ , r i = ⌊ m ( 1 − q 0 i ) ⌋ ( 0 ≤ i < R ) , r R = m . R=\left\lfloor\frac{\ln z}{100\alpha}\right\rfloor,\qquad r_i=\left\lfloor m(1-q_0^i)\right\rfloor\quad(0\le i<R),\qquad r_R=m. R = ⌊ 100 α ln z ⌋ , r i = ⌊ m ( 1 − q 0 i ) ⌋ ( 0 ≤ i < R ) , r R = m .
The same absolute choice of β ∗ \beta_\ast β ∗ ensures that these are valid proper query sizes and R = Θ ( L log ( 2 + m / L ) ) R=\Theta(L\log(2+m/L)) R = Θ ( L log ( 2 + m / L )) . Given S S S , choose i i i uniformly from { 0 , … , R − 1 } \{0,\ldots,R-1\} { 0 , … , R − 1 } and then a uniform r i r_i r i -subset T T T of S S S . This defines D β \mathcal{D}_\beta D β .
Let e i e_i e i be the decoder’s average error for a uniform source and a uniform r i r_i r i -subset of that source, drawn independently of the message conditional on the source. The displayed distributional premise says ∑ i = 0 R − 1 e i ≤ R β \sum_{i=0}^{R-1} e_i \le R\beta ∑ i = 0 R − 1 e i ≤ R β . In the lossless source encoding from that earlier proof, the distribution of the adaptively generated query at stage i i i , conditional on each fixed S , M S,M S , M , is dominated by β − 1 / 4 \beta^{-1/4} β − 1/4 times the uniform law on r i r_i r i -subsets of S S S . This is exactly the combinatorial bound (B.3), which does not use an error assumption. Fresh decoder coins therefore give total expected stage failures at most
β − 1 / 4 ∑ i = 0 R − 1 e i ≤ R β 3 / 4 . (90) \beta^{-1/4}\sum_{i=0}^{R-1} e_i \le R\beta^{3/4}. \tag*{(90)} β − 1/4 i = 0 ∑ R − 1 e i ≤ R β 3/4 . (90)
The recovered set S r e c S_{\mathrm{rec}} S rec has expected size at least R ( 1 − β 3 / 4 ) ≥ R / 2 R(1-\beta^{3/4}) \ge R/2 R ( 1 − β 3/4 ) ≥ R /2 . The same flags, residual set, and independent tapes reconstruct S S S losslessly. The entropy calculation (B.5) consequently yields
I ( S ; M ) ≥ E ∣ S r e c ∣ log U − m m − R = Ω ( R log ( U / m ) ) , I(S;M) \ge\mathbb{E}|S_{\mathrm{rec}}|\log\frac{U-m}{m}-R=\Omega(R\log(U/m)), I ( S ; M ) ≥ E ∣ S rec ∣ log m U − m − R = Ω ( R log ( U / m )) ,
after increasing the absolute constant C C C . Thus average uniform-query error suffices for (5.2).
Construction and Memory Guarantees for Binary Codes and Verification Fields
An entropy-sized binary codec with bounded total workspace
Entropy-sized Hamming checksums from algebraic-geometric codes and error-locating-pair decoding are classical [11 , 38 , 13 ] . The implementation below gives the uniform construction, checked decoding on arbitrary syndromes, and total-workspace bounds needed by the graph algorithm. The construction uses the characteristic-two Garcia–Stichtenoth tower [21 Section 3] and two global Riemann–Roch evaluation tables. §C.2.1 charges field descriptions, tables, and streamed construction scratch; no full constraint matrix or coefficient basis is retained.
Lemma C.1 (Characteristic-two sparse syndromes). For every n ≥ 2 n \ge2 n ≥ 2 and 1 ≤ k ≤ n 1 \le k \le n 1 ≤ k ≤ n there is a uniform deterministic constructor of a characteristic-two field K \mathbb{K} K and a matrix H ∈ K h × n H \in\mathbb{K}^{h\times n} H ∈ K h × n such that
h = O ( k ) , ℓ = log ∣ K ∣ = O ( log ( e n / k ) ) . h=O(k),\qquad\ell=\log|\mathbb{K}|=O(\log(en/k)). h = O ( k ) , ℓ = log ∣ K ∣ = O ( log ( e n / k )) . Every k k k -sparse vector over K \mathbb{K} K , with arbitrary nonzero amplitudes, is recoverable from its syndrome. Setup, syndrome updates, and decoding have polynomial bit work with absolute exponent. Their total workspace, including full evaluation tables and output, is O ( n k log ( e n / k ) ) O(nk\log(en/k)) O ( nk log ( e n / k )) bits. On an arbitrary syndrome the decoder returns a checked vector of support at most k k k with that syndrome, or failure.
Proof. Fix ε = 1 / 8 \varepsilon=1/8 ε = 1/8 and a sufficiently large absolute C 0 ≥ 128 C_0\ge128 C 0 ≥ 128 . All finite parameter exceptions below use the identity matrix; their threshold and the resulting constant factor are absolute. If k ≥ n / 32 k\ge n/32 k ≥ n /32 , use the identity over F 2 \mathbb{F}_2 F 2 . If n / k ≥ n ε n/k\ge n^\varepsilon n / k ≥ n ε , choose K = F 2 a \mathbb{K}=\mathbb{F}_{2^a} K = F 2 a with n < 2 a ≤ 2 ( n + 1 ) n<2^a\le2(n+1) n < 2 a ≤ 2 ( n + 1 ) , distinct nonzero names α 1 , … , α n ∈ K \alpha_1,\ldots,\alpha_n\in\mathbb{K} α 1 , … , α n ∈ K , and H j , i = α i j H_{j,i}=\alpha_i^j H j , i = α i j for 0 ≤ j < 2 k 0\le j<2k 0 ≤ j < 2 k . On any y = ( y 0 , … , y 2 k − 1 ) y=(y_0,\ldots,y_{2k-1}) y = ( y 0 , … , y 2 k − 1 ) , return zero if y = 0 y=0 y = 0 ; otherwise try t = 1 , … , k t=1,\ldots,k t = 1 , … , k , skipping singular Hankel matrices M t = ( y a + b ) 0 ≤ a , b < t M_t=(y_{a+b})_{0\le a,b<t} M t = ( y a + b ) 0 ≤ a , b < t . For each nonsingular trial solve
M t ( c 0 , … , c t − 1 ) T = − ( y t , … , y 2 t − 1 ) T , p ( T ) = T t + ∑ j = 0 t − 1 c j T j . M_t(c_0,\ldots,c_{t-1})^{\mathsf T}=-(y_t,\ldots,y_{2t-1})^{\mathsf T},\qquad p(T)=T^t+\sum_{j=0}^{t-1}c_jT^j. M t ( c 0 , … , c t − 1 ) T = − ( y t , … , y 2 t − 1 ) T , p ( T ) = T t + j = 0 ∑ t − 1 c j T j .
Scan all n n n names for roots of p p p ; unless exactly t t t occur, continue. Solve their first t t t Vandermonde moment equations, extend by zero, and return only after checking support at most k k k and all 2 k 2k 2 k equations. Return failure if no trial succeeds.
When the loop reaches the true support size t = ∣ S ∣ t=|S| t = ∣ S ∣ of a nonzero promised vector, its Hankel matrix has the factorization
M t = V t diag ( x S ) V t T , ( V t ) a , i = α i a ( 0 ≤ a < t , i ∈ S ) . M_t = V_t\operatorname{diag}(x_S)V_t^{\mathsf{T}}, \qquad(V_t)_{a,i} = \alpha_i^a \quad(0 \le a < t,\ i \in S). M t = V t diag ( x S ) V t T , ( V t ) a , i = α i a ( 0 ≤ a < t , i ∈ S ) .
The square Vandermonde matrix V t V_t V t and the diagonal matrix diag ( x S ) \operatorname{diag}(x_S) diag ( x S ) are invertible, so M t M_t M t is nonsingular. The solved recurrence therefore implies p ( α i ) = 0 p(\alpha_i)=0 p ( α i ) = 0 for every i ∈ S i \in S i ∈ S , so its t t t roots are precisely those names and the amplitude solve recovers x x x . This argument uses arbitrary nonzero amplitudes and works in characteristic two. Every set of at most 2 k 2k 2 k columns of H H H is independent by its initial Vandermonde rows, so two vectors of support at most k k k cannot satisfy the same 2 k 2k 2 k syndrome equations. Thus a smaller trial may have a nonsingular Hankel matrix, but its candidate, supported on at most t < ∣ S ∣ t<|S| t < ∣ S ∣ names, cannot pass the final syndrome check. The same uniqueness argument shows that y = 0 y=0 y = 0 has only the zero promised preimage. The fixed trials use O ( k 4 + n k 2 ) O(k^4+nk^2) O ( k 4 + n k 2 ) field operations and O ( k 2 + n ) O(k^2+n) O ( k 2 + n ) auxiliary field words. Enumerating monic degree-a a a binary polynomials and testing irreducibility constructs K \mathbb{K} K in polynomial work and O ( a ) O(a) O ( a ) scratch. Including the full table and output, the space is O ( n k log n ) O(nk\log n) O ( nk log n ) bits, which is O ( n k log ( e n / k ) ) O(nk\log(en/k)) O ( nk log ( e n / k )) in this branch.
It remains to treat k < n / 32 k<n/32 k < n /32 and k > n 1 − ε k>n^{1-\varepsilon} k > n 1 − ε . Choose the least power of two
q = 2 r ≥ C 0 ( n / k + 1 ) , q < 2 C 0 ( n / k + 1 ) , K = F q 2 . (91) q = 2^r \ge C_0(n/k+1), \qquad q < 2C_0(n/k+1), \qquad\mathbb{K} = \mathbb{F}_{q^2}. \tag*{(91)} q = 2 r ≥ C 0 ( n / k + 1 ) , q < 2 C 0 ( n / k + 1 ) , K = F q 2 . (91)
Bounded irreducible-polynomial enumeration constructs K \mathbb{K} K . Enumeration and binary elimination give the subfield F q \mathbb{F}_q F q and a fixed binary basis of it. Even a full q 2 q^2 q 2 -entry enumeration buffer is absorbed by the later total space bound.
Use the reciprocal tower
F 0 = K ( x 0 ) , x i + 1 q + x i + 1 = x i q x i q − 1 + 1 . (92) F_0 = \mathbb{K}(x_0), \qquad x_{i+1}^q+x_{i+1} = \frac{x_i^q}{x_i^{q-1}+1}. \tag*{(92)} F 0 = K ( x 0 ) , x i + 1 q + x i + 1 = x i q − 1 + 1 x i q . (92)
The classical full-level statements [22 Lemmas 5.2 and 5.4] hold for every prime power q q q : the steps have degree q q q , base infinity is unique and totally ramified, and each of the q 2 − q q^2-q q 2 − q values with nonzero K / F q \mathbb{K}/\mathbb{F}_q K / F q trace splits completely at every level. The exact genus formula [39 Proposition 1.1(iii)] gives g ( F i ) ≤ q i + 1 g(F_i)\le q^{i+1} g ( F i ) ≤ q i + 1 . In characteristic two these good values are exactly K ∖ F q \mathbb{K}\setminus\mathbb{F}_q K ∖ F q . If α \alpha α is good, then α q + 1 α q + α ∈ F q × \frac{\alpha^{q+1}}{\alpha^q+\alpha}\in\mathbb{F}_q^\times α q + α α q + 1 ∈ F q × ; the next full equation has q q q distinct roots in K \mathbb{K} K , all again good.
The remark following Proposition 3.1 of [8 ] describes the existence of intermediate fields for general prime powers q q q . We give an explicit full binary flag for q = 2 r q=2^r q = 2 r and account for its description and arithmetic below. For 0 ≤ s ≤ r 0\le s\le r 0 ≤ s ≤ r , let H s H_s H s be the span of the first r − s r-s r − s vectors of the selected basis of F q \mathbb{F}_q F q . Define
L s ( T ) = ∏ a ∈ H s ( T − a ) , P s ( T ) = ∏ b ∈ L s ( F q ) ( T − b ) . (93) L_s(T)=\prod_{a\in H_s}(T-a), \qquad P_s(T)=\prod_{b\in L_s(\mathbb{F}_q)}(T-b). \tag*{(93)} L s ( T ) = a ∈ H s ∏ ( T − a ) , P s ( T ) = b ∈ L s ( F q ) ∏ ( T − b ) . (93)
Subspace polynomials are linearized: inductively, adjoining one basis element a a a replaces L ( T ) L(T) L ( T ) by L ( T ) 2 + L ( a ) L ( T ) L(T)^2+L(a)L(T) L ( T ) 2 + L ( a ) L ( T ) , with L ( a ) ≠ 0 L(a)\ne0 L ( a ) = 0 . This also proves that their derivatives are nonzero constants. The composite P s ( L s ( T ) ) P_s(L_s(T)) P s ( L s ( T )) is monic of degree q q q , has all elements of F q \mathbb{F}_q F q as its distinct roots, and hence equals T q + T T^q+T T q + T . All coefficients and products in (C.3) can be computed by serial polynomial arithmetic over K \mathbb{K} K in polynomial work and O ( q 2 ) O(q^2) O ( q 2 ) field words of space. Retaining the full binary flag uses no larger bound.
Put z s = L s ( x i + 1 ) z_s = L_s(x_{i+1}) z s = L s ( x i + 1 ) . It satisfies the monic separable equation
P s ( z s ) = x i q x i q − 1 + 1 (94) P_s(z_s) = \frac{x_i^q}{x_i^{q-1}+1} \tag*{(94)} P s ( z s ) = x i q − 1 + 1 x i q (94)
of degree e = 2 s e = 2^s e = 2 s . In the full degree-q q q translation extension, the stabilizer of z s z_s z s is exactly H s H_s H s : additivity gives L s ( x i + 1 + a ) − L s ( x i + 1 ) = L s ( a ) L_s(x_{i+1}+a)-L_s(x_{i+1})=L_s(a) L s ( x i + 1 + a ) − L s ( x i + 1 ) = L s ( a ) . Thus [ F i ( z s ) : F i ] = e [F_i(z_s):F_i]=e [ F i ( z s ) : F i ] = e and [ F i + 1 : F i ( z s ) ] = q / e [F_{i+1}:F_i(z_s)]=q/e [ F i + 1 : F i ( z s )] = q / e . These subfields form a nested chain, and consecutive degrees are doubled. Their good places are the H s H_s H s -cosets of the full split fibers, so there are exactly
N = ( q 2 − q ) M , M = e q i (95) N=(q^2-q)M,\qquad M=eq^i \tag*{(95)} N = ( q 2 − q ) M , M = e q i (95)
designated good places. The full infinity descends to a unique rational infinity. In the full cover z s z_s z s has pole order q / e q/e q / e , because its leading monomial has that degree and the full top coordinate has pole order one. Dividing by the cover ramification index q / e q/e q / e gives pole order one in the intermediate field. Hurwitz gives
g ( F i ( z s ) ) ≤ g ( F i + 1 ) − 1 q / e + 1 ≤ q M + 1. (96) g(F_i(z_s))\leq\frac{g(F_{i+1})-1}{q/e}+1\leq qM+1. \tag*{(96)} g ( F i ( z s )) ≤ q / e g ( F i + 1 ) − 1 + 1 ≤ q M + 1. (96)
Consequently, the first full or partial good-point count at least n n n has n ≤ N < 2 n n\leq N<2n n ≤ N < 2 n and
q M = N q − 1 < 2 n q − 1 = O ( k / C 0 ) . (97) qM=\frac{N}{q-1}<\frac{2n}{q-1}=O(k/C_0). \tag*{(97)} q M = q − 1 N < q − 1 2 n = O ( k / C 0 ) . (97)
The rational-base case is absorbed in the fixed cutoff: in the dense branch q = O ( n 1 / 8 ) q=O(n^{1/8}) q = O ( n 1/8 ) , so n ≤ q 2 − q = O ( n 1 / 4 ) n\leq q^2-q=O(n^{1/4}) n ≤ q 2 − q = O ( n 1/4 ) implies bounded n n n .
Let E E E denote the chosen intermediate level and set g 0 = q M + 1 g_0=qM+1 g 0 = q M + 1 . By (C.7), increasing C 0 C_0 C 0 and the fixed finite cutoff ensures g ( E ) ≤ g 0 ≤ k / 4 g(E)\leq g_0\leq k/4 g ( E ) ≤ g 0 ≤ k /4 . Use the first n n n designated good places P 1 , … , P n P_1,\ldots,P_n P 1 , … , P n , and put
s = 2 g 0 + k , U = L E ( s P ∞ ) , V = L E ( 2 s P ∞ ) . (98) s=2g_0+k,\qquad U=L_E(sP_\infty),\qquad V=L_E(2sP_\infty). \tag*{(98)} s = 2 g 0 + k , U = L E ( s P ∞ ) , V = L E ( 2 s P ∞ ) . (98)
Since s ≥ 2 g ( E ) s\geq2g(E) s ≥ 2 g ( E ) , the Riemann–Roch dimension formula gives u = s + 1 − g ( E ) > k u=s+1-g(E)>k u = s + 1 − g ( E ) > k and h = 2 s + 1 − g ( E ) = O ( k ) h=2s+1-g(E)=O(k) h = 2 s + 1 − g ( E ) = O ( k ) . Retain their two evaluation tables
A = ( f i ( P j ) ) i ≤ u , j ≤ n , H = ( h i ( P j ) ) i ≤ h , j ≤ n (99) A=(f_i(P_j))_{i\leq u,j\leq n},\qquad H=(h_i(P_j))_{i\leq h,j\leq n} \tag*{(99)} A = ( f i ( P j ) ) i ≤ u , j ≤ n , H = ( h i ( P j ) ) i ≤ h , j ≤ n (99)
for bases of U U U and V V V .
Next bound the space and work needed to construct these bases. The full cover F m / E F_m/E F m / E has degree h 0 = q / e ≤ q h_0=q/e\leq q h 0 = q / e ≤ q , with B = h 0 M = q m B=h_0M=q^m B = h 0 M = q m and m = O ( log n ) m=O(\log n) m = O ( log n ) . Its pole bound for either table is D ≤ 2 h 0 s D\leq2h_0s D ≤ 2 h 0 s . Thus
q B = h 0 q M = O ( q k ) = O ( n ) , D = O ( q k ) = O ( n ) . (100) qB=h_0qM=O(qk)=O(n),\qquad D=O(qk)=O(n). \tag*{(100)} q B = h 0 q M = O ( q k ) = O ( n ) , D = O ( q k ) = O ( n ) . (100)
Proposition C.5 and Corollary C.6 give matrices with n n n polylog n n n rows and columns and entries generated in n n n polylog n n n field words of scratch. The good-point count follows from g 0 ≤ k / 4 g_0\leq k/4 g 0 ≤ k /4 and the branch condition k < n / 32 k<n/32 k < n /32 : these give 2 s = 4 g 0 + 2 k ≤ 3 k < n ≤ N 2s=4g_0+2k\leq3k<n\leq N 2 s = 4 g 0 + 2 k ≤ 3 k < n ≤ N , and hence D ≤ 2 h 0 s < h 0 N = N F m D\leq2h_0s<h_0N=NF_m D ≤ 2 h 0 s < h 0 N = N F m . Lemma C.3 generates each kernel coefficient and basis evaluation on demand; no full coefficient-basis matrix is stored. Only the O ( n k ) O(nk) O ( nk ) entries in (C.9) remain. The dense-ratio assumption k > n 1 − ε k>n^{1-\varepsilon} k > n 1 − ε absorbs all n n n polylog n n n construction scratch in O ( n k ) O(nk) O ( nk ) field words. Enumeration of good tuples and top-translation orbits has polynomial work: at most q 2 m + 2 = q 2 B 2 q^{2m+2}=q^2B^2 q 2 m + 2 = q 2 B 2 candidate tuples need be scanned, and an orbit representative can be recognized by at most q q q translations. The number of nested entry-oracle layers is fixed, so the work exponent is absolute.
To decode y ∈ K h y \in\mathbb{K}^h y ∈ K h , set a 0 = 2 s + 1 < n a_0 = 2s + 1 < n a 0 = 2 s + 1 < n and I = { 1 , … , a 0 } I = \{1,\ldots,a_0\} I = { 1 , … , a 0 } . Zero counting makes H I H_I H I full row rank: a nonzero element of V \mathcal{V} V has at most 2 s 2s 2 s zeros. Solve H I w = y H_Iw = y H I w = y and form
G = A I diag ( w ) A I T . (101) G = A_I\operatorname{diag}(w)A_I^{\mathsf{T}}. \tag*{(101)} G = A I diag ( w ) A I T . (101)
Since every f i f j f_if_j f i f j belongs to V \mathcal{V} V , a valid syndrome y = H x y = Hx y = H x satisfies
G = A S diag ( x S ) A S T , S = supp ( x ) . (102) G = A_S\operatorname{diag}(x_S)A_S^{\mathsf{T}}, \qquad S = \operatorname{supp}(x). \tag*{(102)} G = A S diag ( x S ) A S T , S = supp ( x ) . (102)
In the basis ( f i ) (f_i) ( f i ) , the evaluation map of U \mathcal{U} U at S S S is z ↦ A S T z z \mapsto A_S^{\mathsf{T}}z z ↦ A S T z . It is surjective whenever ∣ S ∣ ≤ k |S| \le k ∣ S ∣ ≤ k : s − ∣ S ∣ ≥ 2 g ( E ) − 1 s - |S| \ge2g(E) - 1 s − ∣ S ∣ ≥ 2 g ( E ) − 1 , so the Riemann–Roch dimension formula gives a kernel of codimension ∣ S ∣ |S| ∣ S ∣ . Its transpose A S A_S A S therefore has full column rank. Since the coordinates of x S x_S x S are nonzero, the left factor A S diag ( x S ) A_S\operatorname{diag}(x_S) A S diag ( x S ) is injective and hence
ker G = ker A S T , (103) \ker G = \ker A_S^{\mathsf{T}}, \tag*{(103)} ker G = ker A S T , (103)
also in characteristic two. Because u > k u > k u > k , choose a nonzero z ∈ ker G z \in\ker G z ∈ ker G . The function f = ∑ i z i f i f = \sum_i z_if_i f = ∑ i z i f i is nonzero; its zero set Z \mathcal{Z} Z among the selected places contains S S S and has size at most s s s . Evaluation of V \mathcal{V} V onto Z \mathcal{Z} Z is likewise surjective, since 2 s − ∣ Z ∣ ≥ s ≥ 2 g ( E ) − 1 2s - |\mathcal{Z}| \ge s \ge2g(E) - 1 2 s − ∣ Z ∣ ≥ s ≥ 2 g ( E ) − 1 . Thus H Z H_{\mathcal{Z}} H Z has full column rank. Solve H Z b = y H_{\mathcal{Z}}b = y H Z b = y , extend by zero outside Z \mathcal{Z} Z , and check its support bound and all syndrome equations. This recovers every promised sparse field vector. For any other input, a missing kernel, inconsistent solve, or failed final check returns failure; all loops and matrices remain bounded. The O ( k ) O(k) O ( k ) -dimensional decoder matrices and O ( n k ) O(nk) O ( nk ) retained table entries give polynomial work for field arithmetic, elimination, serial evaluation, and checks, with O ( n k log q ) O(nk\log q) O ( nk log q ) bits; log ∣ K ∣ = 2 log q = O ( log ( e n / k ) ) \log|\mathbb{K}| = 2\log q = O(\log(en/k)) log ∣ K ∣ = 2 log q = O ( log ( e n / k )) .
Corollary C.2 (Binary entropy-sized sparse syndrome). There is a deterministic binary matrix C C C with r ≤ n r \le n r ≤ n and r = O ( k log ( e n / k ) ) r = O(k\log(en/k)) r = O ( k log ( e n / k )) rows whose syndrome uniquely determines every binary vector of weight at most k k k . It has a polynomial-work, all-input checked decoder, and its setup, matrix, decoding scratch and output use O ( n k log ( e n / k ) ) O(nk\log(en/k)) O ( nk log ( e n / k )) bits.
Proof. Expand each entry of H H H from the preceding lemma in a fixed binary basis of K \mathbb{K} K . This gives C 0 C_0 C 0 with h ℓ h\ell h ℓ binary rows and, for binary x x x , exactly the binary expansion of H x Hx H x . Decode by regrouping the syndrome, running the field decoder, then requiring all recovered coordinates to belong to { 0 , 1 } \{0,1\} { 0 , 1 } and verifying all binary equations. If h ℓ > n h\ell> n h ℓ > n , use the binary identity instead; this branch still has n = O ( k log ( e n / k ) ) n = O(k\log(en/k)) n = O ( k log ( e n / k )) . The previously constructed tables and all temporary representations fit the same total space bound. Otherwise, take C = C 0 C = C_0 C = C 0 .
Streamed linear algebra and Riemann–Roch construction
Lemma C.3 (Rank and kernel computation using linearly many registers). Let A A A be an R R R -by-C C C matrix over an explicitly represented field K \mathbb{K} K . Suppose an oracle evaluates each entry deterministically, using W W W bits of scratch and at most T T T field/bit operations. Write d = min { R , C } d = \min\{R,C\} d = min { R , C } . Assume every intermediate field element has an ℓ \ell ℓ -bit representation and field primitives, including inversion and zero testing, use O ( ℓ ) O(\ell) O ( ℓ ) scratch bits; any retained field description is charged separately. Count each field primitive and each bit operation as one operation. There is a deterministic algorithm that selects a nonsingular rank-sized minor, represents a basis of ker A \ker A ker A by an entry oracle, and solves every consistent linear system with coefficient matrix A A A . Its auxiliary space is
O ( W + ( R + C ) ( ℓ + log ( 2 + R + C ) ) ) , O\bigl(W + (R+C)(\ell+ \log(2+R+C))\bigr), O ( W + ( R + C ) ( ℓ + log ( 2 + R + C )) ) ,
apart from any explicitly retained output table. Its work and number of entry-oracle calls are bounded by an absolute polynomial in R , C , T R,C,T R , C , T . If each field primitive takes at most τ K \tau_K τ K bit operations, total bit work is poly ( R , C , T ) ( 1 + τ K ) \operatorname{poly}(R,C,T)(1+\tau_K) poly ( R , C , T ) ( 1 + τ K ) . The algorithm works over arbitrary fields and characteristics, using exact determinant tests to select its rank-sized minor.
Proof. For a b b b -square matrix B B B accessed by its entries, we implement the Samuelson–Berkowitz recurrence [6 ] sequentially to compute its characteristic polynomial and determinant using O ( b ) O(b) O ( b ) field registers and O ( b 4 ) O(b^4) O ( b 4 ) arithmetic operations and entry calls. To obtain this space bound, process the trailing principal matrices from the bottom right. Given the characteristic coefficient vector of the trailing ( b − 1 ) (b-1) ( b − 1 ) -square matrix D D D , write the next matrix as
( a u T w D ) . \begin{pmatrix} a & u^{\mathsf{T}} \\ w & D \end{pmatrix}. ( a w u T D ) .
Generate the Toeplitz coefficient vector 1 , − a , − u T w , − u T D w , … , − u T D b − 2 w 1,-a,-u^{\mathsf{T}}w,-u^{\mathsf{T}}Dw,\ldots,-u^{\mathsf{T}}D^{b-2}w 1 , − a , − u T w , − u T D w , … , − u T D b − 2 w serially. Two length-( b − 1 ) (b-1) ( b − 1 ) registers suffice for the current vector D j w D^jw D j w and its next iterate. The old characteristic vector, this Toeplitz vector, and their convolution fit a constant number of length-( b + 1 ) (b+1) ( b + 1 ) registers. Discard the old registers after the convolution. Neither D D D nor a matrix power is stored. This division-free recurrence works in every characteristic.
Maintain index lists I , J I,J I , J of equal length r r r such that A I , J A_{I,J} A I , J is nonsingular, initially the empty minor with determinant one. Enumerate each unused row i i i and unused column j j j and test
det A I ∪ { i } , J ∪ { j } . \det A_{I\cup\{i\},J\cup\{j\}}. det A I ∪ { i } , J ∪ { j } .
If it is nonzero, append i , j i,j i , j and restart the scan. If every bordered determinant is zero, the current minor has maximum rank. Indeed, after arranging its rows and columns first and writing
A = ( P B C D ) , A=\begin{pmatrix} P & B \\ C & D \end{pmatrix}, A = ( P C B D ) ,
all tested determinants are det ( P ) \det(P) det ( P ) times entries of D − C P − 1 B D-CP^{-1}B D − C P − 1 B . If all vanish then this Schur complement is zero, so rank A = r \operatorname{rank} A=r rank A = r . Conversely, a nonzero Schur-complement entry supplies a valid extension. At most d d d successful extensions occur and at most ( d + 1 ) R C (d+1)RC ( d + 1 ) R C determinants are tested. Index tests and scans require only the lists, not an R R R -by-C C C mask.
Let J c J^c J c be the free columns and P = A I , J P=A_{I,J} P = A I , J . For each j ∈ J c j\in J^c j ∈ J c , the associated kernel vector has coordinate one at j j j , zero at the other free columns, and pivot coordinates
z = − P − 1 A I , j . z=-P^{-1}A_{I,j}. z = − P − 1 A I , j .
Cramer’s rule generates each coordinate as a ratio of two r r r -square determinants in the same workspace. The chosen rows span the row space, so the vectors annihilate A A A ; their C − r C-r C − r distinct free coordinates prove independence and completeness. Retaining I , J , J c , det P I,J,J^c,\det P I , J , J c , det P gives a linear-size basis oracle supporting arbitrary entry order; a materialized kernel table is charged separately.
For a right-hand side b b b , set the free coordinates to zero, solve P z = b I Pz=b_I P z = b I by the same determinant ratios, and verify all original equations. This either returns a solution or detects inconsistency. The rank-zero and empty-dimensional cases use the evident empty lists and zero-vector checks.
All determinant calls are sequential; an entry call begins only after the caller has stored its linear-size registers. The entry oracle’s scratch thus adds W W W , rather than multiplying it by the number of calls. For a fixed number of nested entry-oracle layers, work remains polynomial with an absolute exponent and workspace is the sum of the simultaneously live layer bounds. This guarantee assumes an absolute bound on nesting depth, independent of tower height and input size. □ \square □
For the tower, entry generation uses Proposition C.5 .
A streamed Riemann–Roch constructor
Let q = 2 r ≥ 8 q = 2^r \ge8 q = 2 r ≥ 8 , let K = F q 2 K = \mathbb{F}_{q^2} K = F q 2 be explicitly represented, and consider the reciprocal Garcia–Stichtenoth tower
F m = K ( x 0 , … , x m ) , x j q + x j = R ( x j − 1 ) , R ( X ) = X q X q − 1 + 1 . F_m = K(x_0,\ldots,x_m), \qquad x_j^q + x_j = R(x_{j-1}), \qquad R(X) = \frac{X^q}{X^{q-1}+1}. F m = K ( x 0 , … , x m ) , x j q + x j = R ( x j − 1 ) , R ( X ) = X q − 1 + 1 X q .
Write B = q m B=q^m B = q m and let P ∞ P_\infty P ∞ be its unique place above infinity. These degree and infinity facts have a local verification. If x j − 1 x_{j-1} x j − 1 has a simple pole at its level’s infinity, so does R ( x j − 1 ) R(x_{j-1}) R ( x j − 1 ) . A place above it, of ramification index e e e , satisfies q v ( x j ) = − e qv(x_j)=-e q v ( x j ) = − e . Hence q ∣ e q\mid e q ∣ e ; since the defining polynomial has degree q q q , the step has degree q q q , infinity is unique and rational, and x j x_j x j has a simple pole there. Induction gives − v ∞ ( x j ) = q m − j -v_\infty(x_j)=q^{m-j} − v ∞ ( x j ) = q m − j and [ F m : K ( x 0 ) ] = B [F_m:K(x_0)]=B [ F m : K ( x 0 )] = B , also after any constant-field extension. For use in the explicit construction, put
g j = x j q − 1 + 1 , π − 1 = 1 , π j = ∏ i = 0 j g i , Π = ∏ j = 0 m − 1 π j . g_j=x_j^{q-1}+1,\qquad\pi_{-1}=1,\qquad\pi_j=\prod_{i=0}^{j}g_i,\qquad\Pi=\prod_{j=0}^{m-1}\pi_j. g j = x j q − 1 + 1 , π − 1 = 1 , π j = i = 0 ∏ j g i , Π = j = 0 ∏ m − 1 π j .
Lemma C.4 (An explicit rational-coordinate span). For m ≥ 1 m\ge1 m ≥ 1 , every function of F m F_m F m regular away from P ∞ P_\infty P ∞ belongs to
1 Π ∑ 0 ≤ e 1 , … , e m < q K [ x 0 ] x 1 e 1 ⋯ x m e m . (104) \frac{1}{\Pi}\sum_{0\le e_1,\ldots,e_m<q}K[x_0]x_1^{e_1}\cdots x_m^{e_m}. \tag*{(104)} Π 1 0 ≤ e 1 , … , e m < q ∑ K [ x 0 ] x 1 e 1 ⋯ x m e m . (104) The denominator Π \Pi Π is regular away from infinity, with pole order
W = m q B − q ( B − 1 ) q − 1 ≤ m q B . (105) W=mqB-\frac{q(B-1)}{q-1}\le mqB. \tag*{(105)} W = m q B − q − 1 q ( B − 1 ) ≤ m q B . (105)
Proof. First, verify the classical regularity statement [39 Lemma 3.4] by valuations: π j − 1 x j e \pi_{j-1}x_j^e π j − 1 x j e has no finite pole for 1 ≤ j ≤ m 1\le j\le m 1 ≤ j ≤ m and 0 ≤ e < q 0\le e<q 0 ≤ e < q . Fix a finite place P P P and put a j = v P ( x j ) a_j=v_P(x_j) a j = v P ( x j ) and u j = v P ( π j ) u_j=v_P(\pi_j) u j = v P ( π j ) , with u − 1 = 0 u_{-1}=0 u − 1 = 0 . Since a 0 ≥ 0 a_0\ge0 a 0 ≥ 0 , also u 0 ≥ 0 u_0\ge0 u 0 ≥ 0 . Inductively, u j ≥ 0 u_j\ge0 u j ≥ 0 , and if a j < 0 a_j<0 a j < 0 then u j ≥ − a j u_j\ge-a_j u j ≥ − a j . Indeed, when a j < 0 a_j<0 a j < 0 the tower equation gives q a j = v P ( R ( x j − 1 ) ) qa_j=v_P(R(x_{j-1})) q a j = v P ( R ( x j − 1 )) . If a j − 1 < 0 a_{j-1}<0 a j − 1 < 0 , this is a j − 1 a_{j-1} a j − 1 , and the induction hypothesis gives u j − 1 ≥ − q a j u_{j-1}\ge-qa_j u j − 1 ≥ − q a j . If a j − 1 = 0 a_{j-1}=0 a j − 1 = 0 , it is − v P ( g j − 1 ) -v_P(g_{j-1}) − v P ( g j − 1 ) , and u j − 1 = u j − 2 + v P ( g j − 1 ) ≥ − q a j u_{j-1}=u_{j-2}+v_P(g_{j-1})\ge-qa_j u j − 1 = u j − 2 + v P ( g j − 1 ) ≥ − q a j . The case a j − 1 > 0 a_{j-1}>0 a j − 1 > 0 cannot yield a j < 0 a_j<0 a j < 0 . Thus u j = u j − 1 + ( q − 1 ) a j ≥ − a j u_j=u_{j-1}+(q-1)a_j\ge-a_j u j = u j − 1 + ( q − 1 ) a j ≥ − a j when a j < 0 a_j<0 a j < 0 ; when a j ≥ 0 a_j\ge0 a j ≥ 0 , both u j − 1 u_{j-1} u j − 1 and v P ( g j ) v_P(g_j) v P ( g j ) are nonnegative. Consequently, u j − 1 + e a j ≥ 0 u_{j-1}+ea_j\ge0 u j − 1 + e a j ≥ 0 for 0 ≤ e < q 0\le e<q 0 ≤ e < q , proving the claimed regularity, and every π j \pi_j π j is finite-regular.
For the degree-q q q extension F j / F j − 1 F_j/F_{j-1} F j / F j − 1 , the basis 1 , x j , … , x j q − 1 1,x_j,\ldots,x_j^{q-1} 1 , x j , … , x j q − 1 has trace-dual basis
d e ( x j ) = x j q − 1 − e + 1 e = 0 , 0 ≤ e < q . d_e(x_j)=x_j^{q-1-e}+\mathbf{1}_{e=0},\qquad0\le e<q. d e ( x j ) = x j q − 1 − e + 1 e = 0 , 0 ≤ e < q .
The difference quotient of T q + T − R ( x j − 1 ) T^q+T-R(x_{j-1}) T q + T − R ( x j − 1 ) has coefficients d e ( x j ) d_e(x_j) d e ( x j ) , and the derivative is 1 1 1 , so no derivative normalization is needed in the trace-dual formula. Equivalently, Tr F j / F j − 1 ( x j e d f ( x j ) ) = 1 e = f \operatorname{Tr}_{F_j/F_{j-1}}(x_j^e d_f(x_j))=\mathbf{1}_{e=f} Tr F j / F j − 1 ( x j e d f ( x j )) = 1 e = f follows by summing over x j + a x_j+a x j + a , a ∈ F q a\in\mathbb{F}_q a ∈ F q . Trace transitivity now shows that
b e = ∏ j = 1 m π j − 1 x j e j , b e ∗ = ∏ j = 1 m d e j ( x j ) π j − 1 b_e=\prod_{j=1}^{m}\pi_{j-1}x_j^{e_j},\qquad b_e^*=\prod_{j=1}^{m}\frac{d_{e_j}(x_j)}{\pi_{j-1}} b e = j = 1 ∏ m π j − 1 x j e j , b e ∗ = j = 1 ∏ m π j − 1 d e j ( x j )
are dual bases of F m / K ( x 0 ) F_m/K(x_0) F m / K ( x 0 ) : take the trace from the top step down, cancel the two top scaling factors, and obtain one Kronecker delta at each step. The elements b e b_e b e are integral over K [ x 0 ] K[x_0] K [ x 0 ] by the regularity just proved. For a finite-regular f f f , trace preserves integrality and K [ x 0 ] K[x_0] K [ x 0 ] is integrally closed, so
c e = Tr F m / K ( x 0 ) ( f b e ) ∈ K [ x 0 ] . c_e=\operatorname{Tr}_{F_m/K(x_0)}(fb_e)\in K[x_0]. c e = Tr F m / K ( x 0 ) ( f b e ) ∈ K [ x 0 ] .
The dual expansion f = ∑ e c e b e ∗ f=\sum_e c_eb_e^* f = ∑ e c e b e ∗ proves (C.14), since each numerator has degree less than q q q in every x j x_j x j . Finally, − v ∞ ( π j ) = q B − q m − j -v_\infty(\pi_j)=qB-q^{m-j} − v ∞ ( π j ) = q B − q m − j , and summing these m m m weights proves (C.15). ∎
Proposition C.5 (Principal-part constraints with an explicit entry oracle). *For integers m ≥ 1 m \ge1 m ≥ 1 and D ≥ 0 D \ge0 D ≥ 0 , there is an explicitly indexed matrix over K \mathbb{K} K whose kernel, interpreted as rational-function coefficients, is L F m ( D P ∞ ) L_{\mathbb{F}_m}(DP_{\infty}) L F m ( D P ∞ ) . Its column and row counts are
C = D + W + 1 = O ( D + m q B ) , R 0 = O ( m 2 q B ) . C = D + W + 1 = O(D + mqB), \qquad R_0 = O(m^2qB). C = D + W + 1 = O ( D + m q B ) , R 0 = O ( m 2 q B ) . A requested matrix entry or good-place evaluation of a column is generated deterministically in absolute polynomial time in q q q , B B B , D D D , using
O ( m 2 ( D + m q B ) ) K -words and O ( ( m + log q + log ( D + B + 1 ) ) 4 ) additional bits . O\bigl(m^2(D + mqB)\bigr)\ \mathbb{K}\text{-words} \quad\text{and} \quad O\bigl((m + \log q + \log(D + B + 1))^4\bigr)\ \text{additional bits}. O ( m 2 ( D + m q B ) ) K -words and O ( ( m + log q + log ( D + B + 1 ) ) 4 ) additional bits . Only one place and its coordinate series are processed at a time.
Proof. The raw columns are the functions
ψ a , e = x 0 a x 1 e 1 ⋯ x m e m Π , a ≥ 0 , 0 ≤ e j < q , (106) \psi_{a,\mathbf{e}} = \frac{x_0^a x_1^{e_1}\cdots x_m^{e_m}}{\Pi}, \qquad a \ge0,\quad0 \le e_j < q, \tag*{(106)} ψ a , e = Π x 0 a x 1 e 1 ⋯ x m e m , a ≥ 0 , 0 ≤ e j < q , (106)
of infinity weight at most D D D . Their weights a B + ∑ j = 1 m e j q m − j − W aB + \sum_{j=1}^{m} e_jq^{m-j} - W a B + ∑ j = 1 m e j q m − j − W run without repetition through all integers − W , − W + 1 , … -W,-W+1,\ldots − W , − W + 1 , … . Thus there are exactly D + W + 1 D+W+1 D + W + 1 columns, and they are linearly independent. By Lemma C.4, they span every member of L ( D P ∞ ) L(DP_{\infty}) L ( D P ∞ ) : a term of weight greater than D D D cannot cancel against any other term at infinity.
Every coordinate has total pole degree at most B B B . In fact the reciprocal coordinates y i = 1 / x m − i y_i=1/x_{m-i} y i = 1/ x m − i satisfy the same tower equations. Extending from K ( x j ) \mathbb{K}(x_j) K ( x j ) in both directions therefore gives [ F m : K ( x j ) ] ≤ q m = B [\mathbb{F}_m:\mathbb{K}(x_j)] \le q^m = B [ F m : K ( x j )] ≤ q m = B . Since a B ≤ D + W aB \le D+W a B ≤ D + W , a selected column has total pole degree at most
Λ = D + 2 W + m ( q − 1 ) B = O ( D + m q B ) . (107) \Lambda= D + 2W + m(q - 1)B = O(D + mqB). \tag*{(107)} Λ = D + 2 W + m ( q − 1 ) B = O ( D + m q B ) . (107)
All finite poles lie above x 0 ∈ F q x_0 \in\mathbb{F}_q x 0 ∈ F q . Indeed, outside these base places all x j x_j x j and g j g_j g j are units, inductively by the tower equation. At a finite geometric place P P P above this set, a common pole bound for all columns is
N P = ( q − 1 ) ∑ j = 1 m max { 0 , − v P ( x j ) } + v P ( Π ) . (108) N_P = (q - 1)\sum_{j=1}^{m}\max\{0,-v_P(x_j)\} + v_P(\Pi). \tag*{(108)} N P = ( q − 1 ) j = 1 ∑ m max { 0 , − v P ( x j )} + v P ( Π ) . (108)
The last term is nonnegative by Lemma C.4. Divisor degrees, after a splitting constant-field extension, give
∑ P N P ≤ m ( q − 1 ) B + W = O ( m q B ) . (109) \sum_P N_P \le m(q - 1)B + W = O(mqB). \tag*{(109)} P ∑ N P ≤ m ( q − 1 ) B + W = O ( m q B ) . (109)
The following argument proves the needed part of the classical local description [3 Theorem 1] . Choose d d d to be the least power of two at least max ( 1 , m ) \max(1,m) max ( 1 , m ) and construct K ′ / K \mathbb{K}'/\mathbb{K} K ′ / K of degree d d d , so d < 2 m d<2m d < 2 m . Enumerating monic degree-d d d polynomials over K \mathbb{K} K and applying the finite-field irreducibility test takes at most q 2 d ≤ B 4 q^{2d}\le B^4 q 2 d ≤ B 4 tests, using modular polynomial powering and gcd and retaining one candidate and its arithmetic scratch. On the 2 d 2d 2 d -dimensional F q \mathbb{F}_q F q -space K ′ \mathbb{K}' K ′ , the operator N ( a ) = a q + a N(a)=a^q+a N ( a ) = a q + a is nilpotent, since 2 d 2d 2 d is a power of two and N 2 d = 0 N^{2d}=0 N 2 d = 0 . Its kernel is F q \mathbb{F}_q F q , of dimension one, so it has one nilpotent Jordan block. In particular, ker N j ⊆ im N \ker N^j \subseteq\operatorname{im}N ker N j ⊆ im N for j < 2 d j<2d j < 2 d . Therefore, for every ℓ ≤ ⌊ m / 2 ⌋ \ell\le\lfloor m/2\rfloor ℓ ≤ ⌊ m /2 ⌋ , all tuples
α 0 ∈ F q ∗ , α j q + α j = α j − 1 ( 1 ≤ j ≤ ℓ ) (110) \alpha_0 \in\mathbb{F}_q^*, \qquad\alpha_j^q+\alpha_j=\alpha_{j-1}\quad(1\le j\le\ell) \tag*{(110)} α 0 ∈ F q ∗ , α j q + α j = α j − 1 ( 1 ≤ j ≤ ℓ ) (110)
exist in K ′ \mathbb{K}' K ′ , with exactly q q q choices at each successive step. The residue equations are linear over F 2 \mathbb{F}_2 F 2 , so their affine solution spaces can be enumerated serially by binary elimination in the chosen field representation.
For v ( z ) > 0 v(z)>0 v ( z ) > 0 put A ( z ) = ∑ u ≥ 0 z q u \mathcal{A}(z)=\sum_{u\ge0}z^{q^u} A ( z ) = ∑ u ≥ 0 z q u , and put A ( 0 ) = 0 \mathcal{A}(0)=0 A ( 0 ) = 0 . This is the unique positive-valuation solution of Y q + Y = z Y^q+Y=z Y q + Y = z . Fix 1 ≤ t ≤ m 1\le t\le m 1 ≤ t ≤ m with ℓ = m − t ≤ t \ell=m-t\le t ℓ = m − t ≤ t , set τ = x 0 \tau=x_0 τ = x 0 , choose a tuple (C.20), and compute
x i = A ( R ( x i − 1 ) ) ( 1 ≤ i < t ) , x t = α 0 + A ( R ( x t − 1 ) ) . (111) x_i=\mathcal{A}(R(x_{i-1}))\ (1\le i<t),\qquad x_t=\alpha_0+\mathcal{A}(R(x_{t-1})). \tag*{(111)} x i = A ( R ( x i − 1 )) ( 1 ≤ i < t ) , x t = α 0 + A ( R ( x t − 1 )) . (111)
For 1 ≤ j ≤ ℓ 1\le j\le\ell 1 ≤ j ≤ ℓ , compute
b j = α 0 2 x t − j , z j = R ( x t + j − 1 ) + b j q + b j + α j − 1 , x t + j = b j + α j + A ( z j ) . (112) b_j=\frac{\alpha_0^2}{x_{t-j}},\qquad z_j=R(x_{t+j-1})+b_j^q+b_j+\alpha_{j-1},\qquad x_{t+j}=b_j+\alpha_j+\mathcal{A}(z_j). \tag*{(112)} b j = x t − j α 0 2 , z j = R ( x t + j − 1 ) + b j q + b j + α j − 1 , x t + j = b j + α j + A ( z j ) . (112)
Since α 0 ∈ F q ∗ \alpha_0\in\mathbb{F}_q^* α 0 ∈ F q ∗ and 1 / R ( u ) = u − q + u − 1 1/R(u)=u^{-q}+u^{-1} 1/ R ( u ) = u − q + u − 1 , the tower equation gives, with y = x t − j + 1 y=x_{t-j+1} y = x t − j + 1 ,
b j q + b j = α 0 2 ( x t − j − q + x t − j − 1 ) = α 0 2 y q + y . b_j^q+b_j=\alpha_0^2(x_{t-j}^{-q}+x_{t-j}^{-1})=\frac{\alpha_0^2}{y^q+y}. b j q + b j = α 0 2 ( x t − j − q + x t − j − 1 ) = y q + y α 0 2 .
To verify that these formulas define Laurent series with v ( z j ) > 0 v(z_j)>0 v ( z j ) > 0 , first take j = 1 j=1 j = 1 and write y = x t y=x_t y = x t and α = α 0 \alpha=\alpha_0 α = α 0 . Then
R ( y ) + α 2 y q + y + α = R ( y + α ) , R(y)+\frac{\alpha^2}{y^q+y}+\alpha=R(y+\alpha), R ( y ) + y q + y α 2 + α = R ( y + α ) ,
which has positive valuation. For j ≥ 2 j\ge2 j ≥ 2 , write y = x t − j + 1 y=x_{t-j+1} y = x t − j + 1 and X = x t + j − 1 = α 0 2 / y + α j − 1 + w X=x_{t+j-1}=\alpha_0^2/y+\alpha_{j-1}+w X = x t + j − 1 = α 0 2 / y + α j − 1 + w , where v ( w ) > 0 v(w)>0 v ( w ) > 0 . Using R ( X ) = X + X / ( X q − 1 + 1 ) R(X)=X+X/(X^{q-1}+1) R ( X ) = X + X / ( X q − 1 + 1 ) and the formula for b j q + b j b_j^q+b_j b j q + b j gives
z j = w + X X q − 1 + 1 + α 0 2 y q − 2 1 + y q − 1 . z_j=w+\frac{X}{X^{q-1}+1}+\alpha_0^2\frac{y^{q-2}}{1+y^{q-1}}. z j = w + X q − 1 + 1 X + α 0 2 1 + y q − 1 y q − 2 .
Here v ( y ) > 0 v(y)>0 v ( y ) > 0 and v ( X ) < 0 v(X)<0 v ( X ) < 0 , so the last two terms have positive valuation because q > 2 q>2 q > 2 . The zero function is allowed with valuation + ∞ +\infty + ∞ . Thus the series solve all tower equations, and they satisfy
v ( x i ) = q i ( i < t ) , v ( x t − α 0 ) = q t , x t + j = α 0 2 x t − j + α j + w j , v ( w j ) > 0. (113) v(x_i)=q^i\ (i<t),\qquad v(x_t-\alpha_0)=q^t,\qquad x_{t+j}=\frac{\alpha_0^2}{x_{t-j}}+\alpha_j+w_j,\qquad v(w_j)>0. \tag*{(113)} v ( x i ) = q i ( i < t ) , v ( x t − α 0 ) = q t , x t + j = x t − j α 0 2 + α j + w j , v ( w j ) > 0. (113)
In particular, v ( x t + j ) = − q t − j v(x_{t+j})=-q^{t-j} v ( x t + j ) = − q t − j . Each tuple defines a rational place of K ′ F m \mathrm{K}'\mathbb{F}_m K ′ F m , unramified above zero since x 0 = τ x_0=\tau x 0 = τ . Distinct tuples give distinct places: their residues recover the tuple, and an unramified rational completion over the fixed base parameter has only one embedding into K ′ ( ( τ ) ) \mathrm{K}'((\tau)) K ′ (( τ )) .
For t ≥ ⌈ m / 2 ⌉ t\ge\lceil m/2\rceil t ≥ ⌈ m /2 ⌉ use these direct branches. For 0 ≤ t < ⌈ m / 2 ⌉ 0\le t<\lceil m/2\rceil 0 ≤ t < ⌈ m /2 ⌉ , use the same construction on y i = 1 / x m − i y_i=1/x_{m-i} y i = 1/ x m − i with first nonzero residue at m − t m-t m − t , and invert back. When t ≥ 1 t\ge1 t ≥ 1 , the original first nonzero coordinate is x t x_t x t , and v ( x 0 ) = q m − 2 t v(x_0)=q^{m-2t} v ( x 0 ) = q m − 2 t , which is the ramification index over base zero. The number of branches and their indices are
Table C.
The reciprocal branches are distinct for the same completion reason, using y 0 y_0 y 0 as parameter. The all-zero direct branch is unramified and regular for every column. Above base zero the sum of ramification indices of these rational places is 1 + ∑ t = 1 m ( q − 1 ) q m − t = B 1+\sum_{t=1}^{m}(q-1)q^{m-t}=B 1 + ∑ t = 1 m ( q − 1 ) q m − t = B , proving completeness by the fundamental degree inequality. In the separate case t = 0 t=0 t = 0 , y m = α 0 + O ( τ q m ) y_m=\alpha_0+O(\tau^{q^m}) y m = α 0 + O ( τ q m ) with exact leading order q m q^m q m ; thus x 0 x_0 x 0 has residue α 0 − 1 \alpha_0^{-1} α 0 − 1 and v ( x 0 − α 0 − 1 ) = B v(x_0-\alpha_0^{-1})=B v ( x 0 − α 0 − 1 ) = B . This gives the unique index-B B B place above each nonzero element of F q \mathbb{F}_q F q . All needed places consequently split in the constructed field K ′ \mathrm{K}' K ′ . There are at most ( m + 1 ) ( q − 1 ) q ⌊ m / 2 ⌋ (m+1)(q-1)q^{\lfloor m/2\rfloor} ( m + 1 ) ( q − 1 ) q ⌊ m /2 ⌋ nonzero tuples in total. These are generated one at a time, and the series give the valuations in (C.18).
It remains to bound the series precision and workspace. Represent a nonzero Laurent series by its valuation and its next p p p coefficients, called relative precision p p p . Multiplication, division, and positive integer powers preserve relative precision. Addition loses only the increase of valuation above the smaller input valuation. Under the constructed embeddings of K ′ F m \mathbb{K}'\mathbb{F}_m K ′ F m into K ′ ( ( τ ) ) \mathbb{K}'((\tau)) K ′ (( τ )) , the series A ( R ( x i − 1 ) ) \mathcal{A}(R(x_{i-1})) A ( R ( x i − 1 )) in (C.21) equal x i x_i x i for i < t i<t i < t and x t − α 0 x_t-\alpha_0 x t − α 0 for i = t i=t i = t , while A ( z j ) = x t + j − b j − α j \mathcal{A}(z_j)=x_{t+j}-b_j-\alpha_j A ( z j ) = x t + j − b j − α j . Their total pole degrees are at most B B B and 2 B 2B 2 B , respectively, also for the reciprocal branches. Each ordinary-function intermediate sum in (C.21)–(C.22) has total pole degree at most 3 q B 3qB 3 q B : R ( x i ) R(x_i) R ( x i ) and b j q b_j^q b j q have degree at most q B qB q B , and b j b_j b j has degree at most B B B . Every summand has valuation at least − q B -qB − q B . A nonzero sum has positive valuation at most 3 q B 3qB 3 q B , so one addition loses at most 4 q B 4qB 4 q B coefficients. There are at most six such additions in a tower step, and an allowance of 32 q B 32qB 32 q B per step suffices. For nonzero z z z with ν = v ( z ) > 0 \nu=v(z)>0 ν = v ( z ) > 0 , the terms z q u z^{q^u} z q u in A ( z ) \mathcal{A}(z) A ( z ) have strictly increasing valuations q u ν q^u\nu q u ν . If z z z is known to relative precision p p p , the Frobenius power z q u z^{q^u} z q u has error of valuation at least q u ( ν + p ) q^u(\nu+p) q u ( ν + p ) , which is greater than ν + p \nu+p ν + p for u ≥ 1 u\geq1 u ≥ 1 . The term u = 0 u=0 u = 0 therefore determines both the leading valuation and the limiting absolute precision ν + p \nu+p ν + p , so summation preserves relative precision p p p . If a truncated intermediate is zero beyond absolute precision 3 q B 3qB 3 q B , the same degree bound certifies that the function is zero; its A \mathcal{A} A value is then zero. Forming g i = x i q − 1 + 1 g_i=x_i^{q-1}+1 g i = x i q − 1 + 1 loses at most another 2 q B 2qB 2 q B coefficients. Starting with
p = Λ + ( 64 m + 8 ) q B + 1 = O ( D + m q B ) (114) p=\Lambda+(64m+8)qB+1=O(D+mqB) \tag*{(114)} p = Λ + ( 64 m + 8 ) q B + 1 = O ( D + m q B ) (114)
therefore determines every required negative coefficient of every column exactly. Indeed, after at most m m m tower steps and the formation of the g i g_i g i , the remaining relative precision of each nonzero series is at least p − ( 32 m + 2 ) q B > Λ + 1 p-(32m+2)qB>\Lambda+1 p − ( 32 m + 2 ) q B > Λ + 1 . Throughout these computations, every intermediate addition has absolute precision at least p − ( 32 m + 3 ) q B > 3 q B p-(32m+3)qB>3qB p − ( 32 m + 3 ) q B > 3 q B , so the zero certification above is valid before the next operation. Products and powers are truncated directly to the target relative precision: Frobenius uses coefficient powers and index shifts, and binary powering retains a constant number of target-length arrays. Only m + 1 m+1 m + 1 coordinate series and a constant number of temporary series are live. Since each coefficient uses d < 2 m d<2m d < 2 m K \mathbb{K} K -words, their workspace is O ( m 2 ( D + m q B ) ) O(m^2(D+mqB)) O ( m 2 ( D + m q B )) K \mathbb{K} K -words. The field-construction, place, coefficient, and exponent counters, together with binary elimination on O ( m log q ) O(m\log q) O ( m log q ) bits, fit the stated additional bit bound. Ordinary truncated polynomial arithmetic gives absolute polynomial work in q q q , B B B , D D D .
For each P P P , impose that the coefficients of τ − N P , … , τ − 1 \tau^{-N_P},\ldots,\tau^{-1} τ − N P , … , τ − 1 vanish, expanding each equation from K ′ \mathbb{K}' K ′ to K \mathbb{K} K in a fixed basis. Equation (C.19) gives at most d ∑ P N P = O ( m 2 q B ) d\sum_P N_P=O(m^2qB) d ∑ P N P = O ( m 2 q B ) rows. A row is indexed by a place tuple, negative exponent, and K ′ \mathbb{K}' K ′ -coordinate. Its kernel consists exactly of the functions with no finite pole and infinity pole at most D D D .
At a good point, ordinary substitution evaluates a column. For α ∈ K ∖ F q \alpha\in\mathbb{K}\setminus\mathbb{F}_q α ∈ K ∖ F q , R ( α ) = α q + 1 / ( α q + α ) ∈ F q R(\alpha)=\alpha^{q+1}/(\alpha^q+\alpha)\in\mathbb{F}_q R ( α ) = α q + 1 / ( α q + α ) ∈ F q . The equation Y q + Y = R ( α ) Y^q+Y=R(\alpha) Y q + Y = R ( α ) has exactly q q q roots in K \mathbb{K} K , all outside F q \mathbb{F}_q F q . Thus every good tuple has q q q good extensions at each step. Enumerate such full points by starting with x 0 ∈ K ∖ F q x_0\in\mathbb{K}\setminus\mathbb{F}_q x 0 ∈ K ∖ F q and testing the q 2 q^2 q 2 possible field values at each subsequent coordinate. There are ( q 2 − q ) B (q^2-q)B ( q 2 − q ) B full tuples. Regenerating a requested tuple takes polynomial work in q q q , B B B and retains one tuple. Intermediate good points are enumerated in the same way using the displayed subspace-polynomial equation; testing the q 2 q^2 q 2 final coordinate values selects a canonical full lift. This also uses only one tuple and polynomial work.
Corollary C.6 (One kernel for an intermediate binary level). Let E = F m H E=F_m^H E = F m H , where H ≤ F q H\leq\mathbb{F}_q H ≤ F q acts by x m ↦ x m + a x_m\mapsto x_m+a x m ↦ x m + a , a ∈ H a\in H a ∈ H , and write h = ∣ H ∣ h=|H| h = ∣ H ∣ . For an integer s ≥ 0 s\geq0 s ≥ 0 , put D = h s D=hs D = h s and suppose that the full tower has at least D + 1 D+1 D + 1 good points. There is an explicitly indexed matrix with
C = O ( D + m q B ) , R = O ( m 2 q B + ( D + 1 ) log q ) C=O(D+mqB),\qquad R=O(m^2qB+(D+1)\log q) C = O ( D + m q B ) , R = O ( m 2 q B + ( D + 1 ) log q )
columns and rows whose kernel, evaluated at one full lift of each chosen intermediate point, is exactly L E ( s P ∞ ) L_E(sP_\infty) L E ( s P ∞ ) . It has the entry workspace and absolute polynomial work of Proposition C.5.
Proof. Append to the principal-part matrix, for each element a a a of a binary basis of H H H and each of D + 1 D+1 D + 1 distinct good full points P P P , the equation
∑ j c j ( ψ j ( σ a P ) − ψ j ( P ) ) = 0. (115) \sum_j c_j\bigl(\psi_j(\sigma_aP)-\psi_j(P)\bigr)=0. \tag*{(115)} j ∑ c j ( ψ j ( σ a P ) − ψ j ( P ) ) = 0. (115)
Generate these entries by good-point substitution. The principal-part rows give f ∈ L F m ( D P ∞ ) f \in L_{F_m}(DP_\infty) f ∈ L F m ( D P ∞ ) ; since σ a \sigma_a σ a fixes infinity, σ a f − f \sigma_af-f σ a f − f has the same pole bound and its D + 1 D+1 D + 1 zeros force it to vanish. Thus (C.25) is equivalent to H H H -invariance. The kernel is L F m ( h s P ∞ ) ∩ E = L E ( s P ∞ ) L_{F_m}(hsP_\infty)\cap E=L_E(sP_\infty) L F m ( h s P ∞ ) ∩ E = L E ( s P ∞ ) , because infinity has ramification index h h h over E E E . Evaluations are independent of the chosen lift. These difference equations avoid division by the group order h h h , which is not invertible in characteristic two when H H H is nontrivial. □
Combining Corollary C.6 with Lemma C.3 constructs a basis evaluation table on N N N selected good intermediate points. Each basis coordinate is generated by a determinant ratio, and each evaluation is a sum of C C C raw-column evaluations. These are a fixed number of nested oracle layers. Apart from the retained table of at most N ( s + 1 ) N(s+1) N ( s + 1 ) field entries, the total space in bits is
O ( m 2 ( D + m q B ) log q + ( R + C ) ( log q + log ( 2 + R + C ) ) + ( m + log q + log ( D + B + 1 ) ) 4 ) . O\Bigl(m^2(D+mqB)\log q+(R+C)\bigl(\log q+\log(2+R+C)\bigr)+\bigl(m+\log q+\log(D+B+1)\bigr)^4\Bigr). O ( m 2 ( D + m q B ) log q + ( R + C ) ( log q + log ( 2 + R + C ) ) + ( m + log q + log ( D + B + 1 ) ) 4 ) .
The total work is an absolute polynomial in q q q , B B B , D D D , N N N . At full height zero, the same interface uses the polynomial basis 1 , x 0 , … , x 0 D 1,x_0,\ldots,x_0^D 1 , x 0 , … , x 0 D directly.
Constructing the binary verification field with polynomial work on every tape
The deterministic exhaustive search for a degree-w w w binary irreducible polynomial can be replaced by a capped random search. This concerns the independent verification field only; it does not change the sparse-code matrix or the sampling law.
Lemma C.7 (Binary-field construction on every tape). For integers w ≥ 2 w\ge2 w ≥ 2 and a ≥ 1 a\ge1 a ≥ 1 , there is a randomized procedure which uses O ( w + log ( a + 1 ) ) O(w+\log(a+1)) O ( w + log ( a + 1 )) bits and polynomial bit work in w + a w+a w + a on every tape. It returns either an explicitly represented field F 2 w \mathbb{F}_{2^w} F 2 w or a failure flag. Its failure probability is at most 2 − a 2^{-a} 2 − a . Conditional on any returned representation, a fresh w w w -bit string is an exactly uniform field element.
Proof. Let I w I_w I w be the number of monic irreducible degree-w w w polynomials over F 2 \mathbb{F}_2 F 2 . The factorization of X 2 w − X X^{2^w}-X X 2 w − X gives
2 w = ∑ d ∣ w d I d . 2^w=\sum_{d\mid w}dI_d. 2 w = d ∣ w ∑ d I d .
For every d d d one has d I d ≤ 2 d dI_d\le2^d d I d ≤ 2 d . Every proper divisor of w w w is at most w / 2 w/2 w /2 , and for w ≥ 2 w\ge2 w ≥ 2 ,
∑ d = 1 ⌊ w / 2 ⌋ 2 d = 2 ⌊ w / 2 ⌋ + 1 − 2 ≤ 2 w − 1 . \sum_{d=1}^{\lfloor w/2\rfloor}2^d=2^{\lfloor w/2\rfloor+1}-2\le2^{w-1}. d = 1 ∑ ⌊ w /2 ⌋ 2 d = 2 ⌊ w /2 ⌋ + 1 − 2 ≤ 2 w − 1 .
Consequently, I w ≥ 2 w − 1 / w I_w\ge2^{w-1}/w I w ≥ 2 w − 1 / w . A uniform monic degree-w w w polynomial, sampled by its w w w free coefficient bits, is therefore irreducible with probability at least 1 / ( 2 w ) 1/(2w) 1/ ( 2 w ) . Use at most 2 w a 2wa 2 w a independent trials. For each sampled polynomial f f f , successively compute X 2 i m o d f X^{2^i} \bmod f X 2 i mod f for 1 ≤ i ≤ ⌊ w / 2 ⌋ 1 \le i \le\lfloor w/2 \rfloor 1 ≤ i ≤ ⌊ w /2 ⌋ , and require
gcd ( f , X 2 i − X ) = 1 \operatorname{gcd}(f, X^{2^i}-X)=1 gcd ( f , X 2 i − X ) = 1
at every step. An irreducible degree-w w w polynomial passes every test, since no factor degree divides a smaller i i i ; a reducible one has a factor of degree d ≤ w / 2 d \le w/2 d ≤ w /2 and fails at i = d i=d i = d . Return the first passing representation (with no algebraic failure event), or failure at the cap.
The probability of reaching the failure flag is at most
( 1 − 1 / ( 2 w ) ) 2 w a ≤ e − a ≤ 2 − a . (1-1/(2w))^{2wa} \le e^{-a} \le2^{-a}. ( 1 − 1/ ( 2 w ) ) 2 w a ≤ e − a ≤ 2 − a .
Repeated squaring, polynomial division and gcd use a fixed number of O ( w ) O(w) O ( w ) -bit polynomial buffers and polynomial work. The current trial, power and degree indices use O ( log ( w + a ) ) O(\log(w+a)) O ( log ( w + a )) bits. Failed trial data are discarded. The output representation is a single degree-w w w polynomial and its arithmetic is polynomial in w w w . The stated space bound follows, including the trial counter. Finally, the polynomial-basis representation is a bijection from w w w -bit strings to field elements, regardless of which irreducible polynomial was selected.
Corollary C.8 (One shared field with independent verification points). Consider the simple-graph recovery banks from § 3.1 , with at most 64 v 3 64v^3 64 v 3 potential candidate tests in the ideal execution of a report. Put
A = ⌈ log ( v + 1 ) ⌉ , τ 0 = ⌈ log ( 64 / δ ) ⌉ , w = τ 0 + 10 A + 20. A=\lceil\log(v+1)\rceil,\qquad\tau_0=\lceil\log(64/\delta)\rceil,\qquad w=\tau_0+10A+20. A = ⌈ log ( v + 1 )⌉ , τ 0 = ⌈ log ( 64/ δ )⌉ , w = τ 0 + 10 A + 20. Construct one binary field using the preceding lemma with failure exponent a = τ 0 + 10 A + 20 a=\tau_0+10A+20 a = τ 0 + 10 A + 20 , independently of the code and sampling hashes. If construction fails, retain a failure flag and return the empty forest at reports. Otherwise, choose independent uniform verification points in this field for the banks. This replacement has polynomial work and adds at most δ / 64 \delta/64 δ /64 field-construction error, while preserving the O ( A + τ 0 ) O(A+\tau_0) O ( A + τ 0 ) -bit fingerprint precision and workspace per vertex row. The total probability of a false candidate being accepted is at most δ / 64 \delta/64 δ /64 .
Proof. The setup failure is at most 2 − a ≤ δ / 64 2^{-a}\le\delta/64 2 − a ≤ δ /64 . For a successful field representation, the difference between two distinct crossing-edge sets is a nonzero binary polynomial of degree at most N E = ( v 2 ) N_E=\binom{v}{2} N E = ( 2 v ) . Its evaluation at a fresh uniform point vanishes with probability at most N E / 2 w N_E/2^w N E / 2 w .
In the ideal execution, verification comparisons are replaced by exact equality tests. The ideal cuts and candidate lists depend only on the input, sampling hashes and deterministic sparse decoder; they do not depend on the verification field representation or its points. Condition on that ideal data and on any successfully constructed field. Applying the polynomial root bound to each potential test and taking a union bound over all such tests, including those the real execution might skip, gives the bound
64 v 3 N E / 2 w ≤ δ / 64. 64v^3N_E/2^w\le\delta/64. 64 v 3 N E / 2 w ≤ δ /64. Outside this event, actual and ideal reports agree by induction. The space bound includes a constant number of field buffers, the retained representation, the failure flag, trial indices and points; the work bound in the lemma holds on every tape. On the exact graph-storage branch the entire field procedure is omitted.
Implementation of Historical Edge Storage and Parameter Headers
Compressed storage of historical edge names and live bits
Implementation in Lemma 4.1 . Here N E = ( v 2 ) N_E=\binom{v}{2} N E = ( 2 v ) and A = ⌈ log ( v + 1 ) ⌉ A=\lceil\log(v+1)\rceil A = ⌈ log ( v + 1 )⌉ . To implement the compressed representation, set C q = min { N E , q ( v − 1 ) } C_q=\min\{N_E,q(v-1)\} C q = min { N E , q ( v − 1 )} . If C q ≥ N E / 2 C_q\ge N_E/2 C q ≥ N E /2 , a fixed two-bit state per name, together with O ( v A ) O(vA) O ( v A ) scratch, has the order in (36) . Otherwise, store j = ∣ S ∣ j=|S| j = ∣ S ∣ , the combinatorial rank of its j j j -subset of [ N E ] [N_E] [ N E ] , and its j j j live bits in name order. Its cap is
O ( log ( N E C q ) + C q + v A ) = O ( v q log ( 1 + v / q ) ) . O\left(\log\binom{N_E}{C_q}+C_q+vA\right)=O\left(vq\log(1+v/q)\right). O ( log ( C q N E ) + C q + v A ) = O ( v q log ( 1 + v / q ) ) .
A name lookup scans the ordinary serial combinatorial unranking procedure, keeping only a residual rank, a remaining cardinality, and the current name. To insert a new name, scan the old subset in this fashion and accumulate the rank of the merged subset, while shifting the live-bit word at the insertion position. All intermediate binomial values and ranks are at most ( N E C q ) \binom{N_E}{C_q} ( C q N E ) ; a multiplication before an exact division may use another O ( A ) O(A) O ( A ) bits. A constant number of registers of these widths suffices. Counters and indices use O ( A ) O(A) O ( A ) bits. Thus even these temporary copies fit the displayed cap.
Forest traversal of W W W uses an ordinary O ( v A ) O(vA) O ( v A ) component structure and a serial name scan. All these representation operations take polynomially many bit operations. The endpoint acceptance test is implemented in Appendix § 10 .§ 2 .
Polynomial operations on compressed historical edge storage
Proof of Lemma 4.2 . Keep exactly the rank-plus-live-bits representation of (36) , or its fixed two-bit-per-name branch when q ( v − 1 ) ≥ ( v 2 ) / 2 q(v-1)\ge\binom{v}{2}/2 q ( v − 1 ) ≥ ( 2 v ) /2 . All lookup, insertion, deletion and traversal operations there already have polynomial work: their scans have at most N E = ( v 2 ) N_E=\binom{v}{2} N E = ( 2 v ) names, and binomial coefficients can be formed by at most N E N_E N E exact multiply/divide steps, with their intermediate bit lengths charged. It remains to implement the historical endpoint cut test.
During a test the historical set is fixed. Replace each undirected stored edge by two labelled original directed arcs, one in each direction, both of capacity one. Retain the two original-arc flow values as two bits in the same name order as S S S . Initially all are zero. An original arc with flow zero has a forward residual arc; one with flow one has its intrinsic reverse residual arc. Original antiparallel arcs and intrinsic reverse arcs retain different labels. Thus no ambiguity arises when two residual arcs have the same ordered endpoints.
A breadth-first search finds an augmenting endpoint path by scanning the compressed names to enumerate residual arcs. Its vertex queue, visited bits and predecessor data use O ( v log ( v + 1 ) ) O(v\log(v+1)) O ( v log ( v + 1 )) bits. A predecessor records the original stored-name position, original orientation and whether this traversal is intrinsic reverse; all indices have O ( log ( v + 1 ) ) O(\log(v+1)) O ( log ( v + 1 )) bits. A path augmentation flips the corresponding original flow bits. Its bottleneck is one. Conservation and the interval [ 0 , 1 ] [0,1] [ 0 , 1 ] are preserved by the usual residual-path update, so every augmentation increases the integer flow value by one. The maximum endpoint value is at most the source degree, hence at most v − 1 v-1 v − 1 . Stop early and reject the insertion once the flow value reaches q q q . If there is no augmenting path first, its residual reachable set is an endpoint cut with capacity equal to the flow value, so accept exactly when that value is below q q q . The two directed arcs assigned to an undirected name count precisely one unit on any directed cut; therefore this is the same undirected cut test as in (35) .
Each search, augmentation and compressed-name access is polynomial in v v v , and there are at most v − 1 v-1 v − 1 augmentations, independently of the preceding stream length. The set S S S is changed only after the flow scratch has been discarded. The transient flow uses 2 ∣ S ∣ 2|S| 2∣ S ∣ bits. These bits and O ( v log ( v + 1 ) ) O(v\log(v+1)) O ( v log ( v + 1 )) BFS scratch fit (37) : in the sparse representation both are absorbed by log ( N E C q ) + C q + v log ( v + 1 ) \log\binom{N_E}{C_q}+C_q+v\log(v+1) log ( C q N E ) + C q + v log ( v + 1 ) , where C q = q ( v − 1 ) < N E / 2 C_q=q(v-1)<N_E/2 C q = q ( v − 1 ) < N E /2 ; in the dense branch they cost O ( v 2 ) O(v^2) O ( v 2 ) . Old/new set ranks and shifted live-bit words need only a constant number of such registers. The proof of all invariants of the maintained edge sets is unaffected because the acceptance predicate is identical.
Parameter selection and header capping
The algorithm may select the least of the explicit exact, budget-sensitive (when Z ≤ v Z\le v Z ≤ v ), and budget-independent space estimates. Their dimensions and constant-factor estimates are computed by integer bit lengths, products, and comparisons; one need not know an optimal lower-bound source or solve an analytic optimization problem. On the sketching branches, these estimates are represented by integers of O ( A ) O(A) O ( A ) bits and computed before any array is allocated.
Cap Z Z Z at v + 1 v+1 v + 1 , where the budget-independent or exact branch suffices, and cap the confidence exponent at v v v , where t > v t>v t > v selects the exact option. Otherwise τ 0 ≤ v + 5 \tau_0\le v+5 τ 0 ≤ v + 5 , bounding all matrix, bank, field, and counter dimensions. Parameter reading follows Appendix § 7 .
The main implementation uses the polynomial code and verification-field constructors together with the operations on compressed edge sets and live bits above. These parameter caps make all dimensions polynomial in v v v , so the implementation in § 4.6 runs in polynomial time on every tape. Reports leave persistent live bits, syndromes, hashes, and fields unchanged. The all-tape hard cap also bounds expected peak space under the original coins.
Finite headers and rounded report confidence
The following argument completes the implementation of Theorem 5.1 . The algorithm runs the one-report procedure at error δ / Q \delta/Q δ / Q . The following parameter representation realizes the same space order with finite header buffers and polynomial time per event. Use the notation of that theorem and write B Z = min { A 2 , log 2 ( Z + 2 ) } B_Z=\min\{A^2,\log^2(Z+2)\} B Z = min { A 2 , log 2 ( Z + 2 )} .
While reading the headers, saturate Z Z Z at v + 1 v+1 v + 1 , Q Q Q at 2 v 2^v 2 v , and the confidence exponent at v v v . Saturation of Q Q Q or confidence makes τ ≥ v ≥ μ \tau\ge v\ge\mu τ ≥ v ≥ μ , selecting the deterministic algorithm. Otherwise, retain the exact value of Q Q Q and put a = ⌈ log ( 1 / δ ) ⌉ a=\lceil\log(1/\delta)\rceil a = ⌈ log ( 1/ δ )⌉ , c Q = ⌈ log Q ⌉ c_Q=\lceil\log Q\rceil c Q = ⌈ log Q ⌉ , ρ = 2 − ( a + c Q ) \rho=2^{-(a+c_Q)} ρ = 2 − ( a + c Q ) , and z ′ = 1 + a + c Q z'=1+a+c_Q z ′ = 1 + a + c Q . Then Q ρ ≤ δ Q\rho\le\delta Qρ ≤ δ and τ ≤ z ′ ≤ τ + 2 ≤ 5 τ / 3 \tau\le z'\le\tau+2\le5\tau/3 τ ≤ z ′ ≤ τ + 2 ≤ 5 τ /3 . For the entropy envelope (2.3), decreasing the first logarithm at every fixed source size gives Γ v , μ ( c z ) ≤ c Γ v , μ ( z ) \Gamma_{v,\mu}(cz)\le c\Gamma_{v,\mu}(z) Γ v , μ ( cz ) ≤ c Γ v , μ ( z ) for c ≥ 1 c\ge1 c ≥ 1 . Thus the single-report algorithm at error ρ \rho ρ has space O ( v A B Z + v Γ v , μ ( τ ) ) O(vAB_Z+v\Gamma_{v,\mu}(\tau)) O ( v A B Z + v Γ v , μ ( τ )) despite rounding. The exact option, whenever selected by the parameter rules, also fits this bound by Theorem 4.13 ; on each sketching branch, every field degree and loop count is polynomial in v v v by (60) in § 4.6 . Very long headers are read through their delimiters without retaining a position counter, and the reading time is charged separately. The O ( v ) O(v) O ( v ) -bit header buffers are absorbed by the v A vA v A baseline. The same hard cap bounds the expected peak space under the original coin law.
Finite-search alternatives for recovery, verification, and cut tests
For readers concerned only with the space bounds, this subsection gives exhaustive-search implementations of the algorithms in § 3 and § 4 , retaining the same space order at the cost of exponential running time. For the historical-deficit task this is O ( L ′ ( v , Z , t ) ) O(\mathcal{L}'(v,Z,t)) O ( L ′ ( v , Z , t )) bits, with setup, update, and report time bounded by 2 O ( v 2 + t ) 2^{O(v^2+t)} 2 O ( v 2 + t ) times a polynomial in v + t v+t v + t , in addition to the time spent reading the headers. Reports remain read-only. This subsection gives the search routines and their workspace bounds; the graph invariants and parameter choices are unchanged.
Finite search for the recovery code. The following construction uses the matrix-existence guarantee of Corollary C.2 , but does not invoke its polynomial-time constructor. With exhaustive syndrome decoding, it supports the two-pass reconstruction and space analysis in the proof of Lemma 3.1 ; the running-time bound is the finite one stated above.
Lemma D.1 (Finite-search binary recovery matrix). For integers v ≥ 2 v \ge2 v ≥ 2 and K ≥ 1 K \ge1 K ≥ 1 there is a deterministic binary matrix H ∈ F 2 r × v H \in\mathbb{F}_2^{r \times v} H ∈ F 2 r × v , where
r ≤ v , r = O ( min { v , K log ( 1 + v / K ) } ) , (116) r \le v,\qquad r = O\bigl(\min\{v, K\log(1+v/K)\}\bigr), \tag*{(116)} r ≤ v , r = O ( min { v , K log ( 1 + v / K )} ) , (116) such that every vector of Hamming weight at most min { 2 K , v } \min\{2K,v\} min { 2 K , v } is uniquely determined by its syndrome H z Hz H z . The matrix can be found by a uniform exhaustive search using O ( v r + v ) O(vr+v) O ( v r + v ) bits. Given H H H and a syndrome, exhaustive decoding uses O ( v + r ) O(v+r) O ( v + r ) additional bits and either returns that unique sparse vector or declares that none exists.
Proof. Read K K K with saturation at v v v , discarding subsequent header digits and their count. If 2 K > v 2K > v 2 K > v , use H = I v H = I_v H = I v and decode without a sparsity restriction. This includes every saturated header and satisfies (D.1), since K log ( 1 + v / K ) = Θ ( v ) K\log(1+v/K) = \Theta(v) K log ( 1 + v / K ) = Θ ( v ) whenever K > v / 2 K > v/2 K > v /2 . Otherwise, the retained K K K is exact. Corollary C.2 , with ( n , k ) = ( v , 2 K ) (n,k)=(v,2K) ( n , k ) = ( v , 2 K ) , supplies a binary matrix with at most v v v rows and O ( K log ( 1 + v / K ) ) O(K\log(1+v/K)) O ( K log ( 1 + v / K )) rows that distinguishes all vectors of weight at most 2 K 2K 2 K . Equivalently, its kernel contains no nonzero vector of weight at most q = min { 4 K , v } q=\min\{4K,v\} q = min { 4 K , v } : any such vector splits into two vectors of weight at most 2 K 2K 2 K . Only this existence guarantee is used here, not the corollary’s constructor or workspace.
For r = 1 , … , v r=1,\ldots,v r = 1 , … , v , enumerate binary r × v r \times v r × v matrices in bitwise order, using each matrix as its own enumeration state. For each matrix enumerate every v v v -bit vector, skipping zero and weights above q q q , and reject the matrix if a tested syndrome is zero. Stop at the first matrix passing every test. Existence ensures that its row count satisfies (D.1); preceding stages have no larger row count. The matrix, current vector, syndrome accumulator and indices use O ( v r + v ) O(vr+v) O ( v r + v ) bits. The search tests at most v 2 v 2 + v v2^{v^2+v} v 2 v 2 + v matrix–vector pairs.
To decode, enumerate vectors of weight at most 2 K 2K 2 K , returning the first whose syndrome matches, or failure after exhausting them. The kernel test ensures uniqueness. This takes O ( v + r ) O(v+r) O ( v + r ) additional bits and at most 2 v 2^v 2 v vector tests, so all work is finite and parameter-bounded.
Finite search for the verification field. Let w w w be the degree in (10) . Enumerate all monic binary polynomials f f f of degree w w w , testing gcd ( f , X 2 i − X ) = 1 \gcd(f,X^{2^i}-X)=1 g cd( f , X 2 i − X ) = 1 for 1 ≤ i ≤ ⌊ w / 2 ⌋ 1 \le i \le\lfloor w/2\rfloor 1 ≤ i ≤ ⌊ w /2 ⌋ . A reducible polynomial has an irreducible factor of degree at most w / 2 w/2 w /2 , so exactly the irreducible candidates pass. Repeated squaring, polynomial multiplication, and gcd use a constant number of O ( w ) O(w) O ( w ) -bit registers. An irreducible polynomial exists, so at most 2 w 2^w 2 w candidates are tested. Retain the successful polynomial; a fresh w w w -bit string then gives an exactly uniform field element.
Finite-search cut tests and running-time bounds. Use the same compressed historical state and parameter caps as in Appendix D.3. To test an insertion with threshold q q q , enumerate the v v v -bit cut indicators separating its endpoints. For each, count crossing stored names by serial access, saturating the count at q q q . This requires O ( v + A ) O(v+A) O ( v + A ) bits beyond the compressed set and at most 2 v 2^v 2 v cut iterations. It implements the same acceptance predicate as the polynomial-time test in Lemma 4.2 .
The matrix search in (D.1) stores at most v r ≤ v 2 vr \le v^2 v r ≤ v 2 bits and tests at most v 2 v r v2^{vr} v 2 v r matrices, each against at most 2 v 2^v 2 v vectors. Its dimension counters use O ( A ) O(A) O ( A ) bits. Syndrome decoding uses at most 2 v 2^v 2 v vector tests, and field construction tests at most 2 w 2^w 2 w candidates with w = O ( A + t ) w=O(A+t) w = O ( A + t ) . All remaining loops and arithmetic have polynomial length in v + t v+t v + t . The stated exponential bound thus holds on every tape; each search retains only its current candidate, test state, and bounded indices. These states, the decoding workspace, and the temporary report forest fit the same space estimates used in Section 4. Reports leave the persistent edge sets and live bits, syndromes, hashes, and field representations unchanged. The hard space cap also bounds expected peak space under the original coins.
Detailed Comparison with Prior Work
Extending the fully dynamic confidence frontier. Ahn et al. provide cut cancellation and independent recovery rounds [2 Section 3.1] . For fixed 0 < ϵ < 1 0<\epsilon<1 0 < ϵ < 1 and 2 − v 1 − ϵ < δ ≤ 1 / 4 2^{-v^{1-\epsilon}}<\delta\le1/4 2 − v 1 − ϵ < δ ≤ 1/4 , Nelson and Yu prove a space lower bound for every one-pass streaming algorithm for this task that matches the memory guarantee of the reparameterized AGM algorithm; they also give its good/bad-round high-confidence analysis [37 Theorem 3 and Appendix A] . The constant-error and inverse-polynomial-error space orders are therefore classical. Sawettamalya and Yu [SY26, Theorem 1.3] improve the space bound for k k k -edge-connectivity certificates in dynamic streams, with success probability at least 1 − v − 5 1-v^{-5} 1 − v − 5 . The first main result concerns the full confidence curve, including the regime in which log ( 1 / δ ) \log(1/\delta) log ( 1/ δ ) approaches v v v without a fixed polynomial gap. Our algorithm reduces both the width of a recovery row and the sampling and repair depth. An entropy-optimal replacement for an edge-domain sparse-recovery primitive alone would leave the latter costs unchanged. Neighborhood recovery followed by contraction already appears in dynamic-stream spanner constructions [34 Sections 2 and 4] ; here its role is to reduce the initial number of unfinished components within the claimed confidence and space bounds.
Vertex-domain recovery and total working memory. Our cut interface stores short vertex-neighbor syndromes and constructs the two-sided cut measurement at query time, recovering current original edge pairs. Its sparse-recovery domain is the v v v vertices, rather than the ( v 2 ) \binom{v}{2} ( 2 v ) possible edge names. At threshold b ≤ v b\le v b ≤ v , an entropy-optimal edge-domain representation still pays log ( ( v 2 ) / b ) = Θ ( log v ) \log\left(\binom{v}{2}/b\right)=\Theta(\log v) log ( ( 2 v ) / b ) = Θ ( log v ) per sparse entry, whereas the vertex-domain codec permits log ( 1 + v / b ) \log(1+v/b) log ( 1 + v / b ) . The algorithm combines the sampled-universe bitmap with a shortened repair schedule to turn this smaller coordinate cost into the claimed space saving; the shared code tables, verification data and decoding scratch are charged as well.
Entropy-optimal Hamming checksums based on algebraic-geometric codes are classical; Cheng and Li explicitly recall this fact [11 Introduction and Section 3] . The decoder used here employs the classical error-locating-pair method [38 , 13 ] . The explicit tower functions and local branches used in the constructor have classical antecedents [39 , 3 ] . This implementation supplies the required identities and a streamed matrix schedule, accounting for construction and decoder workspace. These details are needed because a short syndrome or a communication-length guarantee does not by itself bound total peak memory.
Two-sided matrix sketches are established [15 ] , and staged recovery for tensor-product measurements appears in [23 Section II-B] . Bilinear sketches also occur in graph-stream cost estimation [1 Section 2.1] . Dynamic support sampling has a standard recovery–selection formulation [9 ] , while invertible Bloom lookup tables and Newton-identity decoders give related set-reconciliation primitives [19 , 16 ] . Code-based recovery already supports arbitrary small cuts through edge-domain labels [26 Sections 4.2 and 7.4] . Sparse-neighborhood recovery with a source set fixed before the stream and side information supplied afterward appears in Assadi and Shah [4 Section 3.2 of the full version] ; this primitive alone does not identify the endpoint inside the source set [4 Section 5.2, footnote 10 of the full version] .
Optimal spanning-forest space under a report-time deletion promise. Prior work on maximal matching [29 ] and hypergraph sparsification [33 ] bounds the total number of deletion operations. For graphs, the reweighted subgraph produced by Khanna et al. [33 ] with approximation error below one preserves connected components; extracting a spanning forest therefore supplies actual original edges. We require only that at most Z Z Z previously inserted edge names are absent at a report, while allowing arbitrarily many deletions and restorations between reports. For one report, our algorithms and matching space lower bounds determine the optimal space complexity, including the vertex and budget logarithms and the full confidence dependence. The lower bounds already hold on streams with at most Z Z Z deletion operations in total, so the same characterization also applies to that subclass. Relative deletion promises [28 ] parameterize a different restriction on the stream. The density-sensitive hybrid algorithm of [12 ] uses O ( min { v + e , v log v log ( 2 + e / v ) } ) O(\min\{v+e,v\log v\log(2+e/v)\}) O ( min { v + e , v log v log ( 2 + e / v )}) edge/bucket records, with high probability for polynomial-length streams and current edge count e = ∣ E ∣ e=|E| e = ∣ E ∣ [12 Theorem 1.2] . Their bucket fields and explicit-neighbor representation use Θ ( log v ) \Theta(\log v) Θ ( log v ) bits per record. This density-sensitive tradeoff complements our parameterization by the advance bound Z Z Z and arbitrary confidence. We use entropy-compressed historical edge sets with live bits and vertex-domain syndromes to resolve the bit cost.
Khanna et al. study bounded-deletion streams for distance oracles and spanners [30 ] , extending deletion-sensitive streaming to distance preservation. Bounded-independence edge sampling for combinatorial graph properties is studied by Putterman et al. [40 ] . Our spanning-forest algorithm returns current original edges and accounts for sampling data and recovery workspace in its memory usage. Classical work of Nagamochi and Ibaraki gives sparse connectivity certificates [36 ] ; a streaming formulation is given in [27 Lemma 3.7] . Our algorithm stores its accepted historical edge names and their live bits in compressed form and keeps the minimum-cut workspace within the same entropy-scale space budget. It permits an advance bound on historical edge names absent at reports, even when intermediate deletions and restorations are unrestricted.
Source encoding for space lower bounds. The all-error universal-relation complexity is known [31 , 37 ] ; optimizing the corresponding bound gives the source-size choice m ≃ U log ( 1 / δ ) m \simeq\sqrt{U\log(1/\delta)} m ≃ U log ( 1/ δ ) . The forest lower-bound argument transfers this encoding to the graph family while retaining the source-size and deletion constraints. The compact-membership and retrieval literature provides classical space baselines for membership and associated-value queries [10 , 14 ] . External-information accounting allows a query to delete from one block while charging information across all blocks. Exact channel simulation with shared randomness [24 Result 1] preserves each source’s message law and bounds communication averaged over the source distribution and protocol randomness. It therefore transfers corresponding expected-communication lower bounds to external-information lower bounds. Our information interface makes the source-size dependence explicit for the deletion constraint and uses the information chain rule to charge independent graph neighborhoods.
Joint correctness and lower bounds for repeated reports. Simultaneous correctness across many queries is standard in streaming and dynamic data structures. Hassidim et al. explicitly describe allocating failure probability δ / Q \delta/Q δ / Q to each of Q Q Q queries and applying a union bound when the stream is independent of the algorithm’s randomness [25 Introduction] . Continuous monitoring studies the related requirement that all estimates along a stream be correct simultaneously; Błasiok et al. show that the direct union-bound cost can be improved for norm estimation [5 Definition 1 and Introduction] . For dynamic graph connectivity, Gibb et al. give joint correctness over polynomially many updates [18 Theorem 3.1] ; forest caches also have precedents [42 ] .
Our repeated-report result determines the optimal dependence on Q Q Q and δ \delta δ for spanning-forest recovery under the report-time bound Z Z Z . The algorithmic guarantee follows by applying the standard δ / Q \delta/Q δ / Q allocation to our read-only single-report algorithm. Our additional result is a matching space lower bound that allows information learned from earlier reports to remain in the algorithm’s state. Our update and report sequences are fixed independently of the algorithm’s randomness; this guarantee does not assert robustness to adaptively chosen streams. The lower bound requires an additional argument: one source is restored and queried repeatedly, and the algorithm may retain information learned from earlier answers. Low-error-round extraction appears in tracking lower bounds [7 Section 7 of the full version] ; same-source requests and learned retained states also occur in communication and quantum streaming [17 Vor26] . The forest lower bound additionally requires preservation of the source law and control of the expected state length after earlier reports. Conditioning jointly on earlier success can bias the restored source. Instead, after selecting one fixed low-loss round by averaging under the original source law, the proof normalizes the surviving state channel separately at each source and draws that source from its original law. The current query remains fresh conditional on the source. The sourcewise survival bound controls both the error and expected message length by constant factors, so the original expected-peak charge is preserved. This is the additional step connecting low-error-round extraction to the repeated-report forest lower bound; it allows earlier answers to change the retained state without changing the fixed-input model or replacing the hard source distribution by a success-conditioned one.
AI Assistance
The main proofs were developed by the human authors. AI tools assisted with organizing and documenting the proofs and with parts of the proof development for selected theorems. All AI-assisted mathematical material was reviewed by the human authors. ChatGPT and Gemini were used extensively to assist with writing and revising the manuscript. The human authors reviewed the final manuscript in full and take ultimate responsibility for its mathematical content and the manuscript as a whole.