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

可满足性与综合模预言机

Satisfiability and Synthesis Modulo Oracles

University of Edinburgh(爱丁堡大学);UC Berkeley(加州大学伯克利分校);University of Iowa(爱荷华大学)

Elizabeth Polgreen, Andrew Reynolds, Sanjit A. Seshia

摘要:

在经典的程序合成算法中,例如反例引导归纳合成(CEGIS),算法在合成阶段和预言(验证)阶段之间交替。许多合成算法使用基于可满足性模理论(SMT)求解器的白盒预言机来提供反例。但是,如果白盒Oracle不可用或不容易使用,该怎么办?我们提出了一个框架来解决一般类的预言指导的合成问题,我们长期合成模预言。在这种情况下,预言机可以是黑盒子,具有由合成问题定义的查询-响应接口。作为该框架的一个必要组成部分,我们还形式化了可满足性模理论和预言机问题,并提出了一个算法来解决这个问题。我们实现了一个原型求解器的可满足性和合成模神谕,并证明,通过使用神谕执行功能不容易建模SMT约束,如递归函数或神谕,将编译和执行的代码,SMTO和SyMO能够解决超出标准SMT和合成求解器的能力的问题。

英文摘要:

In classic program synthesis algorithms, such as counterexample-guided inductive synthesis (CEGIS), the algorithms alternate between a synthesis phase and an oracle (verification) phase. Many synthesis algorithms use a white-box oracle based on satisfiability modulo theory (SMT) solvers to provide counterexamples. But what if a white-box oracle is either not available or not easy to work with? We present a framework for solving a general class of oracle-guided synthesis problems which we term synthesis modulo oracles. In this setting, oracles may be black boxes with a query-response interface defined by the synthesis problem. As a necessary component of this framework, we also formalize the problem of satisfiability modulo theories and oracles, and present an algorithm for solving this problem. We implement a prototype solver for satisfiability and synthesis modulo oracles and demonstrate that, by using oracles that execute functions not easily modeled in SMT-constraints, such as recursive functions or oracles that incorporate compilation and execution of code, SMTO and SyMO are able to solve problems beyond the abilities of standard SMT and synthesis solvers.

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

↑