First packed record at the first unequal pattern symbol
ProvedExactPatternStream.ImplementationProof.first_public_record_at_leastexact-pattern-matchingstreaming-algorithmsword-ram
Let be the pattern and text, with lengths , , over an alphabet of size . The machine uses words of bits.
For any prescribed minimum width multiplier, there are a larger-or-equal multiplier and a uniform charge constant. The fixed public input program uses a uniform joint seed draw. Almost surely, at a nonconstant pattern's first unequal symbol it builds the packed first record, retains the coin position prescribed by its sampler and returns with the corresponding initial storage and bounded write history.
Preamble
import Definitions.Def_ExactPatternStream_StreamingImplementation open ExactPatternStream open ExactPatternStream.ImplementationProof open DynBrooks MachineProof PackedRAM CounterProof HashProof SoundProof OnlineReport SeedRow MeasureTheory
Formal statement
theorem ExactPatternStream.ImplementationProof.first_public_record_at_least (k minWidth : ℕ) :
∃ cw K : ℕ, minWidth ≤ cw ∧ FirstPublicRecordAt 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.FirstPublicRecordComplete, declaration first_public_record_at_least.