Phantom Types and Subtyping

dc.creatorFluet, Matthew
dc.creatorPucella, Riccardo
dc.date2004-03-23
dc.date2006-01-29
dc.date.accessioned2026-07-07T06:34:57Z
dc.date.available2026-07-07T06:34:57Z
dc.descriptionWe investigate a technique from the literature, called the phantom-types technique, that uses parametric polymorphism, type constraints, and unification of polymorphic types to model a subtyping hierarchy. Hindley-Milner type systems, such as the one found in Standard ML, can be used to enforce the subtyping relation, at least for first-order values. We show that this technique can be used to encode any finite subtyping hierarchy (including hierarchies arising from multiple interface inheritance). We formally demonstrate the suitability of the phantom-types technique for capturing first-order subtyping by exhibiting a type-preserving translation from a simple calculus with bounded polymorphism to a calculus embodying the type system of SML.
dc.description41 pages. Preliminary version appears in the Proceedings of the 2nd IFIP International Conference on Theoretical Computer Science, pp. 448--460, 2002
dc.identifierhttps://arxiv.org/abs/cs/0403034
dc.identifierhttp://arxiv.org/abs/cs/0403034
dc.identifier.urihttp://salesiana.dossiersoluciones.com/handle/123456789/99677
dc.subjectProgramming Languages
dc.subjectD.1.1; D.3.3; F.3.3
dc.titlePhantom Types and Subtyping
dc.typetext

Files

Collections