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 examples/field_examples.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
(* Import`s below: *)
(* From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint rat. *)
(* From mathcomp.algebra_tactics Require Import ring. *)
(* 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.
Expand Down
1 change: 1 addition & 0 deletions examples/field_examples_check.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint rat.

Check warning on line 1 in examples/field_examples_check.v

View workflow job for this annotation

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

Library File mathcomp.ssreflect.all_ssreflect is deprecated
From mathcomp.algebra_tactics Require Import ring.
Set SsrOldRewriteGoalsOrder. (* change Set to Unset when porting the file, then remove the line when requiring MathComp >= 2.6 *)

Load "field_examples.v".
1 change: 1 addition & 0 deletions examples/field_examples_no_check.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint rat.

Check warning on line 1 in examples/field_examples_no_check.v

View workflow job for this annotation

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

Library File mathcomp.ssreflect.all_ssreflect is deprecated
From mathcomp.algebra_tactics Require Import ring.
Set SsrOldRewriteGoalsOrder. (* change Set to Unset when porting the file, then remove the line when requiring MathComp >= 2.6 *)

Ltac field_reflection ::= field_reflection_no_check.

Expand Down
1 change: 1 addition & 0 deletions examples/from_sander.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint rat.
From mathcomp.algebra_tactics Require Import ring.
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.
Expand Down
1 change: 1 addition & 0 deletions examples/lra_examples.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint rat.
From mathcomp Require Import lra.
Set SsrOldRewriteGoalsOrder. (* change Set to Unset when porting the file, then remove the line when requiring MathComp >= 2.6 *)

Local Open Scope ring_scope.

Expand Down
1 change: 1 addition & 0 deletions examples/ring_error.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
From mathcomp Require Import all_ssreflect ssralg.
From mathcomp.algebra_tactics Require Import ring.
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.
Expand Down
1 change: 1 addition & 0 deletions examples/ring_examples.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(* `ring_examples_no_check.v`. To edit this file, uncomment `Require Import`s *)
(* below: *)
(* From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint rat ssrZ. *)
Set SsrOldRewriteGoalsOrder. (* change Set to Unset when porting the file, then remove the line when requiring MathComp >= 2.6 *)
(* From mathcomp.algebra_tactics Require Import ring. *)

Set Implicit Arguments.
Expand Down
1 change: 1 addition & 0 deletions examples/ring_examples_check.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint rat ssrZ.
Set SsrOldRewriteGoalsOrder. (* change Set to Unset when porting the file, then remove the line when requiring MathComp >= 2.6 *)
From mathcomp.algebra_tactics Require Import ring.

Load "ring_examples.v".
1 change: 1 addition & 0 deletions examples/ring_examples_no_check.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint rat ssrZ.
Set SsrOldRewriteGoalsOrder. (* change Set to Unset when porting the file, then remove the line when requiring MathComp >= 2.6 *)
From mathcomp.algebra_tactics Require Import ring.

Ltac ring_reflection ::= ring_reflection_no_check.
Expand Down
1 change: 1 addition & 0 deletions theories/common.v
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
From mathcomp Require all_algebra. (* Remove this line when requiring Rocq > 9.1 *)
From elpi Require Import elpi.
From Coq Require Import PeanoNat BinNat Zbool QArith.

Check warning on line 3 in theories/common.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 3 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:rocq-prover-dev)

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

Check warning on line 3 in theories/common.v

View workflow job for this annotation

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

"From Coq" has been replaced by "From Stdlib".
From Coq.micromega Require Import OrderedRing RingMicromega.

Check warning on line 4 in theories/common.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 4 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:rocq-prover-dev)

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

Check warning on line 4 in theories/common.v

View workflow job for this annotation

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

"From Coq" has been replaced by "From Stdlib".
From mathcomp Require Import all_ssreflect ssralg ssrnum ssrint.

Check warning on line 5 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:rocq-prover-dev)

Library File mathcomp.ssreflect.all_ssreflect is deprecated

Check warning on line 5 in theories/common.v

View workflow job for this annotation

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

Library File mathcomp.ssreflect.all_ssreflect is deprecated
From mathcomp.zify Require Import ssrZ zify.

Import Order.TTheory GRing.Theory Num.Theory.

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 @@ -384,9 +385,9 @@

Variables (R' : pzSemiRingType).

Notation Rnorm :=

Check warning on line 388 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:rocq-prover-dev)

Use of "Notation" keyword for abbreviations is deprecated, use
(Rnorm (fun n => (nat_of_N n)%:R) 0 +%R 1 *%R (fun x n => x ^+ N.to_nat n)).
Notation Mnorm :=

Check warning on line 390 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:rocq-prover-dev)

Use of "Notation" keyword for abbreviations is deprecated, use
(Mnorm (fun n => (nat_of_N n)%:R) 0 +%R 1 *%R (fun x n => x ^+ N.to_nat n)).

Lemma Rnorm_correct_rec R (f : {rmorphism R -> R'}) (e : RExpr R) :
Expand Down Expand Up @@ -554,10 +555,10 @@

Variables (R' : pzRingType).

Notation Rnorm :=

Check warning on line 558 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:rocq-prover-dev)

Use of "Notation" keyword for abbreviations is deprecated, use
(Rnorm (fun n : Z => (int_of_Z n)%:~R) 0 +%R -%R (fun x y => x - y)
1 *%R (fun x n => x ^+ N.to_nat n)).
Notation Mnorm :=

Check warning on line 561 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:rocq-prover-dev)

Use of "Notation" keyword for abbreviations is deprecated, use
(Mnorm (fun n : Z => (int_of_Z n)%:~R) 0 +%R -%R (fun x y => x - y)
1 *%R (fun x n => x ^+ N.to_nat n)).

Expand Down Expand Up @@ -758,10 +759,10 @@

Variables (F : fieldType).

Notation Rnorm :=

Check warning on line 762 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:rocq-prover-dev)

Use of "Notation" keyword for abbreviations is deprecated, use
(Rnorm (fun (n : Z) => (int_of_Z n)%:~R) 0 +%R -%R (fun x y => x - y)
1 *%R (fun x n => x ^+ N.to_nat n) GRing.inv).
Notation Mnorm :=

Check warning on line 765 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:rocq-prover-dev)

Use of "Notation" keyword for abbreviations is deprecated, use
(Mnorm (fun (n : Z) => (int_of_Z n)%:~R) 0 +%R -%R (fun x y => x - y)
1 *%R (fun x n => x ^+ N.to_nat n) GRing.inv).

Expand Down Expand Up @@ -1069,7 +1070,7 @@

Variables (F : fieldType).

Notation F_of_Z :=

Check warning on line 1073 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:rocq-prover-dev)

Use of "Notation" keyword for abbreviations is deprecated, use
(fun b (n : Z) => if b then (int_of_Z n)%:~R^-1 else (int_of_Z n)%:~R).
Notation Rnorm :=
(Rnorm F_of_Z 0 +%R -%R (fun x y => x - y)
Expand Down Expand Up @@ -1332,7 +1333,7 @@
Proof.
rewrite /Qeq_bool /R_of_Q /= eqr_div ?pnatr_eq0; try lia.
rewrite !pmulrn -!intrM eqr_int -!/(int_of_Z (Z.pos _)) -!rmorphM /=.
by rewrite (can_eq int_of_ZK); apply/idP/eqP => /Zeq_is_eq_bool.

Check warning on line 1336 in theories/common.v

View workflow job for this annotation

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

Reference Zeq_is_eq_bool is deprecated since 9.0.

Check warning on line 1336 in theories/common.v

View workflow job for this annotation

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

Reference Zeq_is_eq_bool is deprecated since 9.0.

Check warning on line 1336 in theories/common.v

View workflow job for this annotation

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

Reference Zeq_is_eq_bool is deprecated since 9.0.

Check warning on line 1336 in theories/common.v

View workflow job for this annotation

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

Reference Zeq_is_eq_bool is deprecated since 9.0.
Qed.

Lemma R_of_Q_le x y : Qle_bool x y = (R_of_Q x <= R_of_Q y :> F).
Expand Down
1 change: 1 addition & 0 deletions theories/lra.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
From mathcomp Require all_algebra. (* Remove this line when requiring Rocq > 9.1 *)
From elpi Require Import elpi.
From Coq Require Import BinNat QArith Ring.

Check warning on line 3 in theories/lra.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 3 in theories/lra.v

View workflow job for this annotation

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

"From Coq" has been replaced by "From Stdlib".
From Coq.micromega Require Import RingMicromega QMicromega EnvRing Tauto Lqa.

Check warning on line 4 in theories/lra.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 4 in theories/lra.v

View workflow job for this annotation

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

"From Coq" has been replaced by "From Stdlib".
From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat choice seq.
From mathcomp Require Import fintype finfun bigop order ssralg ssrnum ssrint.
Expand All @@ -8,6 +8,7 @@
From mathcomp.algebra_tactics Require Import common.
From mathcomp.algebra_tactics Extra Dependency "common.elpi" as common.
From mathcomp.algebra_tactics Extra Dependency "lra.elpi" as lra.
Set SsrOldRewriteGoalsOrder. (* change Set to Unset when porting the file, then remove the line when requiring MathComp >= 2.6 *)

Import Order.TTheory GRing.Theory Num.Theory.

Expand Down
1 change: 1 addition & 0 deletions theories/ring.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
From mathcomp Require all_algebra. (* Remove this line when requiring Rocq > 9.1 *)
From elpi Require Import elpi.
From Coq Require Import ZArith Ring Ring_polynom Field_theory.

Check warning on line 3 in theories/ring.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 3 in theories/ring.v

View workflow job for this annotation

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

"From Coq" has been replaced by "From Stdlib".
From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat choice seq.
From mathcomp Require Import fintype finfun bigop order ssralg ssrnum ssrint.
From mathcomp.zify Require Import ssrZ zify.
Expand All @@ -9,6 +9,7 @@
From mathcomp.algebra_tactics Extra Dependency "ring.elpi" as ring.
From mathcomp.algebra_tactics Extra Dependency "ring_tac.elpi" as ring_tac.
From mathcomp.algebra_tactics Extra Dependency "field_tac.elpi" as field_tac.
Set SsrOldRewriteGoalsOrder. (* change Set to Unset when porting the file, then remove the line when requiring MathComp >= 2.6 *)

Import GRing.Theory.

Expand Down
Loading