用Lean证明可逆基元置换的表达能力和算法

IF 0.7 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Journal of Logical and Algebraic Methods in Programming Pub Date : 2023-10-23 DOI:10.1016/j.jlamp.2023.100923
Giacomo Maletto , Luca Roversi
{"title":"用Lean证明可逆基元置换的表达能力和算法","authors":"Giacomo Maletto ,&nbsp;Luca Roversi","doi":"10.1016/j.jlamp.2023.100923","DOIUrl":null,"url":null,"abstract":"<div><p>Reversible primitive permutations (<span>RPP</span>) is a class of recursive functions that models reversible computation. We present a proof, which has been verified using the proof-assistant <span>Lean</span>, that demonstrates <span>RPP</span> can encode every primitive recursive function (<span>PRF</span>-completeness) and that each <span>RPP</span> can be encoded as a primitive recursive function (<span>PRF</span>-soundness). Our proof of <span>PRF</span>-completeness is simpler and fixes some errors in the original proof, while also introducing a new reversible iteration scheme for <span>RPP</span>. By keeping the formalization and semi-automatic proofs simple, we are able to identify a single programming pattern that can generate a set of reversible algorithms within <span>RPP</span>: Cantor pairing, integer division quotient/remainder, and truncated square root. Finally, <span>Lean</span> source code is available for experiments on reversible computation whose properties can be certified.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100923"},"PeriodicalIF":0.7000,"publicationDate":"2023-10-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S2352220823000779/pdfft?md5=ad2af14a775f13438b00a61e5119077a&pid=1-s2.0-S2352220823000779-main.pdf","citationCount":"0","resultStr":"{\"title\":\"Certifying expressive power and algorithms of reversible primitive permutations with Lean\",\"authors\":\"Giacomo Maletto ,&nbsp;Luca Roversi\",\"doi\":\"10.1016/j.jlamp.2023.100923\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>Reversible primitive permutations (<span>RPP</span>) is a class of recursive functions that models reversible computation. We present a proof, which has been verified using the proof-assistant <span>Lean</span>, that demonstrates <span>RPP</span> can encode every primitive recursive function (<span>PRF</span>-completeness) and that each <span>RPP</span> can be encoded as a primitive recursive function (<span>PRF</span>-soundness). Our proof of <span>PRF</span>-completeness is simpler and fixes some errors in the original proof, while also introducing a new reversible iteration scheme for <span>RPP</span>. By keeping the formalization and semi-automatic proofs simple, we are able to identify a single programming pattern that can generate a set of reversible algorithms within <span>RPP</span>: Cantor pairing, integer division quotient/remainder, and truncated square root. Finally, <span>Lean</span> source code is available for experiments on reversible computation whose properties can be certified.</p></div>\",\"PeriodicalId\":48797,\"journal\":{\"name\":\"Journal of Logical and Algebraic Methods in Programming\",\"volume\":\"136 \",\"pages\":\"Article 100923\"},\"PeriodicalIF\":0.7000,\"publicationDate\":\"2023-10-23\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://www.sciencedirect.com/science/article/pii/S2352220823000779/pdfft?md5=ad2af14a775f13438b00a61e5119077a&pid=1-s2.0-S2352220823000779-main.pdf\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Logical and Algebraic Methods in Programming\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S2352220823000779\",\"RegionNum\":4,\"RegionCategory\":\"数学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"COMPUTER SCIENCE, THEORY & METHODS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Logical and Algebraic Methods in Programming","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2352220823000779","RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0

摘要

可逆基元置换(RPP)是一类模拟可逆计算的递归函数。我们提出了一个证明,并使用证明辅助Lean进行了验证,证明了RPP可以编码每个原始递归函数(prf完备性),每个RPP可以编码为一个原始递归函数(prf健全性)。我们的prf完备性证明更简单,修正了原证明中的一些错误,同时也引入了一种新的可逆RPP迭代方案。通过保持形式化和半自动证明的简单性,我们能够确定一个单一的编程模式,该模式可以在RPP中生成一组可逆算法:Cantor配对、整数除法商/余数和截断平方根。最后,提供了用于可逆计算实验的精益源代码,其特性可以得到验证。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Certifying expressive power and algorithms of reversible primitive permutations with Lean

Reversible primitive permutations (RPP) is a class of recursive functions that models reversible computation. We present a proof, which has been verified using the proof-assistant Lean, that demonstrates RPP can encode every primitive recursive function (PRF-completeness) and that each RPP can be encoded as a primitive recursive function (PRF-soundness). Our proof of PRF-completeness is simpler and fixes some errors in the original proof, while also introducing a new reversible iteration scheme for RPP. By keeping the formalization and semi-automatic proofs simple, we are able to identify a single programming pattern that can generate a set of reversible algorithms within RPP: Cantor pairing, integer division quotient/remainder, and truncated square root. Finally, Lean source code is available for experiments on reversible computation whose properties can be certified.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Journal of Logical and Algebraic Methods in Programming
Journal of Logical and Algebraic Methods in Programming COMPUTER SCIENCE, THEORY & METHODS-LOGIC
CiteScore
2.60
自引率
22.20%
发文量
48
期刊介绍: The Journal of Logical and Algebraic Methods in Programming is an international journal whose aim is to publish high quality, original research papers, survey and review articles, tutorial expositions, and historical studies in the areas of logical and algebraic methods and techniques for guaranteeing correctness and performability of programs and in general of computing systems. All aspects will be covered, especially theory and foundations, implementation issues, and applications involving novel ideas.
期刊最新文献
Editorial Board Generation of algebraic data type values using evolutionary algorithms Logic and Calculi for All on the occasion of Luís Barbosa’s 60th birthday First order Büchi automata and their application to verification of LTL specifications Tuning similarity-based fuzzy logic programs
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1