Skip to content

Commit fc30470

Browse files
authored
Merge pull request #13 from DistributedComponents/update-ci
Update to latest Coq, MathComp and PCM, with CI
2 parents f9e63c7 + 3b08235 commit fc30470

48 files changed

Lines changed: 517 additions & 252 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Docker CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
build:
13+
# the OS must be GNU/Linux to be able to use the docker-coq-action
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
image:
18+
- 'mathcomp/mathcomp-dev:coq-dev'
19+
- 'mathcomp/mathcomp:1.15.0-coq-8.16'
20+
- 'mathcomp/mathcomp:1.15.0-coq-8.15'
21+
- 'mathcomp/mathcomp:1.14.0-coq-8.15'
22+
- 'mathcomp/mathcomp:1.14.0-coq-8.14'
23+
- 'mathcomp/mathcomp:1.13.0-coq-8.15'
24+
- 'mathcomp/mathcomp:1.13.0-coq-8.14'
25+
fail-fast: false
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: coq-community/docker-coq-action@v1
29+
with:
30+
custom_image: ${{ matrix.image }}
31+
custom_script: |
32+
{{before_install}}
33+
startGroup "Build disel dependencies"
34+
opam pin add -n -y -k path coq-disel .
35+
opam update -y
36+
opam install -y -j $(nproc) coq-disel --deps-only
37+
endGroup
38+
startGroup "Build disel"
39+
opam install -y -v -j $(nproc) coq-disel
40+
opam list
41+
endGroup
42+
startGroup "Build disel-examples dependencies"
43+
opam pin add -n -y -k path coq-disel-examples .
44+
opam update -y
45+
opam install -y -j $(nproc) coq-disel-examples --deps-only
46+
endGroup
47+
startGroup "Build disel-examples"
48+
opam install -y -v -j $(nproc) coq-disel-examples
49+
opam list
50+
endGroup
51+
startGroup "Uninstallation test"
52+
opam remove -y coq-disel-examples
53+
opam remove -y coq-disel
54+
endGroup
55+
56+
# See also:
57+
# https://github.com/coq-community/docker-coq-action#readme
58+
# https://github.com/erikmd/docker-coq-github-action-demo

.travis.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

Core/Actions.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ From mathcomp
44
Require Import path.
55
Require Import Eqdep.
66
Require Import Relation_Operators.
7-
From fcsl
7+
From pcm
88
Require Import axioms pred prelude ordtype finmap pcm unionmap heap.
99
From DiSeL
1010
Require Import Freshness State EqTypeX Protocols Worlds NetworkSem.

Core/Always.v

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
From mathcomp.ssreflect
2-
Require Import ssreflect ssrbool ssrnat eqtype ssrfun seq.
3-
From mathcomp
4-
Require Import path.
5-
Require Import Eqdep.
6-
Require Import Relation_Operators.
7-
From fcsl
8-
Require Import axioms pred prelude ordtype finmap pcm unionmap heap.
9-
From DiSeL
10-
Require Import Freshness State EqTypeX DepMaps Protocols Worlds NetworkSem Rely.
11-
From DiSeL
12-
Require Import Actions Injection Process InductiveInv.
1+
From mathcomp Require Import ssreflect ssrbool ssrnat eqtype ssrfun seq path.
2+
From Coq Require Import Eqdep Relation_Operators.
3+
From pcm Require Import axioms pred prelude ordtype finmap pcm unionmap heap.
4+
From DiSeL Require Import Freshness State EqTypeX DepMaps Protocols Worlds.
5+
From DiSeL Require Import NetworkSem Rely Actions Injection.
6+
From DiSeL Require Import Process InductiveInv.
137

148
Set Implicit Arguments.
159
Unset Strict Implicit.
@@ -425,15 +419,16 @@ have [E1 E2] : x1 = i1 /\ y1 = j1.
425419
by move/(joinxK (cohS C)).
426420
rewrite {E x1}E1 {y1}E2 in T *.
427421
have C' : i2 \+ j1 \In Coh W.
428-
- move: (C)=>C'; rewrite (cohE w) in C *=>[[s1]][s2][E]D1 D2.
422+
- move: (C)=>C'; rewrite (cohE w) in C.
423+
move: C => [s1 [s2][E]D1 D2].
429424
move: (coh_prec (cohS C') Ci1 D1 E)=>Z; subst i1.
430425
move: (joinxK (cohS C') E)=>Z; subst s2; clear E.
431426
apply/(cohE w); exists i2, j1; split=>//.
432-
by case/step_coh: (pstep_network_sem T).
427+
by case/step_coh: (pstep_network_sem T).
433428
move/(alw_step Ls): T=>{Ls} Ls.
434429
apply: alw_imp' (IH _ _ _ C' Ls)=>{IH Ls C' C Ci Ci1 i i1 i2 p q' sc' scs}.
435430
move=>s p _ [i2][j2][->{s}] Ci2 S2 H; exists i2, j2; split=>//.
436-
by apply: rely_trans S1 S2.
431+
by apply: rely_trans S1 S2.
437432
Qed.
438433

439434
Lemma aft_inject (p : proc this V A) (P : A -> state -> Prop) i j :

Core/DepMaps.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ From mathcomp
44
Require Import path.
55
Require Import Eqdep.
66
Require Import Relation_Operators.
7-
From fcsl
7+
From pcm
88
Require Import pred prelude ordtype finmap pcm unionmap heap.
99
From DiSeL
1010
Require Import Freshness EqTypeX.

Core/Domain.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
From mathcomp.ssreflect
22
Require Import ssreflect ssrbool ssrfun ssrnat eqtype seq.
3-
From fcsl
3+
From pcm
44
Require Import axioms pred prelude.
55
Set Implicit Arguments.
66
Unset Strict Implicit.

Core/Freshness.v

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
From mathcomp.ssreflect
2-
Require Import ssreflect ssrbool ssrnat eqtype ssrfun seq.
3-
From mathcomp
4-
Require Import path.
5-
From fcsl
6-
Require Import pred prelude ordtype finmap pcm unionmap.
1+
From mathcomp Require Import ssreflect ssrbool ssrnat eqtype ssrfun seq.
2+
From mathcomp Require Import path.
3+
From pcm Require Import pred prelude ordtype finmap pcm unionmap seqext.
74
Set Implicit Arguments.
85
Unset Strict Implicit.
96
Unset Printing Implicit Defensive.

Core/HoareTriples.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ From mathcomp
44
Require Import path.
55
Require Import Eqdep.
66
Require Import Relation_Operators.
7-
From fcsl
7+
From pcm
88
Require Import axioms pred prelude ordtype finmap pcm unionmap heap.
99
From DiSeL
1010
Require Import Domain Freshness State EqTypeX DepMaps Protocols Worlds NetworkSem Rely.

Core/InductiveInv.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ From mathcomp
44
Require Import path.
55
Require Import Eqdep.
66
Require Import Relation_Operators.
7-
From fcsl
7+
From pcm
88
Require Import axioms pred prelude ordtype finmap pcm unionmap heap.
99
From DiSeL
1010
Require Import Freshness State EqTypeX Protocols Worlds NetworkSem Rely.

Core/InferenceRules.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ From mathcomp
44
Require Import path.
55
Require Import Eqdep.
66
Require Import Relation_Operators.
7-
From fcsl
7+
From pcm
88
Require Import pred prelude ordtype finmap pcm unionmap heap.
99
From DiSeL
1010
Require Import Domain Freshness State EqTypeX DepMaps Protocols Worlds NetworkSem Rely.

0 commit comments

Comments
 (0)