Formalizing Colimits in Cat
Paper in proceeding, 2025

Certain results involving “higher structures” are not currently accessible to computer formalization because the prerequisite ∞-category theory has not been formalized. To support future work on formalizing ∞-category theory in Lean’s mathematics library, we formalize some fundamental constructions involving the 1-category of categories. Specifically, we construct the left adjoint to the nerve embedding of categories into simplicial sets, defining the homotopy category functor. We prove further that this adjunction is reflective, which allows us to conclude that Cat has colimits. To our knowledge this is the first formalized proof that the nerve functor is a fully faithful right adjoint and that the category of categories is cocomplete.

simplicial set

nerve

infinity-category theory

colimit

category theory

Author

Mario Carneiro

University of Gothenburg

Chalmers, Computer Science and Engineering (Chalmers), Formal methods

Emily Riehl

Johns Hopkins University

Leibniz International Proceedings in Informatics, LIPIcs

18688969 (ISSN)

Vol. 352 20
9783959773966 (ISBN)

16th International Conference on Interactive Theorem Proving, ITP 2025
Reykjavik, Iceland,

Subject Categories (SSIF 2025)

Formal Methods

Computer Sciences

Algebra and Logic

DOI

10.4230/LIPIcs.ITP.2025.20

More information

Latest update

11/3/2025