Certifying algorithms and relevant properties of Reversible Primitive Permutations with Lean

Giacomo Maletto, Luca Roversi
1/25/2022
cs.LO

Official code: GiacomoMaletto/RPP (3 stars, TeX, MIT, last commit 2023-05-29).

Abstract

Reversible Primitive Permutations (RPP) are recursively defined functions designed to model Reversible Computation. We illustrate a proof, fully developed with the proof-assistant Lean, certifying that: "RPP can encode every Primitive Recursive Function".

Show full abstract

Our reworking of the original proof of that statement is conceptually simpler, fixes some bugs, suggests a new more primitive reversible iteration scheme for RPP, and, in order to keep formalization and semi-automatic proofs simple, led us to identify a single pattern that can generate some useful reversible algorithms in RPP: Cantor Pairing, Quotient/Reminder of integer division, truncated Square Root. Our Lean source code is available for experiments on Reversible Computation whose properties can be certified.

View on arXivView PDF

Code Implementations(1)

GiacomoMaletto/RPPOfficial100%
MIT
30TeX, CoqMar 30, 20213 years agoMIT

Similar Papers

Cite this paper

@article{maletto2022certifying,
  title  = {Certifying algorithms and relevant properties of Reversible Primitive Permutations with Lean},
  author = {Giacomo Maletto and Luca Roversi},
  year   = {2022},
  eprint = {2201.10443},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.10443}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.10443.svg)](https://codeofpaper.com/paper/2201.10443)

Discussion