UC BERKELEY
EECS technical reports
TECHNICAL REPORTS


CSD-96-909.pdf
CSD-96-909.ps
Oskicat catalog record
Conditions of Use

Archive Home Page

Optimal Representations of Polymorphic Types with Subtyping

Authors:
Aiken, Alexander
Wimmers, Edward L.
Palsberg, Jens
Technical Report Identifier: CSD-96-909
July 1996
CSD-96-909.pdf
CSD-96-909.ps

Abstract: Many type inference and program analysis systems include notions of subtyping and parametric polymorphism. When used together, these two features induce equivalences that allow types to be simplified by eliminating quantified variables. Eliminating variables both improves the readability of types and the performance of algorithms whose complexity depends on the number of type variables. We present an algorithm for simplifying quantified types in the presence of subtyping and prove it is sound and complete for non-recursive and recursive types. We also show that an extension of the algorithm is sound but not complete for a type language with intersection and union types, as well as for a language of constrained types.