The problem of typing polymorphic recursion (i.e. recursive function definitions rec {x=e} where different occurrences of x in e are used with different types) has been investigated both by people working on type systems and by people working on abstract interpretation. Recently, Gori and Levi have developed a family of abstract interpreters that are able to type all the ML typable recursive definitions and interesting examples of polymorphic recursion. The problem of finding type systems corresponding to their abstract interpreters was open (such systems would lie between the let-free-free fragments of the ML and of the Milner-Mycroft systems). In this paper we exploit the notion of principal typing to: (i) provide a complete stratification of (let-free) Milner-Mycroft typability, and (ii) solve the problem of finding type systems corresponding to the type abstract interpreters proposed by Gori and Levi.

On Polymorphic Recursion, Type Systems, and Abstract Interpretation

DAMIANI, Ferruccio;
2008-01-01

Abstract

The problem of typing polymorphic recursion (i.e. recursive function definitions rec {x=e} where different occurrences of x in e are used with different types) has been investigated both by people working on type systems and by people working on abstract interpretation. Recently, Gori and Levi have developed a family of abstract interpreters that are able to type all the ML typable recursive definitions and interesting examples of polymorphic recursion. The problem of finding type systems corresponding to their abstract interpreters was open (such systems would lie between the let-free-free fragments of the ML and of the Milner-Mycroft systems). In this paper we exploit the notion of principal typing to: (i) provide a complete stratification of (let-free) Milner-Mycroft typability, and (ii) solve the problem of finding type systems corresponding to the type abstract interpreters proposed by Gori and Levi.
2008
15th International Static Analysis Symposium (SAS 2008)
Valencia, Spain
July 16-18, 2008
Static Analysis 15th International Symposium, SAS 2008, Valencia, Spain, July 16-18, 2008. Proceedings
Springer
5079
144
158
9783540691631
http://dx.doi.org/10.1007/978-3-540-69166-2_10
http://link.springer.com/chapter/10.1007%2F978-3-540-69166-2_10
Principal Typing; Type Inference Algorithm
Marco Comini; Ferruccio Damiani; Samuel Vrech
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2318/60409
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 3
  • ???jsp.display-item.citation.isi??? 3
social impact