Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Commit

Permalink
added two examples: HourClock demonstrates the use of the prime operator
Browse files Browse the repository at this point in the history
  • Loading branch information
dohan committed May 23, 2012
1 parent 4537913 commit 1ca29f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/tla/Functions
@@ -0,0 +1,5 @@
LET
f[x \in 1..10] == x+x
g == [x \in 1..10 |-> x * x]
IN
f[2] = f[2]
6 changes: 6 additions & 0 deletions examples/tla/HourClock
@@ -0,0 +1,6 @@
\* Calculation the next state of the hour clock *\
LET
Current == hr = 12
Next == hr' = IF hr # 12 THEN hr + 1 ELSE 1
IN
Current /\ Next

0 comments on commit 1ca29f1

Please sign in to comment.