A Dedekind domain that is a UFD is a PID
ProvedFamousTheorems.dedekind_ufd_pid_7bA Dedekind domain with unique factorization is a PID. Let be a Dedekind domain that is a unique factorization domain. Then is a principal ideal domain.
In a Dedekind domain the class group measures the failure of unique factorization of elements, and this theorem says that it vanishes as soon as unique factorization holds. For rings of integers of number fields, unique factorization is therefore equivalent to class number . The proof shows that every nonzero prime contains a prime element, which generates a nonzero prime ideal and so equals it.
Formalization note. Mathlib's IsPrincipalIdealRing.of_isDedekindDomain_of_uniqueFactorizationMonoid. UniqueFactorizationMonoid R says that every nonzero element has a factorization into irreducibles and that irreducible elements are prime.
import Mathlib
namespace FamousTheorems theorem dedekind_ufd_pid_7b (R : Type*) [CommRing R] [IsDedekindDomain R] [UniqueFactorizationMonoid R] : IsPrincipalIdealRing R := by sorry end FamousTheorems