proposition: Lemma prc_comm_sv_right : forall dim (r c : vector dim) (a:A), prod_row_col _ r (prod_scal_vec _ a c) == mult a (prod_row_col _ r c).
proof: Proof. fix prc_comm_sv_right 1. intros [|dim]. simpl. intros;rewrite <- mult_assoc. rewrite (mult_comm r a). apply mult_assoc. simpl vector. intros [a1 r1] [a2 c2] a. simpl. rewrite prc_comm_sv_right. rewrite <- mult_assoc. rewrite (mult_comm a1 a). rewrite mult_assoc. rewrite mult_distrib_right. reflexivity. Qed.
imports: Coq(Lia List Setoid Peano_dec Eqdep_dec Ring Zwf Morphisms ZArith) CoLoR(interp)