Skip to content

Commit

Permalink
Add new invariant, stating that CommittableIndices are all (known) si…
Browse files Browse the repository at this point in the history
…gnatures
  • Loading branch information
eddyashton committed Oct 24, 2023
1 parent 499f170 commit 76bdc88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tla/consensus/SIMccfraft.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ INVARIANTS

CommitCommittableIndices

CommittableIndicesAreKnownSignaturesInv

\* DebugInvLeaderCannotStepDown
\* DebugInvAnyCommitted
\* DebugInvAllCommitted
Expand Down
6 changes: 6 additions & 0 deletions tla/consensus/ccfraft.tla
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,12 @@ CommitCommittableIndices ==
\A i \in Servers :
committableIndices[i] # {} => commitIndex[i] < Min(committableIndices[i])

CommittableIndicesAreKnownSignaturesInv ==
\A i \in Servers :
\A j \in committableIndices[i] :
/\ j \in DOMAIN(log[i])
/\ HasTypeSignature(log[i][j])

------------------------------------------------------------------------------
\* Properties

Expand Down

0 comments on commit 76bdc88

Please sign in to comment.