Skip to content

Commit 53dd6e7

Browse files
committed
Remove lemmas addP and mulP
These lemmas are already available in ssrnat as plusE and multE, respectively.
1 parent a341079 commit 53dd6e7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/word_ssrZ.v

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ by move=> [|n] // ihSn; rewrite -addn1 Nat2Pos.inj_add //; apply/ih.
5050
Qed.
5151
End PosInd.
5252

53-
(* -------------------------------------------------------------------- *)
54-
Lemma addP m n : (m + n)%coq_nat = (m + n)%nat.
55-
Proof. by []. Qed.
56-
57-
Lemma mulP m n : (m * n)%coq_nat = (m * n)%nat.
58-
Proof. by []. Qed.
59-
6053
(* -------------------------------------------------------------------- *)
6154
Definition int_to_Z (z : int) : Z :=
6255
match z with
@@ -244,10 +237,10 @@ Proof.
244237
split=> // -[|x|x] y /=; first by rewrite mul0r.
245238
- elim/posind: x => [|p ih]; first by rewrite !mul1r.
246239
rewrite Pos2Z.inj_add addZE mulrDl mul1r raddfD /=.
247-
by rewrite ih Pos2Nat.inj_add /= addP PoszD mulrDl mul1r.
240+
by rewrite ih Pos2Nat.inj_add /= PoszD mulrDl mul1r.
248241
- elim/posind: x => [|p ih]; first by rewrite !mulN1r raddfN.
249242
rewrite -Pos2Z.add_neg_neg addZE mulrDl mulN1r.
250-
rewrite raddfB /= ih Pos2Nat.inj_add addP PoszD.
243+
rewrite raddfB /= ih Pos2Nat.inj_add PoszD.
251244
by rewrite opprD mulrDl mulN1r.
252245
Qed.
253246

0 commit comments

Comments
 (0)