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
相关论文
共 50 条
  • [1] Efficient inference of partial types
    Kozen, Dexter
    Palsberg, Jens
    Schwartzbach, Michael I.
    Journal of Computer and System Sciences, 1994, 49 (02): : 306 - 324
  • [2] TYPE INFERENCE WITH PARTIAL TYPES
    THATTE, SR
    THEORETICAL COMPUTER SCIENCE, 1994, 124 (01) : 127 - 148
  • [3] TYPE INFERENCE WITH PARTIAL TYPES
    THATTE, S
    LECTURE NOTES IN COMPUTER SCIENCE, 1988, 317 : 615 - 629
  • [4] EFFICIENT INFERENCE OF OBJECT TYPES
    PALSBERG, J
    INFORMATION AND COMPUTATION, 1995, 123 (02) : 198 - 209
  • [5] TYPE INFERENCE FOR PARTIAL TYPES IS DECIDABLE
    OKEEFE, PM
    WAND, M
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 582 : 408 - 417
  • [6] SAFETY ANALYSIS VERSUS TYPE INFERENCE FOR PARTIAL TYPES
    PALSBERG, J
    SCHWARTZBACH, MI
    INFORMATION PROCESSING LETTERS, 1992, 43 (04) : 175 - 180
  • [7] Riffled Independence for Efficient Inference with Partial Rankings
    Huang, Jonathan
    Kapoor, Ashish
    Guestrin, Carlos
    JOURNAL OF ARTIFICIAL INTELLIGENCE RESEARCH, 2012, 44 : 491 - 532
  • [8] Exact and efficient inference for partial Bayes problems
    Qiu, Yixuan
    Zhang, Lingsong
    Liu, Chuanhai
    ELECTRONIC JOURNAL OF STATISTICS, 2018, 12 (02): : 4640 - 4668
  • [9] Efficient inference of static types for Java']Java bytecode
    Gagnon, EM
    Hendren, LJ
    Marceau, G
    STATIC ANALYSIS, 2000, 1824 : 199 - 219
  • [10] Efficient inference of object types (vol 123, pg 198, 1995)
    Palsberg, J
    INFORMATION AND COMPUTATION, 1996, 126 (01) : 103 - 104