quux00 / PlusCal-Examples

Algorithm examples in PlusCal, the algorithm language of Lamport's TLA+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

These are examples of algorithms written in PlusCal, the algorithm language for Leslie Lamport's TLA+ algorithm specification system.

These have been created in the TLA+ Toolbox, so most of the files are supporting files for running in the Toolbox and using the TLC algorithm verification checker.

The important (non-auto-generated) files for review are those that end in .tla, such as Euclid/Euclid.tla and HourClock/HourClock.tla.

I've written the part above the line \* BEGIN TRANSLATION and the PlusCal code falls between the (* and *) comment markers, starting with the --algorithm XXX indicator.

About

Algorithm examples in PlusCal, the algorithm language of Lamport's TLA+