I'm working on Dummit & Foote's Abstract Algebra. In Section 8.2 of P.I.D.s I found the following question:
If $R$ is an integral domain, prove that $R$ is a P.I.D. if the following two conditions hold:
(a) Any two nonzero elements $a,b$ have a g.c.d in $(a,b)$;
(b) For a chain of nonzero elements $a_1,a_2,a_3,\dots$, if $a_{i+1}|a_i$, then there exists a positive integer $N$ such that for all $n>N$, $a_n$ is a unit times $a_N$.
A simple proof goes by taking elements that are g.c.d. with all previous elements successively, which forms a chain, and by (b) it must terminate, hence giving a generating element.
My question would be, is condition (b) sufficient on itself?
Condition (b) reminds me of a lot of proofs using Zorn's Lemma, so I tried to outline a proof below:
Define an equivalence relation on $R$ by $a\sim b\iff a=ub$ where $u$ is a unit. Define a partial order on equivalence classes so that $\bar a\leq \bar b\iff a|b$. Then condition (b) states that given an ideal $I$, all decreasing chains in $I$ adopt a minimal element, thus by Zorn's Lemma, $I$ has a minimal element, which would be its generator.
Are there any mistakes in this argument? If it is wrong, are there any counterexamples?
Edit: Yes, the proof is wrong because I misunderstood Zorn's Lemma. A minimal element $m$ in Zorn's Lemma means that for any $x\neq m$ there can't be $x\leq m$, but it doesn't necessarily mean that $m\leq y$ for all $y$.