Skip to content

Commit

Permalink
Add a leads-to property LogsLeadToSubset to the properties we check u…
Browse files Browse the repository at this point in the history
…nder the MonotonicReduction view.

Signed-off-by: Markus Alexander Kuppe <[email protected]>
  • Loading branch information
lemmy committed Oct 30, 2024
1 parent a8cd795 commit 6abbb50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions tla/consensus/MCabs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ PROPERTIES
SynchingLockStep
AllExtending
\* AllExtendingLockStep
LogsLeadToSubset
AppendOnlyProp
\* EquivExtendProp
\* EquivCopyMaxAndExtendProp
Expand Down
10 changes: 7 additions & 3 deletions tla/consensus/abs.tla
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ AllExtendingLockStep ==

LEMMA AllExtendingLockStep => AllExtending

LogsLeadToSubset ==
\A i \in Servers:
cLogs[i] = <<>> ~> [](Range(cLogs[i]) \in SUBSET Terms)

FairSpecLockStep ==
/\ Spec
\* There repeatedly exists a state where the logs of all servers are synced.
Expand All @@ -155,13 +159,13 @@ WeakFairnessSpec ==
/\ WF_cLogs(Next)

THEOREM FairSpecLockStep =>
(Syncing /\ SynchingLockStep /\ AllExtending /\ InSync /\ InSyncLockStep)
(Syncing /\ SynchingLockStep /\ AllExtending /\ InSync /\ InSyncLockStep /\ LogsLeadToSubset)

THEOREM FairSpec =>
(Syncing /\ SynchingLockStep /\ AllExtending /\ InSync)
(Syncing /\ SynchingLockStep /\ AllExtending /\ InSync /\ LogsLeadToSubset)

THEOREM WeakFairnessSpec =>
(Syncing /\ SynchingLockStep /\ AllExtending)
(Syncing /\ SynchingLockStep /\ AllExtending /\ LogsLeadToSubset)

----

Expand Down

0 comments on commit 6abbb50

Please sign in to comment.