FORMAL PARAMETRIC POLYMORPHISM

Citation
M. Abadi et al., FORMAL PARAMETRIC POLYMORPHISM, Theoretical computer science, 121(1-2), 1993, pp. 9-58
Citations number
23
Categorie Soggetti
Computer Sciences","Computer Applications & Cybernetics",Mathematics
ISSN journal
03043975
Volume
121
Issue
1-2
Year of publication
1993
Pages
9 - 58
Database
ISI
SICI code
0304-3975(1993)121:1-2<9:FPP>2.0.ZU;2-J
Abstract
A polymorphic function is parametric if its behavior does not depend o n the type at which it is instantiated. Starting with Reynolds' work, the study of parametricity is typically semantic. In this paper, we de velop a syntactic approach to parametricity, and a formal system that embodies this approach, called system R. Girard's system F deals with terms and types; R is an extension of F that deals also with relations between types. In R, it is possible to derive theorems about function s from their types, or ''theorems for free'', as Wadler calls them. An easy ''theorem for free'' asserts that the type for-all (X)X --> Bool contains only constant functions; this is not provable in F. There ar e many harder and more substantial examples. Various metatheorems can also be obtained, such as a syntactic version of Reynolds' abstraction theorem.