inria-00585686, version 2
Parametric Polymorphism and Semantic Subtyping: the Logical Connection
Nils Gesbert
a, 1Pierre Genevès
b, 1Nabil Layaïda
a, 1
International conference on functional programming (2011) 107-116
Résumé : We consider a type algebra equipped with recursive, product, function, intersection, union, and complement types together with type variables and implicit universal quantification over them. We consider the subtyping relation recently defined by Castagna and Xu over such type expressions and show how this relation can be decided in EXPTIME, answering an open question. The novelty, originality and strength of our solution reside in introducing a logical modeling for the semantic subtyping framework. We model semantic subtyping in a tree logic and use a satisfiability-testing algorithm in order to decide subtyping. We report on practical experiments made with a full implementation of the system. This provides a powerful polymorphic type system aiming at maintaining full static type-safety of functional programs that manipulate trees, even with higher-order functions, which is particularly useful in the context of XML.
- a – INRIA
- b – CNRS
- 1 : WAM (INRIA Grenoble Rhône-Alpes / LIG Laboratoire d'Informatique de Grenoble)
- INRIA – Institut National Polytechnique de Grenoble (INPG) – Université Joseph Fourier - Grenoble I – Université Pierre Mendès-France - Grenoble II – CNRS : UMR5217
- Domaine : Informatique/Langage de programmation
Informatique/Logique en informatique - Mots-clés : Type-system – Polymorphism – subtyping
- Versions disponibles : v1 (14-04-2011) v2 (06-09-2011)
- inria-00585686, version 2
- http://hal.inria.fr/inria-00585686
- oai:hal.inria.fr:inria-00585686
- Contributeur : Nils Gesbert
- Soumis le : Mardi 6 Septembre 2011, 11:26:13
- Dernière modification le : Mardi 18 Octobre 2011, 17:13:15






Documents associés
Voir aussi
Exporter