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

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



Have you tried

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

Stephan

On 24 Feb 2022, at 16:15, jack malkovick <sillymouse333@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+unsubscribe@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/052D91DB-0BC6-4117-9B4E-216BA58E605D%40gmail.com.