[Paper Review] Inductive types in homotopy type theory
This paper introduces weak W-types in homotopy type theory by replacing definitional equality in computation rules with propositional equality, enabling a homotopical interpretation of inductive types. The key contribution is proving that these weak W-types correspond precisely to homotopy-initial algebras of polynomial functors, restoring uniqueness up to homotopy in intensional type theory.
Homotopy type theory is an interpretation of Martin-Löf's constructive type theory into abstract homotopy theory. There results a link between constructive mathematics and algebraic topology, providing topological semantics for intensional systems of type theory as well as a computational approach to algebraic topology via type theory-based proof assistants such as Coq. The present work investigates inductive types in this setting. Modified rules for inductive types, including types of well-founded trees, or W-types, are presented, and the basic homotopical semantics of such types are determined. Proofs of all results have been formally verified by the Coq proof assistant, and the proof scripts for this verification form an essential component of this research.
Motivation & Objective
- To address the breakdown of initial algebra semantics for inductive types in intensional type theory, where uniqueness of recursively defined functions cannot be proven.
- To develop a homotopically coherent semantics for inductive types by replacing definitional equality in W-type computation rules with propositional equality.
- To establish that weak W-types correspond to homotopy-initial algebras of polynomial functors, thereby recovering structural properties in a homotopical setting.
- To formalize the entire development in Coq, ensuring correctness and supporting the Univalent Foundations program.
- To lay the groundwork for extending the theory to general inductive types and higher inductive types in homotopy type theory.
Proposed method
- Introduce weak W-types by modifying standard W-type rules to replace definitional equality in the computation rule with propositional equality.
- Define homotopy-initial algebras as algebras for which homomorphisms are unique up to homotopy, generalizing the initial algebra concept in homotopy theory.
- Use function extensionality as a weak principle to derive uniqueness of functions up to homotopy, avoiding undecidability of type checking.
- Formalize all definitions and proofs in Coq, leveraging its support for intensional type theory and univalent foundations.
- Construct the natural numbers and second number class as weak W-types, showing they support homotopy-initial algebra structures.
- Apply adjoint homotopy equivalences between types like $\mathsf{0} \to X$ and $\mathsf{1}$, and $\mathsf{1} \to X$ and $X$, to verify propositional computation rules.
Experimental results
Research questions
- RQ1Can inductive types in intensional type theory be given a homotopically coherent semantics that restores uniqueness of recursively defined functions?
- RQ2What modification of W-type rules is necessary to ensure that weak W-types correspond to homotopy-initial algebras of polynomial functors?
- RQ3How can propositional computation rules for inductive types be formally verified in a proof assistant like Coq while preserving computational adequacy?
- RQ4Can standard inductive types like the natural numbers and second number class be reconstructed as weak W-types in this homotopical setting?
- RQ5To what extent can the theory of weak W-types be extended to general inductive types and higher inductive types in homotopy type theory?
Key findings
- Weak W-types, defined with propositional computation rules, are precisely characterized as homotopy-initial algebras of polynomial functors.
- The natural numbers type $\mathsf{Nat}$ can be defined as a weak W-type, and it supports an h-initial algebra structure for the polynomial functor $P(X) = \mathsf{1} + X$.
- The second number class can be represented as a weak W-type corresponding to the polynomial functor $P(X) = \mathsf{1} + X + (\mathsf{Nat} \to X)$, with formal Coq verification provided.
- The use of adjoint homotopy equivalences enables the verification of propositional computation rules for $\mathsf{Nat}$, supporting the homotopical semantics.
- All results, including definitions and proofs, have been formally verified in Coq, with proof scripts available in a public repository.
- The framework supports the extension to general inductive types and higher inductive types, forming a foundation for Univalent Foundations and computational algebraic topology.
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.