交集类型和扩展变量的可实现性语义
Realisability Semantics for Intersection Types and Expansion Variables
摘要:
扩展是在20世纪70年代末发明的,用于计算具有交集类型的类型系统中的$λ$ -项的主要类型。膨胀变量(E变量)是在20世纪90年代末发明的,以简化和帮助机械化膨胀。最近,E变量得到了进一步简化和概括,也允许计算类型运算符,而不仅仅是交集。有很多工作是关于具有交集类型的类型系统的指称语义的,但在此之前没有任何关于具有E-变量的类型系统的工作。为E-变量构建语义是一个挑战。为了简化问题,我们只考虑E-变量,而不考虑相应的展开运算。我们开发了一个可实现性语义,其中每个类型中的E变量的使用对应于一个独立的程度,在该程度上,评估发生在被分配类型的$λ$术语中。在被评估的$λ$项中,不同度数的部分之间唯一可能的交互是,较高度数的部分可以被传递,但从不应用于较低度数的部分。我们将此语义应用到两个交叉类型系统。我们表明这些系统是健全的,完整性不适用于第一个系统,完整性适用于第二个系统时,只允许一个E-变量(虽然它可以使用多次和嵌套)。据我们所知,这是第一次研究的指称语义的交集型系统与E-变量(使用可实现性或任何其他方法)。
英文摘要:
Expansion was invented at the end of the 1970s for calculating principal typings for $λ$-terms in type systems with intersection types. Expansion variables (E-variables) were invented at the end of the 1990s to simplify and help mechanise expansion. Recently, E-variables have been further simplified and generalised to also allow calculating type operators other than just intersection. There has been much work on denotational semantics for type systems with intersection types, but none whatsoever before now on type systems with E-variables. Building a semantics for E-variables turns out to be challenging. To simplify the problem, we consider only E-variables, and not the corresponding operation of expansion. We develop a realisability semantics where each use of an E-variable in a type corresponds to an independent degree at which evaluation occurs in the $λ$-term that is assigned the type. In the $λ$-term being evaluated, the only interaction possible between portions at different degrees is that higher degree portions can be passed around but never applied to lower degree portions. We apply this semantics to two intersection type systems. We show these systems are sound, that completeness does not hold for the first system, and completeness holds for the second system when only one E-variable is allowed (although it can be used many times and nested). As far as we know, this is the first study of a denotational semantics of intersection type systems with E-variables (using realisability or any other approach).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。