I have trouble understanding an argument in the proof of the Kummer-Dedekind theorem. I am referring to a proof given in Peter Stevenhagen's notes. http://websites.math.leidenuniv.nl/algebra/ant.pdf
This is theorem 3.1 on page 27. For the proof of the second part, the first statement says that since $p_i$ contains $pR$, it is invertible. I am not sure what the author is invoking here. For every ideal contains a principal ideal, but that is not sufficient for invertibility. Also, the fact that $p_i$ contains $pR$ should follow from the first part of the theorem since $p_i=pR+g_i(\alpha)R$. So I don't see what fact is used in proving invertibility of $p_i$ based on its containment of $pR$. Any help would be very appreciated.