Hillel Wayne
unread,Mar 6, 2022, 1:09:15 PM3/6/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 'Alex Weisberger' via tlaplus
Take the following spec:
VARIABLES x, y
vars == <<x, y>>
Init ==
/\ x = FALSE
/\ y = FALSE
Next ==
/\ x' \in BOOLEAN
/\ y' = (x \/ x')
Spec == /\ Init /\ [][Next]_vars
This checks with 7 states generated. Now remove the parenthesis in Next,
giving
Next ==
/\ x' \in BOOLEAN
/\ y' = x \/ x'
This now fails, with a not fully specified successor state:
State 2: <Next line 11, col 3 to line 12, col 17 of module problem>
/\ x = TRUE
/\ y = null
This seems to me like a bug with TLC, but I wanted to check if the two
Nexts aren't actually different semantically, and if so, what makes them
different.
H