Let |- be a rank-2 intersection type system. We say that a term is "|-simple" (or just "simple" when the system |- is clear from the context) if system |- can prove that it has a simple type. In this paper we propose new typing rules and algorithms that are able to type recursive definitions that are not simple. At the best of our knowledge, previous algorithms for typing recursive definitions in presence of intersection types allow only simple recursive definitions to be typed. The proposed rules are also able to type interesting examples of "polymorphic recursion" (i.e., recursive definitions "REC {x=e}" where different occurrences of "x" in "e" are used with different types). Moreover, the underlying techniques do not depend on particulars of rank-2 intersection, so they can be applied to other type systems.

Rank-2 Intersection and Polymorphic Recursion

DAMIANI, Ferruccio
2005-01-01

Abstract

Let |- be a rank-2 intersection type system. We say that a term is "|-simple" (or just "simple" when the system |- is clear from the context) if system |- can prove that it has a simple type. In this paper we propose new typing rules and algorithms that are able to type recursive definitions that are not simple. At the best of our knowledge, previous algorithms for typing recursive definitions in presence of intersection types allow only simple recursive definitions to be typed. The proposed rules are also able to type interesting examples of "polymorphic recursion" (i.e., recursive definitions "REC {x=e}" where different occurrences of "x" in "e" are used with different types). Moreover, the underlying techniques do not depend on particulars of rank-2 intersection, so they can be applied to other type systems.
2005
Inglese
contributo
1 - Conferenza
Typed Lambda Calculi and Applications, 7th International Conference, TLCA 2005
Nara, Japan
April 21-23, 2005
Internazionale
Pawel Urzyczyn
Pawel Urzyczyn
Typed Lambda Calculi and Applications, 7th International Conference, TLCA 2005
Esperti anonimi
Springer
Berlin
GERMANIA
3461
146
161
16
Polymorphic recursion; Rank-2 intersection; Recursive definitions; Typing rules
1
info:eu-repo/semantics/conferenceObject
04-CONTRIBUTO IN ATTI DI CONVEGNO::04A-Conference paper in volume
F. DAMIANI
273
none
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/24120
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 5
  • ???jsp.display-item.citation.isi??? 2
social impact