A categorical foundation for structured reversible flowchart languages: Soundness and adequacy

R. Glück, R. Kaarsgaard
{"title":"A categorical foundation for structured reversible flowchart languages: Soundness and adequacy","authors":"R. Glück, R. Kaarsgaard","doi":"10.23638/LMCS-14(3:16)2018","DOIUrl":null,"url":null,"abstract":"Abstract Structured reversible flowchart languages is a class of imperative reversible programming languages allowing for a simple diagrammatic representation of control flow built from a limited set of control flow structures, as ordinary structured flowcharts allow for conventional languages. This class includes the reversible programming language Janus (without recursion), as well as more recently developed reversible programming languages such as R-CORE and R-WHILE. In the present paper, we develop a categorical foundation for this class of languages based on inverse categories with joins. We generalize the notion of extensivity of restriction categories to one that may be accommodated by inverse categories, and use the resulting decision maps to give a reversible representation of predicates and assertions. This leads to a categorical semantics for structured reversible flowcharts, from which we show that a program inverter can be extracted. Finally, we exemplify our approach by the development of a small structured reversible flowchart language, use our framework to both straightforwardly give it semantics and derive fundamental theorems about it, and discuss further applications of decisions in reversible programming.","PeriodicalId":215379,"journal":{"name":"Electr. Notes Theor. Comput. Sci.","volume":"65 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-10-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"31","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Electr. Notes Theor. Comput. Sci.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.23638/LMCS-14(3:16)2018","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 31

Abstract

Abstract Structured reversible flowchart languages is a class of imperative reversible programming languages allowing for a simple diagrammatic representation of control flow built from a limited set of control flow structures, as ordinary structured flowcharts allow for conventional languages. This class includes the reversible programming language Janus (without recursion), as well as more recently developed reversible programming languages such as R-CORE and R-WHILE. In the present paper, we develop a categorical foundation for this class of languages based on inverse categories with joins. We generalize the notion of extensivity of restriction categories to one that may be accommodated by inverse categories, and use the resulting decision maps to give a reversible representation of predicates and assertions. This leads to a categorical semantics for structured reversible flowcharts, from which we show that a program inverter can be extracted. Finally, we exemplify our approach by the development of a small structured reversible flowchart language, use our framework to both straightforwardly give it semantics and derive fundamental theorems about it, and discuss further applications of decisions in reversible programming.
结构化可逆流程图语言的分类基础:健全性和充分性
结构化可逆流程图语言是一类命令式可逆编程语言,允许从有限的控制流结构集构建控制流的简单图解表示,就像普通结构化流程图允许传统语言一样。这个类包括可逆编程语言Janus(没有递归),以及最近开发的可逆编程语言,如R-CORE和R-WHILE。在本文中,我们基于带连接的逆范畴为这类语言建立了范畴基础。我们将限制类别的广泛性概念推广到可以由逆类别容纳的概念,并使用所得到的决策映射来给出谓词和断言的可逆表示。这导致了结构化可逆流程图的分类语义,从中我们可以提取程序逆变器。最后,我们通过开发一种小型结构化可逆流程图语言来举例说明我们的方法,使用我们的框架直接给出语义并推导关于它的基本定理,并讨论决策在可逆规划中的进一步应用。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信