Skip to content

Commit c48e16c

Browse files
authored
Merge pull request #97 from coq-community/test-alectryon-1.4
Test with Alectryon 1.4 and Coq 8.14.
2 parents 2c1e9bd + e4d4c3a commit c48e16c

38 files changed

+124
-122
lines changed

.nix/config.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
## You can override Coq and other Coq coqPackages
4343
## through the following attribute
44-
coqPackages.coq.override.version = "8.13";
44+
coqPackages.coq.override.version = "8.14";
4545

4646
## In some cases, light overrides are not available/enough
4747
## in which case you can use either

.nix/nixpkgs.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fetchTarball {
2-
url = https://github.com/Zimmi48/nixpkgs/archive/451f727a09e43ba16021448a20e5ef8b20e8c421.tar.gz;
3-
sha256 = "18h92bb4sijih1klivjg75r19wci6gbgasnc0d8mpq57yj7ma8ys";
2+
url = https://github.com/Zimmi48/nixpkgs/archive/0300b6ef8480620bfa2d668cf19314df11507ab1.tar.gz;
3+
sha256 = "12hw8sc4krqfxpc5pdb78ccnl824maxhl967yyvn5mql0mncd359";
44
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ This contribution contains two parts:
7575
`nix-shell --argstr job hydra-battles` or `nix-shell --argstr job
7676
addition-chains`.
7777

78-
- Building the PDF documentation also requires Alectryon 1.2 and SerAPI.
78+
- Building the PDF documentation also requires Alectryon 1.4 and SerAPI.
7979
See [`doc/movies/Readme.md`](doc/movies/Readme.md) for details.
8080

8181
- The general Makefile is in the top directory:

_CoqProject

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
-arg -w -arg -notation-overridden
77
-arg -w -arg -ambiguous-paths
8-
-arg -w -arg -deprecated-instance-without-locality
98
-arg -w -arg -deprecated-hint-rewrite-without-locality
9+
-arg -w -arg -unknown-option
10+
-arg -w -arg -deprecated-option
1011

1112
theories/ordinals/OrdinalNotations/ON_Omega.v
1213
theories/ordinals/OrdinalNotations/ON_Generic.v

doc/movies/Readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ This script has been tested with Python 3.7 or above and uses [Alectryon](https:
55
to transform "coq+rst" to "latex" file.
66

77
## Requirements
8-
The script has been tested with a recent version of Alectryon v1.3.1 (Aug 28th, 2021). You can download it from
9-
[Alectryon's site](https://github.com/cpitclaudel/alectryon).
108

11-
you may also run `pip install -r requirements.txt`
9+
This script requires Alectryon 1.4.
10+
11+
To get it, you may run `pip install -r requirements.txt` or
12+
`nix-shell` (at the root of the project).
1213

1314

1415

doc/movies/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
alectryon >=1.3.1
1+
alectryon >=1.4.0

meta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ build: |-
3636
`nix-shell --argstr job hydra-battles` or `nix-shell --argstr job
3737
addition-chains`.
3838
39-
- Building the PDF documentation also requires Alectryon 1.2 and SerAPI.
39+
- Building the PDF documentation also requires Alectryon 1.4 and SerAPI.
4040
See [`doc/movies/Readme.md`](doc/movies/Readme.md) for details.
4141
4242
- The general Makefile is in the top directory:

theories/additions/AM.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,15 @@ end.
195195

196196

197197

198-
Instance Stack_equiv_refl {A}`{M : @EMonoid A op one equ} :
198+
#[ global ] Instance Stack_equiv_refl {A}`{M : @EMonoid A op one equ} :
199199
Reflexive stack_equiv.
200200
Proof.
201201
red; intros. induction x.
202202
- now left.
203203
- right; [reflexivity | assumption].
204204
Qed.
205205

206-
Instance Stack_equiv_equiv {A}`{M : @EMonoid A op one equ}:
206+
#[ global ] Instance Stack_equiv_equiv {A}`{M : @EMonoid A op one equ}:
207207
Equivalence stack_equiv.
208208
Proof.
209209
split.
@@ -227,7 +227,7 @@ Proof.
227227
eapply IHx;eauto.
228228
Qed.
229229

230-
Instance result_equiv_equiv `{M : @EMonoid A op one equ}:
230+
#[ global ] Instance result_equiv_equiv `{M : @EMonoid A op one equ}:
231231
Equivalence result_equiv.
232232
Proof.
233233
split.
@@ -298,7 +298,7 @@ Proof.
298298
Qed.
299299

300300

301-
Instance exec_Proper `{M : @EMonoid A op one equ} :
301+
#[ global ] Instance exec_Proper `{M : @EMonoid A op one equ} :
302302
Proper (Logic.eq ==> equiv ==> stack_equiv ==> result_equiv) (@exec A op) .
303303
Proof.
304304
intros c c' Hx x x' Hequiv s s' Hs; subst.

theories/additions/BinaryStrat.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Definition half (p:positive) :=
1919

2020
Definition two (p:positive) := 2%positive.
2121

22-
Instance Binary_strat : Strategy half.
22+
#[ global ] Instance Binary_strat : Strategy half.
2323
Proof.
2424
split; destruct p; unfold half; try lia.
2525
Qed.
2626

27-
Instance Two_strat : Strategy two.
27+
#[ global ] Instance Two_strat : Strategy two.
2828
Proof.
2929
split;unfold two; lia.
3030
Qed.

theories/additions/Dichotomy.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Qed.
186186

187187

188188
(* begin snippet DichoStrat:: no-out *)
189-
Instance Dicho_strat : Strategy dicho.
189+
#[ global ] Instance Dicho_strat : Strategy dicho.
190190
(* end snippet DichoStrat *)
191191
Proof.
192192
split.

0 commit comments

Comments
 (0)