Public pattern callback at a positive level lock
ProvedExactPatternStream.ImplementationProof.pattern_pass_lock_advance_for_widthsexact-pattern-matchingstreaming-algorithmsword-ram
Let be the pattern and text, with lengths , , over an alphabet of size . The machine uses words of bits.
For each sufficiently large width multiplier, choose one space constant. The sampler has a uniform joint seed law. Almost surely, whenever a positive nonterminal level locks on the prescribed incoming label and the stored rows, probe and tape cursor describe that level, the pattern callback advances to the next level with the expected sampled state and bounded space.
Preamble
import Definitions.Def_ExactPatternStream_StreamingImplementation open ExactPatternStream open ExactPatternStream.ImplementationProof open DynBrooks MachineProof PackedRAM CounterProof SoundProof OnlineReport HashProof SeedRow MeasureTheory
Formal statement
theorem ExactPatternStream.ImplementationProof.pattern_pass_lock_advance_for_widths (k : ℕ) :
∃ W : ℕ, ∀ cw, W≤ cw → ∃ K, PatternPassAdvanceAt k cw K := by sorrySource
Gawrychowski, Janczewski, Jin and Nelson, An Improved Streaming Algorithm for Exact Pattern Matching, STOC 2027 submission, §9, Lemma 9.2, p. 29 (PDF p. 30). Derived implementation lemma in Stage.PatternPassAdvance, declaration pattern_pass_lock_advance_for_widths.