Polymorphic functions with set-theoretic types: part 1: syntax, semantics, and evaluation

  • Authors:
  • Giuseppe Castagna;Kim Nguyen;Zhiwu Xu;Hyeonseung Im;Sergueï Lenglet;Luca Padovani

  • Affiliations:
  • CNRS. Université Paris Diderot, Paris, France;Université Paris-Sud, Orsay, France;Université Paris Diderot, Paris, France;Université Paris-Sud, Orsay, France;Université de Lorraine, Nancy, France;Università di Torino, Torino, Italy

  • Venue:
  • Proceedings of the 41st ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages
  • Year:
  • 2014

Quantified Score

Hi-index 0.00

Visualization

Abstract

This article is the first part of a two articles series about a calculus with higher-order polymorphic functions, recursive types with arrow and product type constructors and set-theoretic type connectives (union, intersection, and negation). In this first part we define and study the explicitly-typed version of the calculus in which type instantiation is driven by explicit instantiation annotations. In particular, we define an explicitly-typed lambda-calculus with intersection types and an efficient evaluation model for it. In the second part, presented in a companion paper, we define a local type inference system that allows the programmer to omit explicit instantiation annotations, and a type reconstruction system that allows the programmer to omit explicit type annotations. The work presented in the two articles provides the theoretical foundations and technical machinery needed to design and implement higher-order polymorphic functional languages for semi-structured data.