English

Termination of linear loops under commutative updates

Logic in Computer Science 2023-04-20 v2 Rings and Algebras

Abstract

We consider the following problem: given d×dd \times d rational matrices A1,,AkA_1, \ldots, A_k and a polyhedral cone CRd\mathcal{C} \subset \mathbb{R}^d, decide whether there exists a non-zero vector whose orbit under multiplication by A1,,AkA_1, \ldots, A_k is contained in C\mathcal{C}. This problem can be interpreted as verifying the termination of multi-path while loops with linear updates and linear guard conditions. We show that this problem is decidable for commuting invertible matrices A1,,AkA_1, \ldots, A_k. The key to our decision procedure is to reinterpret this problem in a purely algebraic manner. Namely, we discover its connection with modules over the polynomial ring R[X1,,Xk]\mathbb{R}[X_1, \ldots, X_k] as well as the polynomial semiring R0[X1,,Xk]\mathbb{R}_{\geq 0}[X_1, \ldots, X_k]. The loop termination problem is then reduced to deciding whether a submodule of (R[X1,,Xk])n\left(\mathbb{R}[X_1, \ldots, X_k]\right)^n contains a ``positive'' element.

Keywords

Cite

@article{arxiv.2302.01003,
  title  = {Termination of linear loops under commutative updates},
  author = {Ruiwen Dong},
  journal= {arXiv preprint arXiv:2302.01003},
  year   = {2023}
}

Comments

6 pages

R2 v1 2026-06-28T08:30:07.858Z