Replay fan-out: small completed slices can hide large residual memory

Contents

1. Continuation-exposed replay profiles

Let L⊆Σ∗L\subseteq\Sigma^*, let P⊆Σ∗P\subseteq\Sigma^* be a family of prefixes of one fixed length, and let Z=(z1,…,zt)Z=(z_1,\ldots,z_t) be a finite family of continuations. The continuation-exposed replay profile of p∈Pp\in P on ZZ is

ρZ(p)=(1L(pz1),…,1L(pzt)). \rho_Z(p)=\bigl(\mathbf 1_L(pz_1),\ldots,\mathbf 1_L(pz_t)\bigr).

Each coordinate is one completed computation. If that computation has a replay support, write R(p,zj)R(p,z_j) for its source portion inside the prefix. Two different quantities must be kept separate:

  • the pointwise replay width max⁡j∣R(p,zj)∣\max_j|R(p,z_j)|; and
  • the future-exposed union EZ(p)=⋃jR(p,zj)E_Z(p)=\bigcup_jR(p,z_j).

The first asks how much old information one completed execution used. The second asks how many different old coordinates the selected futures can expose.

2. Selector lemma

Lemma. Suppose that for every bit vector b=(b1,…,bt)∈{0,1}tb=(b_1,\ldots,b_t)\in\{0,1\}^t there is a prefix pbp_b, and for each jj there is a continuation zjz_j, such that

1L(pbzj)=bj. \mathbf 1_L(p_bz_j)=b_j.

Then the 2t2^t prefixes pbp_b have pairwise distinct left residuals. Every exact deterministic one-pass recognizer therefore has at least 2t2^t distinct configurations after these prefixes and needs at least tt bits at that cut.

This remains true if every completed run pbzjp_bz_j has a replay support of one source cell.

Proof

The restriction of the residual pb−1Lp_b^{-1}L to the test family ZZ is exactly the vector bb. Distinct bit vectors disagree on some coordinate jj, so zjz_j separates the corresponding residuals. If two prefixes reached the same deterministic configuration, every common continuation would have the same answer, contradicting that separator. A set of 2t2^t configurations requires at least tt bits. The last statement is compatible with the argument because it concerns the support of each coordinate separately, not the number of coordinates selected across all continuations. □\square

3. A unit-slice language with exponential residual fan-out

For every nonempty binary word w=w1⋯wnw=w_1\cdots w_n, let

mid⁡(w)=w⌈n/2⌉,M={w∈{0,1}+:mid⁡(w)=1}. \operatorname{mid}(w)=w_{\lceil n/2\rceil}, \qquad M=\{w\in\{0,1\}^+:\operatorname{mid}(w)=1\}.

Treat the length of the completed word as public shape data. Its membership observer computes ⌈n/2⌉\lceil n/2\rceil and queries that one input cell. Thus every completed word has source replay width one.

Fix r≥1r\ge1. For b=b1⋯br∈{0,1}rb=b_1\cdots b_r\in\{0,1\}^r, define

pb=0rb1⋯br,zj=02j−1(1≤j≤r). p_b=0^r b_1\cdots b_r, \qquad z_j=0^{2j-1}\quad(1\le j\le r).

The total length of pbzjp_bz_j is 2r+2j−12r+2j-1, so

⌈∣pbzj∣2⌉=r+j. \left\lceil\frac{|p_bz_j|}{2}\right\rceil=r+j.

Consequently

1M(pbzj)=bj. \mathbf 1_M(p_bz_j)=b_j.

The selector lemma now gives 2r2^r pairwise distinct residuals among prefixes of length 2r2r. Each selected completion reads one old cell, but the rr continuations expose rr independently variable old cells and recover the entire bit vector.

Theorem (replay fan-out separation). The middle-bit language MM has the following properties for every r≥1r\ge1:

  1. every completed nonempty input has source replay width one;
  2. a family of rr continuations exposes rr distinct old coordinates from suitable length-2r2r prefixes;
  3. those continuations realize all 2r2^r response profiles; and
  4. every exact deterministic one-pass recognizer has at least 2r2^r configurations after some length-2r2r cut.

In particular, a uniform bound on completed replay-slice cardinality does not bound residual diversity or deterministic one-pass memory.

4. What the separation means for FPRD

FPRD-T150 is pointwise: after one execution is fixed, its backward slice is a stable replay certificate. The theorem above shows why that fact alone cannot produce a stationary compressor. A prefix must be ready for a family of possible future observers. Even when each future selects one old coordinate, the family can select many coordinates and recover an exponentially large response table.

This separates three resources:

completed slice width≠future-exposed coordinate count≠cost of transporting addresses stationarily. \text{completed slice width} \quad\neq\quad \text{future-exposed coordinate count} \quad\neq\quad \text{cost of transporting addresses stationarily}.

The first two are exactly separated here. The third remains model-dependent. A persistent pointer system can sometimes transport an unbounded address family with a bounded number of roots and local updates, so this theorem is not a lower bound against scaffolding automata or PEGs and does not resolve FPRD-C02.

The next useful invariant must therefore describe the transport orbit of replay roots: which old coordinates future continuations may select, how those coordinates are named, and whether their names can be updated by one bounded stationary rule.

The persistent-selector calibration now gives an explicit positive case: unary query suffixes select any stored payload bit using a degree-two, distance-two scaffold with one allocation per letter. Exponential residual diversity coexists with bounded update cost, not bounded total storage. The one-bit payload certificate is distinct from the full scaffold dependency trace. This is a different language from the middle-bit example and uses standard persistent-stack machinery.

5. Comparator boundary

The residual separation is an elementary Myhill–Nerode argument. Its shape is also the deterministic one-way INDEX lower bound: a prefix stores a bit vector and a continuation selects a coordinate. INDEX reductions are standard in streaming lower bounds; Jain and Nayak use an augmented Index problem to prove streaming space bounds for parenthesis recognition.

This note makes no novelty claim for the selector argument or the middle-bit language. Its role is narrower: it connects those established lower-bound patterns to execution-specific replay slices and identifies exactly why bounded slice width is insufficient for the stationary-presentation problem.

  • Michael O. Rabin and Dana Scott, “Finite Automata and Their Decision Problems,” IBM Journal of Research and Development 3(2), 1959. https://doi.org/10.1147/rd.32.0114
  • Rahul Jain and Ashwin Nayak, “The Space Complexity of Recognizing Well-Parenthesized Expressions in the Streaming Model: The Index Function Revisited,” 2010. https://arxiv.org/abs/1004.3165