It could just be inexperience. I can't go through the whole spec for you, but one thing that I notice is you have
IsValidData(d) == d /= NULL /\ d.id \in Nat /\ d.value \in
Nat /\ d.version <= MaxVersion
TypeInvariant ==
/\ \/ UpdateRequestQueue = <<>>
\/ \A i \in 1..Len(UpdateRequestQueue):
/\ UpdateRequestQueue[i].client \in Clients
/\ IsValidData(UpdateRequestQueue[i].data)
/\ \/ DeleteRequestQueue = <<>>
\/ \A i \in 1..Len(DeleteRequestQueue):
/\ DeleteRequestQueue[i].client \in Clients
/\ IsValidData(DeleteRequestQueue[i].data)
Assuming you have no additional keys in your structs, this can be
shorted to:
--
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...@googlegroups.com.
To post to this group, send email to tla...@googlegroups.com.
Visit this group at https://groups.google.com/group/tlaplus.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/7fb23501-ca11-437d-9351-b5967765815f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--