Intersection, universally quantified, and reference types

  • Authors:
  • Mariangiola Dezani-Ciancaglini;Paola Giannini;Simona Ronchi Della Rocca

  • Affiliations:
  • Dipartimento di Informatica, Univ. di Torino, Italy;Dipartimento di Informatica, Univ. del Piemonte Orientale, Italy;Dipartimento di Informatica, Univ. di Torino, Italy

  • Venue:
  • CSL'09/EACSL'09 Proceedings of the 23rd CSL international conference and 18th EACSL Annual conference on Computer science logic
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

The aim of this paper is to understand the interplay between intersection, universally quantified, and reference types. Putting together the standard typing rules for intersection, universally quantified, and reference types leads to loss of subject reduction. The problem comes from the invariance of the reference type constructor and the rules of intersection and/or universal quantification elimination, which are subsumption rules. We propose a solution in which types have a kind saying whether the type is (or contains in the case of intersection) a reference type or not. Intersection elimination is limited to intersections not containing reference types, and the reference type constructor can only be applied to closed types. The type assignment is shown to be safe, and when restricted to pure λ -calculus, as expressive as the full standard type assignment system with intersection and universally quantified types.