GithubHelp home page GithubHelp logo

paxosstore-tla's Introduction

Paxosstore-tla

A project of using TLA+ to model check and prove the correctness of the consensus algorithm in the PaxosStore@VLDB2017 paper and the open-source Tencent/paxosstore.

Specification

While constructing specification of the consensus algorithm TPaxos in PaxosStore, we uncover a crucial but sutble detail in TPaxos which is not fully clarified, called TPaxosAP. We verify the correctness of both TPaxos and TPaxosAP, and establish the refinement mappings from TPaxos to Voting and from TPaxosAP to EagerVoting(equivalent to Voting).

Module

  • TPaxos.tla: the specification of the TPaxos.
  • TPaxosAP.tla: the specification of the variant of TPaxos.
  • TPaxosWithVotes.tla: the refinement mapping of TPaxos refining Voting.
  • TPaxosAPWithVotes.tla: the refinement mapping of TPaxosAP refining EagerVoting.
  • EagerVoting.tla: a specification that is equivalent to Voting.
  • Voting.tla: a specification introduced by Lamport in paper Byzantizing Paxos by Refinement.
  • Consensus.tla: a specification that implemented by Voting.

Refinement relation

RefinementRelation

We prove the correctness of TPaxos using TLAPS(a internal proof system of TLA+). While writing the proof of TPaxos, we make some small changes on the specification which won't introduce additional rules but only made our proof not too complicated.

Experiment

We prove the refinement relation using the method of model checking. The details refers to experiment.

Others

  • here is a similar work that provides a framework to specify and verify CRDT Protocols using TLA+.

  • a presentation video of this work is available at: https://www.bilibili.com/video/BV1hV411E7w6/

  • see our research paper and master thesis (both in Chinese) in "./publication"

paxosstore-tla's People

Contributors

starydark avatar hengxin avatar alg-nju avatar

Watchers

 avatar

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.