Conference Papers Year : 2011

Parametric Polymorphism and Semantic Subtyping: the Logical Connection

Pierre Genevès
Nabil Layaïda

Abstract

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.
Nous considérons une algèbre de types comprenant des types récursifs, produits, fonctions, intersection, union et négation, ainsi que des variables de types soumises à une quantification universelle implicite. Nous considérons la relation de sous-typage définie récemment par Castagna et Xu sur cette algèbre de types et montrons que cette relation est décidable en EXPTIME, résolvant une question ouverte. La nouveauté, l'originalité et la force de notre solution résident dans l'introduction d'une modélisation logique du sous-typage sémantique. Nous représentons ce sous-typage dans une logique d'arbres et utilisons un algorithme de vérification de satisfaisabilité pour décider la relation. Nous présentons une implémentation complète du système et le résultat de plusieurs tests pratiques.
Fichier principal
Vignette du fichier
icfp99-gesbert.pdf (447.29 Ko) Télécharger le fichier
Origin Files produced by the author(s)
Loading...

Dates and versions

inria-00585686 , version 1 (13-04-2011)
inria-00585686 , version 2 (06-09-2011)

Identifiers

Cite

Nils Gesbert, Pierre Genevès, Nabil Layaïda. Parametric Polymorphism and Semantic Subtyping: the Logical Connection. International conference on functional programming, ACM SIGPLAN, Sep 2011, Tokyo, Japan. pp.107-116, ⟨10.1145/2034773.2034789⟩. ⟨inria-00585686v2⟩
400 View
466 Download

Altmetric

Share

More