...
【24h】

2-Dimensional Directed Type Theory

机译:二维定向类型理论

获取原文
   

获取外文期刊封面封底 >>

       

摘要

Recent work onhigher-dimensional type theoryhas explored connections between Martin-L?f type theory, higher-dimensional category theory, and homotopy theory. These connections suggest a generalization of dependent type theory to account for computationally relevant proofs of propositional equality—for example, takingIdSetA Bto be the isomorphisms betweenAandB. The crucial observation is that all of the familiar type and term constructors can be equipped with a functorial action that describes how they preserve such proofs. The key benefit of higher-dimensional type theory is that programmers and mathematicians may work up to isomorphism and higher equivalence, such as equivalence of categories.In this paper, we consider a further generalization of higher-dimensional type theory, which associates each type with adirectednotion of transformation between its elements. Directed type theory accounts for phenomena not expressible in symmetric higher-dimensional type theory, such as a universe set of sets and functions, and a typeCtxused in functorial abstract syntax. Our formulation requires two main ingredients: First, the types themselves must be reinterpreted to take account ofvariance; for example, a Π type is contravariant in its domain, but covariant in its range. Second, whereas in symmetric type theory proofs of equivalence can be internalized using the Martin-L?f identity type, in directed type theory the two-dimensional structure must be made explicit at the judgemental level. We describe a2-dimensional directed type theory, or2DTT, which is validated by an interpretation into the strict 2-categoryCatof categories, functors, and natural transformations. We also discuss applications of 2DTT for programming with abstract syntax, generalizing the functorial approach to syntax to the dependently typed and mixed-variance case.
机译:最近关于高维类型理论的工作探索了马丁-L?f类型理论,高维类别理论和同伦理论之间的联系。这些联系建议对依赖类型理论进行概括,以解决命题相等性的计算相关证明—例如,将IdSetA B设为A和B之间的同构。至关重要的观察是,所有熟悉的类型和术语构造函数都可以配备函数功能,以描述它们如何保存此类证明。高维类型理论的主要好处是程序员和数学家可以努力达到同构和更高等价性,例如类别的等价性。在本文中,我们考虑对高维类型理论进行进一步的概括,将每种类型与在其元素之间进行转换的指导性概念。定向类型理论解决了对称高维类型理论中无法表达的现象,例如一组集合和函数的世界集,以及在函数抽象语法中使用的typeCtx。我们的表述需要两个主要要素:首先,必须重新解释类型本身以考虑差异。例如,type型在其域中是协变的,但在其范围中是协变的。其次,在对称类型理论中,可以使用Martin-L?f身份类型对等价证明进行内部化,而在有向类型理论中,必须在判断层面上明确二维结构。我们描述了二维有向类型理论或2DTT,通过对严格的2类Catof类,函子和自然变换的解释得到了验证。我们还将讨论2DTT在抽象语法编程中的应用,将函子方法的语法推广到依存类型和混合方差的情况。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号