EFFICIENT INFERENCE OF PARTIAL TYPES

被引:22
作者
KOZEN, D [1 ]
PALSBERG, J [1 ]
SCHWARTZBACH, MI [1 ]
机构
[1] AARHUS UNIV,DEPT COMP SCI,DK-8000 AARHUS,DENMARK
基金
美国国家科学基金会;
关键词
D O I
10.1016/S0022-0000(05)80051-0
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Partial types for the lambda-calculus were introduced by Thatte in 1988 as a means of typing objects that are not typable with simple types, such as heterogeneous lists and persistent data. In that paper he showed that type inference for partial types was semidecidable. Decidability remained open until quite recently, when O'Keefe and Wand gave an exponential time algorithm for type inference. In this paper we give an O(n3) algorithm. Our algorithm constructs a certain finite automation that represents a canonical solution to a given set of type constraints. Moreover, the construction works equally well for recursive types; this solves an open problem stated by O'Keefe and Wand (in ''Proceedings, European Symposium on Programming,'' Lect. Notes in Comput. Sci., Vol. 582, pp. 408-417, Springer-Verlag, New York/Berlin, 1992). (C) 1994 Academic Press, Inc.
引用
收藏
页码:306 / 324
页数:19
相关论文
共 9 条
  • [1] AMADIO RM, 1991, 18TH P ACM S PRINC P, P104
  • [2] HENGLEIN F, 1992, COMMUNICATION
  • [3] KOZEN D, 1993, 20TH P ACM S PRINC P, P419
  • [4] KOZEN D, 1992, 33RD P FOCS 92 IEEE, P363
  • [5] OKEEFE PM, 1992, LECT NOTES COMPUT SC, V582, P408
  • [6] NORMAL FORMS HAVE PARTIAL TYPES
    PALSBERG, J
    [J]. INFORMATION PROCESSING LETTERS, 1993, 45 (01) : 1 - 3
  • [7] SAFETY ANALYSIS VERSUS TYPE INFERENCE FOR PARTIAL TYPES
    PALSBERG, J
    SCHWARTZBACH, MI
    [J]. INFORMATION PROCESSING LETTERS, 1992, 43 (04) : 175 - 180
  • [8] THATTE S, 1988, LECT NOTES COMPUT SC, V317, P615
  • [9] WAND M, 1991, PARTIALLY TYPED TERM