Both scanner phases implement the same packed group transition
ProvedExactPatternStream.ImplementationProof.counted_physical_groupsstreaming-algorithmsstring-algorithmsword-ram
For each polynomial alphabet exponent there is a multiplier . For every , every nonconstant pattern and text of lengths with and , every hierarchy seed and every tape of -bit words, the fixed group code implements each admissible child transition. In the pattern phase it works at every level below the current learned height . In the text phase it works below the final learned height. At either phase entry it gives
The updated packed row represents the next child position and the run respects the charged arena for its phase and height. This is the local machine guarantee used when composing the two scans in Lemma 9.2.
Preamble
import Definitions.Def_ExactPatternStream_StreamingImplementation open ExactPatternStream open ExactPatternStream.ImplementationProof open DynBrooks MachineProof PackedRAM CounterProof HashProof SoundProof SeedRow OnlineReport MeasureTheory MainProof
Formal statement
theorem ExactPatternStream.ImplementationProof.counted_physical_groups : CountedPhysicalGroups := by sorry
Source
Derived word-RAM implementation lemma for P. Gawrychowski, W. Janczewski, C. Jin and J. Nelson, An Improved Streaming Algorithm for Exact Pattern Matching, STOC 2027 submission 1330, §9, Lemma 9.2, p. 29 (PDF p. 30). The instruction addresses and register conventions are specific to the accompanying Lean formalization, InProgress/Stage/CountedCompleteMachine.lean, lines 63–85, counted_physical_groups.