Mixing Indexed Types and Hindley-Milner Type Inference

dc.contributor.authorPašalić, Emir
dc.contributor.authorSiek, Jeremy G.
dc.contributor.authorTaha, Walid
dc.date.accessioned2017-08-02T22:03:05Z
dc.date.available2017-08-02T22:03:05Z
dc.date.issued2006-07-28
dc.date.noteJuly 28, 2006
dc.description.abstractThis paper addresses the question of how to extend OCaml’s Hindley-Milner type system with types indexed by logical propositions and proofs of the Coq theorem prover, thereby providing an expressive and extensible mechanism for ensuring fine-grained program invariants. We propose adopting the approached used by Shao et al. for certified binaries. This approach maintains a phase distinction between the computational and logical languages, thereby limiting effects and non-termination to the computational language, and maintaining the decidability of the type system. The extension subsumes language features such as impredicative first-class (higher-rank) polymorphism and type operators, that are notoriously difficult to integrate with the Hindley-Milner style of type inference that is used in OCaml. We make the observation that these features can be more easily integrated with type inference if the inference algorithm is free to adapt the order in which it solves typing constraints to each program. To this end we define a novel “order-free” type inference algorithm. The key enabling technology is a graph representation of constraints and a constraint solver that performs Hindley-Milner inference with just three graph rewrite rules.
dc.format.extent25 pp
dc.identifier.citationPa�ali?, Emir, Siek, Jeremy G. and Taha, Walid. "Mixing Indexed Types and Hindley-Milner Type Inference." (2006) https://hdl.handle.net/1911/96359.
dc.identifier.digitalTR07-09
dc.identifier.urihttps://hdl.handle.net/1911/96359
dc.language.isoeng
dc.rightsYou are granted permission for the noncommercial reproduction, distribution, display, and performance of this technical report in any format, but this permission is only for a period of forty-five (45) days from the most recent time that you verified that this technical report is still available from the Computer Science Department of Rice University under terms that include this permission. All other rights are reserved by the author(s).
dc.titleMixing Indexed Types and Hindley-Milner Type Inference
dc.typeTechnical report
dc.type.dcmiText
Files
Original bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
TR07-09.pdf
Size:
876.51 KB
Format:
Adobe Portable Document Format