I'm trying to solve the following exercise frome Hartshorne's Algebraic Geometry:
Exercise III 3.2. Let $X$ be a reduced noetherian scheme. Show that $X$ is affine if and only if each irreducible component is affine
Clearly, if $X$ is affine, the compoents are closed subschemes so affine as well.
For the converse, I guess one has to use the following Proposition, because the chapter is rather short, but contains this strong criterion to be affine:
Proposition III 3.7. A noetherian scheme $X$ is affine iff $H^1(X, \mathcal{I}) = 0$ for every (coherent) sheaf of ideals $\mathcal{I} \subset \mathcal{O}_X$ iff $H^1(X, \mathcal{F}) = 0$ for all quasi-coherent sheaves $\mathcal{F}$.
But I don't know how to relate sheaf cohomology on $X$ to the cohomology the components. Two thoughts I had:
- If $i: Z \hookrightarrow X$ is an irreducible compoent with ideal sheaf $I_Z \subset \mathcal{O}_X$, then the cohomology of the quotient sheaf $i_*\mathcal{O}_Z = \mathcal{O}_X / I_Z$ vanishes, because I can take an injective resolution $\mathcal{O}_Z \to \mathcal{I}^*$ on $Z$, and take the push-forward $i_*\mathcal{I}^*$ of this. Then the sheaves $i_*\mathcal{I}^k$ remain flasque, and I still get a resolution of $i_*\mathcal{O}_Z$, which can be checked on the stalks. So we can use this resolution to commute the cohomology groups of $i_*\mathcal{O}_Z$ on $X$, which will be the same as cohomology of $\mathcal{O}_Z$ on $Z$, i.e. $0$.
Is that reasoning correct?
- Do I have to use Exercise 2.3 and 2.4? That seems to give a tool to compute cohomology on $X$, when cohomology on the components can be computed, but I'm not sure what the relation between $H^i_Y(X, \cdot)$ and $H^i(Y, \cdot)$ is. If part 1. here is correct, then I think $$H^i_Y(X, i_*\mathcal{F}) = H^i(Y, \mathcal{F}) = H^i(X, i_*\mathcal{F})$$ is true, because all three groups can by computed by taking the resolution $i_*\mathcal{I}$.
But even if 1. and 2. work out, I still don't know how to show that $H^1(X, I) = 0$ for all ideal sheaves $I$.