Hostname: page-component-89b8bd64d-nlwjb Total loading time: 0 Render date: 2026-05-11T12:21:41.611Z Has data issue: false hasContentIssue false

Formalizing two-level type theory with cofibrant exo-nat

Published online by Cambridge University Press:  20 November 2025

Elif Uskuplu*
Affiliation:
Department of Mathematics, Indiana University, Bloomington, IN, USA
*
Rights & Permissions [Opens in a new window]

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 more direct formalization. Also, some new notions, such as function extensionality for cofibrant exo-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.

Information

Type
Special Issue: Advances in Homotopy type theory
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Figure 1. Examples of the conversion between binary trees and parenthesizations.

Figure 1

Agda Code 1. Universes defined in the library.

Figure 2

Agda Code 2. The coercion map used in $\texttt {2LTT\_C}$.

Figure 3

Table 1. The general structure of the library

Figure 4

Agda Code 3. Definition of coproduct type and exo-type in the library.

Figure 5

Agda Code 4. Theorem2.4.iv.

Figure 6

Agda Code 5. Agda does not allow to define $\texttt {inv-map-coprod}^e$.

Figure 7

Agda Code 6. The definition being fibrant exo-type and T3-axiom.

Figure 8

Agda Code 7. The definition being a cofibrant exo-type.

Figure 9

Agda Code 8. The function extensionality for cofibrant exo-types.

Figure 10

Agda Code 9. The functoriality rule is about the dependent exo-type of functions where the domain is cofibrant. This says if $A$ is a cofibrant exo-type and $P,Q:A\to \mathcal{U}$ are two dependent types such that there is a function $F:\prod ^e_{a:A} P(a) \to Q(a)$ where each $F(a)$ is an equivalence, then fibrant matches of $\prod ^e_{a:A} P(a)$ and $\prod ^e_{a:A} Q(a)$ are also equivalent.

Figure 11

Agda Code 10. The definition being a sharp exo-type.

Figure 12

Agda Code 11. An example of Agda’s different behaviors about level checking.

Figure 13

Figure 2. Naturality condition for $\Theta ^{\texttt {Ty}}$, where $\sigma :\Delta \rightarrow \Gamma$ and $\tau : \Upsilon \rightarrow \Delta$ in $\mathcal{C}$.

Figure 14

Figure 3. Naturality condition for $\Theta ^{\texttt {Tm}}$, where $\sigma :\Delta \rightarrow \Gamma$ and $\tau : \Upsilon \rightarrow \Delta$ in $\mathcal{C}$.