Coder Social home page Coder Social logo

starydark / paxosstore-tla Goto Github PK

View Code? Open in Web Editor NEW
21.0 4.0 5.0 20.44 MB

Specifying and Verifying the consensus algorithm in PaxosStore using TLA+

License: MIT License

TLA 55.75% TeX 42.75% Isabelle 0.02% Makefile 0.02% Python 1.23% Shell 0.23%
tla refinement

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

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

paxosstore-tla's People

Contributors

hengxin avatar starydark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

paxosstore-tla's Issues

书写并检验TPaxos的Liveness性质

借鉴 Lamport 已有的 TLA+ Spec for Paxos, 书写并检验 TPaxos 的 Livensss 性质。

在此过程中,更深入理解 Safety, Liveness, Fairness。

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.