Skip to content

Commit f42c6c8

Browse files
committed
Do not require all_algebra
1 parent 4f8db17 commit f42c6c8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/word.v

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
(* SOFTWARE. *)
2222

2323
(* -------------------------------------------------------------------- *)
24-
From mathcomp Require Import all_ssreflect all_algebra zmodp.
25-
(* ------- *) Require Import Arith ZArith word_ssrZ.
26-
Require Psatz.
24+
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint intdiv zmodp.
25+
From Coq Require Import Arith ZArith Lia.
26+
Require Import word_ssrZ.
2727

2828
(* -------------------------------------------------------------------- *)
2929
Set Implicit Arguments.
@@ -1083,8 +1083,8 @@ have Hn : (0 < 2 ^ Z.of_nat n)%Z.
10831083
replace (-1 mod 2 ^ Z.of_nat n)%Z with (Z.ones (Z.of_nat n)); first last.
10841084
+ rewrite Z.ones_equiv; elim_div => ?; cut (z = -1)%Z; Lia.nia.
10851085
case: ssrnat.ltP => h.
1086-
+ apply: Z.ones_spec_low; Psatz.lia.
1087-
apply: Z.ones_spec_high; Psatz.lia.
1086+
+ apply: Z.ones_spec_low; lia.
1087+
apply: Z.ones_spec_high; lia.
10881088
Qed.
10891089

10901090
End WordLogicals.
@@ -1345,7 +1345,7 @@ move: {w w' s s' eq_size} (urepr w) (urepr w') (wcat_r s) (wcat_r s') (2%:R ^+ (
13451345
rewrite /GRing.zero /GRing.add /GRing.mul /=.
13461346
do 4 case/andP => /leZP ? /ltZP ?.
13471347
move => h.
1348-
cut (a = a'); Psatz.nia.
1348+
cut (a = a'); nia.
13491349
Qed.
13501350

13511351
Definition wcat {p} (s : p.-tuple n.-word) :=

src/word_ssrZ.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
(* SOFTWARE. *)
2222

2323
(* -------------------------------------------------------------------- *)
24-
From mathcomp Require Import all_ssreflect all_algebra.
25-
(* ------- *) Require Import Arith ZArith.
24+
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint intdiv.
25+
From Coq Require Import Arith ZArith.
2626

2727
Set Implicit Arguments.
2828
Unset Strict Implicit.

0 commit comments

Comments
 (0)