Skip to content

Commit 27b915c

Browse files
committed
Generalize cmM_eq1 and fmM_eq1 to mulm_eq1
1 parent 65847c9 commit 27b915c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/monalg.v

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ Proof.
145145
by apply: (iffP eqP)=> [/unitm[-> ->]|[/eqP-> /eqP->]] //; rewrite mulm1.
146146
Qed.
147147

148+
Lemma mulm_eq1 (x y : M) : (x * y == 1) = (x == 1) && (y == 1).
149+
Proof. exact/unitmP/andP. Qed.
150+
148151
Lemma expmnS (x : M) (n : nat) : expmn x n.+1 = x * expmn x n.
149152
Proof. by rewrite /expmn !Monoid.iteropE iterS. Qed.
150153

@@ -1558,9 +1561,6 @@ Qed.
15581561
Lemma mdeg_eq0 m : (mdeg m == 0%N) = (m == 1%M).
15591562
Proof. exact/mf_eq0. Qed.
15601563

1561-
Lemma cmM_eq1 m1 m2 : (m1 * m2 == 1)%M = (m1 == 1%M) && (m2 == 1%M).
1562-
Proof. by rewrite -!mdeg_eq0 mdegM addn_eq0. Qed.
1563-
15641564
Lemma cm1_eq1 i : (U_(i) == 1)%M = false.
15651565
Proof. by rewrite -mdeg_eq0 mdegU. Qed.
15661566

@@ -1767,9 +1767,6 @@ Qed.
17671767
Lemma fdeg_eq0 m : (fdeg m == 0%N) = (m == 1%M).
17681768
Proof. exact/mf_eq0. Qed.
17691769

1770-
Lemma fmM_eq1 m1 m2 : (m1 * m2 == 1)%M = (m1 == 1%M) && (m2 == 1%M).
1771-
Proof. by rewrite -!fdeg_eq0 fdegM addn_eq0. Qed.
1772-
17731770
Lemma fm1_eq1 i : (U_(i) == 1)%M = false.
17741771
Proof. by rewrite -fdeg_eq0 fdegU. Qed.
17751772

0 commit comments

Comments
 (0)