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

[tlaplus] Re: Defining Cardinality with TLA



Have thought something like this too

Cardinality(set) == (+ e \in DOMAIN set: IF set[e] THEN 1 ELSE 0)

On Friday, April 26, 2024 at 9:17:00 AM UTC+12 marta zhango wrote:
Like this for instance ?

Cardinality (S) = |S| == Count ( e \in S )


On Friday, April 26, 2024 at 8:36:13 AM UTC+12 marta zhango wrote:
How can I define the cardinality of a set as the number of elements in a set S
using the notation |S| using TLA.

--
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/28c9fe31-7a26-428f-af36-4d30c2a618aen%40googlegroups.com.