Affine principal neighbourhoods from ideal-sheaf vanishing (source code)

= Affine principal neighbourhoods from ideal-sheaf vanishing

Let $X$ be an <algebraic variety> over an <algebraically closed field> $k$, and assume $H^1(X,\mathcal I)=0$ for every <coherent ideal sheaf> $\mathcal I$. Given a <closed point> $P$, choose an <affine open subscheme> $U$ containing it and give $Y=X\setminus U$ its <reduced induced subscheme> structure. Since $P\notin Y$, evaluation at $P$ is a <surjective morphism of sheaves>
$$
\mathcal I_Y\longrightarrow k_P,
$$
with <kernel> $\mathcal I_Y\cap\mathcal I_P$. Here $k_P$ is the <skyscraper sheaf> at the closed rational <point>, and the <kernel> is again a <coherent ideal sheaf>. The <long exact sequence in sheaf cohomology> therefore lifts $1\in k_P$ to a <global section> $f$ of $\mathcal I_Y$.

Viewed as a <global regular function>, $f$ vanishes on $Y$ and has $f(P)=1$. Thus $P\in X_f\subseteq U$, and $X_f=U_{f|_U}$ is a <principal open subscheme> of an <affine scheme>, hence affine. Such neighborhoods cover $X$: every nonempty closed <subset> of an <algebraic variety> contains a <closed point>. This is the local step in the <cohomological criterion for affineness>; the closed-point hypothesis makes the coherent skyscraper argument valid.