Matcher report times characterize seeded match positions
ProvedExactPatternStream.ImplementationProof.matcher_pulses_exactexact-pattern-matchingstreaming-algorithmsword-ram
Fix a nonempty pattern of length , a text of length , a hierarchy seed and a residual evaluation point modulo . For every natural time , the reporter operating on raw text events produces a pulse at exactly when the seeded matcher includes the signed starting position :
The subtraction in the right-hand condition is taken in the integers. The pulse time counts raw text symbols consumed.
Preamble
import Definitions.Def_ExactPatternStream_StreamingImplementation open ExactPatternStream open ExactPatternStream.ImplementationProof open SoundProof CompletenessProof OnlineReport
Formal statement
theorem ExactPatternStream.ImplementationProof.matcher_pulses_exact {σ p : ℕ} (P T : List (Fin σ)) (s : Seeds σ P.length)
(a : ZMod p) (hm : 1≤ P.length) (hmn : P.length≤ T.length) (hn : T.length≤2*P.length) (t : ℕ) :
t∈matcherPulses P s a T.length (rawEvents T) ↔ ((t:ℤ)-P.length)∈seededMatch P T (s,a) := by sorrySource
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). Derived implementation lemma in Stage/OnlineMatcher.lean, lines 20–33, matcher_pulses_exact.