Let be categories, and let and be functors.
The comma category, written , is the category:
- with objects
- with morphisms from to given by pairs such that .
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
F(a_1) \arrow[d, "F(\alpha)"'] \arrow[r, "f_1"] & G(b_1) \arrow[d, "G(\beta)"] \\
F(a_2) \arrow[r, "f_2"'] & G(b_2)
\end{tikzcd}
\end{document}