The complexity of downward closures of indexed languages
Richard Mandel, Corto Mascle, Georg Zetzsche
TL;DR
This work resolves the long-standing open problem of the precise complexity of computing downward closures for indexed languages. By introducing a stack-summaries framework via a finite stack monoid and leveraging recent semigroup techniques, the authors convert indexed grammars into equivalent CFGs while preserving downward closures, enabling triply-exponential upper bounds for NFA representations and quadruple-exponential bounds for DFAs, with matching lower bounds. They also establish coNEXP-completeness for downward-closure inclusion and equivalence, and prove a triply-exponential pumping threshold, tightening the understanding of higher-order language analyses. The combination of algebraic stack abstractions, pump/skip derivations, and a CFG construction provides a tight, broadly applicable approach to analyzing downward closures in higher-order language classes, with implications for verification and model-checking tasks involving indexed languages and beyond.
Abstract
Indexed languages are a classical notion in formal language theory, which has attracted attention in recent decades due to its role in higher-order model checking: They are precisely the languages accepted by order-2 pushdown automata. The downward closure of an indexed language -- the set of all (scattered) subwords of its members -- is well-known to be a regular over-approximation. It was shown by Zetzsche (ICALP 2015) that the downward closure of a given indexed language is effectively computable. However, the algorithm comes with no complexity bounds, and it has remained open whether a primitive-recursive construction exists. We settle this question and provide a triply (resp.\ quadruply) exponential construction of a non-deterministic (resp.\ deterministic) automaton. We also prove (asymptotically) matching lower bounds. For the upper bounds, we rely on recent advances in semigroup theory, which let us compute bounded-size summaries of words with respect to a finite semigroup. By replacing stacks with their summaries, we are able to transform an indexed grammar into a context-free one with the same downward closure, and then apply existing bounds for context-free grammars.
