Lemma 9.7 — the trimmed LPF′-tree has nodes
ProvedDynLZ77.Main.lemma_9_7lempel-zivp2o-gran-per-chapterp2o-plan-paperp2o-v1string-algorithms
Let be the LPF′-tree of and the tree induced by its internal (non-leaf) nodes. There are universal constants such that for every string over any alphabet, with and ,
The LPF′-tree has nodes; this lemma is why a dynamic tree over its trimmed version fits in space.
Differences from the source:
- encoding: |trimmed(T_S)| ∈ Õ(|LZ77(S)|), Õ(f) = O(f·log^c n) with n the length (footnote 1) → C·(z + 1)·(log₂(n + 2))^c with c, C universal; reason: the +1 and +2 keep the bound meaningful at z = 0 and n ≤ 1 and change nothing for n ≥ 2 (then z ≥ 1)
Preamble
import Mathlib import Definitions.Def_DynLZ77_Main_Strings import Definitions.Def_DynLZ77_Main_Structure set_option autoImplicit false
Formal statement
namespace DynLZ77.Main
/-- **Lemma 9.7** (p. 59). The trimmed LPF′-tree has `Õ(|LZ77(S)|)` nodes: there are universal
`c, C` with `|trimmed(T_S)| ≤ C·(z + 1)·(log₂(|S| + 2))^c` for every string `S`. -/
theorem lemma_9_7 : ∃ (c : ℕ) (C : ℝ), ∀ {α : Type} [DecidableEq α] (S : List α),
((internalNodes S).card : ℝ) ≤
C * ((z S : ℝ) + 1) * Real.logb 2 ((S.length : ℝ) + 2) ^ c := by sorry
end DynLZ77.Main
Source
Boneh, Fried, Golan, Kraus, Dynamic LZ77: No Space for Improvement, STOC 2027 submission (manuscript sha256 2a15e146…), p. 59 (PDF 61), Lemma 9.7
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.