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

通过半定规划综合多项式程序的不变量

Synthesizing Invariants for Polynomial Programs by Semidefinite Programming

Hao Wu, Qiuye Wang, Bai Xue, Naijun Zhan, Lihong Zhi, Zhihong Yang

AI总结:

本文提出两种基于半定规划的新算法(Cluster和Mask),分别用于多项式程序不变量综合中的强和弱问题,平衡完备性与效率。

摘要:

基于约束求解的程序不变量综合方法采用参数化不变量模板,并将(归纳)不变量条件编码为约束。刻画所有有效参数赋值集合的问题被称为强不变量综合问题,而寻找具体有效参数赋值的问题被称为弱不变量综合问题。对于这两个问题,挑战在于求解或简化编码后的约束,这些约束通常是非凸的且缺乏高效的求解器。因此,现有工作要么依赖启发式优化技术(如双线性矩阵不等式),要么求助于通用求解器(如量词消去),导致完备性与效率之间的权衡。本文提出了两种利用半定规划(SDP)综合多项式程序不变量的新算法:(1)Cluster算法针对多项式不变量模板的强不变量综合问题。利用鲁棒优化技术,它求解一系列SDP松弛,并产生有效参数赋值集合的一系列越来越精确的欠逼近。我们证明了该算法在模板的特定鲁棒性假设下的可靠性、收敛性和弱完备性。此外,输出可以简化弱不变量综合问题。(2)Mask算法处理上述鲁棒性假设不成立、导致Cluster算法失效的弱不变量综合问题场景。它识别了一类特定的不变量模板子类,称为掩码模板,涉及参数化多项式等式和已知不等式。通过变量替换,算法将约束转换为适合SDP松弛的等价形式。

英文摘要:

Constraint-solving-based program invariant synthesis takes a parametric invariant template and encodes the (inductive) invariant conditions into constraints. The problem of characterizing the set of all valid parameter assignments is referred to as the strong invariant synthesis problem, while the problem of finding a concrete valid parameter assignment is called the weak invariant synthesis problem. For both problems, the challenge lies in solving or reducing the encoded constraints, which are generally non-convex and lack efficient solvers. Consequently, existing works either rely on heuristic optimization techniques (such as bilinear matrix inequalities) or resort to general-purpose solvers (such as quantifier elimination), leading to a trade-off between completeness and efficiency. In this paper, we propose two novel algorithms for synthesizing invariants of polynomial programs using semidefinite programming (SDP): (1) The Cluster algorithm targets the strong invariant synthesis problem for polynomial invariant templates. Leveraging robust optimization techniques, it solves a series of SDP relaxations and yields a sequence of increasingly precise under-approximations of the set of valid parameter assignments. We prove the algorithm's soundness, convergence, and weak completeness under a specific robustness assumption on templates. Moreover, the outputs can simplify the weak invariant synthesis problem. (2) The Mask algorithm addresses the weak invariant synthesis problem in scenarios where the aforementioned robustness assumption does not hold, rendering the Cluster algorithm ineffective. It identifies a specific subclass of invariant templates, termed masked templates, involving parameterized polynomial equalities and known inequalities. By applying variable substitution, the algorithm transforms constraints into an equivalent form amenable to SDP relaxations.

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

↑