独立量化公式模理论的程序合成
Program Synthesis as Dependency Quantified Formula Modulo Theory
摘要:
给定在背景理论$\mathbb{T}$上定义的输入$X$和输出$Y$上的规范$φ(X,Y)$,程序合成的问题是设计程序$f$,使得$Y=f(X)$满足规范$φ$。在过去的十年中,语法引导合成(SyGuS)已经成为程序合成的主要方法,其中除了规范$φ$之外,最终用户还指定语法$L$以辅助底层合成引擎。本文研究了无语法综合技术的可行性,定义为$\mathbb{T}$ -约束综合的子类。我们证明了$\mathbb{T}$约束合成可以简化为DQF($\mathbb{T}$),即,找到一个独立的量化公式模理论的证明的问题。当底层理论是位向量理论时,相应的DQF(BV)问题可以进一步简化为依赖量化布尔公式(DQBF)。我们依靠在DQBF解决的进展,设计DQBF为基础的合成器,优于特定领域的程序合成技术,从而定位DQBF作为核心表示语言的程序合成。我们的实证分析表明,$\mathbb{T}$约束合成可以实现显着更好的性能比语法指导的方法。此外,通用的DQBF求解器执行与特定领域的合成技术。
英文摘要:
Given a specification $φ(X,Y)$ over inputs $X$ and output $Y$, defined over a background theory $\mathbb{T}$, the problem of program synthesis is to design a program $f$ such that $Y=f(X)$ satisfies the specification $φ$. Over the past decade, syntax-guided synthesis (SyGuS) has emerged as a dominant approach for program synthesis where in addition to the specification $φ$, the end-user also specifies a grammar $L$ to aid the underlying synthesis engine. This paper investigates the feasibility of synthesis techniques without grammar, a sub-class defined as $\mathbb{T}$-constrained synthesis. We show that $\mathbb{T}$-constrained synthesis can be reduced to DQF($\mathbb{T}$), i.e., to the problem of finding a witness of a Dependency Quantified Formula Modulo Theory. When the underlying theory is the theory of bitvectors, the corresponding DQF(BV) problem can be further reduced to Dependency Quantified Boolean Formulas (DQBF). We rely on the progress in DQBF solving to design DQBF-based synthesizers that outperform the domain-specific program synthesis techniques, thereby positioning DQBF as a core representation language for program synthesis. Our empirical analysis shows that $\mathbb{T}$-constrained synthesis can achieve significantly better performance than syntax-guided approaches. Furthermore, the general-purpose DQBF solvers perform on par with domain-specific synthesis techniques.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。