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

程序合成是 $Σ_3^0$-完备的

Program Synthesis is $Σ_3^0$-Complete

Jinwoo Kim

AI总结:

本文证明程序合成在算术层级中是 $Σ_3^0$-完备的,通过构造性编码为一阶公式并归约COF问题,首次给出其一般一阶刻画,并分析变体难度。

摘要:

本文从计算复杂性的角度考虑程序合成问题,提出疑问:确定一个给定的合成问题是否有解有多难?为了回答这个问题,本文研究了一种基本的命令式、图灵完备语言IMP的程序合成,并证明了在该语言中程序合成在算术层级中是 $Σ_3^0$-完备的。这一事实的证明依赖于将程序合成(通常表述为二阶查询)完全构造性地编码为标准算术模型(即皮亚诺算术)中的一阶公式。构造这样的公式后,我们便可以将COF(仅在有限输入集上发散的函数的集合)的判定问题——众所周知是一个 $Σ_3^0$-完备问题——归约到所构造的合成的一阶表示上。除这一主要结果外,我们还考虑了合成问题变体的难度,例如先前工作中为使程序合成更易处理而引入的变体(如基于有限示例的合成)。据我们所知,本文是首次对一般程序合成给出其一阶刻画,并精确定义了合成问题及其变体的可计算性。

英文摘要:

This paper considers program synthesis in the context of computational hardness, asking the question: How hard is it to determine whether a given synthesis problem has a solution or not? To answer this question, this paper studies program synthesis for a basic imperative, Turing-complete language IMP, for which this paper proves that program synthesis is $Σ_3^0$-\emph{complete} in the arithmetical hierarchy. The proof of this fact relies on a fully constructive encoding of program synthesis (which is typically formulated as a second-order query) as a first-order formula in the standard model of arithmetic (i.e., Peano arithmetic). Constructing such a formula then allows us to reduce the decision problem for COF (the set of functions which diverge only on a finite set of inputs), which is well-known to be a $Σ_3^0$-complete problem, into the constructed first-order representation of synthesis. In addition to this main result, we also consider the hardness of variants of synthesis problems, such as those introduced in previous work to make program synthesis more tractable (e.g., synthesis over finite examples). To the best of our knowledge, this paper is the first to give a first-order characterization of program synthesis in general, and precisely define the computability of synthesis problems and their variants.

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

↑