Subset vs. Subseteq

49 views
Skip to first unread message

AmirHossein SayyadAbdi

unread,
Nov 14, 2019, 4:21:54 AM11/14/19
to tla...@googlegroups.com
Hi Everyone,

What is the difference between \subset and \subseteq in TLA+? Is it about (dis)allowing the empty subset?

AmirHossein

Stephan Merz

unread,
Nov 14, 2019, 4:31:03 AM11/14/19
to tla...@googlegroups.com
\subset means "strict subset" whereas \subseteq means "subset or equal".

For example, ~({1,2,3} \subset {1,2,3})  but  {1,2,3} \subseteq {1,2,3}.

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/CAKxfy0vyc3tOQV4FUkLbdqQOBRz_Mn9kc2z%3DJqibN65OoXKs%3DQ%40mail.gmail.com.

AmirHossein SayyadAbdi

unread,
Nov 14, 2019, 4:45:51 AM11/14/19
to tla...@googlegroups.com
Thank you so much.

AmirHossein

Leslie Lamport

unread,
Nov 18, 2019, 5:15:55 PM11/18/19
to tlaplus
Stephan should have mentioned that \subseteq is a built-in TLA+ operator, while \subset 
is not and can be defined in the spec to have any meaning.


On Thursday, November 14, 2019 at 1:31:03 AM UTC-8, Stephan Merz wrote:
\subset means "strict subset" whereas \subseteq means "subset or equal".

For example, ~({1,2,3} \subset {1,2,3})  but  {1,2,3} \subseteq {1,2,3}.

Stephan

On 14 Nov 2019, at 10:21, AmirHossein SayyadAbdi  wrote:

Hi Everyone,

What is the difference between \subset and \subseteq in TLA+? Is it about (dis)allowing the empty subset?

AmirHossein

--
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 

AmirHossein SayyadAbdi

unread,
Nov 21, 2019, 9:29:12 AM11/21/19
to tla...@googlegroups.com
Thanks so much for clarification!

AmirHossein

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/43b0bf08-52cb-45dd-a9e1-23b98c5ce394%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages