arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1705.08632cs.PL
收藏

可编程策略到术语重写系统的忠实(Meta)编码

Faithful (meta-)encodings of programmable strategies into term rewriting systems

Horatiu Cirstea, Serguei Lenglet, Pierre-Etienne Moreau

摘要:

重写是一种广泛应用于计算机科学和数理逻辑的形式主义。当使用重写作为编程或建模范例时,重写规则描述了想要操作的转换,并且重写策略用于控制其应用。这些策略的操作语义被普遍接受,并研究了分析特定策略终止性的方法。在本文中,我们提出了一个通用的编码的经典控制和遍历策略中使用的重写为基础的语言,如Maude的,Atomgo和汤姆到一个普通的长期重写系统。编码被证明是健全和完整的,作为一个直接的结果,建立的终止方法用于项重写系统可以应用于分析的终止策略控制的项重写系统。我们表明,编码的策略到长期重写系统可以很容易地适应处理许多排序的signa- tures和我们使用的元级表示的条款,以减少编码的大小。相应的实现在汤姆生成的术语重写系统兼容的语法终止工具,如AProVE和TTT 2,工具,证明是非常有效的(DIS)证明所生成的术语重写系统的终止。该方法也可以被看作是一个通用的策略编译器,可以集成到语言提供模式匹配原语;汤姆的实验表明,应用我们的编码导致性能媲美本地汤姆战略。

英文摘要:

Rewriting is a formalism widely used in computer science and mathematical logic. When using rewriting as a programming or modeling paradigm, the rewrite rules describe the transformations one wants to operate and rewriting strategies are used to con- trol their application. The operational semantics of these strategies are generally accepted and approaches for analyzing the termination of specific strategies have been studied. We propose in this paper a generic encoding of classic control and traversal strategies used in rewrite based languages such as Maude, Stratego and Tom into a plain term rewriting system. The encoding is proven sound and complete and, as a direct consequence, estab- lished termination methods used for term rewriting systems can be applied to analyze the termination of strategy controlled term rewriting systems. We show that the encoding of strategies into term rewriting systems can be easily adapted to handle many-sorted signa- tures and we use a meta-level representation of terms to reduce the size of the encodings. The corresponding implementation in Tom generates term rewriting systems compatible with the syntax of termination tools such as AProVE and TTT2, tools which turned out to be very effective in (dis)proving the termination of the generated term rewriting systems. The approach can also be seen as a generic strategy compiler which can be integrated into languages providing pattern matching primitives; experiments in Tom show that applying our encoding leads to performances comparable to the native Tom strategies.

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

↑