Code Monkey home page Code Monkey logo

pwt's Introduction

Pomsets w/ Transformers (a Coq formalization)

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.

Building the Coq Formalisation

Requirements

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.4

Building Manually

To build the project just use make -j command (assuming all dependencies were installed as described above).

Description of the project's files

Basic definitions of the semantics

  • 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)

Properties of the semantics

  • SeqSkipId.vskip as 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)

Auxiliary definitions and lemmas

  • AuxDef.v, AuxRel.v, SeqBuilder.v

Building PwTer

All required dependencies can be installed via package manager opam.

opam install dune batteries fmt menhir ocamlgraph ounit2 z3

Building Manually

To build PwTer, navigate to ~/artifact/pomsets-with-predicate-transformers/ and run make.

Run the tool

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.

pwt's People

Contributors

anlun avatar demarkok avatar

Watchers

 avatar James Cloos avatar

Forkers

demarkok

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.