3. Category theory
This page explains how to express common concepts in category theory using the definitions in Mathlib. We assume basic knowledge of both Lean and category theory.
Most of the definitions regarding general category theory are in
the CategoryTheory namespace. In order to use limits or colimits,
we often need to open the CategoryTheory.Limits sub-namespace.
A typical file using category theory may contain:
open CategoryTheory Limits
The exposition is split in the following subsections: