Skip to content

Commit 91f5550

Browse files
authored
Merge pull request #14 from DistributedComponents/htt-dep
for maintainability, use domain module from htt
2 parents fc30470 + 3ddf726 commit 91f5550

11 files changed

Lines changed: 24 additions & 1416 deletions

Core/Domain.v

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

Core/HoareTriples.v

Lines changed: 7 additions & 13 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 pcm
8-
Require Import axioms pred prelude ordtype finmap pcm unionmap heap.
9-
From DiSeL
10-
Require Import Domain Freshness State EqTypeX DepMaps Protocols Worlds NetworkSem Rely.
11-
From DiSeL
12-
Require Import Actions Injection Process Always.
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 htt Require Import domain.
5+
From DiSeL Require Import Freshness State EqTypeX DepMaps Protocols.
6+
From DiSeL Require Import Worlds NetworkSem Rely Actions Injection Process Always.
137
Set Implicit Arguments.
148
Unset Strict Implicit.
159
Unset Printing Implicit Defensive.
@@ -202,7 +196,7 @@ Variable this : nid.
202196
Variable W : world.
203197
Variables (A : Type) (s : spec A).
204198

205-
Definition stPosetMixin := PosetMixin (@leq_refl this W A s)
199+
Definition stPosetMixin := PosetMixin (@bot_bot this W A s) (@leq_refl this W A s)
206200
(@leq_asym this W A s) (@leq_trans this W A s).
207201
Canonical stPoset := Eval hnf in Poset (@DTbin this W A s) stPosetMixin.
208202

Core/InferenceRules.v

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
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 pcm
8-
Require Import pred prelude ordtype finmap pcm unionmap heap.
9-
From DiSeL
10-
Require Import Domain Freshness State EqTypeX DepMaps Protocols Worlds NetworkSem Rely.
11-
From DiSeL
12-
Require Import Actions Injection Process Always HoareTriples 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 pred prelude ordtype finmap pcm unionmap heap.
4+
From htt Require Import domain.
5+
From DiSeL Require Import Freshness State EqTypeX DepMaps Protocols.
6+
From DiSeL Require Import Worlds NetworkSem Rely Actions Injection Process.
7+
From DiSeL Require Import Always HoareTriples InductiveInv.
138
Set Implicit Arguments.
149
Unset Strict Implicit.
1510
Import Prenex Implicits.

Core/Make

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
-arg -w -arg -projection-no-head-constant
77
-arg -w -arg -deprecated-hint-without-locality
88

9-
Domain.v
109
State.v
1110
Freshness.v
1211
Protocols.v

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ from implementation details.
3030
- Additional dependencies:
3131
- [MathComp](https://math-comp.github.io) 1.13.0 or later (`ssreflect` suffices)
3232
- [FCSL PCM](https://github.com/imdea-software/fcsl-pcm) 1.7.0 or later
33+
- [Hoare Type Theory](https://github.com/imdea-software/htt) 1.2.0 or later
3334
- Coq namespace: `DiSeL`
3435
- Related publication(s):
3536
- [Programming and Proving with Distributed Protocols](http://jamesrwilcox.com/disel.pdf) doi:[10.1145/3158116](https://doi.org/10.1145/3158116)

_CoqProject

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
-arg -w -arg -notation-incompatible-format
1010
-arg -w -arg -deprecated-hint-without-locality
1111

12-
Core/Domain.v
1312
Core/State.v
1413
Core/Freshness.v
1514
Core/Protocols.v

coq-disel-calculator.opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ depends: [
1414
"coq" {>= "8.14"}
1515
"coq-mathcomp-ssreflect" {>= "1.13"}
1616
"coq-fcsl-pcm" {>= "1.7.0"}
17+
"coq-htt" {>= "1.2.0"}
1718
"ocamlbuild" {build}
1819
]
1920

coq-disel-examples.opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ depends: [
1414
"coq" {>= "8.14"}
1515
"coq-mathcomp-ssreflect" {>= "1.13"}
1616
"coq-fcsl-pcm" {>= "1.7.0"}
17+
"coq-htt" {>= "1.2.0"}
1718
"coq-disel" {= version}
1819
]
1920

coq-disel-tpc.opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ depends: [
1414
"coq" {>= "8.14"}
1515
"coq-mathcomp-ssreflect" {>= "1.13"}
1616
"coq-fcsl-pcm" {>= "1.7.0"}
17+
"coq-htt" {>= "1.2.0"}
1718
"ocamlbuild" {build}
1819
]
1920

coq-disel.opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ depends: [
2323
"coq" {>= "8.14"}
2424
"coq-mathcomp-ssreflect" {>= "1.13"}
2525
"coq-fcsl-pcm" {>= "1.7.0"}
26+
"coq-htt" {>= "1.2.0"}
2627
]
2728

2829
tags: [

0 commit comments

Comments
 (0)