Skip to content

Instantly share code, notes, and snippets.

@mdmarek
Created November 3, 2016 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdmarek/845670da1ae9ee80e2bbc72d691c41d4 to your computer and use it in GitHub Desktop.
Save mdmarek/845670da1ae9ee80e2bbc72d691c41d4 to your computer and use it in GitHub Desktop.
TLA+ Hour Clock
INIT
Init
NEXT
Next
---- 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