Formalized linear algebra over Elementary Divisor Rings in Coq (Logical Methods in Computer Science, 2016)