Skip to content

Commit

Permalink
moving typeOk
Browse files Browse the repository at this point in the history
  • Loading branch information
heidihoward committed Sep 2, 2024
1 parent 1d131f6 commit 6dbe828
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tla/consensus/abs.tla
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ CONSTANT Servers, Terms, MaxLogLength, StartTerm
\* Each log is append-only and the logs will never diverge.
VARIABLE CLogs

TypeOK ==
/\ CLogs \in [Servers ->
UNION {[1..l -> Terms] : l \in 0..MaxLogLength}]

InitialLogs == {
<<>>,
Expand Down Expand Up @@ -43,10 +46,6 @@ Next ==

AbsSpec == Init /\ [][Next]_CLogs

TypeOK ==
/\ CLogs \in [Servers ->
UNION {[1..l -> Terms] : l \in 0..MaxLogLength}]

AppendOnlyProp ==
[][\A i \in Servers : IsPrefix(CLogs[i], CLogs'[i])]_CLogs

Expand Down

0 comments on commit 6dbe828

Please sign in to comment.