There is a very subtle point in homological algebra which can easily be overlooked. Let's say that $\mathcal{F}$ is a quasi-coherent sheaf over a scheme $X$. What does $H^i(X,\mathcal{F})$ means ?
Easy one might say : this is the derived functor of the global section functor $\Gamma(X,.)$. But what is the source category of $\Gamma(X,.)$ ? Is is $QCoh(X), \mathcal{O}_X$-mod or $\mathcal{Ab}_X$ ? Does that change something ?
From a more abstract view point, let $\mathcal{A}\subset \mathcal{B}$ be abelian categories such that the inclusion functor $i$ is exact. Let $F:\mathcal{B}\rightarrow\mathcal{C}$ be a left exact functor and $X\in\mathcal{A}$. What does $R^kF(X)$ means ? Is it $(R^kF)(i(X))$ or $R^k(F\circ i)(X)$. What makes things really confusing is the fact that in general we don't write $i$, but we should since these functors are not equals in general.
Before giving examples, let see where there might be a problem. By definition, $R^k(F\circ i)(X)$ are computed this way :
- choose an injective resolution of $X$ in $\mathcal{A}$. Write it $X\rightarrow I^\bullet$.
- apply $i$, in other words, see $I^\bullet$ as objects of $\mathcal{B}$.
- apply $F$
- take cohomology.
Since the inclusion functor is exact, $i(X)\rightarrow i(I^\bullet)$ is still a resolution in $\mathcal{B}$. So it looks like we can use it to compute $(R^kF)(i(X))$. But $i(I^\bullet)$ might not be injective in $\mathcal{B}$. Worse, it might not be acyclic for $F$, thus, it can't be used to compute $(R^kF)(i(X))$.
Here is an easy example where it fails, an example which is not far away from your situation ! Instead of sheaves, consider just $\mathbb{F}_2$-vector spaces and $\mathbb{Z}$-modules (in other words let $X=\operatorname{Spec}\mathbb{F}_2$). We have the inclusion functor $\mathbb{F}_2$-mod$\subset\mathbb{Z}$-mod which is exact. Now consider the functor $F:\mathbb{Z}$-mod$\rightarrow\mathbb{Z}$-mod such that $F(A)=\operatorname{Hom}_{\mathbb{Z}}(\mathbb{Z}/2\mathbb{Z},A)$.
The functor $F\circ i$ is exact (in fact it is canonically isomorphic to $i$). So its derived functor is trivial.
However $R^1F(\mathbb{F}_2):=(R^1F)(i(\mathbb{F}_2))=\operatorname{Ext}^1_{\mathbb{Z}}(\mathbb{Z}/2\mathbb{Z},\mathbb{Z}/2\mathbb{Z})\simeq\mathbb{Z}/2\mathbb{Z}$ as you can easily see using a projective resolution in the first argument.
As I said previously, an injective resolution of $\mathbb{F}_2$ in $\mathbb{F}_2$-mod is simply $\mathbb{F}_2$ (in fact every object is injective). But this object is not injective anymore in $\mathbb{Z}$-mod, worse, it is not acyclic.
What is going on for sheaves and for quasi-coherent modules on schemes ?
A bad news : on some weird schemes (I don't have counter-examples), the derived functor of $\Gamma(X,.):QCoh(X)\rightarrow\mathrm{Ab}$ does not give the right thing.
A good news : the derived functor of $\Gamma(X,.):\mathcal{O}_X\mathrm{-mod}\rightarrow\mathrm{Ab}$ does not depend on the $\mathcal{O}_X$-module structure, and give the same thing as the derived functor of $\mathcal{Ab}_X\rightarrow\mathrm{Ab}$. This is what is usually called $H^i(X,.)$.
How to see this : in $\mathcal{O}_X$-mod, injectives modules are flabby (flasque). A proof is given here : https://stacks.math.columbia.edu/tag/01EA. (You will see that it rely on sheaves $j_!\mathcal{O}_U$. But these are not quasi-coherent, this proof fails in $QCoh(X)$ : in $QCoh(X)$ injective are not necassarily flabby). Moreover, in $\mathcal{Ab}_X$, flasque sheaves are acyclics, so can be used to compute cohomology.
Or you can use Godement resolution : it computes the right thing (in fact this is a resolution by flabby sheaves), and does not depend on the $\mathcal{O}_X$-module structure.
- it is historically an important construction
- it is functorial ! No need to make choices of injectives.
- you can show that this gives the right cohomology groups. But since Godement resolution does not depend on the $\mathcal{O}_X$-module structure, this show that the cohomology of $\mathcal{F}$ does not depend on the $\mathcal{O}_X$-structure. This is not obvious at all ! In fact it fails for coherent sheaves on some weird schemes : the derived functor of $\Gamma:Coh(X)\rightarrow Ab$ is not the same as the usual $H^i$.
– Roland Dec 11 '17 at 22:14