Skip to content

Commit 95e4b27

Browse files
authored
Merge pull request #30 from coq-community/purge-old
Purge old boilerplate
2 parents 52504cc + 047438f commit 95e4b27

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+53
-145
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion

Makefile

Lines changed: 9 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,16 @@
1-
include Makefile.ml-files
1+
all: Makefile.coq
2+
@+$(MAKE) -f Makefile.coq all
23

3-
MLFILES = ml/algorithm.ml ml/algorithm1.ml ml/algorithm2.ml ml/algorithm3.ml \
4-
ml/common.ml ml/benchgen.ml ml/benchprog.ml ml/commonbench.ml ml/configuration.ml \
5-
ml/launchStore1.ml ml/launchStore2.ml ml/launchStore3.ml ml/runtime.ml \
6-
ml/experiment.ml ml/readConfig.ml ml/util.ml
7-
8-
OCAMLBUILD = ocamlbuild -tag safe_string -package batteries -I ml
9-
10-
default: coq
11-
12-
coq: Makefile.coq
13-
$(MAKE) -f Makefile.coq all
14-
15-
stores: launchStore1.native launchStore2.native launchStore3.native
4+
clean: Makefile.coq
5+
@+$(MAKE) -f Makefile.coq cleanall
6+
@rm -f Makefile.coq Makefile.coq.conf
167

178
Makefile.coq: _CoqProject
189
$(COQBIN)coq_makefile -f _CoqProject -o Makefile.coq
1910

20-
$(ALGSML): Makefile.coq
21-
$(MAKE) -f Makefile.coq $@
22-
23-
install: Makefile.coq
24-
$(MAKE) -f Makefile.coq install
25-
26-
benchgen.native : $(MLFILES)
27-
$(OCAMLBUILD) benchgen.native
11+
force _CoqProject Makefile: ;
2812

29-
launchStore1.native: $(ALG1) $(MLFILES) benchgen.native
30-
$(OCAMLBUILD) launchStore1.native
31-
32-
launchStore2.native: $(ALG2) $(MLFILES) benchgen.native
33-
$(OCAMLBUILD) launchStore2.native
34-
35-
launchStore3.native: $(ALG3) $(MLFILES) benchgen.native
36-
$(OCAMLBUILD) launchStore3.native
37-
38-
experiment.native: $(MLFILES)
39-
$(OCAMLBUILD) experiment.native
40-
41-
run: launchStore1.native launchStore2.native launchStore2.native benchgen.native
42-
./batchrun
43-
44-
run2: launchStore1.native launchStore2.native launchStore2.native benchgen.native
45-
./batchrundetach
46-
47-
clean: Makefile.coq
48-
$(MAKE) -f Makefile.coq cleanall
49-
$(OCAMLBUILD) launchStore1.native -clean
50-
$(OCAMLBUILD) launchStore2.native -clean
51-
$(OCAMLBUILD) launchStore3.native -clean
52-
$(OCAMLBUILD) benchgen.native -clean
53-
$(OCAMLBUILD) experiment.native -clean
54-
rm -f Makefile.coq Makefile.coq.conf
55-
rm -f RemoteAllOutputs.txt
56-
rm -f RemoteAllResults.txt
57-
rm -f RemoteLauncherOutput.txt
13+
%: Makefile.coq force
14+
@+$(MAKE) -f Makefile.coq $@
5815

59-
.PHONY: default coq run run2 clean install stores $(ALGSML)
60-
.NOTPARALLEL: $(ALGSML)
16+
.PHONY: all clean force

Makefile.coq.local

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

Makefile.ml-files

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

README.md

Lines changed: 6 additions & 18 deletions

_CoqProject

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
-Q coq Chapar
1+
-Q theories Chapar
22

3-
coq/Lib/extralib.v
4-
coq/Lib/Predefs.v
5-
coq/Framework/KVStore.v
6-
coq/Framework/ReflectiveAbstractSemantics.v
7-
coq/Algorithms/KVSAlg1.v
8-
coq/Algorithms/KVSAlg2.v
9-
coq/Algorithms/KVSAlg3.v
10-
coq/Algorithms/ExtractAlgorithm.v
11-
coq/Examples/Clients.v
12-
coq/Examples/ListClient.v
3+
theories/Lib/extralib.v
4+
theories/Lib/Predefs.v
5+
theories/Framework/KVStore.v
6+
theories/Framework/ReflectiveAbstractSemantics.v
7+
theories/Algorithms/KVSAlg1.v
8+
theories/Algorithms/KVSAlg2.v
9+
theories/Algorithms/KVSAlg3.v
10+
theories/Algorithms/ExtractAlgorithm.v
11+
theories/Examples/Clients.v
12+
theories/Examples/ListClient.v

meta.yml

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -59,38 +59,6 @@ tested_coq_nix_versions:
5959

6060
namespace: Chapar
6161

62-
extracted:
63-
extracted_fullname: Chapar Key-value Stores
64-
extracted_shortname: chapar-kv-stores
65-
66-
extracted_synopsis: Three executable causally consistent distributed key-value stores
67-
extracted_description: |
68-
Three key-value stores, verified to be causally consistent in
69-
the Coq proof assistant and extracted to executable code.
70-
71-
extracted_make_target: stores
72-
73-
extracted_supported_ocaml_versions:
74-
text: 4.05.0 or later
75-
opam: '{>= "4.05.0"}'
76-
77-
extracted_tested_coq_opam_versions:
78-
- version: dev
79-
80-
extracted_dependencies:
81-
- opam:
82-
name: ocamlbuild
83-
version: '{build}'
84-
nix: ocamlbuild
85-
description: >-
86-
[OCamlbuild](https://github.com/ocaml/ocamlbuild)
87-
- opam:
88-
name: batteries
89-
version: '{>= "2.8.0"}'
90-
nix: batteries
91-
description: >-
92-
[Batteries Included](https://github.com/ocaml-batteries-team/batteries-included) 2.8.0 or later
93-
9462
keywords:
9563
- name: causal consistency
9664
- name: key-value stores
@@ -101,11 +69,15 @@ categories:
10169
- name: Computer Science/Concurrent Systems and Protocols/Theory of concurrent systems
10270

10371
documentation: |
72+
## Chapar Executable Key-value Stores
73+
74+
Three key-value stores, verified to be causally consistent in the Coq proof assistant and extracted to executable code. See [here](coq-chapar-stores.opam) for the requirements to build the stores.
75+
10476
## Documentation
10577
10678
### Coq Framework
10779
108-
The Coq definitions and proofs are located in the `coq` directory. The code location of the definitions and lemmas presented in the paper are listed below.
80+
The Coq definitions and proofs are located in the `theories` directory. The code location of the definitions and lemmas presented in the paper are listed below.
10981
11082
#### Semantics and the Proof Technique
11183
@@ -152,9 +124,9 @@ documentation: |
152124
153125
#### Directory structure
154126
155-
- root (directory): The execution scripts described in the section Running Experiments below
127+
- `scripts` (directory): The execution scripts described in the section Running Experiments below
156128
157-
- `coq` (directory); the Coq verification framework:
129+
- `theories` (directory); the Coq verification framework:
158130
* `Framework/KVStore.v`: The basic definitions, the semantics and accompanying lemma
159131
* `Framework/ReflectiveAbstractSemantics.v`: The client verification definitions and lemmas
160132
* `Algorithms/KVSAlg1.v`: The definition and proof of algorithm 1 in the paper
@@ -165,7 +137,7 @@ documentation: |
165137
* `Examples/ListClient.v`: Verified client program
166138
* `Lib` (directory): General purpose Coq libraries
167139
168-
- `ml` (directory); the OCaml runtime to execute the algorithms:
140+
- `src` (directory); the OCaml runtime to execute the algorithms:
169141
* `algorithm.ml`: Key-value store algorithm shared interface
170142
* `algorithm1.ml`, `algorithm2.ml`, `algorithm3.ml`: Wrappers for the extracted algorithms
171143
* `benchgen.ml`: Benchmark generation and storing program
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)