Lemma 6.1 — lines of the form in
ProvedExactPatternStream.lemma_6_1fingerprintingp2o-gran-per-chapterp2o-plan-paperp2o-v1pattern-matchingrandomized-algorithmsstreaming-algorithmsstring-algorithms
Let be a field and a nonempty vector string. Then there are distinct lines of the form
This is the structural heart of the covering argument: difference spaces of a string form very few lines.
Differences from the source:
- encoding: → one absolute before all variables, with ; reason: the same bounds up to a constant
Preamble
import Mathlib import Definitions.Def_ExactPatternStream_LinearMaps
Formal statement
namespace ExactPatternStream
/-- Gawrychowski, Janczewski, Jin, Nelson, *An Improved Streaming Algorithm for Exact Pattern Matching* (preprint, STOC 2027 submission, sha256 351218cb…), Lemma 6.1, p.15 (PDF 16).
For a nonempty vector string `T ∈ (F²)^{|T|}` over any field, at most `O(log |T|)` distinct lines have the form `Δ_p(T)` with `1 ≤ p ≤ |T|/3`.
**Formalization Note.** A line is a subspace of `finrank` one. The set of lines is finite, since `p` has finitely many values, so `Set.ncard` is its size. `O(·)` is an absolute `K` before the field; `log₂`. At `|T| ≤ 2` no `p` exists. -/
theorem lemma_6_1 : ∃ K : ℝ, ∀ (F : Type*) [Field F] (n : ℕ) (T : Fin n → Fin 2 → F), 0 < n →
(({S : Submodule F (Fin 2 → F) | Module.finrank F S = 1 ∧
∃ p : ℕ, 1 ≤ p ∧ 3 * p ≤ n ∧ deltaSpan F T p = S}.ncard : ℕ) : ℝ) ≤
K * Real.logb 2 n := by sorry
end ExactPatternStream
Source
Gawrychowski, Janczewski, Jin, Nelson, An Improved Streaming Algorithm for Exact Pattern Matching (preprint, STOC 2027 submission, sha256 351218cb…), Lemma 6.1, p.15 (PDF 16)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.