fact: Definition invariant_factors n (A : 'M[F]_n) := filter (fun p : E => (1 < size p)%N) (Frobenius_seq A).
imports: mathcomp(all_ssreflect) mathcomp(all_algebra) mathcomp(all_fingroup) mathcomp(all_real_closed) CoqEAL(binetcauchy ssrcomplements mxstructure minor) CoqEAL(smith dvdring polydvd) CoqEAL(similar perm_eq_image companion closed_poly smith_complements)