I am a beginner in TLA+, and while writing my specification, I tried to simulate signal changes in one of the steps. I attempted to use the CHOOSE operator to randomly select elements from a set to simulate this process, like this:
SigTrans == /\ pc = "SigTrans"--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tlaplus/63c7f65a-2413-41e7-93e5-14c41e7773dbn%40googlegroups.com.
What Stephan wrote is correct. Another way to do it would be to write:
\E a \in RangeA:
SignalA' = a
This is more verbose but you can also have multiple clauses in
the body of the `\E`. That's why it's the standard way to
represent concurrency:
\E p \in Processes:
\/ Action1(p)
\/ Action2(p)
\/ \* etc
H
To view this discussion visit https://groups.google.com/d/msgid/tlaplus/DFFD7D9D-0101-4230-8FFE-3063B5852E2E%40gmail.com.