--
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 on the web visit https://groups.google.com/d/msgid/tlaplus/25239a98-d60c-4d15-ad4f-6cce4964691fo%40googlegroups.com.
EXTENDS TLC, Naturals, Sequences, FiniteSets
S == 0 .. 9 \* something enumerable and simple
Red == CHOOSE n \in S : TRUE \* arbitrary value in S
Yellow == CHOOSE n \in S: Print(Red, TRUE) /\ n \notin {Red} \* arbitrary value in S that is not used. Show Red
Green == CHOOSE n \in S: n \notin {Red, Yellow} \* Pick anything in S that is not already used
Foo == CHOOSE n \in S: n \notin {Red, Yellow, Green}