[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlaplus] Defining multiple possible actions in one line



An update to my silly problem. The issue was that x was added at a later time and I was using a view... unfortunately I did not update the view also :) 

On Thursday, February 24, 2022 at 7:37:03 PM UTC+2 jack malkovick wrote:
Yes. I did try that on my spec (that is not as simple as the above), so the error is somewhere else :(
Thanks for the answer. I'll keep digging...

On Thursday, February 24, 2022 at 6:52:27 PM UTC+2 Stephan Merz wrote:
Have you tried

Next == \E p \in Possibilities : Increase(p)

Stephan

On 24 Feb 2022, at 16:15, jack malkovick <sillym...@xxxxxxxxx> wrote:

Another beginner question. Let's say I have something like

VARIABLE v
Increase(x) == v' = v + x
Possibilities == {1, 2, 3}

And I would like to define something like

Next == Increase(1) \/ Increase(2) \/ Increase(3)

but using something like p \in Possibilites. I've tried all kinds of stuff but a silly subtle error makes TLA to generate only one action instead of 3.


--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+u...@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/b1976433-a008-4802-aad6-fdb2ae842e65n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/877e8b26-148f-4667-b22b-6dc479163965n%40googlegroups.com.