Algebraic Closure of Matrix Sets Recognized by 1-VASS
Rida Ait El Manssour, Mahsa Naraghi, Mahsa Shirmohammadi, James Worrell
TL;DR
The work investigates when the Zariski closure of matrix sets $\varphi(L)$ is computable, focusing on languages $L$ beyond regular, including one-counter languages and indexed grammars. It develops a novel adaptation of Simon's factorization forests to infinite matrix monoids and introduces factorization trees to bound complexity, enabling reductions of closure problems to regular-language settings. The authors provide explicit procedures to compute vanishing ideals for $\varphi(L)$ when $L$ is a $1$-VASS coverability or reachability language and prove undecidability for indexed languages, highlighting both decidability boundaries and fundamental limits. The results advance interprocedural program analysis and algebraic invariants by linking automata-theoretic representations with algebraic-geometry closures, offering a framework for analyzing polynomial invariants in affine systems and beyond.
Abstract
It is known how to compute the Zariski closure of a finitely generated monoid of matrices and, more generally, of a set of matrices specified by a regular language. This result was recently used to give a procedure to compute all polynomial invariants of a given affine program. Decidability of the more general problem of computing all polynomial invariants of affine programs with recursive procedure calls remains open. Mathematically speaking, the core challenge is to compute the Zariski closure of a set of matrices defined by a context-free language. In this paper, we approach the problem from two sides: Towards decidability, we give a procedure to compute the Zariski closure of sets of matrices given by one-counter languages (that is, languages accepted by one-dimensional vector addition systems with states and zero tests), a proper subclass of context-free languages. On the other side, we show that the problem becomes undecidable for indexed languages, a natural extension of context-free languages corresponding to nested pushdown automata. One of our main technical tools is a novel adaptation of Simon's factorization forests to infinite monoids of matrices.
