TY - JOUR
T1 - Principality and type inference for intersection types using expansion variables
AU - Kfoury, A. J.
AU - Wells, J. B.
PY - 2004/1/23
Y1 - 2004/1/23
N2 - Principality of typings is the property that for each typable term, there is a typing from which all other typings are obtained via some set of operations. Type inference is the problem of finding a typing for a given term, if possible. We define an intersection type system which has principal typings and types exactly the strongly normalizable ?-terms. More interestingly, every finite-rank restriction of this system (using Leivant's first notion of rank) has principal typings and also has decidable type inference. This is in contrast to System F where the finite rank restriction for every finite rank at 3 and above has neither principal typings nor decidable type inference. Furthermore, the notion of principal typings for our system involves only one operation, substitution, rather than several operations (not all substitution-based) as in earlier presentations of principality for intersection types (without rank restrictions). In our system the earlier notion of expansion is integrated in the form of expansion variables, which are subject to substitution as are ordinary variables. A unification-based type inference algorithm is presented using a new form of unification, ß-unification. © 2003 Elsevier B.V. All rights reserved.
AB - Principality of typings is the property that for each typable term, there is a typing from which all other typings are obtained via some set of operations. Type inference is the problem of finding a typing for a given term, if possible. We define an intersection type system which has principal typings and types exactly the strongly normalizable ?-terms. More interestingly, every finite-rank restriction of this system (using Leivant's first notion of rank) has principal typings and also has decidable type inference. This is in contrast to System F where the finite rank restriction for every finite rank at 3 and above has neither principal typings nor decidable type inference. Furthermore, the notion of principal typings for our system involves only one operation, substitution, rather than several operations (not all substitution-based) as in earlier presentations of principality for intersection types (without rank restrictions). In our system the earlier notion of expansion is integrated in the form of expansion variables, which are subject to substitution as are ordinary variables. A unification-based type inference algorithm is presented using a new form of unification, ß-unification. © 2003 Elsevier B.V. All rights reserved.
UR - http://www.scopus.com/inward/record.url?scp=0346969704&partnerID=8YFLogxK
U2 - 10.1016/j.tcs.2003.10.032
DO - 10.1016/j.tcs.2003.10.032
M3 - Article
VL - 311
SP - 1
EP - 70
JO - Theoretical Computer Science
JF - Theoretical Computer Science
IS - 1-3
ER -