aboutsummaryrefslogtreecommitdiff
path: root/mathcomp
diff options
context:
space:
mode:
authoraffeldt-aist2020-09-08 15:08:07 +0900
committerGitHub2020-09-08 15:08:07 +0900
commite92551cb84089049902f8107c776b2ed5d935c92 (patch)
tree96f98a38009ca4f489b88c050b32f28b756b66ba /mathcomp
parentb0697693bda2a4c49a38e9265abcf68613801210 (diff)
parent5d90649f226e80256ad903db9b8a0c21042f5a0a (diff)
Merge pull request #577 from CohenCyril/mulmxP
Lemma mul_rVP
Diffstat (limited to 'mathcomp')
-rw-r--r--mathcomp/algebra/matrix.v3
1 files changed, 3 insertions, 0 deletions
diff --git a/mathcomp/algebra/matrix.v b/mathcomp/algebra/matrix.v
index a7920ed..100eed7 100644
--- a/mathcomp/algebra/matrix.v
+++ b/mathcomp/algebra/matrix.v
@@ -1678,6 +1678,9 @@ apply/rowP=> j; rewrite !mxE (bigD1_ord i) //= mxE !eqxx mul1r.
by rewrite big1 ?addr0 // => i'; rewrite mxE /= lift_eqF mul0r.
Qed.
+Lemma mul_rVP m n A B :((@mulmx 1 m n)^~ A =1 mulmx^~ B) <-> (A = B).
+Proof. by split=> [eqAB|->//]; apply/row_matrixP => i; rewrite !rowE eqAB. Qed.
+
Lemma row_mul m n p (i : 'I_m) A (B : 'M_(n, p)) :
row i (A *m B) = row i A *m B.
Proof. by rewrite !rowE mulmxA. Qed.