In this paper we combine the principled approach to modalities from multimodal type theory (MTT) with the computationally well-behaved realization of identity types from cubical type theory (CTT). The result -- cubical modal type theory (Cubical MTT) -- has the desirable features of both systems. In fact, the whole is more than the sum of its parts: Cubical MTT validates desirable extensionality principles for modalities that MTT only supported through ad hoc means. We investigate the semantics of Cubical MTT and provide an axiomatic approach to producing models of Cubical MTT based on the internal language of topoi and use it to construct presheaf models. Finally, we demonstrate the practicality and utility of this axiomatic approach to models by constructing a model of (cubical) guarded recursion in a cubical version of the topos of trees. We then use this model to justify an axiomatization of L\"ob induction and thereby use Cubical MTT to smoothly reason about guarded recursion.
翻译:本文结合了多模态类型论(MTT)中对模态的原理性处理方法与立方类型论(CTT)中对恒等类型在计算上表现良好的实现。其结果——立方模态类型论(Cubical MTT)——兼具两个系统的理想特性。事实上,整体大于部分之和:Cubical MTT 验证了模态的可取外延性原理,而这些原理在 MTT 中仅通过特设方式支持。我们研究了 Cubical MTT 的语义,并基于拓扑斯内部语言提供了一种构建 Cubical MTT 模型的公理化方法,并用其构造了预层模型。最后,我们通过在树的拓扑斯的立方版本中构建一个(立方)守卫递归模型,展示了这种模型公理化方法的实用性和有效性。随后,我们利用该模型为 Löb 归纳法的一个公理化版本提供依据,从而使用 Cubical MTT 流畅地推理守卫递归。