Skip to content

Instantly share code, notes, and snippets.

@grogers0
Created May 31, 2017 22:58
Show Gist options
  • Save grogers0/71d06cf3376aaa09aff1263b5d4a6749 to your computer and use it in GitHub Desktop.
Save grogers0/71d06cf3376aaa09aff1263b5d4a6749 to your computer and use it in GitHub Desktop.
RecvPrepare(a, ts) == /\ acceptorTS[a] = NoTS \/ acceptorTS[a] < ts
/\ acceptorTS' = [acceptorTS EXCEPT ![a] = ts]
/\ msgs' = msgs \union {[type |-> "promise", acceptor |-> a, ts |-> ts,
prevTS |-> acceptorValTS[a], prevVal |-> acceptorValue[a]]}
/\ UNCHANGED <<ops, acceptorValTS, acceptorValue, history>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment