Machine header at the first adaptive promotion
ProvedExactPatternStream.ImplementationProof.first_adaptive_promotion_headerexact-pattern-matchingstreaming-algorithmsword-ram
At sufficiently large word width, the initial change away from the first pattern symbol starts the first adaptive promotion. The joint seed draw has uniform law and the sampled row, scan position and packed seed cursor agree almost surely with the corresponding level of the construction. On return the program retains the residual modulus, an empty count and residual value, the unit register and root index zero. For a pattern of length , its recursion fuel and remaining clock are
as machine words.
Preamble
import Definitions.Def_ExactPatternStream_StreamingImplementation open ExactPatternStream open ExactPatternStream.ImplementationProof open DynBrooks MachineProof OnlineReport SeedRow PackedRAM MeasureTheory
Formal statement
theorem ExactPatternStream.ImplementationProof.first_adaptive_promotion_header (k : ℕ) : FirstAdaptivePromotionLaw k FirstPromotionHeader := by sorry
Source
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.FirstAdaptivePromotion, declaration first_adaptive_promotion_header.