Skip to content

Commit 6127ae9

Browse files
authored
[spec] CEK rules for constr and case (#7419)
1 parent 0fdd1e6 commit 6127ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/plutus-core-spec/untyped-cek-machine.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ \section{The CEK machine}
126126
s;\rho & \compute \delay{M} &~\mapsto~& s\return \VDelay{M}{\rho}\\
127127
s;\rho & \compute \force{M} &~\mapsto~& \inForceFrame{} \cons s;\rho \compute M \\
128128
s;\rho & \compute \appU{M}{N} &~\mapsto~& \inAppLeftFrame{(N,\rho)} \cons s ;\rho \compute M\\
129-
s;\rho & \compute \constr{i}{M \cons \repetition{M}} &~\mapsto~& \inConstrFrame{i}{}{(\repetition{M},\rho)} \cons s ;\rho \compute M\\
129+
s;\rho & \compute \constr{i}{M \cons \repetition{M}} &~\mapsto~& \inConstrFrame{i}{[]}{(\repetition{M},\rho)} \cons s ;\rho \compute M\\
130130
s;\rho & \compute \constr{i}{[]} &~\mapsto~& s \return \VConstr{i}{[]}\\
131131
s;\rho & \compute \kase{N}{\repetition{M}} &~\mapsto~& \inCaseFrame{(\repetition{M},\rho)} \cons s ;\rho \compute N\\
132132
% No nullary builtins (yet)
@@ -155,7 +155,7 @@ \section{The CEK machine}
155155
\inConstrFrame{i}{\repetition{V}}{([], \rho)} \cons s & \return V &~\mapsto~&
156156
s \return \VConstr{i}{\repetition{V} \cons V} \\
157157
\inCaseFrame{(M_1 \ldots M_n, \rho)} \cons s & \return \VConstr{i}{V_1 \ldots V_m} &~\mapsto~&
158-
\inAppLeftFrame{V_m} \cons \cdots \cons \inAppLeftFrame{V_1} \cons s ;\rho \compute M_{i+1} \enskip \text{if $0 \leq i \leq n-1$}
158+
\inAppLeftFrame{V_1} \cons \cdots \cons \inAppLeftFrame{V_m} \cons s ;\rho \compute M_{i+1} \enskip \text{if $0 \leq i \leq n-1$}
159159
\end{alignat*}
160160
\end{minipage}
161161
\caption{CEK machine transitions for Plutus Core}

0 commit comments

Comments
 (0)