I have been looking at Hartshorne III exercise 6.8 for nearly a week now and I don't seem to have a clue as to how to do it. In particular, I am stuck on part (a) which boils down to showing the following.
Let $X$ be integral, separated and locally factorial. Let $U$ be any open neighbourhood of a closed point $x$. Suppose that $Z := X- U$ is irreducible with generic point $\zeta$. Then there is a line bundle $\mathcal{L}$ and $s \in H^0(X,\mathcal{L})$ with $x \in X_s \subseteq U$.
Now I have convinced myself using separatedness of $X$ that we may choose a rational function $f$ with the property that $f \in \mathcal{O}_{X,x}$ and $f \notin \mathcal{O}_{X,\zeta}$. With this, we immediately deduce that for any $z \in Z$, $f \notin \mathcal{O}_{X,z}$ because we have an injection
$$ \mathcal{O}_{X,z} \hookrightarrow \mathcal{O}_{X,\zeta}.$$
Edit:
Ok here is an argument which I think works. It is not hard to see that $$H^0(X,\mathcal{L}(D)) = \{ f \in K(X)^\ast : div(f) + D \geq 0\} \cup \{0\},$$ i.e. all rational functions whose poles are no worse than $D$. Sitting inside of this is the canonical rational section $s$ corresponding to $1 \in K(X)^\ast$. Now I want to say that this $s$ has zeros wherever $f$ has a pole. When I look at a concrete example I can see this is true. If I look at $\Bbb{A}^1$ and $D= (f)_{\infty}$ for $f = 1/(x-1)(x-2)$, then $$\mathcal{L}(D) = \frac{1}{(x-1)(x-2)} \mathcal{O}_X$$
and the canonical section $1$ corresponds to $\frac{1}{(x-1)(x-2)} \times (x-1)(x-2).$ This "shows" wherever $f$ has a pole, $s$ has a zero. This is enough to conclude that $Z \subseteq V(s)$ because $f \notin \mathcal{O}_{X,z}$ for all $z \in Z$.
But now we are on an arbitrary scheme satisfying the conditions in the beginning, so:
My question is: How can we make rigorous the idea that wherever $f$ has a pole $s$ has a zero? Also, where do we use the locally factorial hypothesis? Is it just to make that $\mathcal{L}(D)$ be invertible?
<p><strong>Added:</strong> Can someone elaborate on what exactly this "canonical section" $1 \in H^0(X,\mathcal{L}(D))$ is?</p>
We will use "integral" to know that any non-zero section is regular.
But of course you have to sort all this out into an actual argument, and I haven't quite seen how to write it down yet. Cheers,
– Matt E Jan 17 '14 at 06:56