Formalizing of Category Theory in Agda

Jason Z. S. Hu, Jacques Carette
5/14/2020
cs.LO

Official code: agda/agda-categories (412 stars, Agda, MIT, last commit 2026-11-08).

Abstract

The generality and pervasiness of category theory in modern mathematics makes it a frequent and useful target of formalization. It is however quite challenging to formalize, for a variety of reasons.

Show full abstract

Agda currently (i.e. in 2020) does not have a standard, working formalization of category theory. We document our work on solving this dilemma. The formalization revealed a number of potential design choices, and we present, motivate and explain the ones we picked. In particular, we find that alternative definitions or alternative proofs from those found in standard textbooks can be advantageous, as well as "fit" Agda's type theory more smoothly. Some definitions regarded as equivalent in standard textbooks turn out to make different "universe level" assumptions, with some being more polymorphic than others. We also pay close attention to engineering issues so that the library integrates well with Agda's own standard library, as well as being compatible with as many of supported type theories in Agda as possible.

View on arXivView PDF

Code Implementations(1)

MIT

A new Categories library for Agda

41284Agda, MakefileJun 1, 20193 weeks agoMIT

Similar Papers

Cite this paper

@article{hu2020formalizing,
  title  = {Formalizing of Category Theory in Agda},
  author = {Jason Z. S. Hu and Jacques Carette},
  year   = {2020},
  eprint = {2005.07059},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.07059}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2005.07059.svg)](https://codeofpaper.com/paper/2005.07059)

Discussion