We will show that there will be an exact sequence which is surjective
at each stalk, but not globally surjective. So, locally, we wil have
trivial cokernel, but globally, we will have non-trivial cokernel.
O is the sheaf of the additive group of holomorphic functions. O∗ is the sheaf of the group of non-zero holomorphic functions.
α, which embeds 2πn∈2πiZ as a constant function fn(⋅)≡2πin is injective.
β(α(n))=e2πin=1. So we have that the composition of the two maps β∘α is the zero map (multiplicative zero), mapping everything in 2πiZ to the identity of O∗. Thus, d^2 = 0, ensuring that this is an exact sequence.
Let us consider the local situation. At each point p, we want to show that β is surjective. Pick any g∈Op∗. We have an open neighbourhood Ugwhere g=0, since continuous functions are locally invertible. Take the logarithm of g to pull back g∈Op∗ to logg∈Op. Thus, β:O→Op is surjective at each local point p, since every element has a preimage.
On the other hand, the function h(z)≡z cannot be in O∗ If it were, then there exists a homolorphic function called l∈O [for log] such that exp(l(z))=h(z)=z everywhere on the complex plane.
Assume such a function exists. Then it must be the case that d/dzexp(l(z))=d/dz(z)=1. Thus, exp(l(z))l′(z)=zl′(z)=1[use the fact that exp(l(z))=z]. This means that l′(z)=1/z.
Now, by integrating in a closed loop of eiθ. we have ∮l′(z)=l(1)−l(1)=0.
We also have that ∮l′(z)=∮1/z=2πi.
This implies that 0=2πi which is absurd.
Hence, we cannot have a function whose exponential gives h(z)=z everywhere.