Monic (epi) natural transformations
Let $C$ and $D$ be categories and let $F : C \rightarrow D$, $G : C \rightarrow D$ be two functors such that they are either both covariant or both contravariant. Under what most general hypotheses is the following statement always true:
A natural transformation $\eta : F \rightarrow G$ is a monomorphism (epimorphism) iff each component of the the natural transformation is a monomorphism (epimorphism).
What I would like to know are the weakest possible restrictions on $C$ and $D$ for which the forward implication holds.
Also, can someone direct me to a source that discusses this?
I should perhaps mention how I came about this question. I was trying to show that if $X$ is a topological space and $F, G$ are sheaves of sets on $X$, then a morphism of sheaves $\eta: F \rightarrow G$ is a monomorphism if and only if the induced maps on stalks are injective (**).
There is probably a way to prove this without using the fact that the components of $\eta$ are monic (i.e. injective set functions in this case), but I already know from an argument using the Yoneda Lemma that in this particular case because my target category is the category of sets, $\eta$ is a monomorphism if and only if each of its components are (and the proof of (**) is quite elementary, once I know this fact).
Also, I am not aware of a proof of the fact that $\eta$ is an epimorphism iff every component of $\eta$ is an epimorphism, even when the target category is the category of sets. So, is this statement true when the target category is the category of sets?
(Later edit: After starting a bounty on this question, I realized that it might not be possible to give the weakest possible conditions on the categories $C$ and $D$, like I am looking for. In that case, any known conditions on $C$ and $D$ for which my question holds will also suffice.)
Solution 1:
I claim that, if $\mathcal{D}$ admits arbitrary coproducts, then for any $c \in \mathcal{C}, d \in \mathcal{D}$, there is an object $h_{c,d} \in \mathrm{Fun}(\mathcal{C}, \mathcal{D})$ such that $\hom(h_{c,d}, G) = \hom(d, Gc)$. Given such an object $h_{c,d}$, it follows that a monomorphism of functors $G \to G'$ must have the property that $\hom(d, Gc) \to \hom(d, G'c)$ is injective for each pair of objects $d, c$, meaning that you have a pointwise monomorphism (i.e. $Gc \to G'c$ is a monomorphism). To get such a functor, you imitate the Yoneda lemma: let $h_{c,d}(c') = \hom(c, c') \times d$ (since $\mathcal{D}$ admits arbitrary coproducts, it is tensored over sets and the preceding makes sense). Now given an arbitrary functor $G$ and given $d \to Gc$, one extends to $h_{c,d}(\cdot) = \hom(c, \cdot) \times d \to G$ in the natural way. I won't write out the details, but if I'm not being silly then what I claimed is true.
Now to the question on epimorphisms. Ideally, I want to claim that there is a functor $h'_{c,d}$ such that mapping into it from another functor $G$ is the same as giving a map $Gc \to d$. In other words, if we take the functor from $\mathrm{Fun}(\mathcal{C}, \mathcal{D})$ to $\mathcal{D}$ given by "evaluation" at $c$, then there is a right adjoint to this evaluation (previously the $h_{c,d}$ construction showed that there was a left adjoint). If there is such a right adjoint, then we're done.
In fact, let's state the whole argument more categorically:
A left adjoint preserves epimorphisms. A right adjoint preserves monomorphisms.
This is not hard at all (if $(F, G)$ is an adjunction and $c \to c'$ is an epimorphism, then we have to show that $Fc \to Fc'$ is one too; that is, $\hom(Fc', d) \to \hom(Fc, d)$ is always an injection of sets. But this is $\hom(c,' Gd) \to \hom(c, Gd)$).
So the point of the above discussion is that if $\mathcal{D}$ admits coproducts, then the evaluation functor at $c$, $\mathrm{Fun}(\mathcal{C}, \mathcal{D}) \to \mathcal{D}$ is a right adjoint. Thus it sends "global" monomorphisms of functors to monomorphisms by evaluation at each $c \in \mathcal{C}$, and thus "global" monomorphisms are "pointwise" epimorphisms. (The converse, as you observed, is easy.) Now we can try to the same thing for epimorphisms. As above, the main point is to construct a right adjoint to the evaluation functor. This can be done whenever $\mathcal{D}$ has all products. Namely, given $c ,d$, we consider the functor $c \mapsto d^{\hom(c, c')}$. One can check that this has the analogous universal property to $h_{c,d}$ above, and that it defines a left adjoint to the evaluation functor. So, if the category $\mathcal{D}$ has arbitrary products, then epimorphisms of natural transformations are pointwise epimorphisms.
One can ask the more general question: if $F: \mathcal{C} \to \mathcal{C}'$ is a functor, when is $F_*: \mathrm{Fun}(\mathcal{C}', \mathcal{D}) \to \mathrm{Fun}(\mathcal{C}, \mathcal{D})$ a left or right adjoint? The answer is that if $\mathcal{D}$ is cocomplete and complete, it's both. Since the "lower star" preserves limits and colimits (which are calculated pointwise, after all). Some specific examples are the lower star and upper star from pre(!)sheaf theory, and the skeleton and coskeleton functors on simplicial sets.
I'm not sure what the answer to your question is without such assumptions on $\mathcal{D}$.