Created
November 3, 2016 16:17
-
-
Save mdmarek/845670da1ae9ee80e2bbc72d691c41d4 to your computer and use it in GitHub Desktop.
TLA+ Hour 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 |
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 HourClock ---- | |
EXTENDS Naturals | |
VARIABLE hr | |
Init == hr \in 1..12 | |
Next == hr' = (hr % 12) + 1 | |
HC == Init /\ [][Next]_hr | |
---- | |
THEOREM HC => []Init | |
==== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment