arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 0905.0354math.LO
收藏

交集型系统可实现性语义的完备性结果

A completeness result for a realisability semantics for an intersection type system

Fairouz Kamareddine, Karim Nour

摘要:

在本文中,我们考虑一个类型系统的通用类型$ω$的任何条款(无论是开放或封闭,$β$ -规范化或不)有类型$ω$。我们提供这种类型系统的可实现性语义,其中原子类型被解释为一组$λ$ -术语饱和的某种关系。饱和度关系的变化对每种类型给出了许多解释。我们的语义和不同的饱和度的概念(基于弱头减少和正常的$β$减少),我们得到相同的解释类型的健全性和完整性。由于$ω$的存在阻止了可类型性和可实现性的重合,并在描述类型的解释时产生了额外的困难,我们定义了一个所谓的正类型的类${\mathbb U}^+$(其中$ω$只能出现在特定的位置)。我们表明,如果一个长期居住的积极类型,那么这个长期是$β$ -normalisable和减少到一个封闭的长期。换句话说,正类型可以用来表示抽象数据类型。${\mathbb U}^+$的完备性定理确实很有趣,因为它在可类型化的术语和存在于类型中的术语之间建立了一个完美的等价关系。换句话说,可类型性和可实现性在${\mathbb U}^+$上一致。我们给出了一些例子来解释${\mathbb U}^+$的定义背后的直觉,并表明这个类不能扩展,同时保持其所需的属性。

英文摘要:

In this paper we consider a type system with a universal type $ω$ where any term (whether open or closed, $β$-normalising or not) has type $ω$. We provide this type system with a realisability semantics where an atomic type is interpreted as the set of $λ$-terms saturated by a certain relation. The variation of the saturation relation gives a number of interpretations to each type. We show the soundness and completeness of our semantics and that for different notions of saturation (based on weak head reduction and normal $β$-reduction) we obtain the same interpretation for types. Since the presence of $ω$ prevents typability and realisability from coinciding and creates extra difficulties in characterizing the interpretation of a type, we define a class ${\mathbb U}^+$ of the so-called positive types (where $ω$ can only occur at specific positions). We show that if a term inhabits a positive type, then this term is $β$-normalisable and reduces to a closed term. In other words, positive types can be used to represent abstract data types. The completeness theorem for ${\mathbb U}^+$ becomes interesting indeed since it establishes a perfect equivalence between typable terms and terms that inhabit a type. In other words, typability and realisability coincide on ${\mathbb U}^+$. We give a number of examples to explain the intuition behind the definition of ${\mathbb U}^+$ and to show that this class cannot be extended while keeping its desired properties.

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

↑