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

*From*: Balaji Arun <ba2669@xxxxxx>*Date*: Tue, 2 Apr 2019 13:53:51 -0700 (PDT)

I have a set of functions, and I want to extract a particular
mapping from each element in the set. I tried the following, but dint
work.

`get(t) == {<<x, y>>: \A element \in elements: element.key > t => <<x, y>> \in element.value}`

I get a syntax error at \A. So, I tried to split them as:

`get1(t) == {``element \in elements: element.key > t}`

get2(t) == {element.value : element \in get1(t)}

get3(t) == {val : val \in get2(t)}

get4(t) == {<<x, y>> : <<x, y>> \in val}

and combined it into:

`committed(t) == {<<x, y>> : <<x, y>> \in {``val`

: `val`

\in {`element`

.`val`

: `element`

\in {`element`

\in `elements`

: `element`

.`key`

> t}}}}

Is this correct? Can this be simplified further?

Thanks!

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 post to this group, send email to tlaplus@xxxxxxxxxxxxxxxx.

Visit this group at https://groups.google.com/group/tlaplus.

For more options, visit https://groups.google.com/d/optout.

**Follow-Ups**:

- Prev by Date:
**Re: [tlaplus] Fumbling Through TLA+** - Next by Date:
**Re: [tlaplus] How do I extract particular mapping from each element in a set?** - Previous by thread:
**Re: [tlaplus] Re: [noob] Liveness property not violated as expected** - Next by thread:
**Re: [tlaplus] How do I extract particular mapping from each element in a set?** - Index(es):