arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.06448cs.LOcs.PL
收藏

内部参数性,无需区间

Internal parametricity, without an interval

Thorsten Altenkirch, Yorgo Chamoun, Ambrus Kaposi, Michael Shulman

AI总结:

本文提出一种无需区间的内部参数性类型论,作为马丁-洛夫类型论的简单扩展,通过预层模型和胶合模型证明其外部参数性与规范性,并作为高阶观察类型论的最简示例。

摘要:

参数性是类型论语法的一个性质,它意味着例如,对于多态恒等函数的类型,只存在一个函数具有该类型。参数性通常是在外部证明的,并且在内部并不成立。将其内部化是困难的,因为一旦存在一个见证参数性的项,该项本身也必须是参数性的,这导致了高维立方体的出现。在以往具有内部参数性的理论中,要么存在针对高维立方体的显式语法,要么理论被扩展以包含一个用于区间的新的种类。在本文中,我们提出了一种具有内部参数性的类型论,它是马丁-洛夫类型论的一个简单扩展:增加了少量新的类型构造子、项构造子和等式。几何在此语法中不是显式的,而是涌现的:新的运算和等式仅涉及维度至多为3的对象。我们证明了该理论可由BCH立方体范畴上的预层来建模。由于我们使用基于跨度的而非关系的参数性,因此不需要纤维性条件。我们为该理论定义了一个胶合模型,这意味着外部参数性和规范性成立。该理论可被视为一种新型模态类型论的特例,并且它是在其中能够展示高阶观察类型论的计算性质的最简单设置。

英文摘要:

Parametricity is a property of the syntax of type theory implying, e.g., that there is only one function having the type of the polymorphic identity function. Parametricity is usually proven externally, and does not hold internally. Internalising it is difficult because once there is a term witnessing parametricity, it also has to be parametric itself and this results in the appearance of higher dimensional cubes. In previous theories with internal parametricity, either an explicit syntax for higher cubes is present or the theory is extended with a new sort for the interval. In this paper we present a type theory with internal parametricity which is a simple extension of Martin-Löf type theory: there are a few new type formers, term formers and equations. Geometry is not explicit in this syntax, but emergent: the new operations and equations only refer to objects up to dimension 3. We show that this theory is modelled by presheaves over the BCH cube category. Fibrancy conditions are not needed because we use span-based rather than relational parametricity. We define a gluing model for this theory implying that external parametricity and canonicity hold. The theory can be seen as a special case of a new kind of modal type theory, and it is the simplest setting in which the computational properties of higher observational type theory can be demonstrated.

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

↑