Polymorphic Functions with Set-Theoretic Types
Polymorphic Functions with Set-Theoretic Types
复制标题
DOI:
10.1145/2775051.2676991
复制
发表时间:
2015-01
影响因子:
--
通讯作者:
Giuseppe Castagna;K. Nguyen;Zhiwu Xu;P. Abate
中科院分区:
文献类型:
--
作者:
Giuseppe Castagna;K. Nguyen;Zhiwu Xu;P. Abate
This article is the second part of a two articles series about the definition of higher order polymorphic functions in a type system with recursive types and set-theoretic type connectives (unions, intersections, and negations). In the first part, presented in a companion paper, we defined and studied the syntax, semantics, and evaluation of the explicitly-typed version of a calculus, in which type instantiation is driven by explicit instantiation annotations. In this second part we present a local type inference system that allows the programmer to omit explicit instantiation annotations for function applications, and a type reconstruction system that allows the programmer to omit explicit type annotations for function definitions. The work presented in the two articles provides the theoretical foundations and technical machinery needed to design and implement higher-order polymorphic functional languages with union and intersection types and/or for semi-structured data processing.