Skip to content

Commit 62d104f

Browse files
authored
Fix typos (#94)
Signed-off-by: Sergey Bronnikov <[email protected]>
1 parent ca36eec commit 62d104f

File tree

39 files changed

+131
-131
lines changed

39 files changed

+131
-131
lines changed

specifications/CarTalkPuzzle/CarTalkPuzzle.toolbox/CarTalkPuzzle.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
}[0pt][0pt]{\rule[.5ex]{\boxrulewd}{\boxlineht}}\hspace{-\boxsep}}
241241

242242
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
243-
% FORMATING COMMANDS %
243+
% FORMATTING COMMANDS %
244244
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
245245

246246
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

specifications/DieHard/DieHard.tla

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
------------------------------ MODULE DieHard -------------------------------
22
(***************************************************************************)
3-
(* In the movie Die Hard 3, the heros must obtain exactly 4 gallons of *)
3+
(* In the movie Die Hard 3, the heroes must obtain exactly 4 gallons of *)
44
(* water using a 5 gallon jug, a 3 gallon jug, and a water faucet. Our *)
55
(* goal: to get TLC to solve the problem for us. *)
66
(* *)
77
(* First, we write a spec that describes all allowable behaviors of our *)
8-
(* heros. *)
8+
(* heroes. *)
99
(***************************************************************************)
1010
EXTENDS Naturals
1111
(*************************************************************************)
@@ -76,7 +76,7 @@ EmptyBigJug == /\ big' = 0
7676

7777
(***************************************************************************)
7878
(* We now consider pouring water from one jug into another. Again, since *)
79-
(* the jugs are not callibrated, when pouring from jug A to jug B, it *)
79+
(* the jugs are not calibrated, when pouring from jug A to jug B, it *)
8080
(* makes sense only to either fill B or empty A. And there's no point in *)
8181
(* emptying A if this will cause B to overflow, since that could be *)
8282
(* accomplished by the two actions of first filling B and then emptying A. *)
@@ -119,7 +119,7 @@ Spec == Init /\ [][Next]_<<big, small>>
119119
-----------------------------------------------------------------------------
120120

121121
(***************************************************************************)
122-
(* Remember that our heros must measure out 4 gallons of water. *)
122+
(* Remember that our heroes must measure out 4 gallons of water. *)
123123
(* Obviously, those 4 gallons must be in the 5 gallon jug. So, they have *)
124124
(* solved their problem when they reach a state with big = 4. So, we *)
125125
(* define NotSolved to be the predicate asserting that big # 4. *)

specifications/DieHard/DieHarder.tla

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ EXTENDS Naturals
1111

1212
CONSTANT Jug, \* The set of all jugs.
1313
Capacity, \* A function, where Capacity[j] is the capacity of jug j.
14-
Goal \* The quantity of water our heros must measure.
14+
Goal \* The quantity of water our heroes must measure.
1515
(***************************************************************************)
1616
(* We make an assumption about these constants--namely, that Capacity is a *)
1717
(* function from jugs to positive integers, and Goal is a natural number. *)

specifications/KeyValueStore/ClientCentric.tla

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ExecutionElem == [parentState: State, transaction: Transaction]
3131
\* resultState is the parentState of the next transaction, but not used in the isolation definitions.
3232
\* ExecutionElem == [parentState: State, transaction: Transaction, resultState: State]
3333
\* We represent an `Execution` as a sequence of `Transaction`s with their corresponding parent state.
34-
\* Note: This execution does therefor not contain the "final state" of the execution, since it is not a parent state of a transaction.
34+
\* Note: This execution does therefore not contain the "final state" of the execution, since it is not a parent state of a transaction.
3535
Execution == Seq(ExecutionElem)
3636

3737
\* Seq
@@ -107,12 +107,12 @@ effects(state, transaction) ==
107107
executions(initialState, transactions) ==
108108
\* All possible permutations
109109
LET orderings == PermSeqs(transactions)
110-
\* initialState == [k \in Keys |-> InitValue] \* makes it level-1 therefor pass it in
110+
\* initialState == [k \in Keys |-> InitValue] \* makes it level-1 therefore pass it in
111111
accummulator == [ execution |-> <<>>, nextState |-> initialState ]
112112
IN { LET executionAcc == ReduceSeq(
113113
\* store ExecutionElem in accumulator
114114
LAMBDA t, acc: [ execution |-> Append(acc.execution, [parentState |-> acc.nextState, transaction |-> t])
115-
\* calcultate next state
115+
\* calculate next state
116116
, nextState |-> effects(acc.nextState,t)
117117
],
118118
ordering, accummulator)
@@ -139,7 +139,7 @@ CT_SER(transaction, execution) ==
139139
Serializability(initialState, transactions) == satisfyIsolationLevel(initialState, transactions, CT_SER)
140140

141141
\*SerializabilityDebug(initialState, transactions) ==
142-
\* \* if no executions satify commit test, print all executions
142+
\* \* if no executions satisfy commit test, print all executions
143143
\* \/ (~\E execution \in executions(initialState, transactions): \A transaction \in transactions:
144144
\* CT_SER(transaction, execution)) => \A execution \in executions(initialState, transactions): PrintT(<<"Execution not Serializable:",execution>>)
145145
\* \* fall back to normal check

specifications/KeyValueStore/KVsnap.tla

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--------------------------- MODULE KVsnap ---------------------------------
22
(**************************************************************************)
3-
(* Pluscal algoritm for a simple key-value store with snapshot isolation *)
3+
(* Pluscal algorithm for a simple key-value store with snapshot isolation *)
44
(* This version has atomic updates of store and missed sets of txns *)
55
(**************************************************************************)
66
EXTENDS Integers, Sequences, FiniteSets, Util

specifications/KeyValueStore/Util.tla

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Index(seq, e) == CHOOSE i \in 1..Len(seq): seq[i] = e
1919
SeqToSet(s) == {s[i] : i \in DOMAIN s}
2020
Last(seq) == seq[Len(seq)]
2121
IsEmpty(seq) == Len(seq) = 0
22-
\* Remove all occurences of `elem` from `seq`
22+
\* Remove all occurrences of `elem` from `seq`
2323
Remove(seq, elem) == SelectSeq(seq, LAMBDA e: e /= elem)
2424

2525
\* Dual to UNION on intersect

specifications/KnuthYao/SimKnuthYao.tla

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SimInit ==
3434
/\ flip \in Flip
3535

3636
SimNext ==
37-
\* Need an artifical initial state to be able to model a crooked coin. Otherwise,
37+
\* Need an artificial initial state to be able to model a crooked coin. Otherwise,
3838
\* the first flip will always be fair.
3939
\/ /\ state = "init"
4040
/\ state' = "s0"

specifications/MisraReachability/ParReachProofs.tla

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
(***************************************************************************)
33
(* This module contains TLAPS checked proofs of the safety properties *)
44
(* asserted in module ParReach--namely, the invariance of Inv and that the *)
5-
(* parallel alorithm implements the safety part of Misra's algorithm under *)
5+
(* parallel algorithm implements the safety part of Misra's algorithm under *)
66
(* the refinement mapping defined there. *)
77
(***************************************************************************)
88
EXTENDS ParReach, Integers, TLAPS

specifications/PaxosHowToWinATuringAward/Consensus.tla

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Init == chosen = {}
4949
(***************************************************************************)
5050
(* The next-state relation describing how 'chosen' can change from one *)
5151
(* step to the next. Note that is enabled (equals true for some next *)
52-
(* value chosen' of choseen) if and only if chosen equals the empty set. *)
52+
(* value chosen' of chosen) if and only if chosen equals the empty set. *)
5353
(***************************************************************************)
5454
Next == /\ chosen = {}
5555
/\ \E v \in Value : chosen' = {v}
@@ -69,7 +69,7 @@ Inv == /\ TypeOK
6969
/\ Cardinality(chosen) \leq 1
7070

7171
(***************************************************************************)
72-
(* The following theorem asserts the desired safety propert. Its proof *)
72+
(* The following theorem asserts the desired safety property. Its proof *)
7373
(* appears after the theorem. This proof is easily checked by the TLAPS *)
7474
(* prover. *)
7575
(***************************************************************************)

0 commit comments

Comments
 (0)