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/math-comp/math-comp/pull/1354 #73

Merged
merged 1 commit into from
Feb 28, 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
4 changes: 1 addition & 3 deletions .github/workflows/docker-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ jobs:
strategy:
matrix:
image:
- 'mathcomp/mathcomp:2.1.0-coq-8.18'
- 'mathcomp/mathcomp:2.2.0-coq-8.18'
- 'mathcomp/mathcomp:2.2.0-coq-8.19'
- '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-dev:coq-8.19'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ order theory of real closed field, through quantifier elimination.
- License: [CeCILL-B](CECILL-B)
- Compatible Coq versions: Coq 8.18 or later
- Additional dependencies:
- [MathComp ssreflect 2.1 or later](https://math-comp.github.io)
- [MathComp ssreflect 2.3 or later](https://math-comp.github.io)
- [MathComp algebra](https://math-comp.github.io)
- [MathComp field](https://math-comp.github.io)
- [MathComp bigenough 1.0.0 or later](https://github.com/math-comp/bigenough)
Expand Down
2 changes: 1 addition & 1 deletion coq-mathcomp-real-closed.opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ install: [make "install"]
depends: [
("coq" {>= "8.18" & < "8.21~"}
| "rocq-core" { (>= "9.0" & < "9.1~") | (= "dev") })
"coq-mathcomp-ssreflect" {>= "2.1"}
"coq-mathcomp-ssreflect" {>= "2.3"}
"coq-mathcomp-algebra"
"coq-mathcomp-field"
"coq-mathcomp-bigenough" {>= "1.0.0"}
Expand Down
10 changes: 3 additions & 7 deletions meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ supported_coq_versions:
opam: '{>= "8.18"}'

tested_coq_opam_versions:
- version: '2.1.0-coq-8.18'
repo: 'mathcomp/mathcomp'
- version: '2.2.0-coq-8.18'
repo: 'mathcomp/mathcomp'
- version: '2.2.0-coq-8.19'
- version: '2.3.0-coq-8.18'
repo: 'mathcomp/mathcomp'
- version: '2.3.0-coq-8.19'
repo: 'mathcomp/mathcomp'
Expand All @@ -65,9 +61,9 @@ tested_coq_opam_versions:
dependencies:
- opam:
name: coq-mathcomp-ssreflect
version: '{>= "2.1"}'
version: '{>= "2.3"}'
description: |-
[MathComp ssreflect 2.1 or later](https://math-comp.github.io)
[MathComp ssreflect 2.3 or later](https://math-comp.github.io)
- opam:
name: coq-mathcomp-algebra
description: |-
Expand Down
6 changes: 2 additions & 4 deletions theories/cauchyreals.v
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@
Proof. by case: x. Qed.

Definition cauchymod :=
nosimpl (fun (x : creal) => let: CReal _ m := x in projT1 m).

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

Lemma cauchymodP (x : creal) eps i j : 0 < eps ->
(cauchymod x eps <= i)%N -> (cauchymod x eps <= j)%N -> `|x i - x j| < eps.
Expand Down Expand Up @@ -885,7 +885,7 @@
Qed.

Definition ubound (x : creal) :=
nosimpl (let: exist2 b _ _ := ubound_subproof x in b).

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

Lemma uboundP (x : creal) i : `|x i| <= ubound x.
Proof. by rewrite /ubound; case: ubound_subproof. Qed.
Expand Down Expand Up @@ -1558,8 +1558,7 @@

Definition horner2_creal (p : {poly {poly F}}) (x y : creal) :=
CReal (horner2_crealP p x y).
Notation "p .[ x , y ]" := (horner2_creal p x y)
(at level 2, left associativity) : creal_scope.
Notation "p .[ x , y ]" := (horner2_creal p x y) : creal_scope.

Lemma root_monic_from_neq0 (p : {poly F}) (x : creal) :
p.[x] == 0 -> ((lead_coef p) ^-1 *: p).[x] == 0.
Expand Down Expand Up @@ -1662,8 +1661,7 @@
Notation "x_neq0 ^-1" := (inv_creal x_neq0) : creal_scope.
Notation "x / y_neq0" := (x * (y_neq0 ^-1))%CR : creal_scope.
Notation "p .[ x ]" := (horner_creal p x) : creal_scope.
Notation "p .[ x , y ]" := (horner2_creal p x y)
(at level 2, left associativity) : creal_scope.
Notation "p .[ x , y ]" := (horner2_creal p x y) : creal_scope.
Notation "x ^+ n" := (exp_creal x n) : creal_scope.

Notation "`| x |" := (norm_creal x) : creal_scope.
Expand Down
Loading