Given a PID, or Principal Ideal Domain R, if there exist d1,⋯,dr∈R and invertible matricesP∈Rm×m, Q∈Rn×n that satisfy the following for a matrixA∈Rm×n, then PAQ∈Rm×n is called the Smith Normal Form of A.
PAQ=d1000⋮00⋱00⋮000dr0⋮00000⋮0⋯⋯⋯⋯⋱⋯0000⋮0∈Rm×n
Here, d1,⋯,dr must not be 0 in R, and it must be d1∣⋯∣dr. In other words, dk=0 must be a [Divisor] of dk+1.
Example
The inverse matrix might seem complicated, but it can actually be obtained through the Gaussian elimination method. While it’s not an official expression, to make the example easier to read, I will indicate on the right side of the matrix which operations are applied. r− is row, c− is column, −x is exchange, −e is elimination, and −+ is the operation of multiplying by a coefficient and adding.
Of course, computing it through Gaussian elimination might not be smart in terms of computation. It’s just something to note that it can also be solved this way when calulating by hand.
It’s important to note that the given Principal Ideal Domain R does not guarantee to be a Field, which means division is generally not permitted, and elimination must be performed using PID being a Bézout Domain.
Conclusion
Existence and Uniqueness
When R is a Principal Ideal Domain, a Smith Normal Form uniquely exists for all matricesA∈Rm×n. The uniqueness here disregards the multiplication of dk by units.