One logarithmic word width suffices for every live child row
ProvedExactPatternStream.ImplementationProof.counted_child_boundsstreaming-algorithmsstring-algorithmsword-ram
For each alphabet exponent there is a threshold . Take any multiplier , strings of lengths with , an alphabet of size and any hierarchy seed. Write . At every live height and level , the group metadata and counted slots fit into the prescribed word widths. With the level’s group size, its trained payload offset, its payload length in bits, and the heap base, the bounds include
The heap base leaves 512 low words available. When the group uses a projected long key, its projection workspace fits in the two reserved hash segments and every projection cell belongs to the arena charged at height . The same multiplier works for every level and seed.
Preamble
import Definitions.Def_ExactPatternStream_StreamingImplementation open ExactPatternStream open ExactPatternStream.ImplementationProof open DynBrooks MachineProof PackedRAM HashProof CounterProof SoundProof CompletenessProof OnlineReport
Formal statement
theorem ExactPatternStream.ImplementationProof.counted_child_bounds (k : ℕ) : ∃ W : ℕ, ∀ cw≥ W, ∀ {σ : ℕ} (P T : List (Fin σ)) (s : Seeds σ P.length),
1≤ P.length → P.length≤ T.length → T.length≤2*P.length → 3≤ T.length → σ≤ T.length^k →
let B:=seededBuild P T s
let w:=cw*ell T.length
∀ h≤ topIndex B, ∀ i< h, CountedChildBounds w σ P.length T.length i (promotionHeapBase w σ P.length)
(trainedPayloadStart σ P.length T.length B i) (lvl B i) (trainedParentArena w σ P.length T.length B h) := by sorrySource
Derived word-RAM implementation lemma for Gawrychowski, Janczewski, Jin and Nelson, An Improved Streaming Algorithm for Exact Pattern Matching, STOC 2027 submission 1330, §9, Lemma 9.2, p. 29 (PDF p. 30). Accompanying Lean formalization, InProgress/Stage/CountedChildBounds.lean, lines 25–93.