English

Certifying algorithms and relevant properties of Reversible Primitive Permutations with Lean

Logic in Computer Science 2022-06-30 v2

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". 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.

Keywords

Cite

@article{arxiv.2201.10443,
  title  = {Certifying algorithms and relevant properties of Reversible Primitive Permutations with Lean},
  author = {Giacomo Maletto and Luca Roversi},
  journal= {arXiv preprint arXiv:2201.10443},
  year   = {2022}
}

Comments

17 pages, 13 figures. Authors' version of https://link.springer.com/chapter/10.1007/978-3-031-09005-9_8

R2 v1 2026-06-24T09:02:17.676Z