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

*From*: Y2i <yur...@xxxxxxxxx>*Date*: Sun, 22 Nov 2015 07:32:11 -0800 (PST)

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,

Yuri

**Follow-Ups**:**Re: [tlaplus] Assuming a contiguous subset of Nat***From:*Stephan Merz

- Prev by Date:
**Re: Three questions** - Next by Date:
**Re: [tlaplus] Assuming a contiguous subset of Nat** - Previous by thread:
**Re: [tlaplus] Toolbox is unresponsive when PrintT is used** - Next by thread:
**Re: [tlaplus] Assuming a contiguous subset of Nat** - Index(es):