A simple proof technique for certain parametricity results

Authors
Citation
K. Crary, A simple proof technique for certain parametricity results, ACM SIGPL N, 34(9), 1999, pp. 82-89
Citations number
13
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM SIGPLAN NOTICES
ISSN journal
15232867 → ACNP
Volume
34
Issue
9
Year of publication
1999
Pages
82 - 89
Database
ISI
SICI code
1523-2867(199909)34:9<82:ASPTFC>2.0.ZU;2-E
Abstract
Many properties of parametric, polymorphic functions can be determined simp ly by inspection of their types. Such results are usually proven using Reyn olds's parametricity theorem. However, Reynolds's theorem can be difficult to show in some settings, particularly ones involving computational effects . I present an alternative technique for proving some parametricity results . This technique is considerably simpler and easily generalizes to effectua l settings. It works by instantiating polymorphic functions with singleton types that fully specify the behavior of the functions. Using this techniqu e, I show that callers' stacks are protected from corruption during functio n calls in Typed Assembly Language programs.