Efficient Recursive Subtyping

Authors

  • Dexter Kozen
  • Jens Palsberg
  • Michael I. Schwartzbach

DOI:

https://doi.org/10.7146/dpb.v21i405.6639

Abstract

Subtyping in the presence of recursive types for the lambda-calculus was studied by Amadio and Cardelli in 1991. They showed that the problem of deciding whether one recursive type is a subtype of another is decidable in exponential time.

In this paper we give an O(n^2) algorithm. Our algorithm is based on a simplification of the definition of the subtype relation, which allows us to reduce the problem to the emptiness problem for a certain finite automaton with quadratically many states.

It is known that equality of recursive types and the covariant Böhm order can be decided efficiently by means of finite automata. Our results extend the automata-theoretic approach to handle orderings based on contravariance.

Downloads

Published

1992-07-01

How to Cite

Kozen, D., Palsberg, J., & Schwartzbach, M. I. (1992). Efficient Recursive Subtyping. DAIMI Report Series, 21(405). https://doi.org/10.7146/dpb.v21i405.6639