Internal Algebraic Type Theory
The goal is computer-assisted, internal, type-theoretic reasoning about categories such as cubical sets, groupoids and categories. Proofs are written in a domain-specific language and then interpreted into a formalized semantic model.
The thesis introduces exponentiability conditions relative to a class of maps (preclans) and develops polynomial functors for these maps, which extends algebraic type theory to this general setting. As part of the HoTTLean project, it implements a DSL for Martin-Löf type theory in Lean through metaprogramming. The DSL rests on a deep embedding of MLTT whose interpretation into a generic natural model is formalized in Lean. The Hofmann–Streicher groupoid model, built on Mathlib's groupoids, serves as a test case.
Users can write synthetic proofs in the DSL that are interpreted as constructions on Mathlib groupoids. Parts of the categorical arguments, including a version of the polynomial-functor development, are formalized in Lean. Further type-theoretic analysis is given for cubical sets, groupoids and categories.
