Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/word.v
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@

(* -------------------------------------------------------------------- *)
From HB Require Import structures.
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint intdiv zmodp.

Check warning on line 25 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.20)

Notations "\pi ( _ )" defined at level 2 and "\pi"

Check warning on line 25 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.20)

Notations "[ seq _ | _ <- _ ]" defined at level 0 with arguments
From Coq Require Import Arith ZArith Lia.

Check warning on line 26 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.0)

"From Coq" has been replaced by "From Stdlib".

Check warning on line 26 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.1)

"From Coq" has been replaced by "From Stdlib".
Require Import word_ssrZ.

(* -------------------------------------------------------------------- *)
Set SsrOldRewriteGoalsOrder. (* change Set to Unset when porting the file, then remove the line when requiring MathComp >= 2.6 *)
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Expand Down Expand Up @@ -470,7 +471,7 @@
Proof. by rewrite -val_eqE. Qed.

(* -------------------------------------------------------------------- *)
HB.instance Definition _ := GRing.Zmodule_isComRing.Build n.+1.-word

Check warning on line 474 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.0)

Notation GRing.Zmodule_isComRing.Build is deprecated

Check warning on line 474 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.1)

Notation GRing.Zmodule_isComRing.Build is deprecated

Check warning on line 474 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-coq-8.20)

Notation GRing.Zmodule_isComRing.Build is deprecated
mulwA mulwC mul1w mulwDl onew_neq0.

(* -------------------------------------------------------------------- *)
Expand Down Expand Up @@ -595,7 +596,7 @@
Proof. by rewrite mulr_ge0 // ?exprn_ge0 // ler0n. Qed.

Definition wbit (z : Z) (n : nat) : bool :=
nosimpl (Z.testbit z (Z.of_nat n)).

Check warning on line 599 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 599 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.0)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 599 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.19)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 599 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.18)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 599 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.1)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 599 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Lemma wbit0 i : wbit 0 i = false.
Proof. by rewrite /wbit Z.testbit_0_l. Qed.
Expand Down Expand Up @@ -1004,7 +1005,7 @@
Qed.

Definition w0extend :=
nosimpl (fun p w => mkWord (w0extend_subproof p w)).

Check warning on line 1008 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1008 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.0)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1008 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.19)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1008 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.18)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1008 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.1)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1008 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Definition wbit_w0extend (p : nat) (w : n.-word) i :
wbit (w0extend p w) i = if i < n then wbit w i else false.
Expand Down Expand Up @@ -1045,9 +1046,9 @@
+ by rewrite modulusE le2Xn_sumbitsZ.
Qed.

Definition wand := nosimpl (fun w1 w2 => mkWord (wand_subproof w1 w2)).

Check warning on line 1049 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1049 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.0)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1049 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.19)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1049 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.18)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1049 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.1)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1049 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.
Definition wor := nosimpl (fun w1 w2 => mkWord (wor_subproof w1 w2)).

Check warning on line 1050 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1050 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.0)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1050 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.19)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1050 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.18)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1050 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.1)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1050 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.
Definition wxor := nosimpl (fun w1 w2 => mkWord (wxor_subproof w1 w2)).

Check warning on line 1051 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1051 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.0)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1051 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.19)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1051 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.3.0-coq-8.18)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1051 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.1)

Notation nosimpl is deprecated since mathcomp 2.3.0.

Check warning on line 1051 in src/word.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-coq-8.20)

Notation nosimpl is deprecated since mathcomp 2.3.0.

(* -------------------------------------------------------------------- *)
Lemma wandE (w1 w2 : n.-word) i :
Expand Down
1 change: 1 addition & 0 deletions src/word_ssrZ.v
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@

(* -------------------------------------------------------------------- *)
From HB Require Import structures.
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint intdiv.

Check warning on line 25 in src/word_ssrZ.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.20)

Notations "\pi ( _ )" defined at level 2 and "\pi"

Check warning on line 25 in src/word_ssrZ.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.2.0-coq-8.20)

Notations "[ seq _ | _ <- _ ]" defined at level 0 with arguments
From Coq Require Import Arith ZArith.

Check warning on line 26 in src/word_ssrZ.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.0)

"From Coq" has been replaced by "From Stdlib".

Check warning on line 26 in src/word_ssrZ.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.1)

"From Coq" has been replaced by "From Stdlib".

Set SsrOldRewriteGoalsOrder. (* change Set to Unset when porting the file, then remove the line when requiring MathComp >= 2.6 *)
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Expand Down Expand Up @@ -88,7 +89,7 @@
Z.add_assoc Z.add_comm Z.add_0_l Z.add_opp_diag_l.

(* -------------------------------------------------------------------- *)
HB.instance Definition _ := GRing.Zmodule_isComRing.Build Z

Check warning on line 92 in src/word_ssrZ.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.0)

Notation GRing.Zmodule_isComRing.Build is deprecated

Check warning on line 92 in src/word_ssrZ.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.1)

Notation GRing.Zmodule_isComRing.Build is deprecated

Check warning on line 92 in src/word_ssrZ.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-coq-8.20)

Notation GRing.Zmodule_isComRing.Build is deprecated
Z.mul_assoc Z.mul_comm Z.mul_1_l Z.mul_add_distr_r (erefl true).

(* -------------------------------------------------------------------- *)
Expand All @@ -110,7 +111,7 @@

End ZUnitRing.

HB.instance Definition _ := GRing.ComRing_hasMulInverse.Build Z

Check warning on line 114 in src/word_ssrZ.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.0)

Notation GRing.ComRing_hasMulInverse.Build is deprecated

Check warning on line 114 in src/word_ssrZ.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-rocq-prover-9.1)

Notation GRing.ComRing_hasMulInverse.Build is deprecated

Check warning on line 114 in src/word_ssrZ.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp:2.4.0-coq-8.20)

Notation GRing.ComRing_hasMulInverse.Build is deprecated
ZUnitRing.mulVZ ZUnitRing.unitZPl ZUnitRing.invZ_out.

HB.instance Definition _ := GRing.ComUnitRing_isIntegral.Build Z
Expand Down