Fact 4.6 — LZ77 is a minimum-size LZ-like parsing
ProvedDynLZ77.Main.fact_4_6lempel-zivp2o-gran-per-chapterp2o-plan-paperp2o-v1string-algorithms
For every string , the phrases of form an LZ-like parsing of , and every LZ-like parsing of has at least as many phrases:
This is the optimality of greedy LZ77 ([KS19, Lemma 2]); it bounds by the size of any LZ-like input.
Differences from the source: none.
Preamble
import Mathlib import Definitions.Def_DynLZ77_Main_Strings import Definitions.Def_DynLZ77_Main_Structure set_option autoImplicit false
Formal statement
namespace DynLZ77.Main
/-- **Fact 4.6** (p. 18). The LZ77 factorization is an LZ-like parsing of minimum size: its
phrases `X[a..b]` form an LZ-like parsing of `X`, and `|LZ77(X)| ≤ |P|` for every LZ-like parsing
`P` of `X`. -/
theorem fact_4_6 {α : Type} [DecidableEq α] (X : List α) :
IsLZLike X ((LZ77 X).map (fun ab => sub X ab.1 ab.2)) ∧
∀ P : List (List α), IsLZLike X P → (LZ77 X).length ≤ P.length := by sorry
end DynLZ77.Main
Source
Boneh, Fried, Golan, Kraus, Dynamic LZ77: No Space for Improvement, STOC 2027 submission (manuscript sha256 2a15e146…), p. 18 (PDF 20), Fact 4.6
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.