Giter Site home page Giter Site logo

hengxin / tlaps-examples Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 6.0 4.87 MB

Examples for TLAPS (TLA+ Proof System)

License: MIT License

Shell 0.01% TLA 34.44% Isabelle 28.70% TeX 36.86% Makefile 0.01%
tlaps tlaplus theorem-proving theorem-prover formal-methods

tlaps-examples's Introduction

tlaps-examples

Examples for TLA+ Proof System

Adapted from the examples accompany with the tlaps tool.

TODO: re-organized

Allocator.tla: allocator managing a set of resources

Bakery.tla AtomicBakery.tla AtomicBakeryWithoutSMT.tla different versions of Lamport's bakery algorithm, Bakery.tla being the most faithful representation with non-atomic operations on shared registers

BubbleSort.tla the classic BubbleSort algorithm as a PlusCal algorithm, and its correctness proof

Euclid.tla proofs about Euclid's algorithm for computing the GCD of two positive integers, cf. the TLAPS tutorial

Peterson.tla: Peterson's algorithm for mutual exclusion between two processes using shared memory

SimpleMutex.tla: the essence of many mutual exclusion protocols

SumAndMax.tla: a simple challenge problem from VSTTE 2010


Sub-directories:

paxos/Paxos.tla TLA+ specification of the Paxos consensus algorithm and a proof of its correctness (safety)

two-phase/*.tla two-phase handshake

cantor/Cantor*.tla several proofs of Cantor's theorem using TLA+'s hierarchical proof language

consensus/PaxosProof.tla high level specification of Consensus with two refinements implementing an abstract Paxos algorithm (incomplete and largely superseded by paxos/)

data/*.tla various theorems on sets, sequences and graphs (incomplete)

tlaps-examples's People

Contributors

hengxin avatar

Stargazers

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