In previous work we have proposed an efficient pattern matching algorithm based on the notion of set automaton. In this article we investigate how set automata can be exploited to implement efficient term rewriting procedures. These procedures interleave pattern matching steps and rewriting steps and thus smoothly integrate redex discovery and subterm replacement. Concretely, we propose an optimised algorithm for outermost rewriting of left-linear term rewriting systems, prove its correctness, and present the results of some implementation experiments.
翻译:在先前的工作中,我们基于设定自动图案的概念提出了高效模式匹配算法。在本条中,我们研究了如何利用设置自动数据来实施高效的术语重写程序。这些程序在模式间匹配步骤和重写步骤,从而顺利地整合了红外发现和子术语替换。具体地说,我们提出了最外部重写左线术语重写系统的优化算法,证明了其正确性,并介绍了一些实施实验的结果。