基于可重用模板的递归ADT变换综合
Synthesis of Recursive ADT Transformations from Reusable Templates
摘要:
最近的工作提出了一种有前途的方法,以提高可扩展性的程序合成,允许用户提供一个句法模板,约束的空间的潜在的程序。不幸的是,创建模板通常需要用户付出不小的努力,这阻碍了合成器的可用性。我们提出了一个解决这个问题的递归变换的背景下,代数数据类型。我们的方法依赖于多态合成结构:一个小但强大的扩展语言的语法模板,这使得它可以定义一个程序空间在一个简洁和高度可重用的方式,而在同一时间保留了传统的模板的可扩展性的好处。这种方法使最终用户能够重新使用库中的预定义模板来解决各种各样的问题。本文还介绍了一种新的优化,进一步提高了系统的性能和可扩展性。我们评估了一组基准测试的方法,其中最显着的包括脱糖功能的lambda演算,这迫使合成器发现教会编码对和布尔运算。
英文摘要:
Recent work has proposed a promising approach to improving scalability of program synthesis by allowing the user to supply a syntactic template that constrains the space of potential programs. Unfortunately, creating templates often requires nontrivial effort from the user, which impedes the usability of the synthesizer. We present a solution to this problem in the context of recursive transformations on algebraic data-types. Our approach relies on polymorphic synthesis constructs: a small but powerful extension to the language of syntactic templates, which makes it possible to define a program space in a concise and highly reusable manner, while at the same time retains the scalability benefits of conventional templates. This approach enables end-users to reuse predefined templates from a library for a wide variety of problems with little effort. The paper also describes a novel optimization that further improves the performance and scalability of the system. We evaluated the approach on a set of benchmarks that most notably includes desugaring functions for lambda calculus, which force the synthesizer to discover Church encodings for pairs and boolean operations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。