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

Re: [tlaplus] specify two different elements in a set



Thanks Stephan.

On Fri, Sep 6, 2019 at 12:37 AM Stephan Merz <stephan.merz@xxxxxxxxx> wrote:
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

On 6 Sep 2019, at 00:01, Han <keepsimple@xxxxxxxxx> wrote:

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



--
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/CAEjGaqdFBoPgKdM40MW5-eBsAsrmHjvRo_EXERyN3CdEJoMa2w%40mail.gmail.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/ECE5748B-34C2-480B-BB27-603B0F7708C0%40gmail.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/CAEjGaqe1vqeTLOtv6i7A%2Bc_zh12B87FpXqyGNYiXqCgsCYo1fQ%40mail.gmail.com.