aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/algebra/intdiv.v
diff options
context:
space:
mode:
authorAnton Trunov2019-05-28 22:57:38 +0300
committerAnton Trunov2019-05-28 23:56:19 +0300
commiteac1d28204c93f082771dedb90fc5a1edec6e6f8 (patch)
tree1d3709a7e13e1db2508253213ee690af1e222d2c /mathcomp/algebra/intdiv.v
parent748d716efb2f2f75946c8386e441ce1789806a39 (diff)
Add eqsP view to destruct not only x == y, but also y == x
Diffstat (limited to 'mathcomp/algebra/intdiv.v')
-rw-r--r--mathcomp/algebra/intdiv.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/mathcomp/algebra/intdiv.v b/mathcomp/algebra/intdiv.v
index 48e9de8..77f8781 100644
--- a/mathcomp/algebra/intdiv.v
+++ b/mathcomp/algebra/intdiv.v
@@ -969,7 +969,7 @@ without loss{IHa} /forallP/(_ (_, _))/= a_dvM: / [forall k, a %| M k.1 k.2]%Z.
by exists i; rewrite mxE.
exists R^T; last exists L^T; rewrite ?unitmx_tr //; exists d => //.
rewrite -[M]trmxK dM !trmx_mul mulmxA; congr (_ *m _ *m _).
- by apply/matrixP=> i1 j1; rewrite !mxE eq_sym; case: eqP => // ->.
+ by apply/matrixP=> i1 j1; rewrite !mxE; case: eqsP => // ->.
without loss{nz_a a_dvM} a1: M a Da / a = 1.
pose M1 := map_mx (divz^~ a) M; case/(_ M1 1)=> // [k|L uL [R uR [d dvD dM]]].
by rewrite !mxE Da divzz nz_a.