The “Algebraic Hartog’s Lemma” is Lemma 13.5.11 in Ravi’s book. Slightly restated, it says the following:
Let be an integrally closed Noetherian integral domain and let
. Let
. The following are equivalent:
(1) is in
.
(2) For all dvrs with
, we have
.
(3) For all codimension one primes , we have
.
The implications are straightforward, but I find
quite confusing. And I have to say that Ravi’s proof doesn’t help me; it feels like a lot of pushing around modules that I don’t follow. So I put in a fair bit of time trying to find my own route and wound up frustrated: I thought I was making a fair bit of progress, but then I get stuck at the end.
I’m very glad to hear about other proofs that people like!
Okay, we want to prove . We’ll attack the contrapositive: Given
, we want to find a codimension one prime
such that
.
Put and put
.
Claim: is not the unit ideal of
.
Proof: If is
, then
for some
in
. Then
, so
is integral over
, which we assumed not to be the case.
Thus, there is a prime ideal of
with
, and thus
. So
, and therefore
. Moreover, since we assumed
to be Noetherian, by Krull’s principal ideal theorem, we can assume that
is a codimension one prime of
.
So far, we seem really close to the desired goal. And it feels to me like what I have done so far is not that difficult, and is reasonably well motivated. The trouble is that we have and not
for some codimension one prime of
.
I’ll now explain my failure to finish the proof. It is quite possible, though, that you should close your browser now, get out a notepad, and start thinking on your own, because I am not convinced that anything that follows is helpful. I also hope, at some point, to write a blogpost explaining how this all works for non-Noetherian things, since it is much more straightforward than I realized.
The most direct thing to do, in my opinion, is to put . Fortunately,
is prime. But is it codimension one?
Let’s do an example. Let and let
. Then
and the ideal
is prime, so we take
. We have
. So, in this case, we win! The ideal
is, indeed, codimension one in
.
On the other hand, the map is not dimension preserving even in this very simple example. Look at the prime ideal
in
, and note that
. So
. The ideal
is codimension one in
, and
is codimension two in
. So we need to use something specific to the prime
.
My first thought is to localize to . We have an inclusion
. If
is finite over
, then we are done. In our example, in fact have equality!
, because
is a unit in
.
In every example I have tried, this is what happened: I always found that . I don’t know how to prove this. We want to show that
, so we want to write
for
, $\beta \in R$ and
. I’m not sure how you’d do that …
If we knew that was a finitely generated
module, we could hope to apply Nakayama’s lemma to show that
is surjective. But, if we knew that
was a finitely generated
module, then we would already know that the map
was dimension preserving. And it seems odd to aim for proving that
is finite over
when the evidence suggests the much stronger claim that
.
Here is a lemma which seems like it should help:
Lemma: The natural map is an isomorphism.
Proof: First of all, let’s understand where this map comes from. The kernel of the composite is, by definition,
. So we get a natural injection
. It remains to prove surjectivity. Since
, the ring
is generated over
by
. So all we need to show is that $\theta^{-1}$ is in the image of our injection. But
so
in
, and this is obvious.
This lets us prove that is codimension one in
in a very large number of cases:
Proposition: Let have finite Krull dimension. Then
is codimension one in
.
Proof: Let be the Krull dimension of
. Let
for
,
. Then
. By the Krull principal ideal theorem, each irreducible component of
is
-dimensional. One of these components is
, so
. Then
has dimension
. So
must be codimension one in
.
In a very different direction, I considered trying to show that is a dvr, or at least that it is contained in some dvr
with
. In that way, we could at least show that (3) implies (2). Since
is codimension one in
, this follows immediately if we know that
is integrally closed.
But has no reason to be integrally closed: Take
and
. Then
but
.
So I considered replacing by its normalization
. But the normalization of a Noetherian ring is not always Noetherian! So I’m not sure where to go from here …

It seems that, in principle, a proof of 3=>1 fails to avoid using associated primes/primary ideals/primary decomposition.
Besides Stacks Project Tag 031T, see for example Siegfried Bosch’s book on algebraic geometry. It’s Proposition 5 on Page 434.
In fact, Vakil’s proof uses primary ideals implicitly.
I was looking for a proof independent of primary ideals, but nothing interesting was found. 🙁