Skip to content

Commit 4f34443

Browse files
committed
Nothing to see/Removal of variable zz.
1 parent 06d04f1 commit 4f34443

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

specifications/composition/Composition.tla

+3-6
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ VARIABLES x, \* Abstract/very high-level representation of the overall computati
2323
y, \* Represents the phase that the composed system is in.
2424
\* This toy example has three phases: <<"A", "B", "C">>.
2525
z \* z is the variable that is only going to be present in spec A.
26-
,zz \* The more the merrier.
27-
varsA == <<x, y, z, zz>>
26+
varsA == <<x, y, z>>
2827

2928
InitA ==
3029
/\ x = 0
3130
/\ y = "A"
3231
/\ z = TRUE
33-
/\ zz= FALSE \* Could happen to be zz=TRUE.
3432

3533
NextA ==
3634
/\ y = "A"
@@ -39,7 +37,6 @@ NextA ==
3937
THEN y' = "B"
4038
ELSE UNCHANGED y
4139
/\ z' = ~ z
42-
/\ zz'= ~ zz
4340

4441
==================================
4542

@@ -86,7 +83,7 @@ vars ==
8683
(* Down here we know about the internals *)
8784
(* of spec A and B (whitebox component). *)
8885

89-
INSTANCE A WITH z <- restOfTheUniverse, zz <- restOfTheUniverse
86+
INSTANCE A WITH z <- restOfTheUniverse
9087

9188
Spec == InitA /\ InitB /\ [][ \/ [NextA]_vars
9289
\/ [OpenNextB]_vars
@@ -97,6 +94,6 @@ THEOREM Spec => Inv
9794

9895
=============================================================================
9996
\* Modification History
100-
\* Last modified Fri Jun 12 16:44:17 PDT 2020 by markus
97+
\* Last modified Fri Jun 12 17:30:28 PDT 2020 by markus
10198
\* Last modified Fri Jun 12 16:30:19 PDT 2020 by Markus Kuppe
10299
\* Created Fri Jun 12 10:30:09 PDT 2020 by Leslie Lamport

0 commit comments

Comments
 (0)