Typed compilation of inclusive subtyping

Authors
Citation
K. Crary, Typed compilation of inclusive subtyping, ACM SIGPL N, 35(9), 2000, pp. 68-81
Citations number
12
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM SIGPLAN NOTICES
ISSN journal
15232867 → ACNP
Volume
35
Issue
9
Year of publication
2000
Pages
68 - 81
Database
ISI
SICI code
1523-2867(200009)35:9<68:TCOIS>2.0.ZU;2-2
Abstract
I present a type-preserving translation that eliminates subtyping and bound ed quantification without introducing any run-time costs. This translation is based on Mitchell and Pierce's encoding of bounded quantification using intersection types. I show that, previous negative observations notwithstan ding, the encoding is adequate given a sufficiently rich target type theory . The necessary target type theory is made easily typecheckable by includin g a collection of explicit coercion combinators, which are already desired for eliminating subtyping. However, no form of coercion abstraction is nece ssary (even to support bounded quantification), leading to a simple target language.