ACM Home Page
Please provide us with feedback. Feedback
Subtyping recursive types
Full text PdfPdf (3.29 MB)
Source ACM Transactions on Programming Languages and Systems (TOPLAS) archive
Volume 15 ,  Issue 4  (September 1993) table of contents
Pages: 575 - 631  
Year of Publication: 1993
ISSN:0164-0925
Authors
Roberto M. Amadio  CNRS-CRIN, Vandoeuvre-les-Nancy, France
Luca Cardelli  DEC Systems Research Center, Palo Alto, CA
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 5,   Downloads (12 Months): 53,   Citation Count: 74
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/155183.155231
What is a DOI?

ABSTRACT

We investigate the interactions of subtyping and recursive types, in a simply typed &lgr;-calculus. The two fundamental questions here are whether two (recursive)types are in the subtype relation and whether a term has a type. To address the first question, we relate various definitions of type equivalence and subtyping that are induced by a model, an ordering on infinite trees, an algorithm, and a set of type rules. We show soundness and completeness among the rules, the algorithm, and the tree semantics. We also prove soundness and a restricted form of completeness for the model. To address the second question, we show that to every pair of types in the subtype relation we can associate a term whose denotation is the uniquely determined coercion map between the two types. Moreover, we derive an algorithm that, when given a term with implicit coercions, can infer its least type whenever possible.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
AMADiO, R. Formal theones of inheritance for typed funct~onal languages. Tech. Rep. TR 28/89, Dip. dl Informatica, Univ. dl Fisa, Pisa, Italy, 1989.
 
2
 
3
 
4
ARNOLD, A., AND NIVAT, M. The metric space of infinite trees. Algebraic and topological properties. Fundamenta Inf. III. (1980), 445 476.
 
5
 
6
REAZU-TANNEN, V., GUNTER, C., AND SCEDROV, A. Denotational semantics for subtyping between recursive types. Rep. MS-CIS 89 63, Logic of Computation 12, Dept. of Computer and Information Science, Univ. of Pennsylvania, Philadelphia, 1989.
 
7
8
 
9
 
10
 
11
CARDELLI, L. Typeful programming. In Formal Descrtption of Programming Concepts, E. J. Neuhold and M. Paul, Eds. Springer-Verlag, New York, 1991, 431 507.
 
12
CARDELLI, L., AND LONaO, G. A semantic basis for Quest. J. Functional Program. 1, 4 (Oct. 1991), 417-458.
13
 
14
 
15
 
16
COURCELLE, B. Fundamental properties of infinite trees. Theor. Comput. Sci. 25, (1983), 95-169.
 
17
COURCELLE, B. Equivalence and transformation of regular systems--Applications to recursive program schemes and gTammars. Theor. Comput. Sci. 42, (1986), I 122.
 
18
CURIEN, P.-L., AND GHELLI, G. Coherence of subsumption, minimum typing and type checking in F<. Math. Struc. Comput. Sci. 2, (1992), 55 91.
 
19
H~ANo, M. A small complete category. Ann. Pure Appl. Logic 40, 2, (1989), 135 165.
 
20
 
21
MmNER, R. A complete inference system for a class of regular behaviors. J. Comput. Syst. Sci. 28 (1984), 439-466.
 
22
 
23
24
25
 
26
SCOTT, D. Continuous lattices. In Toposes, Algebraic Geometry and Logic. Lecture Notes in Mathematics 274. Springer-Verlag, New York, 1972, 97 136.
 
27
SCOTT, D. Data types as lattices. SIAM J. Comput. 5, (1976), 522-587.
 
28
 
29
W,OSWORTH, C. The relation between computational and denotational properties for Scott's D~ models ofthe lambda-calculus. SIAM J. Comput. 5, (1976), 488-521.

CITED BY  74

Collaborative Colleagues:
Roberto M. Amadio: colleagues
Luca Cardelli: colleagues