Affiliation:
1. Indiana University, USA / University of Cambridge, UK
2. University of Warsaw, Poland
3. Indiana University, USA
Abstract
The Pi family of reversible programming languages for boolean circuits is presented as a syntax of combinators witnessing type isomorphisms of algebraic data types. In this paper, we give a denotational semantics for this language, using weak groupoids à la Homotopy Type Theory, and show how to derive an equational theory for it, presented by 2-combinators witnessing equivalences of type isomorphisms.
We establish a correspondence between the syntactic groupoid of the language and a formally presented univalent subuniverse of finite types. The correspondence relates 1-combinators to 1-paths, and 2-combinators to 2-paths in the universe, which is shown to be sound and complete for both levels, forming an equivalence of groupoids. We use this to establish a Curry-Howard-Lambek correspondence between Reversible Logic, Reversible Programming Languages, and Symmetric Rig Groupoids, by showing that the syntax of Pi is presented by the free symmetric rig groupoid, given by finite sets and bijections.
Using the formalisation of our results, we perform normalisation-by-evaluation, verification and synthesis of reversible logic gates, motivated by examples from quantum computing. We also show how to reason about and transfer theorems between different representations of reversible circuits.
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference97 articles.
1. Abstract Scalars, Loops, and Free Traced and Strongly Compact Closed Categories
2. A structural approach to reversible computation
3. Carlo Angiuli . 2019. Computational Semantics of CartesianCubical Type Theory. Ph. D. Dissertation . Carnegie Mellon University . Pittsburgh, PA. https://www.cs.cmu.edu/~cangiuli/thesis/thesis.pdf Carlo Angiuli. 2019. Computational Semantics of CartesianCubical Type Theory. Ph. D. Dissertation. Carnegie Mellon University. Pittsburgh, PA. https://www.cs.cmu.edu/~cangiuli/thesis/thesis.pdf
Cited by
6 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. How to Bake a Quantum Π;Proceedings of the ACM on Programming Languages;2024-08-15
2. The Relational Machine Calculus;Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science;2024-07-08
3. With a Few Square Roots, Quantum Computing Is as Easy as Pi;Proceedings of the ACM on Programming Languages;2024-01-05
4. Compositional Reversible Computation;Lecture Notes in Computer Science;2024
5. A Fresh Look at Commutativity: Free Algebraic Structures via Fresh Lists;Programming Languages and Systems;2023