I wanted to understand why the Cokernel is not a sheafy condition. I found an explanation in Ravi Vakil's homework solutions which I am expanding on here.
§ Core idea
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.
§ Exponential sheaf sequence
- is the sheaf of the additive group of holomorphic functions. is the sheaf of the group of non-zero holomorphic functions.
- , which embeds as a constant function is injective.
- . So we have that the composition of the two maps is the zero map (multiplicative zero), mapping everything in to the identity of . 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 . We have an open neighbourhood where , since continuous functions are locally invertible. Take the logarithm of to pull back to . Thus, is surjective at each local point , since every element has a preimage. - On the other hand, the function cannot be in If it were, then there exists a homolorphic function called [for ] such that everywhere on the complex plane.
- Assume such a function exists. Then it must be the case that . Thus, [use the fact that ]. This means that .
- Now, by integrating in a closed loop of . we have .
- We also have that .
- This implies that which is absurd.
- Hence, we cannot have a function whose exponential gives everywhere.
- Thus, the cokernel is nontrivial globally.