Kempa–Kociumaka Fact 8.9, localized: some identifier puts synchronizing positions within of
ProvedDynLZ77.KK.local_sparseThere is a universal constant such that for every string over any alphabet, every set of positions and every , some identifier makes Construction 8.1 of Kempa and Kociumaka place few positions near :
Here is the set of Construction 8.1 (definition DynLZ77_KK_SyncConstruction): with the positions whose length- fragment has period at most , a position belongs to when the smallest identifier of a fragment starting in is that of or of .
This is the size bound of Fact 8.9 of the source (some identifier gives ), localized to the -neighbourhood of , which consists of at most positions. It is the one ingredient of Lemma 8.4 of Boneh, Fried, Golan and Kraus (Dynamic LZ77: No Space for Improvement, -local -synchronizing sets of size ) that depends on the choice of identifier; consistency, density and locality hold for every identifier.
Formalization Note. The constant is fixed before the alphabet, , and . The identifier is any function from strings to natural numbers; "within distance " is written as and with natural numbers.
import Mathlib.Data.Real.Basic import Definitions.Def_DynLZ77_KK_SyncConstruction set_option autoImplicit false
namespace DynLZ77.KK
open DynLZ77.Main
/-- **Sparse identifiers, localized** ([KK19, Construction 8.1 and Fact 8.9], localized to the
`11τ`-neighbourhood of a set `I`). There is a universal constant `C` such that for every string
`T[1..n]`, every `I ⊆ [1..n]` and every `τ ∈ [1..⌊n/2⌋]` some identifier makes Construction 8.1
put at most `C·|I|` positions within distance `11τ` of `I`. -/
theorem local_sparse : ∃ C : ℝ, ∀ {α : Type} [DecidableEq α] (T : List α) (I : Finset ℕ) (τ : ℕ),
I ⊆ Finset.Icc 1 T.length → 1 ≤ τ → τ ≤ T.length / 2 →
∃ id : List α → ℕ,
(((syncSet T τ id).filter (fun x => ∃ i ∈ I, i ≤ x + 11 * τ ∧ x ≤ i + 11 * τ)).card : ℝ)
≤ C * (I.card : ℝ) := by sorry
end DynLZ77.KK