Uniform workspace bounds for opening every learned group
ProvedExactPatternStream.ImplementationProof.counted_group_open_boundsstreaming-algorithmsstring-algorithmsword-ram
For each fixed polynomial alphabet exponent there is a multiplier threshold . With , , and for , fix any hierarchy seed. Every group below a live height has the register widths, addresses and charged storage required by the row-opening subroutine. If is the group’s encoded key length, its hash width, and the root bit offset in the row, then among these bounds are
where is the heap base. The charged arena contains the prescribed opening cells, with the additional projection requirements in the long-key case. These bounds permit the same opener in the pattern and text scans.
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_group_open_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, GroupOpenBounds w σ P.length T.length (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/CountedGroupOpenBounds.lean, lines 9–73.