(Hot take?) Parametricity is not really about universal or existential *types*. ...
Max S. New ⚜️ @maxsnew@types.pl
(Hot take?)
Parametricity is not really about universal or existential *types*. Parametricity is about abstraction over type variables.
You can state very simple parametricity theorems for simply typed lambda calculus models as long as you are talking about lambda calculus generated from a signature. In fact pretty much every example of a parametricity theorem that you encounter uses *prenex* polymorphism, and so can be stated without mentioning universal or existential types at all. This includes representation independence theorems for abstract data types, as well as every one of Wadler's "theorems for free". I think I know of only one line of work that discusses the "higher order" parametricity theorems that aren't prenex.
But the operational standard dogma of PL leads us to encode this notion of signature and instantiation using universal/existential types: all semantic theorems need to be stated in terms of operational semantics for a language without uninterpreted base types and its induced notion of contextual equivalence. Then we need the universal types to act as a logical framework to embed a notion of signature as a polymorphic type, and an instantiation as an application.