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

Re: [tlaplus] How to bulid a set from an arrary



Hi,

I think you can use CONSTANTS in your spec. There is an example in [1].

[1] https://learntla.com/models/constants/

Regards,
AmirHossein

On Mon, Aug 5, 2019, 8:06 AM LUMING DONG <dongluming77@xxxxxxxxx> wrote:
 Hi, Dear all:

I have a tuple     CliState     for  CLIENT = {"C1","C2","C3"}

CliTypeOK == /\ CliState  \in [CLIENT-> {"PowerOn","Init","wait_Reg_Rslt","work"}]


and I wan to bulid  a  Set  to contain  all the client's currently state in  CLIENT.      What shall I do?

--
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/8870a63a-39d7-494e-99e7-508cfc9877cc%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/CAKxfy0vQ3yZ2w8GEUCy3xqxPh3Qg%3DroxzHapAAjM5%3D_y4Q11xw%40mail.gmail.com.