迈向立方体阿格达中的计算UIP
Towards Computational UIP in Cubical Agda
AI总结:
本研究分析了立方体阿格达中实现UIP的计算规则,并实现了一种无粘贴类型的变种,为未来实现UIP奠定基础。
摘要:
立方类型理论,如由立方体阿格达实现的,相较于内延马丁-洛夫类型理论的一些优势包括商归纳类型(QITs),它们作为更高归纳类型的实例存在,以及函数延伸性,后者在立方类型理论中可以被证明。然而,HoTT具有无限层次的相等性,这可能在形式化中变得繁琐。幸运的是,QITs和函数延伸性在立方类型理论的相等性层级被截断到仅限同伦集合(h-集合)时仍然得以保留。换句话说,移除立方类型理论中的统一公理,并转而假设一个矛盾的公理:同一性证明的唯一性(UIP)公理。由于统一性在立方类型理论中通过所谓的粘贴类型被证明,因此已知可以首先移除粘贴类型(从而移除统一性),然后对所有相等性进行集合截断(本质上假设UIP),如XTT所示。结果是一种“h-集合立方类型理论”,它保留了诸如函数延伸性和QITs等特性。然而,在立方体阿格达中,目前只有两种不令人满意的途径可以实现h-集合立方类型理论。第一种是放弃理论的可计算性并直接假设UIP公理,第二种是使用标准结果“类型构造物保持h-层级”来手动证明每个定义类型的UIP。然而,后者是繁琐的工作,最适合由证明助手自动实现。在本项目中,我们分析了UIP的 formulations 并详细说明了其在立方体阿格达中的计算规则,并评估了其在实现中的适用性。我们还实现了一个没有粘贴类型的立方体阿格达变种,该变种已经与假设的UIP兼容,以期未来在立方体阿格达中实现UIP。
英文摘要:
Some advantages of Cubical Type Theory, as implemented by Cubical Agda, over intensional Martin-Löf Type Theory include Quotient Inductive Types (QITs), which exist as instances of Higher Inductive Types, and functional extensionality, which is provable in Cubical Type Theory. However, HoTT features an infinite hierarchy of equalities that may become unwieldy in formalisations. Fortunately, QITs and functional extensionality are both preserved even if the equality levels of Cubical Type Theory are truncated to only homotopical Sets (h-Sets). In other words, removing the univalence axiom from Cubical Type Theory and instead postulating a conflicting axiom: the Uniqueness of Identity Proofs (UIP) postulate. Since univalence is proved in Cubical Type Theory from the so-called Glue Types, therefore, it is known that one can first remove the Glue Types (thus removing univalence) and then set-truncate all equalities (essentially assuming UIP), à la XTT. The result is a "h-Set Cubical Type Theory" that retains features such as functional extensionality and QITs. However, in Cubical Agda, there are currently only two unsatisfying ways to achieve h-Set Cubical Type Theory. The first is to give up on the canonicity of the theory and simply postulate the UIP axiom, while the second way is to use a standard result stating "type formers preserve h-levels" to manually prove UIP for every defined type. The latter is, however, laborious work best suited for an automatic implementation by the proof assistant. In this project, we analyse formulations of UIP and detail their computation rules for Cubical Agda, and evaluate their suitability for implementation. We also implement a variant of Cubical Agda without Glue, which is already compatible with postulated UIP, in anticipation of a future implementation of UIP in Cubical Agda.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。