归纳容器与共归纳容器的形式化
Formalising Inductive and Coinductive Containers
AI总结:
本文在Cubical Agda中形式化证明了容器保持最小与最大不动点,在不依赖UIP的条件下将容器函子理论从Set推广到类型的wild范畴,并展示了路径类型对共归纳证明的作用。
摘要:
容器刻画了编程中严格正数据类型的概念。容器的原始发展是在具有不交余积和W-类型的局部笛卡尔闭范畴(LCCC)的内部语言中完成的,并且全程隐含地假定了身份证明唯一性(UIP)。尽管有人声称这些发展也可以在外延马丁-洛夫类型论中得到解释,但这种解释并未被明确给出。在本文中,我们在Cubical Agda中给出了“容器保持最小与最大不动点”这一结果的形式化,从而给出了在内涵类型论中的表述。我们的证明不使用UIP,因此将原始结果从讨论Set上的容器函子推广到讨论类型之wild范畴上的容器函子。我们使用Cubical Agda的主要动机在于其路径类型恢复了互模拟与共归纳相等性之间的等价性。因此,除了在更一般的设定中发展容器理论之外,我们还展示了Cubical Agda的路径类型对共归纳证明的有用性。
英文摘要:
Containers capture the concept of strictly positive data types in programming. The original development of containers is done in the internal language of locally cartesian closed categories (LCCCs) with disjoint coproducts and W-types, and uniqueness of identity proofs (UIP) is implicitly assumed throughout. Although it is claimed that these developments can also be interpreted in extensional Martin-Löf type theory, this interpretation is not made explicit. In this paper, we present a formalisation of the results that 'containers preserve least and greatest fixed points' in Cubical Agda, thereby giving a formulation in intensional type theory. Our proofs do not make use of UIP and thereby generalise the original results from talking about container functors on Set to container functors on the wild category of types. Our main incentive for using Cubical Agda is that its path type restores the equivalence between bisimulation and coinductive equality. Thus, besides developing container theory in a more general setting, we also demonstrate the usefulness of Cubical Agda's path type to coinductive proofs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。