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
13 changes: 7 additions & 6 deletions .github/workflows/docker-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,19 @@ jobs:
- 'mathcomp/mathcomp:2.2.0-coq-8.18'
- 'mathcomp/mathcomp:2.2.0-coq-8.19'
- 'mathcomp/mathcomp:2.2.0-coq-8.20'
- 'mathcomp/mathcomp:2.2.0-coq-dev'
- 'mathcomp/mathcomp:2.3.0-coq-8.18'
- 'mathcomp/mathcomp:2.3.0-coq-8.19'
- 'mathcomp/mathcomp:2.3.0-coq-8.20'
- 'mathcomp/mathcomp:2.3.0-coq-dev'
- 'mathcomp/mathcomp-dev:coq-8.18'
- 'mathcomp/mathcomp-dev:coq-8.19'
- 'mathcomp/mathcomp:2.4.0-coq-8.19'
- 'mathcomp/mathcomp:2.4.0-coq-8.20'
- 'mathcomp/mathcomp:2.4.0-rocq-prover-9.0'
- 'mathcomp/mathcomp:2.4.0-rocq-prover-dev'
- 'mathcomp/mathcomp-dev:coq-8.20'
- 'mathcomp/mathcomp-dev:coq-dev'
- 'mathcomp/mathcomp-dev:rocq-prover-9.0'
- 'mathcomp/mathcomp-dev:rocq-prover-dev'
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: coq-community/docker-coq-action@v1
with:
opam_file: 'coq-mathcomp-zify.opam'
Expand Down
18 changes: 10 additions & 8 deletions meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,25 @@ tested_coq_opam_versions:
repo: 'mathcomp/mathcomp'
- version: '2.2.0-coq-8.20'
repo: 'mathcomp/mathcomp'
- version: '2.2.0-coq-dev'
repo: 'mathcomp/mathcomp'
- version: '2.3.0-coq-8.18'
repo: 'mathcomp/mathcomp'
- version: '2.3.0-coq-8.19'
repo: 'mathcomp/mathcomp'
- version: '2.3.0-coq-8.20'
repo: 'mathcomp/mathcomp'
- version: '2.3.0-coq-dev'
- version: '2.4.0-coq-8.19'
repo: 'mathcomp/mathcomp'
- version: '2.4.0-coq-8.20'
repo: 'mathcomp/mathcomp'
- version: '2.4.0-rocq-prover-9.0'
repo: 'mathcomp/mathcomp'
- version: '2.4.0-rocq-prover-dev'
repo: 'mathcomp/mathcomp'
- version: 'coq-8.18'
repo: 'mathcomp/mathcomp-dev'
- version: 'coq-8.19'
repo: 'mathcomp/mathcomp-dev'
- version: 'coq-8.20'
repo: 'mathcomp/mathcomp-dev'
- version: 'coq-dev'
- version: 'rocq-prover-9.0'
repo: 'mathcomp/mathcomp-dev'
- version: 'rocq-prover-dev'
repo: 'mathcomp/mathcomp-dev'

dependencies:
Expand Down
1 change: 1 addition & 0 deletions theories/zify_ssreflect.v
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
From Coq Require Import ZArith ZifyClasses ZifyInst ZifyBool.

Check warning on line 1 in theories/zify_ssreflect.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 1 in theories/zify_ssreflect.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".

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

View workflow job for this annotation

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

"From Coq" has been replaced by "From Stdlib".
From Coq Require Export Lia.

Check warning on line 2 in theories/zify_ssreflect.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 2 in theories/zify_ssreflect.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".

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

View workflow job for this annotation

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

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

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

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

View workflow job for this annotation

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

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

From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat seq path.

Check warning on line 5 in theories/zify_ssreflect.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 5 in theories/zify_ssreflect.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
From mathcomp Require Import div choice fintype tuple finfun bigop finset prime.

Check warning on line 6 in theories/zify_ssreflect.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 mathcomp Require Import order binomial.

Set Implicit Arguments.
Expand Down Expand Up @@ -154,7 +155,7 @@
Add Zify BinOp Op_eq_op_nat.

#[global]
Instance Op_addn_rec : BinOp addn_rec := Op_plus.

Check warning on line 158 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference addn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 158 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference addn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 158 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference addn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 158 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference addn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 158 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference addn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 158 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference addn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 158 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference addn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 158 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference addn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 158 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference addn_rec is deprecated since mathcomp 2.3.0.
Add Zify BinOp Op_addn_rec.

#[global]
Expand All @@ -167,7 +168,7 @@
Add Zify BinOp Op_addn_trec.

#[global]
Instance Op_subn_rec : BinOp subn_rec := Op_sub.

Check warning on line 171 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference subn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 171 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference subn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 171 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference subn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 171 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference subn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 171 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference subn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 171 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference subn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 171 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference subn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 171 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference subn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 171 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference subn_rec is deprecated since mathcomp 2.3.0.
Add Zify BinOp Op_subn_rec.

#[global]
Expand All @@ -175,7 +176,7 @@
Add Zify BinOp Op_subn.

#[global]
Instance Op_muln_rec : BinOp muln_rec := Op_mul.

Check warning on line 179 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference muln_rec is deprecated since mathcomp 2.3.0.

Check warning on line 179 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference muln_rec is deprecated since mathcomp 2.3.0.

Check warning on line 179 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference muln_rec is deprecated since mathcomp 2.3.0.

Check warning on line 179 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference muln_rec is deprecated since mathcomp 2.3.0.

Check warning on line 179 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference muln_rec is deprecated since mathcomp 2.3.0.

Check warning on line 179 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference muln_rec is deprecated since mathcomp 2.3.0.

Check warning on line 179 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference muln_rec is deprecated since mathcomp 2.3.0.

Check warning on line 179 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference muln_rec is deprecated since mathcomp 2.3.0.

Check warning on line 179 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference muln_rec is deprecated since mathcomp 2.3.0.
Add Zify BinOp Op_muln_rec.

#[global]
Expand Down Expand Up @@ -236,7 +237,7 @@
Proof. rewrite -Zpower_nat_Z; elim: m => //= m <-; rewrite expnS; lia. Qed.

#[global]
Instance Op_expn_rec : BinOp expn_rec :=

Check warning on line 240 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference expn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 240 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference expn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 240 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference expn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 240 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference expn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 240 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference expn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 240 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference expn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 240 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference expn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 240 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference expn_rec is deprecated since mathcomp 2.3.0.

Check warning on line 240 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Reference expn_rec is deprecated since mathcomp 2.3.0.
{ TBOp := Z.pow; TBOpInj := Op_expn_subproof }.
Add Zify BinOp Op_expn_rec.

Expand Down Expand Up @@ -387,7 +388,7 @@
Fact modZ_ge0 m d : d <> 0%Z -> (0 <= modZ m d)%Z.
Proof.
by move: d m => [] // d [] // m _; rewrite /modZ /divZ [Z.abs_nat _]/=;
move: (leq_trunc_div (Pos.to_nat m) (Pos.to_nat d));

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.

Check warning on line 391 in theories/zify_ssreflect.v

View workflow job for this annotation

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

Notation leq_trunc_div is deprecated since mathcomp 2.4.0.
move: (@ltn_ceil (Pos.to_nat m).-1 (Pos.to_nat d)); lia.
Qed.

Expand Down
Loading