Formalizing two-level type theory with cofibrant exo-nat
Elif Uskuplu
TL;DR
The paper advances formalization of two-level type theory (2LTT) with a cofibrant exo-natural number type $\mathbb{N}^e$ in Agda, emphasizing rigorous, notation-abide proofs. It introduces function extensionality tailored for cofibrant types, and develops results on cofibrant exo-types, sharp exo-types, and the lifting of cofibrancy from $\mathbb{N}^e$ to inductive types like $\mathsf{List}^e(A)$ and $\mathsf{BinTree}^e(N,L)$, including a novel equivalence $\mathsf{UnLBinTree}}^e \cong \mathsf{Balanced}(0^e)$. Semantically, the work constructs two-level CwFs and demonstrates models where cofibrant exo-nat holds, using presheaf models and exo-nat products to capture the required funext and UIP-like behaviors; it also discusses the interplay with fibrant replacements and potential infinities-toposes. The results provide a concrete path from formalization in proof assistants to robust semantic models for 2LTT, with implications for semisimplicial-type constructions and broader mathematical verification. The paper concludes with future directions toward W-types, extended Agda tooling, and richer model-theoretic explorations of cofibrancy across diverse categories.
Abstract
This study provides some results about two-level type-theoretic notions in a way that the proofs are fully formalizable in a proof assistant implementing two-level type theory such as Agda. The difference from prior works is that these proofs do not assume any abuse of notation, providing us with more direct formalization. Moreover, some new notions, such as function extensionality for cofibrant types, are introduced. The necessity of such notions arises during the task of formalization. In addition, we provide some novel results about inductive types using cofibrant exo-nat, the natural number type at the non-fibrant level. While emphasizing the necessity of this axiom by citing new applications as justifications, we also touch upon the semantic aspect of the theory by presenting various models that satisfy this axiom.
