In the spirit of this MO question I would like to ask for applications of a (somewhat lesser known?) lemma.
Lemma. (Nagata) Let $R$ be an atomic domain. TFAE:
- $R$ is a UFD
- There exists a multiplicative submonoid of $R$ generated by prime elements such that $S^{-1}R$ is a UFD
Example application (found in Bill Dubuque's answer to this question):
Claim. $R$ UFD $\implies R[x]$ UFD
Proof. Localizations of UFD's (which don't invert zero) are UFD's. For the hard direction, look at the multiplicative submonoid of $R$ given by $R\setminus \left\{ 0 \right\}$. Since $R$ is a UFD, this monoid is generated by primes. $S^{-1}R=\Bbbk $ is the fraction field of $R$. Now $S^{-1}(R[x])\cong \Bbbk[x]$, but the latter is a PID so in particular a UFD, which implies that $R[x]$ is a UFD itself.
What are some more nice applications of Nagata's lemma?