On the Decidability of Termination for Polynomial Loops

Abstract

We consider the termination problem for triangular weakly non-linear loops (twn-loops) over some ring S\mathcal{S} like Z\mathbb{Z}, Q\mathbb{Q}, or R\mathbb{R}. Essentially, the guard of such a loop is an arbitrary Boolean formula over (possibly non-linear) polynomial inequations, and the body is a single assignment (x1,,xd)(c1x1+p1,,cdxd+pd)(x_1, \ldots, x_d) \longleftarrow (c_1 \cdot x_1 + p_1, \ldots, c_d \cdot x_d + p_d) where each xix_i is a variable, ciSc_i \in \mathcal{S}, and each pip_i is a (possibly non-linear) polynomial over S\mathcal{S} and the variables xi+1,,xdx_{i+1},\ldots,x_{d}. We present a reduction from the question of termination to the existential fragment of the first-order theory of S\mathcal{S} and R\mathbb{R}. For loops over R\mathbb{R}, our reduction entails decidability of termination. For loops over Z\mathbb{Z} and Q\mathbb{Q}, it proves semi-decidability of non-termination. Furthermore, we present a transformation to convert certain non-twn-loops into twn-form. Then the original loop terminates iff the transformed loop terminates over a specific subset of R\mathbb{R}, which can also be checked via our reduction. This transformation also allows us to prove tight complexity bounds for the termination problem for two important classes of loops which can always be transformed into twn-loops

    Similar works