Abstract
We introduce a language-independent framework for reasoning about program inverters by conditional term rewriting systems. These systems can model the three fundamental forms of inversion, i.e., full, partial and semi-inversion, in declarative languages.
The correctness of the generic inversion algorithm introduced in this contribution is proven for all well-behaved rule inverters, and we demonstrate that this class of inverters encompasses several of the inversion algorithms published throughout the past years.
This new generic approach enables us to establish fundamental properties, e.g., orthogonality, for entire classes of well-behaved full inverters, partial inverters and semi-inverters regardless of their particular local rule inverters. We study known inverters as well as classes of inverters that yield left-to-right deterministic systems; left-to-right determinism is a desirable property, e.g., for functional programs; however, at the same time it is not generally a property of inverted systems. This generic approach enables a more systematic design of program inverters and fills a gap in our knowledge of program inversion.
The correctness of the generic inversion algorithm introduced in this contribution is proven for all well-behaved rule inverters, and we demonstrate that this class of inverters encompasses several of the inversion algorithms published throughout the past years.
This new generic approach enables us to establish fundamental properties, e.g., orthogonality, for entire classes of well-behaved full inverters, partial inverters and semi-inverters regardless of their particular local rule inverters. We study known inverters as well as classes of inverters that yield left-to-right deterministic systems; left-to-right determinism is a desirable property, e.g., for functional programs; however, at the same time it is not generally a property of inverted systems. This generic approach enables a more systematic design of program inverters and fills a gap in our knowledge of program inversion.
Originalsprog | Engelsk |
---|---|
Titel | Proceedings of the 22nd International Symposium on Principles and Practice of Declarative Programming, PPDP 2020 - Part of BOPL 2020 - Bologna Federated Conference on Programming Languages 2020 |
Antal sider | 14 |
Udgivelsessted | New York |
Forlag | Association for Computing Machinery |
Publikationsdato | 1 sep. 2020 |
Sider | 1-14 |
Artikelnummer | 3414089 |
ISBN (Elektronisk) | 978-1-4503-8821-4 |
DOI | |
Status | Udgivet - 1 sep. 2020 |
Begivenhed | 22nd International Symposium on Principles and Practice of Declarative Programming - Online Varighed: 8 sep. 2020 → 10 sep. 2020 Konferencens nummer: 22 http://www.cse.chalmers.se/~abela/ppdp20/ |
Symposium
Symposium | 22nd International Symposium on Principles and Practice of Declarative Programming |
---|---|
Nummer | 22 |
Lokation | Online |
Periode | 08/09/2020 → 10/09/2020 |
Andet | Online konference |
Internetadresse |