首页> 外文期刊>Logical Methods in Computer Science >Faithful (meta-)encodings of programmable strategies into term rewriting systems
【24h】

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

机译:可编程策略的忠实(元)编码到术语重写系统中

获取原文
           

摘要

Rewriting is a formalism widely used in computer science and mathematicallogic. When using rewriting as a programming or modeling paradigm, the rewriterules describe the transformations one wants to operate and rewritingstrategies are used to con- trol their application. The operational semanticsof these strategies are generally accepted and approaches for analyzing thetermination of specific strategies have been studied. We propose in this papera generic encoding of classic control and traversal strategies used in rewritebased languages such as Maude, Stratego and Tom into a plain term rewritingsystem. The encoding is proven sound and complete and, as a direct consequence,estab- lished termination methods used for term rewriting systems can beapplied to analyze the termination of strategy controlled term rewritingsystems. We show that the encoding of strategies into term rewriting systemscan be easily adapted to handle many-sorted signa- tures and we use ameta-level representation of terms to reduce the size of the encodings. Thecorresponding implementation in Tom generates term rewriting systems compatiblewith the syntax of termination tools such as AProVE and TTT2, tools whichturned out to be very effective in (dis)proving the termination of thegenerated term rewriting systems. The approach can also be seen as a genericstrategy compiler which can be integrated into languages providing patternmatching primitives; experiments in Tom show that applying our encoding leadsto performances comparable to the native Tom strategies.
机译:重写是一种形式主义,广泛用于计算机科学和数学逻辑。当使用重写作为编程或建模范例时,重写器描述了一个人想进行的转换,并使用重写策略来控制其应用。这些策略的操作语义被普遍接受,并且已经研究了分析特定策略终止的方法。我们在本文中提出将经典控制和遍历策略的通用编码(用于Maude,Stratego和Tom等基于重写的语言)转换为普通术语重写系统。编码被证明是可靠和完整的,直接的结果是,可以将用于术语重写系统的已确定的终止方法应用于分析策略控制的术语重写系统的终止。我们表明,将策略编码到术语重写系统中可以轻松地处理多种签名,并且我们使用术语的Ameta层表示来减小编码的大小。 Tom中的相应实现生成了与终止工具(例如AProVE和TTT2)的语法兼容的术语重写系统,这些工具被证明在(取消)所生成术语重写系统的终止方面非常有效。该方法也可以看作是通用策略编译器,可以集成到提供模式匹配原语的语言中。汤姆(Tom)中的实验表明,应用我们的编码可以带来与原始汤姆(Tom)策略可比的性能。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号