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

Re: [tlaplus] Assuming a contiguous subset of Nat

How about

  \E m,n \in Nat : Ver = (m .. n)


On 22 Nov 2015, at 16:32, Y2i <yur...@xxxxxxxxx> wrote:

I wanted to express an assumption that my set Ver is a subset of Nat and is contiguous.  It seems it can be done using a Max() operator, like below:

(* A singleton set with a maximal element from S or empty set *)

Max(S) == { i \in S : \A j \in S : i >= j }

ASSUME /\ Ver \subseteq Nat \* Ver is a subset of Nat

       /\ \A i \in Ver : i + 1 \notin Ver => Max(Ver) = { i } \* Ver is contiguous

Is there a better/cleaner way to express this assumption?

Thank you,


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...@xxxxxxxxxxxxxxxx.
To post to this group, send email to tla...@xxxxxxxxxxxxxxxx.
Visit this group at http://groups.google.com/group/tlaplus.
For more options, visit https://groups.google.com/d/optout.