These notes are a scratch space for -theory diagrams. The mathematical content is intentionally compact; the main point is to exercise the renderer on commutative diagrams, universal properties, triangles, and string-like pictures.

1. A category as composable arrows

A category has , , , and associative composition. In a small local picture, the equality h=gfh = g \circ f is represented by the commutative triangle:

Rendered tikz-cd diagram

The same idea in raw TikZ gives more control over placement and labels:

Rendered tikz diagram
2. Functors preserve shape

A F:CDF : \mathcal{C} \to \mathcal{D} sends objects to objects and morphisms to morphisms while preserving identity arrows and composition.

Rendered tikz-cd diagram

Functoriality says the following two routes in D\mathcal{D} agree whenever the upper route agrees in C\mathcal{C}:

Rendered tikz-cd diagram
3. Natural transformations as squares

For functors F,G:CDF,G : \mathcal{C}\to\mathcal{D}, a η:FG\eta : F \Rightarrow G assigns a component ηA:FAGA\eta_A : F A \to G A to each object AA. Naturality means every morphism f:ABf : A\to B gives a commutative square.

Rendered tikz-cd diagram

Here is the same square with visual emphasis on the two parallel paths:

Rendered tikz diagram
4. Pullbacks

A of f:XZf : X\to Z and g:YZg : Y\to Z is an object PP equipped with projections such that every compatible factors uniquely through PP.

Rendered tikz-cd diagram

The outer equations are fu=gvf u = g v, and the dashed arrow is the unique map whose composites with p1,p2p_1,p_2 are u,vu,v.

5. Adjunctions

An adjunction FGF \dashv G can be recognized by a natural bijection

D(FC,D)C(C,GD).\mathcal{D}(F C, D) \cong \mathcal{C}(C, G D).

The and satisfy the triangle identities:

Rendered tikz-cd diagram
Rendered tikz-cd diagram

The hom-set bijection is often the most useful diagram for computation:

Rendered tikz diagram
6. Yoneda shape

The sends an object AA to the C(,A)\mathcal{C}(-,A). A morphism u:ABu:A\to B induces a natural transformation by postcomposition.

Rendered tikz-cd diagram

One way to remember the is that every natural transformation out of a representable functor is determined by the image of the identity:

Rendered tikz diagram
7. Linked stress-test knowls

These smaller knowls mix prose, LaTeX display math, and TikZ diagrams so the runtime can be checked on nested knowl content: