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

被引:7
|
作者
Kamareddine, Fairouz
Nour, Karim
机构
[1] Univ Savoie, F-73378 Le Bourget Du Lac, France
[2] Heriot Watt Univ, Sch Math & Comp Sci, Edinburgh EH14 4AS, Midlothian, Scotland
关键词
intersection type systems; subject reduction; subject expansion; realisability semantics; soundness; completeness; normalisation; positive types;
D O I
10.1016/j.apal.2007.02.001
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
In this paper we consider a type system with a universal type to where any term (whether open or closed, beta-normalising or not) has type omega. We provide this type system with a realisability semantics where an atomic type is interpreted as the set of X-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 beta-reduction) we obtain the same interpretation for types. Since the presence of omega prevents typability and realisability from coinciding and creates extra difficulties in characterizing the interpretation of a type, we define a class U+ of the so-called positive types (where to can only occur at specific positions). We show that if a term inhabits a positive type, then this term is beta-normalisable and reduces to a closed term. In other words, positive types can be used to represent abstract data types. The completeness theorem for 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 U+. We give a number of examples to explain the intuition behind the definition of U+ and to show that this class cannot be extended while keeping its desired properties. (c) 2007 Elsevier B.V. All rights reserved.
引用
收藏
页码:180 / 198
页数:19
相关论文
共 50 条