Examples of surjective sheaf morphisms which are not surjective on sections

Let $X$ be a topological space, and let $\mathscr{F}, \mathscr{G}$ be sheaves of sets on $X$. It is well-known that a morphism $\varphi : \mathscr{F} \to \mathscr{G}$ is epic (in the category of sheaves on $X$) if and only if the induced map of stalks $\varphi_P : \mathscr{F}_P \to \mathscr{G}_P$ is surjective for every point $P$ in $X$, but the section maps $\varphi_U : \mathscr{F}(U) \to \mathscr{G}(U)$ need not be surjective. I know of a couple of examples from complex analysis:

  1. Let $X$ be the punctured complex plane, $\mathscr{F}$ the sheaf of meromorphic functions, $\mathscr{G}$ the sheaf of differential $1$-forms, and $\varphi$ the differential map; then $\varphi$ is epic and indeed the sequence $0 \to \mathscr{F} \to \mathscr{G} \to 0$ is even exact, but there are global sections of $\mathscr{G}$ which are not the image of a global section of $\mathscr{F}$, e.g. $z \mapsto \frac{1}{z} \, \mathrm{d}z$.

  2. Let $X$ be the punctured complex plane again, $\mathscr{F}$ the sheaf of meromorphic functions, $\mathscr{G}$ the sheaf of nowhere-zero meromorphic functions, and let $\varphi : \mathscr{F} \to \mathscr{G}$ be composition with $\exp : \mathbb{C} \to \mathbb{C}$; then $\varphi$ is epic but again fails to be surjective on (global) sections: after all, there is no holomorphic function $f : X \to \mathbb{C}$ such that $\exp f(z) = z$ for all non-zero $z$.

Question. Are there simpler examples which do not require much background knowledge beyond knowing the definition of sheaves and stalks?


Solution 1:

Take $X=\mathbb R$ for your topological space, the constant sheaf $\underline {\mathbb Z} $ for $\mathcal F$ and for $\mathcal G$ the direct sum of two skyscraper sheaves with fibers $\mathbb Z$ at two distinct points $P,Q\in \mathbb R$, that is $\mathcal G=\mathbb Z^P \oplus \mathbb Z^Q$.
The natural restriction $\mathcal F=\underline {\mathbb Z} \to \mathcal G=\mathbb Z^P \oplus \mathbb Z^Q$ is a surjective sheaf morphism but the associated group morphism on global sections $\mathcal F(X)=\mathbb Z \to \mathcal G (X)=\mathbb Z \oplus \mathbb Z$ is not surjective [its image is the diagonal of $\mathbb Z \oplus \mathbb Z$, consisting of pairs $(z,w)$ with $z=w$].

Edit This example can easily be adapted to a three point space space: thanks to Pierre-Yves who, in a comment to Alex's answer, suggested that.

Take $X=\{P,Q, \eta\}$ with closed sets $X,\emptyset, \{P\}, \{Q\}, \{P,Q\}$ (this is the same space as Alex's).The rest is exactly the same as above. Namely $\mathcal F=\underline {\mathbb Z} $, $\mathcal G=\mathbb Z^P \oplus \mathbb Z^Q$, $\mathcal F=\underline {\mathbb Z} \to \mathcal G=\mathbb Z^P \oplus \mathbb Z^Q$ the restriction, which is again a surjective sheaf morphism, and $\mathcal F(X)=\mathbb Z \to \mathcal G (X)=\mathbb Z \oplus \mathbb Z \:$ not surjective (the image being again the diagonal of $\mathbb Z \oplus \mathbb Z$).
The main point is that the stalks of $\mathbb Z^P$ are:
$(\mathbb Z^P)_P=\mathbb Z,(\mathbb Z^P)_Q=0, (\mathbb Z^P)\eta=0$, because $P$ is a closed point. Ditto for $\mathbb Z^Q$.

Tangential remark It might be of some interest to notice that there is a scheme structure on $X$ which makes it the smallest possible non affine scheme. This is explained in the book The Geometry of Schemes by Eisenbud and Harris, on page 22.

Solution 2:

Let $M$ be a smooth manifold, and consider the sheaf of closed 1-forms. There is a surjection from the sheaf of smooth functions to the sheaf of closed 1-forms (namely, the exterior derivative, $f \mapsto df$), which is surjective in the category of sheaves (by the Poincare lemma), but which is in general not surjective (if $M$ has nontrivial first de Rham cohomology).

Solution 3:

Let me try as elementary as is humanly possible:

$X=\{p,q_1,q_2\}$, consisting of only three elements! The open sets are $U_0=\{p\}$, $U_1=\{p,q_1\}$, $U_2=\{p,q_2\}$, and of course the empty set and $X$. Define $\mathscr{F}(U)=\mathscr{G}(U)=\mathbb{Z}$ on all non-empty open sets $U$. Now, the trick is going to be in the restriction maps and the morphism. Define all the restriction maps on $\mathscr{G}$ to be the identity, but the restrictions $\mathscr{F}(X)\rightarrow \mathscr{F}(U_i)$, $i=1,2$ are multiplication by 2. The restrictions $\mathscr{F}(U_i)\rightarrow \mathscr{F}(U_0)$ are again the identity maps (this forces the restriction from $X$ to $U_0$ to also be multiplication by 2).

Define $\phi:\mathscr{F}\rightarrow \mathscr{G}$ to be the identity on all open sets except for $X$, where it is multiplication by 2. Then $\phi(X)$ is not surjective, but it is surjective on all the stalks (check!). I hope I haven't made a mistake.

Solution 4:

The statement that section maps are not always surjective for surjective map of sheaves is equivalent to non-exactness of the functor of global sections — or equivalently, to non-triviality of sheaf cohomology.

Now it's easy to construct any number of explicit examples. Say, take $X=S^1$, $\mathcal F$ to be the sheaf of $\mathbb R$-valied functions and $\mathcal G$ to be the sheaf of $\mathbb R/\mathbb Z\cong S^1$-valued functions. Locally the map is surjective, but $\operatorname{Coker}(\Gamma(\mathcal F)\to\Gamma(\mathcal G))$ is, of course, $H^1(S^1;\mathbb Z)=\mathbb Z$.

(Well, arguably, it's just an instance of the example Akhil gives: $\mathcal G$ can be identified with $\Omega^1(S^1)$ and the map with the de Rham differential. On the other hand, take any finite model of $S^1$ to get completely finite example.)

Solution 5:

Ok, here is another answer. Let for $j$ an open immersion, $j_!$ be the "lower shriek" or "extension by zero" functor. Note that $j_!$ is left-adjoint to the functor $j^*$ of restriction from sheaves on $X$ to sheaves on $U$, and that there is a natural transformation $j_!j^* \to \mathrm{Id}$; note also that the stalks of $j_!$ of a sheaf are the same as the sheaf on $U$, and zero outside.

Then, if $\mathcal{F}$ is any locally constant sheaf on the irreducible space $X$, and $X = U_1 \cup U_2$ is a partition of $X$ into two proper open subsets with inclusions $j_1, j_2$, then the map $j_{1!}(j_1^*\mathcal{F}) \oplus j_{2!} (j_2^*\mathcal{F}) \to \mathcal{F}$ is a surjection (as one checks stalkwise). However, I claim that $\Gamma(X, j_{1!} (j_1^* \mathcal{F})) = 0$ and similarly for the other factor. Here's the justification: given a nonzero section of $j_! j_1^* \mathcal{F}$ is the same as giving an open cover $\{V_\alpha\}$ of the space, and sections of $\mathcal{F}$ over $V_\alpha$ for each $V_\alpha \subset U_1$ and zero for other $V_\alpha$'s (by definition of extension by zero); however, at least one of these open sets (say, $V_\beta$) must not be contained in $U_1$, and this will intersect all the other $V_\alpha$'s (even those contained in $U_1$). So since the section must be zero on $V_\beta$, it must be zero on all the other $V_\alpha$'s (by local constancy).