Skip to content

Commit

Permalink
Refactor (simplify) TypeOK to use Sequences!Seq operator
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
  • Loading branch information
lemmy committed Sep 12, 2024
1 parent b08724a commit cb9542e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tla/consensus/abs.tla
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ CONSTANT Servers, Terms, MaxLogLength
VARIABLE cLogs

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

StartTerm == Min(Terms)

Expand Down

0 comments on commit cb9542e

Please sign in to comment.