English

Inversion by Partial Evaluation: A Reversible Interpreter Experiment

Programming Languages 2024-12-05 v1 Formal Languages and Automata Theory

Abstract

A computational limit of combining partial evaluation and program inversion is investigated. Using a reversible Turing machine interpreter, we show that the first Futamura and inversion projections can produce not only functionally but also textually equivalent programs. The construction of the interpreter in a reversible flowchart language is shown in full. Insights are provided on the practical interplay between reversible interpreters, program inverters, and partial evaluators. We conclude that both projections must be included in the program transformation toolbox.

Keywords

Cite

@article{arxiv.2412.03122,
  title  = {Inversion by Partial Evaluation: A Reversible Interpreter Experiment},
  author = {Robert Glück and Louis Marott Normann},
  journal= {arXiv preprint arXiv:2412.03122},
  year   = {2024}
}

Comments

In Proceedings PT 2024, arXiv:2412.01856. Dedicated to Peter Thiemann on the Occasion of his 60th Birthday

R2 v1 2026-06-28T20:22:37.322Z