Symmetries in Reversible Programming: From Symmetric Rig Groupoids to Reversible Programming Languages. Choudhury, V., Karwowski, J., & Sabry, A. Proceedings of the ACM on Programming Languages, 6(POPL):6, January, 2022.
Paper doi abstract bibtex 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.
@article{Choudhury2022,
title = {Symmetries in Reversible Programming: From Symmetric Rig Groupoids to Reversible Programming Languages},
author = {Choudhury, Vikraman and Karwowski, Jacek and Sabry, Amr},
year = {2022},
month = jan,
journal = pacmpl,
volume = {6},
number = {POPL},
eid = {6},
pages = {6},
doi = {10.1145/3498667},
url = {https://github.com/vikraman/popl22-symmetries-artifact},
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 {\`a} 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.},
keywords = {groups, reversible computing, homotopy type theory, type isomorphisms, groupoids, univalent foundations, reversible programming languages, permutations, rewriting},
bibsource = qplbib
}
Downloads: 0
{"_id":"8J4DTmuAf6xdDDYie","bibbaseid":"choudhury-karwowski-sabry-symmetriesinreversibleprogrammingfromsymmetricriggroupoidstoreversibleprogramminglanguages-2022","author_short":["Choudhury, V.","Karwowski, J.","Sabry, A."],"bibdata":{"bibtype":"article","type":"article","title":"Symmetries in Reversible Programming: From Symmetric Rig Groupoids to Reversible Programming Languages","author":[{"propositions":[],"lastnames":["Choudhury"],"firstnames":["Vikraman"],"suffixes":[]},{"propositions":[],"lastnames":["Karwowski"],"firstnames":["Jacek"],"suffixes":[]},{"propositions":[],"lastnames":["Sabry"],"firstnames":["Amr"],"suffixes":[]}],"year":"2022","month":"January","journal":"Proceedings of the ACM on Programming Languages","volume":"6","number":"POPL","eid":"6","pages":"6","doi":"10.1145/3498667","url":"https://github.com/vikraman/popl22-symmetries-artifact","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.","keywords":"groups, reversible computing, homotopy type theory, type isomorphisms, groupoids, univalent foundations, reversible programming languages, permutations, rewriting","bibsource":"Quantum Programming Languages & Verification Bibliography, https://git.io/qpl-bib","bibtex":"@article{Choudhury2022,\n title = {Symmetries in Reversible Programming: From Symmetric Rig Groupoids to Reversible Programming Languages},\n author = {Choudhury, Vikraman and Karwowski, Jacek and Sabry, Amr},\n year = {2022},\n month = jan,\n journal = pacmpl,\n volume = {6},\n number = {POPL},\n eid = {6},\n pages = {6},\n doi = {10.1145/3498667},\n url = {https://github.com/vikraman/popl22-symmetries-artifact},\n 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 {\\`a} 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.},\n keywords = {groups, reversible computing, homotopy type theory, type isomorphisms, groupoids, univalent foundations, reversible programming languages, permutations, rewriting},\n bibsource = qplbib\n}\n\n","author_short":["Choudhury, V.","Karwowski, J.","Sabry, A."],"key":"Choudhury2022","id":"Choudhury2022","bibbaseid":"choudhury-karwowski-sabry-symmetriesinreversibleprogrammingfromsymmetricriggroupoidstoreversibleprogramminglanguages-2022","role":"author","urls":{"Paper":"https://github.com/vikraman/popl22-symmetries-artifact"},"keyword":["groups","reversible computing","homotopy type theory","type isomorphisms","groupoids","univalent foundations","reversible programming languages","permutations","rewriting"],"metadata":{"authorlinks":{}}},"bibtype":"article","biburl":"https://raw.githubusercontent.com/QuantumPL/bib/main/bbt.bib","dataSources":["JG9W34HAXfSxsC6ML"],"keywords":["groups","reversible computing","homotopy type theory","type isomorphisms","groupoids","univalent foundations","reversible programming languages","permutations","rewriting"],"search_terms":["symmetries","reversible","programming","symmetric","rig","groupoids","reversible","programming","languages","choudhury","karwowski","sabry"],"title":"Symmetries in Reversible Programming: From Symmetric Rig Groupoids to Reversible Programming Languages","year":2022}