Reference. Category Theory in Coq 8.5
We report on our experience implementing category theory in Coq 8.5. Our work formalizes most of basic category theory, including concepts not covered by existing formalizations, in a library that is fit to be used as a general-purpose category-theoretical foundation.
Our development particularly takes advantage of two features new to Coq 8.5: primitive projections for records and universe polymorphism. Primitive projections allow for well-behaved dualities while universe polymorphism provides a relative notion of largeness and smallness. The latter is one of the main contributions of this paper. It pushes the limits of the new universe polymorphism and constraint inference algorithm of Coq 8.5.
In this paper we present in detail smallness and largeness in categories and the foundation they are built on top of. We furthermore explain how we have used the universe polymorphism of Coq 8.5 to represent smallness and largeness arguments by simply ignoring them and entrusting them to the universe inference algorithm of Coq 8.5. We also briefly discuss our experience throughout this implementation, discuss concepts formalized in this development and give a comparison with a few other developments of similar extent.
Cite
Cited by (3)
Solving Guarded Domain Equations in Presheaves over Ordinals and Mechanizing It stepanenko-2025-solving
Formalizing category theory in Agda hu-2021-formalizing
Cumulative Inductive Types In Coq timany-2018-cumulative
Cites 21 works (4 here)
With notes (4)
Univalent categories and the Rezk completion ahrens_etal_2015
BI-hyperdoctrines, higher-order separation logic, and abstraction biering-2007-bi
Categorical Logic and Type Theory jacobs-1999
This book is an attempt to give a systematic presentation of both logic and type theory from a categorical perspective, using the unifying concept of fibred category. Its intended audience consists of logicians, type theorists, category theorists and (theoretical) computer scientists.
External (17)
- The Category-theoretic Solution of Recursive Ultra-metric Space Equations (2016)
- Category Theory in Coq 8.5: Extended Version (2016)
- Coq 8.5 Reference Manual (2015)
- First Steps Towards Cumulative Inductive Types in CIC (2015)
- Universe Polymorphism in Coq (2014)
- Experience Implementing a Performant Category-Theory Library in Coq (2014)
- Scott Is Always Simple (2012)
- First Steps in Synthetic Guarded Domain Theory: Step-Indexing in the Topos of Trees (2011)
- The category-theoretic solution of recursive metric-space equations (2010)
- Constructive category theory (2000)
- Elementary Categories, Elementary Toposes (1996)
- Foundations of Programming Languages (1996)
- An analysis of Girard's paradox (1986)
- Categories for the Working Mathematician (1978)
- Category Theory in Coq (Megacz)
- HoTT Version of Coq and Library
- Categories (Coq library)