Type Inference with Non-Structural Subtyping. Palsberg, J., Wand, M., & O'Keefe, P. Formal Aspects of Computer Science, 9:49-67, 1997.
Type Inference with Non-Structural Subtyping [ps]Paper  abstract   bibtex   
We present an O(n^3) time type inference algorithm for a type system with a largest type \top, a smallest type \bot, and the usual ordering between function types. The algorithm infers type annotations of minimal size, and it works equally well for recursive types. For the problem of typability, our algorithm is simpler than the one of Kozen, Palsberg, and Schwartzbach for type inference without \bot. This may be surprising, especially because the system with \bot is strictly more powerful.
@Article{PalsbergWandOKeefe97,
  author = 	 {Jens Palsberg and Mitchell Wand and Patrick O'Keefe},
  title = 	 {Type Inference with Non-Structural Subtyping},
  journal = 	 {Formal Aspects of Computer Science},
  year = 	 1997,
  volume =	 9,
  pages =	 {49-67},
  URL =		 {ftp://ftp.ccs.neu.edu/pub/people/wand/papers/p-w-ok-95.ps},
  abstract =	 {We present an O(n^3) time type inference algorithm for a
		 type system with a largest type \top, a smallest type
		 \bot, and the usual ordering between function types.
		 The algorithm infers type annotations of minimal
		 size, and it works equally well for recursive types.
		 For the problem of typability, our algorithm is
		 simpler than the one of Kozen, Palsberg, and
		 Schwartzbach for type inference without \bot.  This
		 may be surprising, especially because the system with
		 \bot is strictly more powerful.},
  source =	 {~/people/palsberg/facs*},
  annote =	 {originally appeared as BRICS Technical Report RC-95-33}
}

Downloads: 0