Skip to content

Commit

Permalink
Rename confusing variable name in AddTwo.tla (#152)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Helwer <[email protected]>
  • Loading branch information
ahelwer authored Oct 15, 2024
1 parent cfa1614 commit b9975cf
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions specifications/LearnProofs/AddTwo.tla
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ THEOREM TypeInvariant == Spec => []TypeOK

a|b == \E c \in Nat : a*c = b

AlwaysEven == 2|x

THEOREM Spec => []AlwaysEven
<1>a. Init => AlwaysEven
BY DEF Init, AlwaysEven, |
<1>b. AlwaysEven /\ UNCHANGED vars => AlwaysEven'
BY DEF AlwaysEven, vars
<1>c. AlwaysEven /\ Next => AlwaysEven'
Even == 2|x

THEOREM Spec => []Even
<1>a. Init => Even
BY DEF Init, Even, |
<1>b. Even /\ UNCHANGED vars => Even'
BY DEF Even, vars
<1>c. Even /\ Next => Even'
BY \A c \in Nat : c+1 \in Nat /\ 2*(c+1) = 2*c + 2, Zenon
DEF TypeOK, AlwaysEven, Next, |
DEF TypeOK, Even, Next, |
<1> QED BY PTL, <1>a, <1>b, <1>c DEF Spec

=============================================================================
Expand Down

0 comments on commit b9975cf

Please sign in to comment.