Skip to content

Commit

Permalink
Add property MonotonicByzCommittedIndexdProp
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Alexander Kuppe <[email protected]>
  • Loading branch information
lemmy committed Dec 7, 2024
1 parent 483eabe commit d2e727d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions MCpirateship.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ INVARIANT
PROPERTIES
CommittedLogAppendOnlyProp
ByzCommittedLogAppendOnlyProp
MonotonicByzCommittedIndexdProp

CHECK_DEADLOCK
FALSE
Expand Down
1 change: 1 addition & 0 deletions MCpirateshipCrash.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ INVARIANT
PROPERTIES
CommittedLogAppendOnlyProp
ByzCommittedLogAppendOnlyProp
MonotonicByzCommittedIndexdProp

CHECK_DEADLOCK
FALSE
Expand Down
1 change: 1 addition & 0 deletions SIMpirateship.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ INVARIANT
PROPERTIES
CommittedLogAppendOnlyProp
ByzCommittedLogAppendOnlyProp
MonotonicByzCommittedIndexdProp

CONSTRAINTS
CrashCommitIndexAt1
Expand Down
1 change: 1 addition & 0 deletions SIMpirateshipCrash.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ INVARIANT
PROPERTIES
CommittedLogAppendOnlyProp
ByzCommittedLogAppendOnlyProp
MonotonicByzCommittedIndexdProp

CONSTRAINTS
CrashCommitIndexAt1
Expand Down
4 changes: 4 additions & 0 deletions pirateship.tla
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@ CommittedLogAppendOnlyProp ==
\A i \in R :
IsPrefixWithoutEmpty(Committed(i), Committed(i)')]_vars

MonotonicByzCommittedIndexdProp ==
[][\A i \in CR :
byzCommitIndex[i] <= byzCommitIndex'[i]]_vars

\* Each correct replica only appends to its byzantine committed log
ByzCommittedLogAppendOnlyProp ==
[][\A i \in CR :
Expand Down

0 comments on commit d2e727d

Please sign in to comment.