Polymorphic type inference with overloading and subtyping
Conference
Smith, GS. (1993). Polymorphic type inference with overloading and subtyping
. Lecture Notes in Computer Science, 668 LNCS 671-685. 10.1007/3-540-56610-4_97
Smith, GS. (1993). Polymorphic type inference with overloading and subtyping
. Lecture Notes in Computer Science, 668 LNCS 671-685. 10.1007/3-540-56610-4_97
We show how the Hindley/Milner polymorphic type system can be extended to incorporate overloading and subtyping, by using constrained quantification. We describe an algorithm for inferring principal types and outline a proof of its soundness and completeness. We find that it is necessary in practice to simplify the inferred types, and we describe techniques for type simplification that involve shape unification, strongly connected components, transitive reduction, and the monotonicities of type formulas.