Similar Items: Formalized linear algebra over Elementary Divisor Rings in Coq