A General Framework for Relational Parametricity
Kristina Sojakova, Patricia Johann

TL;DR
This paper introduces a comprehensive, flexible framework for relational parametricity that encompasses existing models and proposes new categorical models, enhancing understanding and construction of polymorphic type theories.
Contribution
It develops an abstract, general framework for relational parametricity that subsumes Reynolds' original model and introduces two novel categorical models of System F.
Findings
Framework generalizes Reynolds' model within type theory
Includes categorical versions of Reynolds' and proof-relevant models
Recognizes both existing and new models naturally
Abstract
Reynolds' original theory of relational parametricity was intended to capture the idea that polymorphically typed System F programs preserve all relations between inputs. But as Reynolds himself later showed, his theory can only be formalized in a meta-theory with an impredicative universe, such as the Calculus of Inductive Constructions. Abstracting from Reynolds' ideas, Dunphy and Reddy developed their well-known framework for parametricity that uses parametric limits in reflexive graph categories and aims to subsume a variety of parametric models. As we observe, however, their theory is not sufficiently general to subsume the very model that inspired parametricity, namely Reynolds' original model, expressed inside type theory. To correct this, we develop an abstract framework for relational parametricity that generalizes the notion of a reflexive graph categories and delivers…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
