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

*From*: marta zhango <martazhango@xxxxxxxxx>*Date*: Thu, 25 Apr 2024 17:22:32 -0700 (PDT)*References*: <07aaecb6-6368-4ffb-b7ca-5579d656a625n@googlegroups.com> <882fb42f-40d7-4ad4-980e-a23a55261fddn@googlegroups.com> <28c9fe31-7a26-428f-af36-4d30c2a618aen@googlegroups.com> <F38F1FE8-B042-445F-875E-99033895FDF2@lemmster.de>

Is the line

IN CS[S]

part of the definition of cardinality ?

On Friday, April 26, 2024 at 11:55:57 AM UTC+12 Markus Kuppe wrote:

https://github.com/tlaplus/tlaplus/blob/03c7bf4f35ccf1217ac2c53e5bf60d1220c8b0d8/tlatools/org.lamport.tlatools/src/tla2sany/StandardModules/FiniteSets.tla#L21-L27

> On Apr 25, 2024, at 4:53 PM, marta zhango <marta...@xxxxxxxxx> wrote:

>

> 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/f2c82e65-92e1-4c06-b61a-dfd78d19a017n%40googlegroups.com.

**Follow-Ups**:**Re: [tlaplus] Defining Cardinality with TLA***From:*Stephan Merz

**References**:**[tlaplus] Defining Cardinality with TLA***From:*marta zhango

**[tlaplus] Re: Defining Cardinality with TLA***From:*marta zhango

**[tlaplus] Re: Defining Cardinality with TLA***From:*marta zhango

**Re: [tlaplus] Defining Cardinality with TLA***From:*Markus Kuppe

- Prev by Date:
**Re: [tlaplus] Defining Cardinality with TLA** - Next by Date:
**Re: [tlaplus] TLA and TLAPIS** - Previous by thread:
**Re: [tlaplus] Defining Cardinality with TLA** - Next by thread:
**Re: [tlaplus] Defining Cardinality with TLA** - Index(es):