When proving that rational numbers can be written in their lowest terms, we used the well-ordering principle to choose a numerator that is the smallest and then it contradicts the fact that this numerator can be further reduced. However, if we were given a general unique factorization domain (UFD), how are we suppose to show that every element in the field of fractions can still be expressed in the lowest terms (i.e the gcd(a,b) is not a unit).
I was thinking of going along the same lines as with the rational numbers case but now that I have the set of numerators how do I choose the "smallest" element in this case? Do I still apply the well-ordering principle, but then how can I say that an element is smaller than another in a general ring?