-
Notifications
You must be signed in to change notification settings - Fork 200
/
MCConsensus.tla
23 lines (20 loc) · 1.3 KB
/
MCConsensus.tla
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---------------------------- MODULE MCConsensus -----------------------------
EXTENDS Consensus
(***************************************************************************)
(* Checking *)
(* *)
(* Inv /\ [Next]_chosen => Inv' *)
(* *)
(* which is equivalent to checking *)
(* *)
(* Inv /\ [][Next]_chosen => []Inv *)
(* *)
(* which asserts that Inv is an invariant of the spec *)
(* *)
(* Inv /\ [][Next]_chosen *)
(***************************************************************************)
ITypeOK == chosen \in SUBSET Value
IInv == /\ ITypeOK
/\ Cardinality(chosen) \leq 1
ISpec == IInv /\ [][Next]_chosen
=============================================================================