语法引导综合的不可实现性证明
Proving Unrealizability for Syntax-Guided Synthesis
摘要:
我们考虑自动建立给定的语法引导合成(SyGuS)问题是不可实现的(即,没有解决办法)。现有的技术有相当有限的能力来建立一般SyGuS实例中的语法描述的搜索空间包含无限多的程序的不可实现性。通过将综合问题的文法G编码为一个非确定性程序P_G,我们将不可实现性问题归结为可达性问题,使得如果一个标准的程序分析工具可以确定P_G中的某个断言总是成立,那么综合问题就是不可实现的。我们的方法可以用于增强任何现有的SyGus工具,以便它可以确定成功合成的程序q相对于某些语法成本是最优的-例如,q具有最少可能的if-then-else运算符。使用已知的技术,语法G可以被自动变换以精确地生成具有比q更低的成本的所有程序--例如,更少的条件表达式。我们的算法,然后可以应用到表明,由此产生的综合问题是不可实现的。我们在一个名为NOPE的工具中实现了所提出的技术。NOPE可以证明现有线性整数算术SyGus基准测试的59/134种变体的不可实现性,而所有现有的SyGus求解器都缺乏证明这些基准测试不可实现的能力,并且在它们上超时。
英文摘要:
Proving Unrealizability for Syntax-Guided Synthesis We consider the problem of automatically establishing that a given syntax-guided-synthesis (SyGuS) problem is unrealizable (i.e., has no solution). Existing techniques have quite limited ability to establish unrealizability for general SyGuS instances in which the grammar describing the search space contains infinitely many programs. By encoding the synthesis problem's grammar G as a nondeterministic program P_G, we reduce the unrealizability problem to a reachability problem such that, if a standard program-analysis tool can establish that a certain assertion in P_G always holds, then the synthesis problem is unrealizable. Our method can be used to augment any existing SyGus tool so that it can establish that a successfully synthesized program q is optimal with respect to some syntactic cost -- e.g., q has the fewest possible if-then-else operators. Using known techniques, grammar G can be automatically transformed to generate exactly all programs with lower cost than q -- e.g., fewer conditional expressions. Our algorithm can then be applied to show that the resulting synthesis problem is unrealizable. We implemented the proposed technique in a tool called NOPE. NOPE can prove unrealizability for 59/134 variants of existing linear-integer-arithmetic SyGus benchmarks, whereas all existing SyGus solvers lack the ability to prove that these benchmarks are unrealizable, and time out on them.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。