Efficient Inference of Partial Types

Authors

  • Dexter Kozen
  • Jens Palsberg
  • Michael I. Schwartzbach

DOI:

https://doi.org/10.7146/dpb.v21i394.6629

Abstract

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(n^3) algorithm. Our algorithm constructs a certain finite automaton 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.

Downloads

Published

1992-04-01

How to Cite

Kozen, D., Palsberg, J., & Schwartzbach, M. I. (1992). Efficient Inference of Partial Types. DAIMI Report Series, 21(394). https://doi.org/10.7146/dpb.v21i394.6629