Rank 2 Intersection for Recursive Definitions

  • Authors:
  • Ferruccio Damiani

  • Affiliations:
  • Dipartimento di Informatica, Università di Torino, Corso Svizzera 185, I-10149 Torino, Italy. E-mail: damiani@di.unito.it

  • Venue:
  • Fundamenta Informaticae - Typed Lambda Calculi and Applications 2005, Selected Papers
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Let ⊢ be an 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 (with rank 2 intersection types) recursive definitions that are not simple. Typing rules for assigning intersection types to (nonsimple) recursive definitions have been already proposed in the literature. However, at the best of our knowledge, previous algorithms for typing recursive definitions in the presence of intersection types allow only simple recursive definitions to be typed. The rules and algorithms proposed in this paper 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.