arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1810.13261cs.LO
收藏

作为保护递归类型的路径类型的互模拟

Bisimulation as path type for guarded recursive types

Rasmus Ejlers Møgelberg, Niccolò Veltri

摘要:

在类型论中,共归纳类型用于表示进程,因此对于基于类型论的证明助手(如Coq和Agda)中的非终止反应式程序的形式化验证至关重要。目前,关于共归纳类型的编程和推理很困难,原因有两个:需要递归定义才能高效,以及内置标识类型和重要的双相似性概念缺乏重合。中野意义上的保护递归最近被认为是处理生产力问题的一种可能方法,允许将其编码在类型中。事实上,共归纳类型可以使用保护递归和时钟上的通用量化的组合来编码。本文研究了Ticked Cubical类型论中保护递归类型的双相似性概念,Ticked Cubical类型论是Cubical类型论的一个推广。我们证明了,对于任何函子,一个抽象的,范畴论的概念,双相似的最终守护余代数是等价的(在同伦类型论的意义上),以道路平等(原始概念的平等在立方类型论)。作为一个工作的例子,我们研究了一个守卫的概念标记的过渡系统,并表明,作为一个特殊的情况下的一般定理,路径平等符合适应通常的概念互模拟过程。特别是,这意味着保护递归可以用来给简单的等式推理证明的双相似性。这项工作应该被看作是使用上述编码获得双相似性作为共归纳类型的路径相等的一步。

英文摘要:

In type theory, coinductive types are used to represent processes, and are thus crucial for the formal verification of non-terminating reactive programs in proof assistants based on type theory, such as Coq and Agda. Currently, programming and reasoning about coinductive types is difficult for two reasons: The need for recursive definitions to be productive, and the lack of coincidence of the built-in identity types and the important notion of bisimilarity. Guarded recursion in the sense of Nakano has recently been suggested as a possible approach to dealing with the problem of productivity, allowing this to be encoded in types. Indeed, coinductive types can be encoded using a combination of guarded recursion and universal quantification over clocks. This paper studies the notion of bisimilarity for guarded recursive types in Ticked Cubical Type Theory, an extension of Cubical Type Theory with guarded recursion. We prove that, for any functor, an abstract, category theoretic notion of bisimilarity for the final guarded coalgebra is equivalent (in the sense of homotopy type theory) to path equality (the primitive notion of equality in cubical type theory). As a worked example we study a guarded notion of labelled transition systems, and show that, as a special case of the general theorem, path equality coincides with an adaptation of the usual notion of bisimulation for processes. In particular, this implies that guarded recursion can be used to give simple equational reasoning proofs of bisimilarity. This work should be seen as a step towards obtaining bisimilarity as path equality for coinductive types using the encodings mentioned above.

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

↑