Skip to content

Commit

Permalink
The ASSUME statements for StalenessBound and VersionBound being in Na…
Browse files Browse the repository at this point in the history
…t are inconsistent with the definition of WritesAccepted, i.e., a bound of zero prevents writes from being accepted.

Co-authored-by: Finn Hackett <fhackett@@users.noreply.github.com>
  • Loading branch information
lemmy and Finn Hackett committed Dec 5, 2023
1 parent 5161e7e commit 0e25985
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions simple-model/CosmosDB.tla
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ Epochs == Nat \ {0}
\* rejected.
\* - VersionBound, at all consistency levels, indicates the maximum distance
\* between Len(log) and readIndex. Writes beyond that are rejected.
\* A VersionBound or StalenessBound of 0 would mean no writes are accepted (as
\* per the definition of WritesAccepted below).
CONSTANT StalenessBound, VersionBound
ASSUME StalenessBound \in Nat
ASSUME VersionBound \in Nat
ASSUME StalenessBound \in Nat \ {0}
ASSUME VersionBound \in Nat \ {0}

\* Session tokens represent a point in the log, as well as a particular "epoch".
\* Each session-consistent read and write will produce an updated token, and
Expand Down

0 comments on commit 0e25985

Please sign in to comment.