Skip to content

Commit 96dfac8

Browse files
authored
Merge pull request #65 from math-comp/release
Prepare for a release
2 parents c2aad01 + 781dc45 commit 96dfac8

File tree

12 files changed

+74
-131
lines changed

12 files changed

+74
-131
lines changed

.github/workflows/docker-action.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,21 @@ jobs:
1717
strategy:
1818
matrix:
1919
image:
20-
- 'mathcomp/mathcomp:2.0.0-coq-8.16'
21-
- 'mathcomp/mathcomp:2.0.0-coq-8.17'
22-
- 'mathcomp/mathcomp:2.0.0-coq-8.18'
23-
- 'mathcomp/mathcomp:2.1.0-coq-8.16'
24-
- 'mathcomp/mathcomp:2.1.0-coq-8.17'
25-
- 'mathcomp/mathcomp:2.1.0-coq-8.18'
26-
- 'mathcomp/mathcomp:2.2.0-coq-8.16'
27-
- 'mathcomp/mathcomp:2.2.0-coq-8.17'
28-
- 'mathcomp/mathcomp:2.2.0-coq-8.18'
29-
- 'mathcomp/mathcomp:2.2.0-coq-8.19'
30-
- 'mathcomp/mathcomp:2.2.0-coq-8.20'
3120
- 'mathcomp/mathcomp:2.3.0-coq-8.18'
3221
- 'mathcomp/mathcomp:2.3.0-coq-8.19'
3322
- 'mathcomp/mathcomp:2.3.0-coq-8.20'
3423
- 'mathcomp/mathcomp:2.4.0-coq-8.19'
3524
- 'mathcomp/mathcomp:2.4.0-coq-8.20'
3625
- 'mathcomp/mathcomp:2.4.0-rocq-prover-9.0'
3726
- 'mathcomp/mathcomp:2.4.0-rocq-prover-dev'
38-
- 'mathcomp/mathcomp-dev:coq-8.20'
3927
- 'mathcomp/mathcomp-dev:rocq-prover-9.0'
4028
- 'mathcomp/mathcomp-dev:rocq-prover-dev'
4129
fail-fast: false
4230
steps:
4331
- uses: actions/checkout@v4
4432
- uses: coq-community/docker-coq-action@v1
4533
with:
46-
opam_file: 'coq-mathcomp-zify.opam'
34+
opam_file: 'rocq-mathcomp-zify.opam'
4735
custom_image: ${{ matrix.image }}
4836
export: 'OPAMWITHTEST'
4937
env:

Make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ theories/zify_algebra.v
44
theories/zify.v
55

66
-R theories mathcomp.zify
7+
-arg -w -arg -redundant-canonical-projection
78
-arg -w -arg -notation-overridden

Makefile.coq.local

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pre-all::
2+
if command -v coqc > /dev/null && (coqc --version | grep -q '8.18\|8.19\|8.20') ; then \
3+
for f in $(shell grep "From Stdlib" $$(find . -name "*.v") | cut -d: -f1) ; do \
4+
sed -i.bak 's/From Stdlib/From Coq/' $${f} ; \
5+
$(RM) $${f}.bak ; \
6+
done ; \
7+
fi

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ by extending the zify tactic.
2121
- Author(s):
2222
- Kazuhiko Sakaguchi (initial)
2323
- License: [CeCILL-B Free Software License Agreement](CeCILL-B)
24-
- Compatible Coq versions: 8.16 or later
24+
- Compatible Rocq/Coq versions: 8.18 or later
2525
- Additional dependencies:
26-
- [MathComp](https://math-comp.github.io) ssreflect 2.0 or later
26+
- [MathComp](https://math-comp.github.io) ssreflect 2.3 or later
2727
- [MathComp](https://math-comp.github.io) algebra
28-
- Coq namespace: `mathcomp.zify`
28+
- Rocq/Coq namespace: `mathcomp.zify`
2929
- Related publication(s): none
3030

3131
## Building and installation instructions
@@ -35,7 +35,7 @@ is via [OPAM](https://opam.ocaml.org/doc/Install.html):
3535

3636
```shell
3737
opam repo add coq-released https://coq.inria.fr/opam/released
38-
opam install coq-mathcomp-zify
38+
opam install rocq-mathcomp-zify
3939
```
4040

4141
To instead build and install manually, do:

_CoqProject

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
-R theories mathcomp.zify
2+
-arg -w -arg -redundant-canonical-projection
23
-arg -w -arg -notation-overridden

coq-mathcomp-zify.opam

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,18 @@
1-
# This file was generated from `meta.yml`, please do not edit manually.
2-
# Follow the instructions on https://github.com/coq-community/templates to regenerate.
3-
41
opam-version: "2.0"
5-
maintainer: "kazuhiko.sakaguchi@inria.fr"
2+
maintainer: "kazuhiko.sakaguchi@ens-lyon.fr"
63
version: "dev"
74

85
homepage: "https://github.com/math-comp/mczify"
96
dev-repo: "git+https://github.com/math-comp/mczify.git"
107
bug-reports: "https://github.com/math-comp/mczify/issues"
118
license: "CECILL-B"
129

13-
synopsis: "Micromega tactics for Mathematical Components"
14-
description: """
15-
This small library enables the use of the Micromega arithmetic solvers of Coq
16-
for goals stated with the definitions of the Mathematical Components library
17-
by extending the zify tactic."""
18-
19-
build: [make "-j%{jobs}%"]
20-
run-test: [make "-j%{jobs}%" "test-suite"]
21-
install: [make "install"]
22-
depends: [
23-
"coq" {>= "8.16"}
24-
"coq-mathcomp-ssreflect" {>= "2.0"}
25-
"coq-mathcomp-algebra"
26-
]
27-
10+
depends: [ "rocq-mathcomp-zify" { = version } ]
2811
tags: [
2912
"logpath:mathcomp.zify"
3013
]
3114
authors: [
3215
"Kazuhiko Sakaguchi"
3316
]
17+
18+
synopsis: "Compatibility package for rocq-mathcomp-zify"

meta.yml

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
fullname: Mczify
33
shortname: mczify
4-
opam_name: coq-mathcomp-zify
4+
opam_name: rocq-mathcomp-zify
55
organization: math-comp
66
action: true
77

@@ -17,42 +17,20 @@ authors:
1717
- name: Kazuhiko Sakaguchi
1818
initial: true
1919

20-
opam-file-maintainer: kazuhiko.sakaguchi@inria.fr
20+
opam-file-maintainer: kazuhiko.sakaguchi@ens-lyon.fr
2121

2222
license:
2323
fullname: CeCILL-B Free Software License Agreement
2424
identifier: CECILL-B
2525
file: CeCILL-B
2626

2727
supported_coq_versions:
28-
text: 8.16 or later
29-
opam: '{>= "8.16"}'
28+
text: 8.18 or later
29+
opam: '{>= "8.18"}'
3030

3131
tested_coq_nix_versions:
3232

3333
tested_coq_opam_versions:
34-
- version: '2.0.0-coq-8.16'
35-
repo: 'mathcomp/mathcomp'
36-
- version: '2.0.0-coq-8.17'
37-
repo: 'mathcomp/mathcomp'
38-
- version: '2.0.0-coq-8.18'
39-
repo: 'mathcomp/mathcomp'
40-
- version: '2.1.0-coq-8.16'
41-
repo: 'mathcomp/mathcomp'
42-
- version: '2.1.0-coq-8.17'
43-
repo: 'mathcomp/mathcomp'
44-
- version: '2.1.0-coq-8.18'
45-
repo: 'mathcomp/mathcomp'
46-
- version: '2.2.0-coq-8.16'
47-
repo: 'mathcomp/mathcomp'
48-
- version: '2.2.0-coq-8.17'
49-
repo: 'mathcomp/mathcomp'
50-
- version: '2.2.0-coq-8.18'
51-
repo: 'mathcomp/mathcomp'
52-
- version: '2.2.0-coq-8.19'
53-
repo: 'mathcomp/mathcomp'
54-
- version: '2.2.0-coq-8.20'
55-
repo: 'mathcomp/mathcomp'
5634
- version: '2.3.0-coq-8.18'
5735
repo: 'mathcomp/mathcomp'
5836
- version: '2.3.0-coq-8.19'
@@ -67,8 +45,6 @@ tested_coq_opam_versions:
6745
repo: 'mathcomp/mathcomp'
6846
- version: '2.4.0-rocq-prover-dev'
6947
repo: 'mathcomp/mathcomp'
70-
- version: 'coq-8.20'
71-
repo: 'mathcomp/mathcomp-dev'
7248
- version: 'rocq-prover-9.0'
7349
repo: 'mathcomp/mathcomp-dev'
7450
- version: 'rocq-prover-dev'
@@ -77,9 +53,9 @@ tested_coq_opam_versions:
7753
dependencies:
7854
- opam:
7955
name: coq-mathcomp-ssreflect
80-
version: '{>= "2.0"}'
56+
version: '{>= "2.3"}'
8157
description: |-
82-
[MathComp](https://math-comp.github.io) ssreflect 2.0 or later
58+
[MathComp](https://math-comp.github.io) ssreflect 2.3 or later
8359
- opam:
8460
name: coq-mathcomp-algebra
8561
description: |-

rocq-mathcomp-zify.opam

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This file was generated from `meta.yml`, please do not edit manually.
2+
# Follow the instructions on https://github.com/coq-community/templates to regenerate.
3+
4+
opam-version: "2.0"
5+
maintainer: "[email protected]"
6+
version: "dev"
7+
8+
homepage: "https://github.com/math-comp/mczify"
9+
dev-repo: "git+https://github.com/math-comp/mczify.git"
10+
bug-reports: "https://github.com/math-comp/mczify/issues"
11+
license: "CECILL-B"
12+
13+
synopsis: "Micromega tactics for Mathematical Components"
14+
description: """
15+
This small library enables the use of the Micromega arithmetic solvers of Coq
16+
for goals stated with the definitions of the Mathematical Components library
17+
by extending the zify tactic."""
18+
19+
build: [make "-j%{jobs}%"]
20+
run-test: [make "-j%{jobs}%" "test-suite"]
21+
install: [make "install"]
22+
depends: [
23+
"coq" {>= "8.18"}
24+
"coq-mathcomp-ssreflect" {>= "2.3"}
25+
"coq-mathcomp-algebra"
26+
]
27+
28+
tags: [
29+
"logpath:mathcomp.zify"
30+
]
31+
authors: [
32+
"Kazuhiko Sakaguchi"
33+
]

theories/ssrZ.v

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From Coq Require Import ZArith.
1+
From Stdlib Require Import ZArith.
22

33
From HB Require Import structures.
44
From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat seq path.
@@ -37,38 +37,6 @@ Qed.
3737

3838
Module Instances.
3939

40-
(* Instances taken from math-comp/math-comp#1031, authored by Pierre Roux *)
41-
(* TODO: remove them when we drop support for MathComp 2.0 *)
42-
#[export]
43-
HB.instance Definition _ := GRing.isNmodule.Build nat addnA addnC add0n.
44-
45-
#[export]
46-
HB.instance Definition _ := GRing.Nmodule_isComSemiRing.Build nat
47-
mulnA mulnC mul1n mulnDl mul0n erefl.
48-
49-
#[export]
50-
HB.instance Definition _ (V : nmodType) (x : V) :=
51-
GRing.isSemiAdditive.Build nat V (GRing.natmul x) (mulr0n x, mulrnDr x).
52-
53-
#[export]
54-
HB.instance Definition _ (R : semiRingType) :=
55-
GRing.isMultiplicative.Build nat R (GRing.natmul 1) (natrM R, mulr1n 1).
56-
57-
Fact Posz_is_semi_additive : semi_additive Posz.
58-
Proof. by []. Qed.
59-
60-
#[export]
61-
HB.instance Definition _ := GRing.isSemiAdditive.Build nat int Posz
62-
Posz_is_semi_additive.
63-
64-
Fact Posz_is_multiplicative : multiplicative Posz.
65-
Proof. by []. Qed.
66-
67-
#[export]
68-
HB.instance Definition _ := GRing.isMultiplicative.Build nat int Posz
69-
Posz_is_multiplicative.
70-
(* end *)
71-
7240
#[export]
7341
HB.instance Definition _ := Countable.copy N (can_type nat_of_binK).
7442

theories/zify.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From Coq Require Export Lia.
1+
From Stdlib Require Export Lia.
22
From mathcomp Require Import zify_ssreflect zify_algebra.
33
Export SsreflectZifyInstances.Exports.
44
Export AlgebraZifyInstances.Exports.

0 commit comments

Comments
 (0)