This repository contains Coq code supplementing the paper Leaky Semicolon: Compositional Semantic Dependencies for Relaxed-Memory Concurrency by Alan Jeffrey, James Riely, Mark Batty, Simon Cooksey, Ilya Kaysin, and Anton Podkopaev.
- Coq 8.13.1
- Hahn library (
coq-hahn) - Intermediate Memory Model (
coq-imm.1.4)
All required dependencies can be installed via package manager opam.
opam repo add coq-released https://coq.inria.fr/opam/released
opam remote add coq-weakmemory-local -k git https://github.com/weakmemory/local-coq-opam-archive
opam install coq-hahn coq-imm.1.4To build the project just use make -j command (assuming all dependencies were installed as described above).
Events.v– a definition of events (§4.1)Language.v– definitions of statements S and expressions M (§4.1)Formula.v– a language of formulas Φ (§4.1)Action.v— a definition of actions and related notions (§4.2)PredTransformer.v— a definition of predicate transformers (§4.3, Def. 4.2)Pomset.v— a definition of pomsets with predicate transformers (§4.3, Def. 4.4)Semantics.v— the PwT semantics extended to allow if-closure (§4.3, Fig. 1 and §9.4, Def. 9.6)
SeqSkipId.v—skipas an identity element for the semicolon operator (§4.3, Lemma 4.5a)SeqAssoc.v— associativity of the semicolon operator (§4.3, Lemma 4.5b)IfClosure.v— distribution of the if operator over semicolon (§4.3, Lemma 4.6e)
AuxDef.v,AuxRel.v,SeqBuilder.v
All required dependencies can be installed via package manager opam.
opam install dune batteries fmt menhir ocamlgraph ounit2 z3
To build PwTer, navigate to ~/artifact/pomsets-with-predicate-transformers/ and run make.
To reproduce the results from the table in the paper, change directory to ~/artifact/pomsets-with-predicate-transformers and run make check.
To experiment with the tool in general, follow the instructions in ~/artifact/pomsets-with-predicate-transformers/README.md.