DIPARTIMENTO   DI   INFORMATICA
Università di Torino

THE GROUP'S LOGO
Research on "Formal Methods in Computing"

Rank 2 intersection types for modules

Ferruccio DAMIANI

ABSTRACT. We propose a rank 2 intersection type system for a language of modules built on a core ML-like language. The principal typing property of the rank 2 intersection type system for the core language plays a crucial role in the design of the type system for the module language. We first consider a "plain" notion of module, where a module is just a set of mutually recursive top-level definitions, and illustrate the notions of: module intrachecking (each module is typechecked in isolation and its interface, that is the set of typings of the defined identifiers, is inferred); interface interchecking (when linking modules, typechecking is done just by looking at the interfaces); interface specialization (interface intrachecking may require to specialize the typing listed in the interfaces); principal interfaces (the principal typing property for the type system of modules); and separate typechecking (looking at the code of the modules does not provide more type information than looking at their interfaces). Then we illustrate some limitations of the "plain" framework and extend the module language and the type system in order to overcome these limitations. The decidability of the system is shown by providing algorithms for the fundamental operations involved in module intrachecking and interface interchecking.

BIBTEX.

inproceedings{Damiani:PPDP-2003,
   author    = {F. Damiani},
   title     = {Rank 2 intersection types for modules},
   booktitle = {{PPDP'03}},
   year      = {2003},
   publisher = {ACM},
   pages     = {67--68}
}


["Formal Methods in Computing" group] [Department's HOME]

Last update: Jan 20, 2005