We consider the following problem: given $d \times d$ rational matrices $A_1, \ldots, A_k$ and a polyhedral cone $\mathcal{C} \subset \mathbb{R}^d$, decide whether there exists a non-zero vector whose orbit under multiplication by $A_1, \ldots, A_k$ is contained in $\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 $A_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 $\mathbb{R}[X_1, \ldots, X_k]$ as well as the polynomial semiring $\mathbb{R}_{\geq 0}[X_1, \ldots, X_k]$. The loop termination problem is then reduced to deciding whether a submodule of $\left(\mathbb{R}[X_1, \ldots, X_k]\right)^n$ contains a ``positive'' element.
翻译:考虑以下问题:给定 $d \times d$ 有理矩阵 $A_1, \ldots, A_k$ 和一个多面锥 $\mathcal{C} \subset \mathbb{R}^d$,判定是否存在一个非零向量,其在 $A_1, \ldots, A_k$ 乘法作用下的轨道包含于 $\mathcal{C}$。该问题可解释为验证具有线性更新和线性守卫条件的多路径while循环的终止性。我们证明,对于可交换的可逆矩阵 $A_1, \ldots, A_k$,该问题可判定。我们判定过程的关键在于以纯代数方式重新诠释该问题:具体而言,我们发现了其与多项式环 $\mathbb{R}[X_1, \ldots, X_k]$ 及多项式半环 $\mathbb{R}_{\geq 0}[X_1, \ldots, X_k]$ 上模之间的联系。于是,循环终止性问题被归结为判定 $\left(\mathbb{R}[X_1, \ldots, X_k]\right)^n$ 的一个子模是否包含一个“正”元素。