specify two different elements in a set

23 views
Skip to first unread message

Han

unread,
Sep 5, 2019, 6:01:34 PM9/5/19
to tla...@googlegroups.com
Hi,

What's the proper way of specifying any two different elements from a set?  Currently I am doing something like this (i.e. check x = y in addition to real conditions) 

Inv == /\ \A x, y \in Nodes: (x = y \/ values[x] \cap values[y] = {})


(values is not relevant here) 

I'm curious, Is there a more concise way? 

thanks.
Han


Stephan Merz

unread,
Sep 6, 2019, 3:37:29 AM9/6/19
to tla...@googlegroups.com
Your way of writing the formula is fine. Logically equivalent formulations are

\A x,y \in Nodes : x # y => ...
\A x \in Nodes : \A y \in Nodes \ {x} : ...

Regards,
Stephan

--
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/CAEjGaqdFBoPgKdM40MW5-eBsAsrmHjvRo_EXERyN3CdEJoMa2w%40mail.gmail.com.

Han

unread,
Sep 6, 2019, 12:02:48 PM9/6/19
to tla...@googlegroups.com
Thanks Stephan.

Reply all
Reply to author
Forward
0 new messages