可逆程序设计中的对称性:从对称Rig广群到可逆程序设计语言
Symmetries in Reversible Programming: From Symmetric Rig Groupoids to Reversible Programming Languages
摘要:
布尔电路可逆程序设计语言的$\mathitΠ$族被提出作为见证代数数据集类型同构的组合子的语法。在本文中,我们给出了这种语言的指称语义,使用同伦类型论的弱群胚的语言,并展示了如何推导出它的方程理论,由2-组合子证明可逆电路的等价性。我们建立一个对应的语法广群的语言和一个正式提出的有限类型的单叶子宇宙。对应关系1-combinators的1-路径,2-combinators的2-路径在宇宙中,这被证明是健全的和完整的两个层次,建立充分的抽象和充分性。我们已经建立的Curry-Howard对应$\mathitΠ$的可逆逻辑,可逆程序设计语言和对称钻机广群之间的Curry-Howard-Lambek对应,表明语法的$\mathitΠ$是由自由对称钻机广群,有限集和排列。我们的证明使用的技术,从理论的组介绍和重写系统来解决对称群的字的问题。利用我们结果的形式化,我们展示了如何通过评估、验证和合成可逆逻辑门来进行规范化,并以量子计算的示例为动力。
英文摘要:
The $\mathitΠ$ family of reversible programming languages for boolean circuits is presented as a syntax of combinators witnessing type isomorphisms of algebraic datatypes. In this paper, we give a denotational semantics for this language, using the language of weak groupoids à la Homotopy Type Theory, and show how to derive an equational theory for it, presented by 2-combinators witnessing equivalences of reversible circuits. 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, establishing full abstraction and adequacy. We extend the already established Curry-Howard correspondence for $\mathitΠ$ to a Curry-Howard-Lambek correspondence between Reversible Logic, Reversible Programming Languages, and Symmetric Rig Groupoids, by showing that the syntax of $\mathitΠ$ is presented by the free symmetric rig groupoid, given by finite sets and permutations. Our proof uses techniques from the theory of group presentations and rewriting systems to solve the word problem for symmetric groups. Using the formalisation of our results, we show how to perform normalisation-by-evaluation, verification, and synthesis of reversible logic gates, motivated by examples from quantum computing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。