Skip to content

Commit cea9f08

Browse files
authored
Merge pull request #104 from thery/codomf_cat
add the theorem codomf_cat
2 parents a1d1456 + 9fed06b commit cea9f08

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

.github/workflows/docker-action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
strategy:
1818
matrix:
1919
image:
20-
- 'mathcomp/mathcomp:1.12.0-coq-8.13'
21-
- 'mathcomp/mathcomp:1.12.0-coq-8.14'
2220
- 'mathcomp/mathcomp:1.13.0-coq-8.13'
2321
- 'mathcomp/mathcomp:1.13.0-coq-8.14'
2422
- 'mathcomp/mathcomp:1.13.0-coq-8.15'
@@ -36,12 +34,13 @@ jobs:
3634
- 'mathcomp/mathcomp-dev:coq-dev'
3735
fail-fast: false
3836
steps:
39-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v3
4038
- uses: coq-community/docker-coq-action@v1
4139
with:
4240
opam_file: 'coq-mathcomp-finmap.opam'
4341
custom_image: ${{ matrix.image }}
4442

43+
4544
# See also:
4645
# https://github.com/coq-community/docker-coq-action#readme
4746
# https://github.com/erikmd/docker-coq-github-action-demo

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ which will be used to subsume notations for finite sets, eventually.
2626
- License: [CeCILL-B](CECILL-B)
2727
- Compatible Coq versions: Coq 8.13 to 8.16
2828
- Additional dependencies:
29-
- [MathComp ssreflect 1.12 to 1.15](https://math-comp.github.io)
29+
- [MathComp ssreflect 1.13 to 1.15](https://math-comp.github.io)
3030
- Coq namespace: `mathcomp.finmap`
3131
- Related publication(s): none
3232

coq-mathcomp-finmap.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ build: [make "-j%{jobs}%"]
2222
install: [make "install"]
2323
depends: [
2424
"coq" { (>= "8.13" & < "8.17~") | (= "dev") }
25-
"coq-mathcomp-ssreflect" { (>= "1.12.0" & < "1.16~") | (= "dev") }
25+
"coq-mathcomp-ssreflect" { (>= "1.13.0" & < "1.16~") | (= "dev") }
2626
]
2727

2828
tags: [

finmap.v

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3587,6 +3587,18 @@ move: fk'_eq; rewrite fnd_set.
35873587
by have [->|//] := altP eqP; rewrite fnd_rem inE eqxx.
35883588
Qed.
35893589

3590+
Lemma codomf_cat (f g : {fmap K -> V}) :
3591+
codomf (f + g) = codomf g `|` codomf f.[\domf g].
3592+
Proof.
3593+
apply/fsetP => v'; rewrite !inE.
3594+
apply/codomfP/(orPP (codomfP _ _) (codomfP _ _)); last first.
3595+
move=> [] [x xI]; exists x; rewrite fnd_cat; first by case: fndP xI.
3596+
by move: xI; rewrite fnd_rem; case: ifP.
3597+
move=> []x; rewrite fnd_cat; case: fndP => // [xg gx|xNg fx].
3598+
by left; exists x; rewrite in_fnd.
3599+
by right; exists x; rewrite fnd_rem ifN.
3600+
Qed.
3601+
35903602
End FinMapKeyType.
35913603

35923604
Module Import FinmapInE.

meta.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ supported_coq_versions:
3535
opam: '{ (>= "8.13" & < "8.17~") | (= "dev") }'
3636

3737
tested_coq_opam_versions:
38-
- version: '1.12.0-coq-8.13'
39-
repo: 'mathcomp/mathcomp'
40-
- version: '1.12.0-coq-8.14'
41-
repo: 'mathcomp/mathcomp'
4238
- version: '1.13.0-coq-8.13'
4339
repo: 'mathcomp/mathcomp'
4440
- version: '1.13.0-coq-8.14'
@@ -73,9 +69,9 @@ tested_coq_opam_versions:
7369
dependencies:
7470
- opam:
7571
name: coq-mathcomp-ssreflect
76-
version: '{ (>= "1.12.0" & < "1.16~") | (= "dev") }'
72+
version: '{ (>= "1.13.0" & < "1.16~") | (= "dev") }'
7773
description: |-
78-
[MathComp ssreflect 1.12 to 1.15](https://math-comp.github.io)
74+
[MathComp ssreflect 1.13 to 1.15](https://math-comp.github.io)
7975
8076
namespace: mathcomp.finmap
8177

0 commit comments

Comments
 (0)