Created
November 3, 2016 16:18
-
-
Save mdmarek/c5a4317f059e90b12e0732bb96b32b8e to your computer and use it in GitHub Desktop.
TLA+ One Bit Clock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INIT | |
Init | |
NEXT | |
Next | |
INVARIANT | |
TypeOK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- MODULE OneBitClock ---- | |
VARIABLE b | |
TypeOK == b \in {0, 1} | |
Init == (b=0) \/ (b=1) | |
Next == /\ (b = 0) => (b' = 1) | |
/\ (b = 1) => (b' = 0) | |
==== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment