Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to https://github.com/coq/coq/pull/19801 #107

Merged
merged 1 commit into from
Jan 17, 2025
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
2 changes: 1 addition & 1 deletion theories/common.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
From elpi Require Import elpi.
From Coq Require Import QArith.
From Coq Require Import PeanoNat BinNat Zbool QArith.

Check warning on line 2 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

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

Check warning on line 3 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

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

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

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

View workflow job for this annotation

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

Hiding binding of key N to N_scope

Check warning on line 4 in theories/common.v

View workflow job for this annotation

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

Hiding binding of key Z to Z_scope

Check warning on line 4 in theories/common.v

View workflow job for this annotation

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

Hiding binding of key N to N_scope

Check warning on line 4 in theories/common.v

View workflow job for this annotation

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

Hiding binding of key Z to Z_scope
From mathcomp.zify Require Import ssrZ zify.
Expand All @@ -12,7 +12,7 @@

Local Open Scope ring_scope.

Implicit Types (V : nmodType) (R : semiRingType) (F : fieldType).

Check warning on line 15 in theories/common.v

View workflow job for this annotation

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

Notation semiRingType is deprecated since mathcomp 2.4.0.

Check warning on line 15 in theories/common.v

View workflow job for this annotation

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

Notation semiRingType is deprecated since mathcomp 2.4.0.

Check warning on line 15 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

Notation semiRingType is deprecated since mathcomp 2.4.0.

(* Some basic facts about `Decimal.uint` and `Hexadecimal.uint` *)

Expand Down Expand Up @@ -181,7 +181,7 @@

(* Type for reified expressions *)

Inductive RExpr : semiRingType -> Type :=

Check warning on line 184 in theories/common.v

View workflow job for this annotation

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

Notation semiRingType is deprecated since mathcomp 2.4.0.

Check warning on line 184 in theories/common.v

View workflow job for this annotation

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

Notation semiRingType is deprecated since mathcomp 2.4.0.

Check warning on line 184 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

Notation semiRingType is deprecated since mathcomp 2.4.0.
(* 0 *)
| R0 R : RExpr R
(* addition *)
Expand All @@ -192,11 +192,11 @@
(* natmul *)
| RMuln R : RExpr R -> RExpr nat -> RExpr R
(* opposite and subtraction *)
| ROpp (R : ringType) : RExpr R -> RExpr R

Check warning on line 195 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 195 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 195 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

Notation ringType is deprecated since mathcomp 2.4.0.
| RZOpp : RExpr Z -> RExpr Z
| RZSub : RExpr Z -> RExpr Z -> RExpr Z
(* intmul *)
| RMulz (R : ringType) : RExpr R -> RExpr int -> RExpr R

Check warning on line 199 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 199 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 199 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

Notation ringType is deprecated since mathcomp 2.4.0.
(* 1 *)
| R1 R : RExpr R
(* multiplication *)
Expand Down Expand Up @@ -309,7 +309,7 @@

Section norm.

Variables (R' : semiRingType) (R_of_N : N -> R').

Check warning on line 312 in theories/common.v

View workflow job for this annotation

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

Notation semiRingType is deprecated since mathcomp 2.4.0.

Check warning on line 312 in theories/common.v

View workflow job for this annotation

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

Notation semiRingType is deprecated since mathcomp 2.4.0.

Check warning on line 312 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

Notation semiRingType is deprecated since mathcomp 2.4.0.
Variables (zero : R') (add : R' -> R' -> R').
Variables (one : R') (mul : R' -> R' -> R') (exp : R' -> N -> R').

Expand Down Expand Up @@ -385,7 +385,7 @@

Section correct.

Variables (R' : semiRingType).

Check warning on line 388 in theories/common.v

View workflow job for this annotation

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

Notation semiRingType is deprecated since mathcomp 2.4.0.

Check warning on line 388 in theories/common.v

View workflow job for this annotation

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

Notation semiRingType is deprecated since mathcomp 2.4.0.

Check warning on line 388 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

Notation semiRingType is deprecated since mathcomp 2.4.0.

Notation Rnorm :=
(Rnorm (fun n => (nat_of_N n)%:R) 0 +%R 1 *%R (fun x n => x ^+ N.to_nat n)).
Expand Down Expand Up @@ -448,7 +448,7 @@

Section norm.

Variables (R' : ringType) (R_of_Z : Z -> R').

Check warning on line 451 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 451 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 451 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

Notation ringType is deprecated since mathcomp 2.4.0.
Variables (zero : R') (add : R' -> R' -> R').
Variables (opp : R' -> R') (sub : R' -> R' -> R').
Variables (one : R') (mul : R' -> R' -> R') (exp : R' -> N -> R').
Expand Down Expand Up @@ -555,7 +555,7 @@

Section correct.

Variables (R' : ringType).

Check warning on line 558 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 558 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 558 in theories/common.v

View workflow job for this annotation

GitHub Actions / build (mathcomp/mathcomp-dev:coq-dev)

Notation ringType is deprecated since mathcomp 2.4.0.

Notation Rnorm :=
(Rnorm (fun n : Z => (int_of_Z n)%:~R) 0 +%R -%R (fun x y => x - y)
Expand Down Expand Up @@ -650,7 +650,7 @@

Section norm.

Variables (F : ringType) (F_of_Z : Z -> F).

Check warning on line 653 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 653 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.
Variables (zero : F) (add : F -> F -> F) (opp : F -> F) (sub : F -> F -> F).
Variables (one : F) (mul : F -> F -> F) (exp : F -> N -> F) (inv : F -> F).

Expand Down Expand Up @@ -857,7 +857,7 @@

Section norm.

Variables (F : ringType) (F_of_Z : bool -> Z -> F).

Check warning on line 860 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.

Check warning on line 860 in theories/common.v

View workflow job for this annotation

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

Notation ringType is deprecated since mathcomp 2.4.0.
Variables (zero : F) (add : F -> F -> F) (opp : F -> F) (sub : F -> F -> F).
Variables (one : F) (mul : F -> F -> F) (exp : F -> N -> F) (inv : F -> F).

Expand Down
2 changes: 1 addition & 1 deletion theories/lra.v
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
From elpi Require Import elpi.
From Coq Require Import QArith Ring.
From Coq Require Import BinNat QArith Ring.
From Coq.micromega Require Import RingMicromega QMicromega EnvRing Tauto Lqa.
From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat choice seq.

Check warning on line 4 in theories/lra.v

View workflow job for this annotation

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

Hiding binding of key N to N_scope

Check warning on line 4 in theories/lra.v

View workflow job for this annotation

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

Hiding binding of key N to N_scope
From mathcomp Require Import fintype finfun bigop order ssralg ssrnum ssrint.

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

Check warning on line 5 in theories/lra.v

View workflow job for this annotation

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

Hiding binding of key Z to Z_scope

Check warning on line 5 in theories/lra.v

View workflow job for this annotation

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

Hiding binding of key Z to Z_scope
From mathcomp.zify Require Import ssrZ zify.
From mathcomp.algebra_tactics Require Import common.
From mathcomp.algebra_tactics Extra Dependency "common.elpi" as common.
Expand Down Expand Up @@ -394,7 +394,7 @@
Elpi Tactic lra.
Elpi Accumulate Db canonicals.db.
Elpi Accumulate File common lra.
Elpi Typecheck.

Check warning on line 397 in theories/lra.v

View workflow job for this annotation

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

The command 'Elpi Typecheck' is deprecated (and does nothing) since

Check warning on line 397 in theories/lra.v

View workflow job for this annotation

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

The command 'Elpi Typecheck' is deprecated (and does nothing) since

Check warning on line 397 in theories/lra.v

View workflow job for this annotation

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

The command 'Elpi Typecheck' is deprecated (and does nothing) since

Check warning on line 397 in theories/lra.v

View workflow job for this annotation

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

The command 'Elpi Typecheck' is deprecated (and does nothing) since

Tactic Notation "lra" := elpi lra "lra_witness" "tacF" "tacR" 0.
Tactic Notation "nra" := elpi lra "nra_witness" "tacF" "tacR" 0.
Expand Down
Loading