首页> 外文OA文献 >A faithful encoding of programmable strategies into term rewriting systems
【2h】

A faithful encoding of programmable strategies into term rewriting systems

机译:将可编程策略忠实编码为术语重写系统

摘要

Rewriting is a formalism widely used in computer science andmathematical logic. When using rewriting as a programming or modeling paradigm, the rewrite rules describe the transformations one wants to operate and declarative rewriting strategies are used to control 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, established termination methods used for term rewriting systems can be applied to analyze the termination of strategy controlled term rewriting systems. The corresponding implementation in Tom generates term rewriting systems compatible with the syntax of termination tools such as AAProVE 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; this has been experimented forTom and performances comparable to the native Tom strategies have been observed.
机译:重写是一种形式主义,广泛用于计算机科学和数学逻辑中。当使用重写作为编程或建模范例时,重写规则描述了一个人想进行的转换,而声明式重写策略则用于控制其应用。这些策略的操作语义被普遍接受,并且已经研究了分析特定策略终止的方法。我们在本文中提出将经典控制和遍历策略的通用编码用于基于重写的语言(如Maude,Stratego和Tom)中的普通术语重写系统。编码被证明是可靠和完整的,并且直接的结果是,可以将用于术语重写系统的已建立的终止方法应用于分析策略控制的术语重写系统的终止。 Tom中的相应实现生成了与终止工具(如AAProVE和TTT2)的语法兼容的术语重写系统,事实证明这些工具在(取消)所生成的术语重写系统的终止方面非常有效。该方法也可以看作是通用策略编译器,可以将其集成到提供模式匹配原语的语言中。已针对Tom进行了实验,并观察到了与汤姆本机策略可比的性能。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号