Faithful (meta-)encodings of programmable strategies into term rewriting systems
Horatiu Cirstea, Serguei Lenglet, Pierre-Etienne Moreau

TL;DR
This paper presents a generic, sound, and complete encoding of programmable rewriting strategies into plain term rewriting systems, enabling the use of existing termination analysis tools for strategy-controlled rewriting.
Contribution
It introduces a novel encoding method for rewriting strategies into term rewriting systems, compatible with existing termination tools and adaptable to many-sorted signatures and meta-level representations.
Findings
Encoding is sound and complete for classic strategies
Termination analysis tools can be applied to encoded strategies
Implementation in Tom shows comparable performance to native strategies
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
