arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.11588cs.LO
收藏

三角多项式循环的终止性

Termination of Triangular Polynomial Loops

Marcel Hark, Florian Frohn, Jürgen Giesl

AI总结:

研究环 $\mathcal{S}$ 上三角弱非线性循环(twn-loops)的终止性问题,通过将其归约到一阶理论的存在性片段证明可判定性与半可判定性,并提出循环转换、线性化技术及多项式时间的复杂度界限。

摘要:

我们考虑在环 $\mathcal{S}$(如 $\mathbb{Z}$、$\mathbb{Q}$ 或 $\mathbb{R}$)上证明三角弱非线性循环(twn-loops)终止的问题。此类循环的守卫条件是关于(可能为非线性的)多项式不等式的任意无量词布尔公式,其循环体为单一赋值形式 $(x_1, \ldots, x_d) \longleftarrow (c_1 \cdot x_1 + p_1, \ldots, c_d \cdot x_d + p_d)$,其中每个 $x_i$ 是变量,$c_i \in \mathcal{S}$,每个 $p_i$ 是关于 $\mathcal{S}$ 和变量 $x_{i+1},\ldots,x_{d}$ 的(可能非线性的)多项式。我们证明,终止性问题可归约到 $\mathcal{S}$ 的一阶理论的存在性片段。对于 $\mathbb{R}$ 上的循环,我们的归约意味着终止性的可判定性。对于 $\mathbb{Z}$ 和 $\mathbb{Q}$ 上的循环,它证明了非终止性的半可判定性。此外,我们提出了一种将某些非 twn-loops 转换为 twn 形式的变换。当且仅当转换后的循环在 $\mathbb{R}$ 的特定子集上终止时,原始循环终止,这同样可通过我们的归约进行检查。而且,我们在该设定下形式化了一种将 twn-loops 的(更新操作)线性化的技术,并分析了其复杂度。基于这些结果,我们证明了 twn-loops 终止性问题的复杂度界限,以及对于两类总可转换为 twn-loops 的重要循环类的紧致界限。最后,我们证明存在一类重要的线性循环,其判定过程能产生高效的终止性分析过程,即判定终止性的参数化复杂度为多项式时间。

英文摘要:

We consider the problem of proving termination for triangular weakly non-linear loops (twn-loops) over some ring $\mathcal{S}$ like $\mathbb{Z}$, $\mathbb{Q}$, or $\mathbb{R}$. The guard of such a loop is an arbitrary quantifier-free Boolean formula over (possibly non-linear) polynomial inequations, and the body is a single assignment of the form $(x_1, \ldots, x_d) \longleftarrow (c_1 \cdot x_1 + p_1, \ldots, c_d \cdot x_d + p_d)$ where each $x_i$ is a variable, $c_i \in \mathcal{S}$, and each $p_i$ is a (possibly non-linear) polynomial over $\mathcal{S}$ and the variables $x_{i+1},\ldots,x_{d}$. We show that the question of termination can be reduced to the existential fragment of the first-order theory of $\mathcal{S}$. For loops over $\mathbb{R}$, our reduction implies decidability of termination. For loops over $\mathbb{Z}$ and $\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 $\mathbb{R}$, which can also be checked via our reduction. Moreover, we formalize a technique to linearize (the updates of) twn-loops in our setting and analyze its complexity. Based on these results, we prove complexity bounds for the termination problem of twn-loops as well as tight bounds for two important classes of loops which can always be transformed into twn-loops. Finally, we show that there is an important class of linear loops where our decision procedure results in an efficient procedure for termination analysis, i.e., where the parameterized complexity of deciding termination is polynomial.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑