In category theory, thereβs often the sense that βthings just workβ, and that details can be skipped as everything is well behaved. Unfortunately, this is not quite true.
The counterexamples here should serve as specimens of possible pittfalls in category theory, and give an idea of what could go wrong.
Sending an object $x \in \mathcal{C}$ of a category $\mathcal{C}$ to its automorphism group $Aut_{\mathcal{C}}(x)$ (or its endomorphism monoid $End_{\mathcal{C}}(x)$ ) does not in general extend to a functor from $\mathcal{C}$ to Groups.
It does however extend to a functor on the core of $\mathcal{C}$ (the maximal groupoid inside it, keeping only the isomorphisms of $\mathcal{C}$), where it sends morphisms (now constrained to be isomorphisms) to their conjugation action:
For example, if $\mathcal{C} = \Pi_1(X)$ is the fundamental groupoid of a topological space (which thus coincides with its core already), then the automorphism groups of its objects $x \in X$ are the fundamental groups $\pi_1(X,x)$ at these basepoints, which famously are functorial under conjugation by paths in $X$.
Forming the center of a group does not extend to a functor from Groups to AbelianGroups.
It does extend to a functor on the core, though:
Notice that this example is really a special case of the previous one (forming automorphism groups), or rather of a 2-category theoretic version of it: The center of a group is the automorphism group in the endo-functor category of the identity functor on the one-object delooping-groupoid $\mathbf{B}G$ of $G$:
Composing a monadic functor with another monadic functor need not be monadic. For example, Torsion-free abelian groups are monadic over abelian groups, which are monadic over sets, but torsion-free abelian groups are not monadic over sets.
Taking the skeleton of a monoidal category does not in general result in a strict monoidal category. The argument in the case of Set is given in this MO answer. In particular, one cannot in general replace a monoidal category with an equivalent category that is simultaneously strict monoidal and skeletal.
The category of topological spaces and local homeomorphisms is locally cartesian closed but not cartesian closed since it does not have a terminal object.
There are functors $D:Aff\to Vect$ (taking the vector space of displacements) and $A:Vect \to Aff$ (taking the underlying affine space) between the categories of vector spaces and affine spaces, and we have $D(A(V)) \cong V$ for any $V\in Vect$, and for any $U\in Aff$ there exists some isomorphism $A(D(U)) \cong U$ (after choosing a point in $U$ to serve as the origin), but the categories are not equivalent β the second isomorphisms cannot be chosen naturally, not even after restricting to the cores.
The opposite of the category of commutative von Neumann algebras has a subobject classifier and itβs finitely complete, but is not a topos since it is not cartesian closed. See this MO question.
There is a βwrong right adjointβ to the functor $F : Petri \to CMC$ (as described in Petri nets#semantics) which sends a commutative monoidal category $C$ to the Petri net whose source and target are $\eta \circ s : Mor(C) \to \mathbb{N}[Ob(C)]$ and $\eta \circ t : Mor(C) \to \mathbb{N}[Ob(C)]$ where $s$ and $t$ are the source and target of $C$ and $\eta$ is the unit for the monad $\mathbb{N}[-]$. In words, $C$ is sent to the Petri net whose source and target are the source and target of $C$ composed with $\eta$. The natural choice of isomorphism $Hom(FA, B) \cong Hom(A, GB)$, where $G$ is the functor just described, turns out not to yield well-defined morphisms of Petri nets. See Remark 4.4 in Master 2020
Let $C$ be a category without an initial object and let $R : C \to 1$ be the unique functor from $C$ into the terminal category. Then $R$ preserves all limits but does not have a left adjoint because this left adjoint would have to send the unique object of 1 to an initial object.
Consider the functor $U\colon Group \to Set$ that sends a group $G$ to the set $\prod_{i\in I} hom(S_i, G)$, where the groups $S_i$ are simple for all $i\in I$, $I$ is the class of all ordinals, and the cardinality of $S_i$ eventually becomes bigger than any fixed cardinal as $i$ increases. This is a limit-preserving functor between locally presentable categories. However, it does not have a left adjoint.
Dense functors are not closed under composition. For example, $\Delta_{\lt 2}$ is dense in the simplex category $\Delta$ and $\Delta$ is dense in $\mathbf{Cat}$, but $\Delta_{\lt 2}$ is not dense in $\mathbf{Cat}$.
The initial import of counterexamples in this entry was taken from this Zulip discussion.
Last revised on May 31, 2022 at 05:56:15. See the history of this page for a list of all contributions to it.