A Non-constant Lower Bound for Grammar-Based Compression with Greedy
The smallest grammar problem asks for a smallest context-free grammar generating a given word. Whether the global grammar-based compression algorithm Greedy admits a non-constant lower bound on its approximation ratio had remained open for over twenty years, with the best prior bound being a constant.
A construction is built from unary target runs and power-free auxiliary words based on Dejean's 19-uniform morphism, forcing Greedy to perform a specific sequence of substitutions while allowing arbitrary intervening compression. An invariant tracks every grammar fragment across substitution phases, and factor-count arguments bound the size of any final grammar. The lower bound is formally verified in Lean 4.
An Ω(log n/log log n) lower bound is established on the approximation ratio of Greedy, holding for an infinite family of words over alphabets of growing size, for every execution using left-to-right occurrence replacement and arbitrary tie-breaking.
