Skip to content

Commit aef0450

Browse files
committed
Compile without coq shims
1 parent 7a841ef commit aef0450

5 files changed

Lines changed: 82 additions & 66 deletions

File tree

.github/workflows/coq-action.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
strategy:
1616
matrix:
1717
image:
18-
- mathcomp/mathcomp:2.6.0-coq-9.0
19-
- mathcomp/mathcomp:2.6.0-coq-9.1
20-
- mathcomp/mathcomp:2.6.0-coq-9.2
18+
- mathcomp/mathcomp:2.6.0-rocq-prover-9.0
19+
- mathcomp/mathcomp:2.6.0-rocq-prover-9.1
20+
- mathcomp/mathcomp:2.6.0-rocq-prover-9.2
2121
fail-fast: false
2222
steps:
2323
- uses: actions/checkout@v2
2424
- uses: coq-community/docker-coq-action@v1
2525
with:
26-
opam_file: 'coq-mathcomp-dioid.opam'
26+
opam_file: 'rocq-mathcomp-dioid.opam'
2727
custom_image: ${{ matrix.image }}
2828
custom_script: |
2929
startGroup Print opam config
@@ -33,18 +33,18 @@ jobs:
3333
startGroup Update opam cache
3434
opam update -y
3535
endGroup
36-
startGroup Build coq-mathcomp-dioid dependencies
37-
opam pin add -n -y -k path coq-mathcomp-dioid .
38-
opam remove coq-mathcomp-character coq-mathcomp-field coq-mathcomp-solvable # coq-mathcomp-algebra is enough
39-
opam install -y -j ${NJOBS} coq-mathcomp-dioid --deps-only
36+
startGroup Build rocq-mathcomp-dioid dependencies
37+
opam pin add -n -y -k path rocq-mathcomp-dioid .
38+
opam remove -y rocq-mathcomp-character rocq-mathcomp-field rocq-mathcomp-solvable # rocq-mathcomp-algebra is enough
39+
opam install -y -j ${NJOBS} rocq-mathcomp-dioid --deps-only
4040
opam list
4141
endGroup
42-
startGroup Build coq-mathcomp-dioid
43-
opam install -y -v -j ${NJOBS} coq-mathcomp-dioid
42+
startGroup Build rocq-mathcomp-dioid
43+
opam install -y -v -j ${NJOBS} rocq-mathcomp-dioid
4444
opam list
4545
endGroup
4646
startGroup Uninstallation test
47-
opam remove -y coq-mathcomp-dioid
47+
opam remove -y rocq-mathcomp-dioid
4848
endGroup
4949
5050
# See also:

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*~
2-
Makefile.coq
3-
Makefile.coq.conf
4-
.Makefile.coq.d
2+
Makefile.rocq
3+
Makefile.rocq.conf
4+
.Makefile.rocq.d
55
.*.aux
66
*.glob
77
*.vo

Makefile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
# Makefile for dioid
22

33
COQ_PROJ := _CoqProject
4-
COQ_MAKEFILE := Makefile.coq
5-
COQ_MAKE := +$(MAKE) -f $(COQ_MAKEFILE)
4+
ROCQ_MAKEFILE := Makefile.rocq
5+
ROCQ_MAKE := +$(MAKE) -f $(ROCQ_MAKEFILE)
66

7-
ifneq "$(COQBIN)" ""
8-
COQBIN := $(COQBIN)/
7+
ifneq "$(ROCQBIN)" ""
8+
ROCQBIN := $(ROCQBIN)/
99
else
10-
COQBIN := $(dir $(shell which coqc))
10+
ROCQBIN := $(dir $(shell which coqc))
1111
endif
12-
export COQBIN
12+
export ROCQBIN
1313

14-
all install html gallinahtml: $(COQ_MAKEFILE) Makefile
15-
$(COQ_MAKE) $@
14+
all install html gallinahtml: $(ROCQ_MAKEFILE) Makefile
15+
$(ROCQ_MAKE) $@
1616

1717
%.vo: %.v
18-
$(COQ_MAKE) $@
18+
$(ROCQ_MAKE) $@
1919

20-
$(COQ_MAKEFILE): $(COQ_PROJ)
21-
$(COQBIN)coq_makefile -f $< -o $@
20+
$(ROCQ_MAKEFILE): $(COQ_PROJ)
21+
$(ROCQBIN)rocq makefile -f $< -o $@
2222

2323
clean:
24-
-$(COQ_MAKE) clean
24+
-$(ROCQ_MAKE) clean
2525

2626
distclean: clean
27-
$(RM) $(COQ_MAKEFILE) $(COQ_MAKEFILE).conf
27+
$(RM) $(ROCQ_MAKEFILE) $(ROCQ_MAKEFILE).conf
2828
$(RM) *~ .*.aux .lia.cache
2929

3030

31-
-include $(COQ_MAKEFILE).conf
31+
-include $(ROCQ_MAKEFILE).conf
3232

3333
.PHONY: all install html gallinahtml clean distclean

coq-mathcomp-dioid.opam

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,8 @@ dev-repo: "git+https://github.com/math-comp/dioid.git"
99
bug-reports: "https://github.com/math-comp/dioid/issues"
1010
license: "CECILL-B"
1111

12-
build: [
13-
[make "-j%{jobs}%"]
14-
]
15-
install: [make "install"]
16-
1712
depends: [
18-
"coq-core" { >= "9.0" }
19-
"rocq-mathcomp-algebra" { >= "2.6" }
20-
"rocq-mathcomp-classical" { >= "1.8" }
21-
]
22-
synopsis: "Dioid"
23-
description: """
24-
Definitions of the algebraic structure of dioid following the style of
25-
ssralg in the Mathcomp library.
26-
27-
The main algebraic structures defined are:
28-
* semirings: rings without opposite for the additive law
29-
* dioids: idempotent semirings (i.e., forall x, x + x = x)
30-
* complete dioids: dioids whose canonical order (x <= y wen x + y = y)
31-
yields a complete lattice
32-
* commutative variants (multiplicative law is commutative)
33-
34-
More details can be found in comments at the beginning of each file.
35-
"""
36-
37-
tags: [
38-
"keyword:dioid"
39-
"keyword:semiring"
40-
"keyword:complete dioid"
41-
"category:Miscellaneous/Coq Extensions"
42-
"logpath:mathcomp.dioid"
43-
]
44-
authors: [
45-
"Lucien Rakotomalala <lucien.rakotomalala@onera.fr>"
46-
"Pierre Roux <pierre.roux@onera.fr>"
13+
"coq-core"
14+
"rocq-mathcomp-diod"
4715
]
48-
#url {
49-
# src: "https://github.com/validsdp/validsdp/releases/download/v0.8.0/validsdp-0.8.0.tar.gz"
50-
# checksum: "sha256=TODO curl -L archive | sha256sum"
51-
#}
16+
synopsis: "Compatibility package for rocq-mathcomp-dioid"

rocq-mathcomp-dioid.opam

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
opam-version: "2.0"
2+
version: "dev"
3+
maintainer: [
4+
"Pierre Roux <pierre.roux@onera.fr>"
5+
]
6+
7+
homepage: "https://github.com/math-comp/dioid"
8+
dev-repo: "git+https://github.com/math-comp/dioid.git"
9+
bug-reports: "https://github.com/math-comp/dioid/issues"
10+
license: "CECILL-B"
11+
12+
build: [
13+
[make "-j%{jobs}%"]
14+
]
15+
install: [make "install"]
16+
17+
depends: [
18+
"rocq-core" { >= "9.0" }
19+
"rocq-mathcomp-algebra" { >= "2.6" }
20+
"rocq-mathcomp-classical" { >= "1.8" }
21+
]
22+
synopsis: "Dioid"
23+
description: """
24+
Definitions of the algebraic structure of dioid following the style of
25+
ssralg in the Mathcomp library.
26+
27+
The main algebraic structures defined are:
28+
* semirings: rings without opposite for the additive law
29+
* dioids: idempotent semirings (i.e., forall x, x + x = x)
30+
* complete dioids: dioids whose canonical order (x <= y wen x + y = y)
31+
yields a complete lattice
32+
* commutative variants (multiplicative law is commutative)
33+
34+
More details can be found in comments at the beginning of each file.
35+
"""
36+
37+
tags: [
38+
"keyword:dioid"
39+
"keyword:semiring"
40+
"keyword:complete dioid"
41+
"category:Miscellaneous/Coq Extensions"
42+
"logpath:mathcomp.dioid"
43+
]
44+
authors: [
45+
"Lucien Rakotomalala <lucien.rakotomalala@onera.fr>"
46+
"Pierre Roux <pierre.roux@onera.fr>"
47+
]
48+
#url {
49+
# src: "https://github.com/validsdp/validsdp/releases/download/v0.8.0/validsdp-0.8.0.tar.gz"
50+
# checksum: "sha256=TODO curl -L archive | sha256sum"
51+
#}

0 commit comments

Comments
 (0)