AN EXTENSION OF SYSTEM-F WITH SUBTYPING

被引:62
作者
CARDELLI, L
MARTINI, S
MITCHELL, JC
SCEDROV, A
机构
[1] UNIV PISA,DIPARTIMENTO INFORMAT,I-56125 PISA,ITALY
[2] STANFORD UNIV,DEPT COMP SCI,STANFORD,CA 94305
[3] UNIV PENN,DEPT MATH,PHILADELPHIA,PA 19104
关键词
D O I
10.1006/inco.1994.1013
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
System F is a well-known typed lambda-calculus with polymorphic types, which provides a basis for polymorphic programming languages. We study an extension of F, called F<: (pronounced ef-sub), that combines parametric polymorphism with subtyping. The main focus of the paper is the equational theory of F<:, which is related to PER models and the notion of parametricity. We study some categorical properties of the theory when restricted to closed terms, including interesting categorical isomorphisms. We also investigate proof-theoretical properties, such as the conservativity of typing judgments with respect to F We demonstrate by a set of examples how a range of constructs may be encoded in F<:. These include record operations and subtyping hierarchies that are related to features of object-oriented languages. (C) 1994 Academic Press, Inc.
引用
收藏
页码:4 / 56
页数:53
相关论文
共 28 条
[1]   FORMAL PARAMETRIC POLYMORPHISM [J].
ABADI, M ;
CARDELLI, L ;
CURIEN, PL .
THEORETICAL COMPUTER SCIENCE, 1993, 121 (1-2) :9-58
[2]   FUNCTORIAL POLYMORPHISM [J].
BAINBRIDGE, ES ;
FREYD, PJ ;
SCEDROV, A ;
SCOTT, PJ .
THEORETICAL COMPUTER SCIENCE, 1990, 70 (01) :35-64
[3]  
BOHM C, 1985, THEOR COMPUT SCI, V39, P135, DOI 10.1016/0304-3975(85)90135-5
[4]   A MODEST MODEL OF RECORDS, INHERITANCE, AND BOUNDED QUANTIFICATION [J].
BRUCE, KB ;
LONGO, G .
INFORMATION AND COMPUTATION, 1990, 87 (1-2) :196-240
[5]  
Cardelli L., 1991, Journal of Functional Programming, V1, P417, DOI 10.1017/S0956796800000198
[6]   A SEMANTICS OF MULTIPLE INHERITANCE [J].
CARDELLI, L .
INFORMATION AND COMPUTATION, 1988, 76 (2-3) :138-164
[7]  
CARDELLI L, 1993, SRC81 REP
[8]  
CARDELLI L, 1985, ACM COMPUT SURV, V17, P471, DOI DOI 10.1145/6041.6042
[9]  
Cardelli Luca, 1991, MATH STRUCT COMP SCI, V1, P3
[10]  
CARIEN P, 1991, LECTURE NOTES COMPUT, V431