arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1610.02247cs.LO
收藏

作为分配律的逻辑

Logic as a distributive law

Mike Stay, Lucius Gregory Meredith

摘要:

我们提出了一种算法,用于从计算演算的正式表示中导出空间行为类型系统。给定2-monad Calc:Catv $\to$ Cat表示范畴上的自由演算并重写,2-monad表示范畴上的自由布尔代数,得到了公式和证明的自由范畴的2-monad Form = BoolAlg + Calc.我们还得到了术语子集的2-monad BoolAlg $\circ$ Calc。公式的解释是自然变换$\interp{-}$:Form $\Rightarrow$ BoolAlg $\circ$ Calc由单子的单位和乘法定义,以及分配律变换$δ$:Calc $\circ$ BoolAlg $\Rightarrow$ BoolAlg $\circ$ Calc。这种解释与柯里-霍华德同构和可实现性都是一致的。我们给出了一个实现的“可能”模态操作符参数化的两个孔长期上下文,并显示,令人惊讶的是,箭头类型的构造函数中的$λ$演算是一个特定的情况。我们还展示了非平凡的公式编码的限制和活性的反射高阶变体的$π$演算的属性。

英文摘要:

We present an algorithm for deriving a spatial-behavioral type system from a formal presentation of a computational calculus. Given a 2-monad Calc: Catv$\to$ Cat for the free calculus on a category of terms and rewrites and a 2-monad BoolAlg for the free Boolean algebra on a category, we get a 2-monad Form = BoolAlg + Calc for the free category of formulae and proofs. We also get the 2-monad BoolAlg $\circ$ Calc for subsets of terms. The interpretation of formulae is a natural transformation $\interp{-}$: Form $\Rightarrow$ BoolAlg $\circ$ Calc defined by the units and multiplications of the monads and a distributive law transformation $δ$: Calc $\circ$ BoolAlg $\Rightarrow$ BoolAlg $\circ$ Calc. This interpretation is consistent both with the Curry-Howard isomorphism and with realizability. We give an implementation of the "possibly" modal operator parametrized by a two-hole term context and show that, surprisingly, the arrow type constructor in the $λ$-calculus is a specific case. We also exhibit nontrivial formulae encoding confinement and liveness properties for a reflective higher-order variant of the $π$-calculus.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑