[Paper Review] Internal Parametricity for Cubical Type Theory
This paper introduces a unified type theory combining cubical type theory's higher-dimensional paths with parametric type theory's relational bridges, enabling internal parametricity and univalence. It establishes relativity—a relational equivalent of univalence—and demonstrates its use in proving free theorems for polymorphic functions on higher inductive types, including the smash product, via constructive reasoning in a consistent homotopy-theoretic framework.
We define a computational type theory combining the contentful equality structure of cartesian cubical type theory with internal parametricity primitives. The combined theory supports both univalence and its relational equivalent, which we call relativity. We demonstrate the use of the theory by analyzing polymorphic functions between higher inductive types, and we give an account of the identity extension lemma for internal parametricity.
Motivation & Objective
- To unify cubical type theory’s higher-dimensional structure with parametric type theory’s relational reasoning via dimension variables.
- To internalize relativity—the relational counterpart of univalence—within a constructive type theory.
- To enable formal reasoning about polymorphic functions on higher inductive types, such as the smash product, using internal parametricity.
- To demonstrate that the combined theory is consistent with the negation of certain forms of the law of excluded middle.
- To extend the methodology of parametric type theory by introducing bridge-discrete types and characterizing bridge types of data types like bool via relativity.
Proposed method
- Introduce a type theory with two kinds of dimension variables: structural (for paths) and substructural (for bridges), preserving their distinct roles.
- Modify cubical type theory’s Kan conditions to ensure bridge types are Kan, enabling path-like reasoning in the parametric setting.
- Define relativity as an equivalence between bridge types in the universe and relations, replacing the need for I-sets via univalence.
- Use function extensionality and η-rules for smash products to construct path equalities between functions in the relational setting.
- Apply the workhorse lemma and retract argument to show that key polymorphic types are sets, enabling proof irrelevance.
- Construct explicit terms like ∧-graphx and gluel/gluer to model path-connectedness of constructors in higher inductive types.
Experimental results
Research questions
- RQ1Can a type theory internalize both univalence and parametricity by unifying path and bridge types?
- RQ2How can relativity—relational univalence—be formalized in a cubical setting to support free theorems for higher inductive types?
- RQ3What is the role of bridge-discrete types in characterizing the relational interpretation of inductive types like bool?
- RQ4How can the smash product’s monoidal structure be proven constructively using internal parametricity?
- RQ5Is the combined theory consistent with the negation of certain forms of the law of excluded middle?
Key findings
- The type P := (X∗, Y∗:U∗) →X →Y →X∗∧Y∗ is a set, proven via retract to bool, ensuring proof irrelevance for free theorems.
- The workhorse lemma establishes that any polymorphic function f : P is determined up to path equality by its behavior on bool, enabling classification of such functions.
- The main theorem shows that any basepoint-preserving function f∗: (X∗, Y∗:U∗) →X∗∧∗Y∗→∗X∗∧∗Y∗ is uniquely determined up to path equality by its action on constructors and basepoint.
- The behavior of f∗ on gluel and gluer terms is uniquely determined up to path by basepoint preservation and path structure in P.
- The theory supports constructive proofs of coherence for HITs like the smash product, avoiding the usual complexity of such proofs.
- The combined theory is consistent with the negation of (some versions of) the law of excluded middle, as witnessed by the PER semantics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.