Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
Signed-off-by: Giuliano Losa <[email protected]>
  • Loading branch information
nano-o committed Jan 22, 2024
1 parent b95e74b commit 05ebed1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion specifications/Paxos/MCVotingApalache.tla
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
--------------------------- MODULE MCVotingApalache -------------------------------

(*********************************************************************************)
(* In this module we instantiate VotingApalache with small constants in order to *)
(* run the `^Apalache^' model-checker. We also give type annotations for the *)
(* variables, which are required by `^Apalache^'. *)
(*********************************************************************************)

EXTENDS Integers

Value == {"V1_OF_VALUE","V2_OF_VALUE"}
Expand All @@ -11,7 +17,7 @@ Quorum == {
{"A2_OF_ACCEPTOR","A3_OF_ACCEPTOR"}}

MaxBal == 2
Ballot == 0..MaxBal \* NOTE: has to be finite for `^Apalache^' because it is used as the domain of a function
Ballot == 0..MaxBal \* NOTE: we have to make this a finite set for `^Apalache^'

VARIABLES
\* @type: ACCEPTOR -> Set(<<Int,VALUE>>);
Expand Down
3 changes: 2 additions & 1 deletion specifications/Paxos/VotingApalache.tla
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
(* This is a version of `^Voting.tla^' that can be analyzed by the `^Apalache^' *)
(* model-checker. Here are the differences compared to `^Voting.tla^': *)
(* *)
(* * We make Ballot a constant in order to be able to substitute a finite set. *)
(* * We make Ballot a constant in order to be able to substitute a finite set *)
(* for model-checking with Apalache. *)
(* *)
(* * We rewrite SafeAt and ShowsSafeAt to avoid ranges of integers with *)
(* non-constant bounds (which `^Apalache^' does not support). *)
Expand Down

0 comments on commit 05ebed1

Please sign in to comment.