Let R be a commutative ring with a 1 different from 0, such that all finite matrices over R have a Smith normal form. Does it follow that R is a Principal Ideal Domain?
If not, what if R also has no zero divisors? (aka is an integral domain) What if additionally the diagonal entries are always unique up to associatedness?

