Parametricity via Cohesion (2404.03825v3)
Abstract: Parametricity is a key metatheoretic property of type systems, which implies strong uniformity & modularity properties of the structure of types within systems possessing it. In recent years, various systems of dependent type theory have emerged with the aim of expressing such parametric reasoning in their internal logic, toward the end of solving various problems arising from the complexity of higher-dimensional coherence conditions in type theory. This paper presents a first step toward the unification, simplification, and extension of these various methods for internalizing parametricity. Specifically, I argue that there is an essentially modal aspect of parametricity, which is intimately connected with the category-theoretic concept of cohesion. On this basis, I describe a general categorical semantics for modal parametricity, develop a corresponding framework of axioms (with computational interpretations) in dependent type theory that can be used to internally represent and reason about such parametricity, and show this in practice by implementing these axioms in Agda and using them to verify parametricity theorems therein. I then demonstrate the utility of these axioms in managing the complexity of higher-dimensional coherence by deriving induction principles for higher inductive types, and in closing, I sketch the outlines of a more general synthetic theory of parametricity, with applications in domains ranging from homotopy type theory to the analysis of program modules.
- Syntax and models of cartesian cubical type theory. Mathematical Structures in Computer Science, 31(4):424–468, 2021.
- Impredicative encodings of (higher) inductive types. In Proceedings of the 33rd Annual ACM/IEEE Symposium on Logic in Computer Science, LICS ’18. ACM, July 2018.
- Robert Atkey. Relational parametricity for higher kinds. In Patrick Cégielski and Arnaud Durand, editors, Computer Science Logic (CSL’12) - 26th International Workshop/21st Annual Conference of the EACSL, volume 16 of Leibniz International Proceedings in Informatics (LIPIcs), pages 46–61, 2012.
- Cubical type theory: A constructive interpretation of the univalence axiom. FLAP, 4:3127–3170, 2015.
- Internal parametricity for cubical type theory. In Annual Conference for Computer Science Logic, 2020.
- Canonicity and homotopy canonicity for cubical type theory. Logical Methods in Computer Science, Volume 18, Issue 1, February 2022.
- Herman Geuvers. Induction is not derivable in second order dependent type theory. In Samson Abramsky, editor, Typed Lambda Calculi and Applications, pages 166–181, Berlin, Heidelberg, 2001. Springer Berlin Heidelberg.
- Displayed type theory and semi-simplicial types, 2024.
- F. William Lawvere. Categories of spaces may not be generalized spaces as exemplified by directed graphs. Reprints in Theory and Applications of Categories, (9):1–7, 2005.
- F. William Lawvere. Axiomatic cohesion. Theory and Applications of Categories, 19(3):41–49, 2007.
- Parametric quantifiers for dependent type theory. Proc. ACM Program. Lang., 1(ICFP), aug 2017.
- John C. Reynolds. Types, abstraction and parametric polymorphism. In IFIP Congress, 1983.
- A type theory for synthetic ∞\infty∞-categories. Higher Structures, 1(1):116–193, 2017.
- Logical relations as types: Proof-relevant parametricity for program modules. Journal of the ACM, 68(6):1–47, October 2021.
- Michael Shulman. Brouwer’s fixed-point theorem in real-cohesive homotopy type theory. Mathematical Structures in Computer Science, 28(6):856–941, 2018.
- Jonathan Sterling. First Steps in Synthetic Tait Computability: The Objective Metatheory of Cubical Type Theory. PhD thesis, Carnegie Mellon University, 2022.
- The Univalent Foundations Program. Homotopy Type Theory: Univalent Foundations of Mathematics. https://homotopytypetheory.org/book, Institute for Advanced Study, 2013.