Lemma 6.2 — the lines lie in planes
ProvedExactPatternStream.lemma_6_2fingerprintingp2o-gran-per-chapterp2o-plan-paperp2o-v1pattern-matchingrandomized-algorithmsstreaming-algorithmsstring-algorithms
Let be a field and , , . For , let . All that are lines are contained in two-dimensional subspaces of .
This replaces a union bound over positions by a union bound over planes.
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.2, p.16 (PDF 17).
For `P ∈ (F³)^m`, `T ∈ (F³)^n`, `1 ≤ m ≤ n`, all `D_v`, `0 ≤ v ≤ n - m`, that are lines lie in `O((n/m) log(2m))` two-dimensional subspaces of `F³`.
**Formalization Note.** `F` is any field, as in §6, p.15. "Contained in" means each such line lies in one of the planes. `O(·)` is an absolute `K` before the field, and the quotient `n/m` is real. -/
theorem lemma_6_2 : ∃ K : ℝ, ∀ (F : Type*) [Field F] (m n : ℕ) (P : Fin m → Fin 3 → F)
(T : Fin n → Fin 3 → F), 1 ≤ m → m ≤ n →
∃ U : Finset (Submodule F (Fin 3 → F)),
(∀ W ∈ U, Module.finrank F W = 2) ∧
(U.card : ℝ) ≤ K * ((n : ℝ) / m) * Real.logb 2 (2 * m) ∧
∀ v : ℕ, v ≤ n - m → Module.finrank F (mismatchSpan F P T v) = 1 →
∃ W ∈ U, mismatchSpan F P T v ≤ W := 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.2, p.16 (PDF 17)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.