Extension points and non-dominated extension points
DefinitionDynLZ77_Main_ExtensionPointscombinatorics-on-wordslz77strings
Let be a string of length and a set of indices. For let . For the extension point of the pair is
the lengths of the longest common suffix of and and of the longest common prefix of and . Set . For a finite set of points, is the set of points for which no other point has and . The non-dominated extension points of are
Lemma 2.2 bounds by , and the proof of Lemma 1.2 maps irreducible positions injectively to non-dominated extension points.
Formalization Note. extPoint S i j is , ext S I i is with written as the elements of smaller than , nonDominated P is and dext S I i is . Positions are 1-based; lcsAt, lcpAt are those of DynLZ77_Main_Strings.
Definition code
import Mathlib.Data.Finset.Image
import Definitions.Def_DynLZ77_Main_Strings
set_option autoImplicit false
/-!
# Extension points and non-dominated extension points
Boneh, Fried, Golan, Kraus, *Dynamic LZ77: No Space for Improvement*, STOC 2027 submission
(manuscript sha256 2a15e146…), §8.1 "Non-Dominated Extension Points", p. 49 (PDF 51), following
Boneh, Golan, Kraus, *The Complexity of Dynamic LZ77 is Theta~(n^{2/3})*, arXiv:2502.12000 (v3), §4.
**Formalization Note.** Positions are 1-based, as in `Def_DynLZ77_Main_Strings`.
* `extPoint S i j` is `p_{i,j,S} = (LCS_S(i,j), LCP_S(i,j))`.
* `ext S I i` is `Ext_I(i,S) = {p_{i,j,S} | j ∈ I_i}` with `I_i = I ∩ [1..i−1]`, written as the
elements of `I` smaller than `i` (for `I ⊆ [1..n]` this is the same set).
* `nonDominated P` is `ND(P)`: the points `(x,y) ∈ P` with no other point `(x′,y′) ∈ P` such that
`x′ ≥ x` and `y′ ≥ y`.
* `dext S I i` is `DExt_I(i,S) = ND(Ext_I(i,S))`.
-/
namespace DynLZ77.Main
variable {α : Type} [DecidableEq α]
/-- The extension point `p_{i,j,S} = (LCS_S(i,j), LCP_S(i,j))`. -/
def extPoint (S : List α) (i j : ℕ) : ℕ × ℕ := (lcsAt S i j, lcpAt S i j)
/-- `Ext_I(i,S)`: the extension points `p_{i,j,S}` of the indices `j ∈ I` smaller than `i`. -/
def ext (S : List α) (I : Finset ℕ) (i : ℕ) : Finset (ℕ × ℕ) :=
(I.filter (fun j => j < i)).image (extPoint S i)
/-- `ND(P)`: the points of `P` that are not dominated (weakly in both coordinates) by another
point of `P`. -/
def nonDominated (P : Finset (ℕ × ℕ)) : Finset (ℕ × ℕ) :=
P.filter (fun q => ∀ q' ∈ P, q' ≠ q → ¬ (q.1 ≤ q'.1 ∧ q.2 ≤ q'.2))
/-- `DExt_I(i,S) = ND(Ext_I(i,S))`, the non-dominated extension points of `i`. -/
def dext (S : List α) (I : Finset ℕ) (i : ℕ) : Finset (ℕ × ℕ) :=
nonDominated (ext S I i)
end DynLZ77.Main
Source
Boneh, Fried, Golan, Kraus, Dynamic LZ77: No Space for Improvement, STOC 2027 submission (manuscript sha256 2a15e146…, https://github.com/sigact-stoc/stoc2027/releases/download/papers-2/1131.pdf), §8.1 Non-Dominated Extension Points, p. 49 (PDF 51); following Boneh, Golan, Kraus, The Complexity of Dynamic LZ77 is Θ̃(n^{2/3}), arXiv:2502.12000 (v3), §4