A simple, efficient, and correct compilation technique for left-linear Term Rewriting Systems (TRSs) is presented. TRSs are compiled into Minimal Term Rewriting Systems (MTRSs), a subclass of TRSs, presented in [KW95d]. In MTRSs, the rules have such a simple form that they can be seen as instructions for an easily implementable abstract machine, the Abstract Rewriting Machine (ARM). In the correctness proof, it is shown that the MTRS resulting from compilation of a TRS simulates neither too much (soundness) nor too little (completeness), nor does it introduce unwarranted infinite sequences (termination conservation). The compiler and its correctness proof are largely independent of the reduction strategy.

, ,
, , ,
CWI
Department of Computer Science [CS]
Extensible programming environments

Kamperman, J., & Walters, P. (1996). Simulating TRSs by minimal TRSs : a simple, efficient, and correct compilation technique. Department of Computer Science [CS]. CWI.