A categorical foundation for structured reversible flowchart languages
Research output: Contribution to journal › Journal article › peer-review
Final published version, 289 KB, PDF document
Structured reversible ﬂowchart languages is a class of imperative reversible programming languages allowingfor a simple diagrammatic representation of control ﬂow built from a limited set of control ﬂow structures,as ordinary structured ﬂowcharts allow for conventional languages. This class includes the reversibleprogramming language Janus (without recursion), as well as more recently developed reversible programminglanguages such asR-COREandR-WHILE. In the present paper, we develop a categorical foundation for thisclass of languages based on inverse categories with joins. We generalize the notion of extensivity of restrictioncategories to one that may be accommodated by inverse categories, and use the resulting decision mapsto give a reversible representation of predicates and assertions. This leads to a categorical semantics forstructured reversible ﬂowcharts, from which we show that a program inverter can be extracted. Finally, weexemplify our approach by the development of a small structured reversible ﬂowchart language, use ourframework to both straightforwardly give it semantics and derive fundamental theorems about it, and discussfurther applications of decisions in reversible programming.
|Journal||Electronic Notes in Theoretical Computer Science|
|Publication status||Published - 2018|
Number of downloads are based on statistics from Google Scholar and www.ku.dk
No data available