Download PDFOpen PDF in browserOn Transforming Imperative Programs into Logically Constrained Term Rewrite Systems via Injective Functions from Configurations to TermsEasyChair Preprint 867316 pages•Date: August 12, 2022AbstractTo transform an imperative program into a logically constrained term rewrite system (LCTRS, for short), previous work converts a statement list to rewrite rules in a stepwise manner, and proves the correctness along such a conversion and the big-step semantics of the program. On the other hand, the small-step semantics of a programming language comprises of inference rules that define transition steps of configurations. Partial instances of such inference rules are almost the same as rewrite rules in the transformed LCTRS. In this paper, we aim at establishing a framework for plain definitions and correctness proofs of transformations from programs into LCTRSs. To this end, for the transformation in previous work, we show an injective function from configurations to terms, and reformulate the transformation by means of the injective function. The injective function maps a transition step to a reduction step, and results in a plain correctness proof. Keyphrases: imperative program, program transformation, program verification, term rewriting
|