On 14 Aug 2022, at 06:15, Anand Kumar <akkes...@gmail.com> wrote:
I am new to this, and would appreciate any pointers in this matter.Thanks in advance
--
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/09b86764-7c37-4c9b-b120-982a0018d9dcn%40googlegroups.com.
ToSet(seq) ==
{ seq[i] : i \in DOMAIN seq }
BlockHasMessages(block,channel) ==
IF Len(channel) >0 THEN
\E message \in ToSet(channel) : block.id = message
ELSE
FALSE
TypeOK ==
\A block \in Blocks: block.state \in StateSet
where Blocks is a structure , which is a sequence as per documentation
Blocks = [
a |-> [ id |-> "a", state |-> "waiting", inputs |->0, outputs|-> <<"b","c">>],
b |-> [ id |-> "b", state |-> "waiting", inputs |->1, outputs|-> <<"c","d">>],
c |-> [ id |-> "c", state |-> "waiting", inputs |->2, outputs|-> <<"d">>],
d |-> [ id |-> "d", state |-> "waiting", inputs |->2, outputs|-> <<>>]
];
This results in a usinga quantifier of a non-enumerable error.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/c3ddcc2c-c36d-45a8-b9c3-3f936364f963n%40googlegroups.com.