Skip to content

Commit c2d3cbd

Browse files
committed
mathcomp 2.3.0
1 parent 7affa99 commit c2d3cbd

File tree

8 files changed

+35
-35
lines changed

8 files changed

+35
-35
lines changed

.github/workflows/docker-action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
strategy:
1818
matrix:
1919
image:
20-
- 'mathcomp/mathcomp:2.1.0-coq-8.18'
20+
- 'mathcomp/mathcomp:2.3.0-coq-8.19'
2121
fail-fast: false
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- uses: coq-community/docker-coq-action@v1
2525
with:
2626
opam_file: 'coq-hanoi.opam'

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Follow the instructions on https://github.com/coq-community/templates to regener
66

77
[![Docker CI][docker-action-shield]][docker-action-link]
88

9-
[docker-action-shield]: https://github.com/thery/hanoi/workflows/Docker%20CI/badge.svg?branch=master
10-
[docker-action-link]: https://github.com/thery/hanoi/actions?query=workflow:"Docker%20CI"
9+
[docker-action-shield]: https://github.com/thery/hanoi/actions/workflows/docker-action.yml/badge.svg?branch=master
10+
[docker-action-link]: https://github.com/thery/hanoi/actions/workflows/docker-action.yml
1111

1212

1313

@@ -43,11 +43,11 @@ An interactive version of the library is available
4343
- Author(s):
4444
- Laurent Théry
4545
- License: [MIT License](LICENSE)
46-
- Compatible Coq versions: 8.18 or later
46+
- Compatible Coq versions: 8.19 or later
4747
- Additional dependencies:
48-
- [MathComp ssreflect 2.1 or later](https://math-comp.github.io)
49-
- [MathComp algebra 2.1 or later](https://math-comp.github.io)
50-
- [MathComp finmap 2.0 or later](https://github.com/math-comp/finmap)
48+
- [MathComp ssreflect 2.3 or later](https://math-comp.github.io)
49+
- [MathComp algebra 2.3 or later](https://math-comp.github.io)
50+
- [MathComp finmap 2.1 or later](https://github.com/math-comp/finmap)
5151
- [MathComp bigenough 1.0.1 or later](https://github.com/math-comp/finmap)
5252
- Coq namespace: `hanoi`
5353
- Related publication(s): none

coq-hanoi.opam

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ An interactive version of the library is available
4141
build: [make "-j%{jobs}%"]
4242
install: [make "install"]
4343
depends: [
44-
"coq" {(>= "8.18")}
45-
"coq-mathcomp-ssreflect" {(>= "2.1.0")}
46-
"coq-mathcomp-algebra" {(>= "2.1.0")}
47-
"coq-mathcomp-finmap" {(>= "2.0.0")}
44+
"coq" {(>= "8.19")}
45+
"coq-mathcomp-ssreflect" {(>= "2.3.0")}
46+
"coq-mathcomp-algebra" {(>= "2.3.0")}
47+
"coq-mathcomp-finmap" {(>= "2.1.0")}
4848
"coq-mathcomp-bigenough" {(>= "1.0.1")}
4949
]
5050

extra.v

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
From mathcomp Require Import all_ssreflect finmap.
2-
3-
Set Implicit Arguments.
4-
Unset Strict Implicit.
5-
61
(******************************************************************************)
72
(* *)
83
(* Extra theorems and definitions *)
94
(* *)
105
(******************************************************************************)
116

7+
From mathcomp Require Import all_ssreflect finmap.
8+
9+
Set Implicit Arguments.
10+
Unset Strict Implicit.
11+
12+
1213
(******************************************************************************)
1314
(* *)
1415
(* Extra theorems about lists *)
@@ -250,10 +251,9 @@ Lemma s2f_setT n : s2f (setT : {set 'I_n}) = sint 0 n.
250251
Proof.
251252
apply/fsetP => i; rewrite mem_sint /=.
252253
apply/imfsetP/idP => /= [[j _ -> //]| iLn].
253-
by exists (Ordinal iLn).
254+
by exists (Ordinal iLn); rewrite //= inE.
254255
Qed.
255256

256-
257257
Lemma s2fD n (s1 s2 : {set 'I_n}) : s2f (s1 :\: s2) = s2f s1 `\` s2f s2.
258258
Proof.
259259
apply/fsetP => j; rewrite !inE.

meta.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,25 @@ license:
5050
identifier: MIT
5151

5252
supported_coq_versions:
53-
text: '8.18 or later'
54-
opam: '{(>= "8.18")}'
53+
text: '8.19 or later'
54+
opam: '{(>= "8.19")}'
5555

5656
dependencies:
5757
- opam:
5858
name: coq-mathcomp-ssreflect
59-
version: '{(>= "2.1.0")}'
59+
version: '{(>= "2.3.0")}'
6060
description: |-
61-
[MathComp ssreflect 2.1 or later](https://math-comp.github.io)
61+
[MathComp ssreflect 2.3 or later](https://math-comp.github.io)
6262
- opam:
6363
name: coq-mathcomp-algebra
64-
version: '{(>= "2.1.0")}'
64+
version: '{(>= "2.3.0")}'
6565
description: |-
66-
[MathComp algebra 2.1 or later](https://math-comp.github.io)
66+
[MathComp algebra 2.3 or later](https://math-comp.github.io)
6767
- opam:
6868
name: coq-mathcomp-finmap
69-
version: '{(>= "2.0.0")}'
69+
version: '{(>= "2.1.0")}'
7070
description: |-
71-
[MathComp finmap 2.0 or later](https://github.com/math-comp/finmap)
71+
[MathComp finmap 2.1 or later](https://github.com/math-comp/finmap)
7272
- opam:
7373
name: coq-mathcomp-bigenough
7474
version: '{(>= "1.0.1")}'
@@ -77,7 +77,7 @@ dependencies:
7777
7878
7979
tested_coq_opam_versions:
80-
- version: '2.1.0-coq-8.18'
80+
- version: '2.3.0-coq-8.19'
8181
repo: 'mathcomp/mathcomp'
8282

8383
namespace: hanoi

phi.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Lemma gminE n : n = gmin n + troot n.
116116
Proof.
117117
case: n => //= n.
118118
rewrite {1}[n.+1]tmodE /gmin.
119-
case: troot (troot_gt0 (isT : 0 < n.+1)) => //= t _.
119+
case: troot (troot_gt0 (isT : 0 < n.+1)) => // t _.
120120
by rewrite deltaS addnAC.
121121
Qed.
122122

@@ -139,7 +139,7 @@ have mLt : tmod n < troot n by rewrite ltn_neqAle mDt tmod_le.
139139
rewrite subn1.
140140
apply/eqP; rewrite /gmin trootE.
141141
case: n {mDt}mLt => // [] [|] // n mLt.
142-
case: troot mLt => //= t mLt.
142+
case: troot mLt => // t mLt.
143143
by rewrite leq_addr deltaS ltn_add2l.
144144
Qed.
145145

@@ -224,7 +224,7 @@ rewrite (leq_trans (_ : _ <= gmin n.+1 + troot m)) //.
224224
rewrite -ltnS -addnS.
225225
rewrite /gmin {3}[n.+1]tmodE addnAC leq_add2r.
226226
have : 0 < troot n.+1 by apply troot_gt0.
227-
case E : troot => [|t] _ //=.
227+
case E : troot => [|t] _ //; rewrite [X in X <= _]/=.
228228
rewrite deltaS -E leq_add2l.
229229
by apply: gmin_root_lt.
230230
Qed.

rhanoi4.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,10 +984,10 @@ have duz2_leq : psi (s2f E `&` `[T]) + psi (s2f A) + 2 ^ K.-1 < `d[u,z2]_rmove.
984984
rewrite -oprojE; case: (Hnz (z0 (oproj (enum_val i)))) => // /eqP.
985985
- rewrite -[_ == z0s N]negbK; case/negP.
986986
apply: (move_on_toplDr z0Mz0s) => //=.
987-
by rewrite -{8}[n](subnK TLN) leq_add2r subnS ltnW.
987+
by rewrite -[X in _ <= X](subnK TLN) leq_add2r subnS ltnW.
988988
- rewrite -[_ == p0]negbK; case/negP; rewrite -z0N0.
989989
apply: (move_on_toplDl z0Mz0s) => //=.
990-
by rewrite -{8}[n](subnK TLN) ltn_add2r subnS.
990+
by rewrite -[X in _ < X](subnK TLN) ltn_add2r subnS.
991991
rewrite -[_ == np3]negbK; case/negP.
992992
apply: memE''.
993993
have := mem_last u z0sb; rewrite -/z0 gE' !inE !mem_cat.

triangular.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Proof. by case: n => // n _; rewrite deltaS addnS ltnS leq_addr. Qed.
7272
Lemma deltaE n : delta n = \sum_(i < n.+1) i.
7373
Proof.
7474
elim: n => [|n IH]; first by rewrite big_ord_recl big_ord0.
75-
by rewrite big_ord_recr /= -IH deltaS.
75+
by rewrite big_ord_recr -IH deltaS.
7676
Qed.
7777

7878
Compute zip (iota 0 11) (map delta (iota 0 11)).
@@ -303,7 +303,7 @@ case: p => a b.
303303
rewrite /tpair /pairt /= /tmod.
304304
have ->: ∇(Δ(a + b) + b) = a + b.
305305
apply/eqP.
306-
rewrite trootE leq_addr /= deltaS.
306+
rewrite trootE leq_addr deltaS.
307307
by rewrite addnS ltnS addnCA leq_addl.
308308
by rewrite [delta _ + _]addnC !addnK.
309309
Qed.

0 commit comments

Comments
 (0)