@@ -31,7 +31,7 @@ ExecutionElem == [parentState: State, transaction: Transaction]
31
31
\* resultState is the parentState of the next transaction, but not used in the isolation definitions.
32
32
\* ExecutionElem == [parentState: State, transaction: Transaction, resultState: State]
33
33
\* 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.
35
35
Execution == Seq ( ExecutionElem )
36
36
37
37
\* Seq
@@ -107,12 +107,12 @@ effects(state, transaction) ==
107
107
executions ( initialState , transactions ) ==
108
108
\* All possible permutations
109
109
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
111
111
accummulator == [ execution |-> << >> , nextState |-> initialState ]
112
112
IN { LET executionAcc == ReduceSeq (
113
113
\* store ExecutionElem in accumulator
114
114
LAMBDA t , acc : [ execution |-> Append ( acc . execution , [ parentState |-> acc . nextState , transaction |-> t ] )
115
- \* calcultate next state
115
+ \* calculate next state
116
116
, nextState |-> effects ( acc . nextState , t )
117
117
] ,
118
118
ordering , accummulator )
@@ -139,7 +139,7 @@ CT_SER(transaction, execution) ==
139
139
Serializability ( initialState , transactions ) == satisfyIsolationLevel ( initialState , transactions , CT_SER )
140
140
141
141
\*SerializabilityDebug(initialState, transactions) ==
142
- \* \* if no executions satify commit test, print all executions
142
+ \* \* if no executions satisfy commit test, print all executions
143
143
\* \/ (~\E execution \in executions(initialState, transactions): \A transaction \in transactions:
144
144
\* CT_SER(transaction, execution)) => \A execution \in executions(initialState, transactions): PrintT(<<"Execution not Serializable:",execution>>)
145
145
\* \* fall back to normal check
0 commit comments