Skip to content

Instantly share code, notes, and snippets.

@ajalab
Created March 7, 2020 05:04
Show Gist options
  • Save ajalab/b5ac51aeccb9a50120b623a5286eb5f1 to your computer and use it in GitHub Desktop.
Save ajalab/b5ac51aeccb9a50120b623a5286eb5f1 to your computer and use it in GitHub Desktop.
SPECIFICATION HC
---------------MODULE HourClock---------------
EXTENDS Naturals
VARIABLE hr
HCini == hr \in (1 .. 12)
HCnxt == hr' = IF hr # 12 THEN hr + 1 ELSE 1
HC == HCini /\ [][HCnxt]_hr
----------------------------------------------
THEOREM HC => []HCini
==============================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment