ED implies PID implies UFD
Theorem: Every Euclidean domain is a principal ideal domain.
Proof: For any ideal , take a nonzero element of minimal norm . Then must be generated by , because for any we have for some with , and we must have otherwise would be a nonzero element of smaller norm than , which is a contradiction.
Fact: If is a UFD then is also a UFD.
Theorem: Every principal ideal domain is a unique factorization domain.
Proof: We show it is impossible to find an infinite sequence such that is divisible by but is not an associate. Once done we can iteratively factor an element as we are guaranteed this process terminates.
Suppose such a sequence exists. Then the generate the sequence of distinct principal ideals . The union of these ideals is some principal ideal . So for some , which implies for all , a contradiction.
Uniqueness: each irreducible generates a maximal ideal because if then for some implying that or is a unit, thus or . Thus is a field. Next suppose a member of has two factorizations
Consider the ideals . Relabel so that generates a minimal ideal amongst these (in other words, does not strictly contain another one of the ideals). Now we show for some . Suppose not. Then does not contain any , thus is nonzero modulo for all , which is a contradiction because the left-hand side of the above equation is zero modulo .
Relabel so that . Then for some unit . Cancelling gives . The element is also irreducible, so by induction we have that factorization is unique.
The converse of the above theorem is not always true. Consider the ring . The ideal is not principal: suppose for some . Since this ideal contains the even integers, must be some integer (multiplication never reduces the degree of an element), and in fact it must be (an associate of) 2. But does not contain polynomials with odd coefficients, so .