Subtyping Recursive Types Modulo Associative Commutative Products - INRIA - Institut National de Recherche en Informatique et en Automatique Accéder directement au contenu
Communication Dans Un Congrès Année : 2005

Subtyping Recursive Types Modulo Associative Commutative Products

Résumé

This work sets the formal bases for building tools that help retrieve classes in object-oriented libraries. In such systems, the user provides a query, formulated as a set of class interfaces. The tool returns classes in the library that can be used to implement the userrsquos request and automatically builds the required glue code. We propose subtyping of recursive types in the presence of associative and commutative products—that is, subtyping modulo a restricted form of type isomorphisms—as a model of the relation that exists between the userrsquos query and the toolrsquos answers. We show that this relation is a composition of the standard subtyping relation with equality up to associativity and commutativity of products and we present an efficient decision algorithm for it. We also provide an automatic way of constructing coercions between related types.

Dates et versions

hal-00149563 , version 1 (26-05-2007)

Identifiants

Citer

Roberto Di Cosmo, Didier Rémy, François Pottier. Subtyping Recursive Types Modulo Associative Commutative Products. 7th International Conference, TLCA 2005, Apr 2005, Nara, Japan. pp.179-193, ⟨10.1007/11417170_14⟩. ⟨hal-00149563⟩
98 Consultations
0 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More