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

产品的类型定向合成

Type-Directed Synthesis of Products

Jonathan Frankle

摘要:

软件综合-从规范生成完整的通用程序的过程-在过去几年中已成为一个热门的研究课题。几十年来,这个问题一直被认为是无法克服的:可能程序的搜索空间太大,无法有效地遍历。有效的约束求解的进步已经克服了这一障碍,使新一代的有效的合成系统。大多数现有系统将合成任务编译到低级SMT实例,牺牲高级语义信息,同时仅解决一阶问题(即,填充整数孔)。最近的工作采取了另一种方法,使用Curry-Howard同构和自动定理证明的技术来构造高阶程序与代数数据集。我的论文涉及扩展这种类型导向的合成引擎来处理产品类型,这需要对基础理论和工具本身进行重大修改。产品类型简化了其他语言功能,消除了原始合成系统中使用的其他变通方法中的变量构造器。作为逻辑合取的一种形式,乘积是可逆的,这使得合成系统可以配备一种高效的定理证明技术,称为聚焦,消除了证明搜索中固有的许多不确定性选择。这些理论上的改进为新版本的类型定向合成原型实现提供了信息,该原型实现与原始合成器相比仍然具有性能竞争力。类型导向的合成框架的一个显着优势是它的可扩展性,这篇论文是未来的努力,以提高系统的表达能力的路线图。

英文摘要:

Software synthesis - the process of generating complete, general-purpose programs from specifications - has become a hot research topic in the past few years. For decades the problem was thought to be insurmountable: the search space of possible programs is far too massive to efficiently traverse. Advances in efficient constraint solving have overcome this barrier, enabling a new generation of effective synthesis systems. Most existing systems compile synthesis tasks down to low-level SMT instances, sacrificing high-level semantic information while solving only first-order problems (i.e., filling integer holes). Recent work takes an alternative approach, using the Curry-Howard isomorphism and techniques from automated theorem proving to construct higher-order programs with algebraic datatypes. My thesis involved extending this type-directed synthesis engine to handle product types, which required significant modifications to both the underlying theory and the tool itself. Product types streamline other language features, eliminating variable-arity constructors among other workarounds employed in the original synthesis system. A form of logical conjunction, products are invertible, making it possible to equip the synthesis system with an efficient theorem-proving technique called focusing that eliminates many of the nondeterministic choices inherent in proof search. These theoretical enhancements informed a new version of the type-directed synthesis prototype implementation, which remained performance-competitive with the original synthesizer. A significant advantage of the type-directed synthesis framework is its extensibility; this thesis is a roadmap for future such efforts to increase the expressive power of the system.

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

↑