Skip to content

Commit 88dc154

Browse files
authored
Merge pull request #16 from DistributedComponents/fix-coq-dev-deprecations
fix deprecations in Coq and OCaml
2 parents f199832 + 6cd19d0 commit 88dc154

File tree

6 files changed

+12
-14
lines changed

6 files changed

+12
-14
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
OCAMLBUILD = ocamlbuild -tag safe_string -libs unix -I shims
1+
OCAMLBUILD = ocamlbuild -tag safe_string -pkg unix -I shims
22

33
default: Makefile.coq
44
$(MAKE) -f Makefile.coq

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ without printing "error".
9999

100100
Extracting and running the example applications is described below.
101101

102-
## Code corresponding to the paper
102+
### Code corresponding to the paper
103103

104104
The following describes how the paper corresponds to the code:
105105

@@ -156,7 +156,7 @@ The following describes how the paper corresponds to the code:
156156
- The querying protocol from Section 4.4 is implemented in the directory
157157
`Examples/Querying`.
158158

159-
## Exploring further
159+
### Exploring further
160160

161161
We encourage you to explore Disel further by extending one of the
162162
examples or trying your own. For example, you could build an application
@@ -166,7 +166,7 @@ protocol for leader election in a ring and prove that at most one node
166166
becomes leader. To get started, we recommend following the Calculator example
167167
and modifying it as necessary.
168168

169-
## Extracting and Running Disel Programs
169+
### Extracting and Running Disel Programs
170170

171171
As described in Section 5.1, Disel programs can be extracted to OCaml and run.
172172
You can build the two examples as follows.
@@ -272,7 +272,7 @@ got msg in protocol 0 with tag = 5, contents = [0] from 2
272272
respond with AckAbort messages (tag 6). Once all four rounds are over,
273273
all nodes exit.
274274

275-
## Proof Size Statistics
275+
### Proof Size Statistics
276276

277277
Section 5.2 and Table 1 describe the size of our development. Those
278278
were obtained by using the `coqwc` tool on manually dissected files,

_CoqProject

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 -duplicate-clear
88
-arg -w -arg -notation-incompatible-format
9-
-arg -w -arg -deprecated-hint-without-locality
109

1110
theories/Core/State.v
1211
theories/Core/Freshness.v

meta.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ documentation: |-
133133
134134
Extracting and running the example applications is described below.
135135
136-
## Code corresponding to the paper
136+
### Code corresponding to the paper
137137
138138
The following describes how the paper corresponds to the code:
139139
@@ -190,7 +190,7 @@ documentation: |-
190190
- The querying protocol from Section 4.4 is implemented in the directory
191191
`Examples/Querying`.
192192
193-
## Exploring further
193+
### Exploring further
194194
195195
We encourage you to explore Disel further by extending one of the
196196
examples or trying your own. For example, you could build an application
@@ -200,7 +200,7 @@ documentation: |-
200200
becomes leader. To get started, we recommend following the Calculator example
201201
and modifying it as necessary.
202202
203-
## Extracting and Running Disel Programs
203+
### Extracting and Running Disel Programs
204204
205205
As described in Section 5.1, Disel programs can be extracted to OCaml and run.
206206
You can build the two examples as follows.
@@ -306,7 +306,7 @@ documentation: |-
306306
respond with AckAbort messages (tag 6). Once all four rounds are over,
307307
all nodes exit.
308308
309-
## Proof Size Statistics
309+
### Proof Size Statistics
310310
311311
Section 5.2 and Table 1 describe the size of our development. Those
312312
were obtained by using the `coqwc` tool on manually dissected files,

theories/Core/HoareTriples.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Unset Printing Implicit Defensive.
1212
Structure prog (W : world) A (this : nid) :=
1313
Prog {
1414
set_of : proc this W A -> Prop;
15-
(* Unifinshed is a bottom element that should be present *)
15+
(* Unfinished is a bottom element that should be present *)
1616
_ : set_of Unfinished
1717
}.
1818

@@ -441,7 +441,7 @@ Lemma conseq_refl (W : world) A this (e : DT this W A) :
441441
conseq e (spec_of e).
442442
Proof. by case: e; case=>p q [T H i] /= Hp C t; apply: H. Qed.
443443

444-
Hint Resolve conseq_refl : core.
444+
#[export] Hint Resolve conseq_refl : core.
445445

446446

447447
(* Weakening the specifications *)

theories/Core/dune

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@
88
-w -local-declaration
99
-w -duplicate-clear
1010
-w -redundant-canonical-projection
11-
-w -projection-no-head-constant
12-
-w -deprecated-hint-without-locality))
11+
-w -projection-no-head-constant))

0 commit comments

Comments
 (0)