Skip to content

Commit 687428d

Browse files
committed
ras
1 parent 3ceb568 commit 687428d

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

rlp_txn_v2/generalities/phase_end.tex

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
\begin{array}{l}
55
\locValidPhaseTransition _{i} \define \vspace{2mm} \\
66
\left[ \begin{array}{clcl}
7-
+ & \phaseRlpPrefix _{i} & \cdot \typeZeroTx _{i} & \cdot \phaseNonce _{i + 1} \\
8-
+ & \phaseRlpPrefix _{i} & \cdot (\typeOneTx _{i} + \typeTwoTx _{i}) & \cdot \phaseChainId _{i + 1} \\
9-
+ & \phaseChainId _{i} & & \cdot \phaseNonce _{i + 1} \\
10-
+ & \phaseNonce _{i} & \cdot (\typeZeroTx _{i} + \typeOneTx _{i}) & \cdot \phaseGasPrice _{i + 1} \\
11-
+ & \phaseNonce _{i} & \cdot \typeTwoTx _{i} & \cdot \phaseMaxPriorityFeePerGas_{i + 1} \\
12-
+ & \phaseGasPrice _{i} & & \cdot \phaseGasLimit _{i + 1} \\
13-
+ & \phaseMaxPriorityFeePerGas_{i} & & \cdot \phaseMaxFeePerGas _{i + 1} \\
14-
+ & \phaseMaxFeePerGas _{i} & & \cdot \phaseGasLimit _{i + 1} \\
15-
+ & \phaseGasLimit _{i} & & \cdot \phaseTo _{i + 1} \\
16-
+ & \phaseTo _{i} & & \cdot \phaseValue _{i + 1} \\
17-
+ & \phaseValue _{i} & & \cdot \phaseData _{i + 1} \\
18-
+ & \phaseData _{i} & \cdot \typeZeroTx _{i} & \cdot \phaseBeta _{i + 1} \\
19-
+ & \phaseData _{i} & \cdot (\typeOneTx{} + \typeTwoTx{}) & \cdot \phaseAccessList _{i + 1} \\
20-
+ & \phaseAccessList _{i} & & \cdot \phaseY _{i + 1} \\
21-
+ & \phaseBeta _{i} & & \cdot \phaseR _{i + 1} \\
22-
+ & \phaseY _{i} & & \cdot \phaseR _{i + 1} \\
23-
+ & \phaseR _{i} & & \cdot \phaseS _{i + 1} \\
24-
+ & \phaseS _{i} & & \cdot \phaseRlpPrefix _{i + 1} \\
7+
+ & \phaseRlpPrefix _{i} & \cdot \typeZeroTx _{i} & \cdot \phaseNonce _{i + 1} \\
8+
+ & \phaseRlpPrefix _{i} & \cdot (\typeOneTx _{i} + \typeTwoTx _{i}) & \cdot \phaseChainId _{i + 1} \\
9+
+ & \phaseChainId _{i} & & \cdot \phaseNonce _{i + 1} \\
10+
+ & \phaseNonce _{i} & \cdot (\typeZeroTx _{i} + \typeOneTx _{i}) & \cdot \phaseGasPrice _{i + 1} \\
11+
+ & \phaseNonce _{i} & \cdot \typeTwoTx _{i} & \cdot \phaseMaxPriorityFeePerGas _{i + 1} \\
12+
+ & \phaseGasPrice _{i} & & \cdot \phaseGasLimit _{i + 1} \\
13+
+ & \phaseMaxPriorityFeePerGas _{i} & & \cdot \phaseMaxFeePerGas _{i + 1} \\
14+
+ & \phaseMaxFeePerGas _{i} & & \cdot \phaseGasLimit _{i + 1} \\
15+
+ & \phaseGasLimit _{i} & & \cdot \phaseTo _{i + 1} \\
16+
+ & \phaseTo _{i} & & \cdot \phaseValue _{i + 1} \\
17+
+ & \phaseValue _{i} & & \cdot \phaseData _{i + 1} \\
18+
+ & \phaseData _{i} & \cdot \typeZeroTx _{i} & \cdot \phaseBeta _{i + 1} \\
19+
+ & \phaseData _{i} & \cdot (\typeOneTx _{i} + \typeTwoTx _{i}) & \cdot \phaseAccessList _{i + 1} \\
20+
+ & \phaseAccessList _{i} & & \cdot \phaseY _{i + 1} \\
21+
+ & \phaseBeta _{i} & & \cdot \phaseR _{i + 1} \\
22+
+ & \phaseY _{i} & & \cdot \phaseR _{i + 1} \\
23+
+ & \phaseR _{i} & & \cdot \phaseS _{i + 1} \\
24+
+ & \phaseS _{i} & & \cdot \phaseRlpPrefix _{i + 1} \\
2525
\end{array} \right]
2626
\end{array}
2727
\]
@@ -32,12 +32,12 @@
3232
\item \label{rlp txn v2: generalities: PHASE_END constraints}
3333
$\phaseEnd_{i} = \locValidPhaseTransition_{i}$
3434
\end{enumerate}
35-
In other words, a phase transition happens if and only if $\phaseEnd_{i} = 1$ and means $\phase{p}_{i} = 1$ and $\phase{q}_{i + 1} = 1$ with the only given possibility for p and q, depending of $\rlpTxnTransactionColumnTxType$:
36-
3735
\saNote{}
3836
The above constraint~(\ref{rlp txn v2: generalities: PHASE_END constraints})
3937
must be understood as follows: rather than \textbf{constraining} \phaseEnd{},
40-
the constraints will often times \textbf{set} the value of \phaseEnd{} and thereby forcing a phase transition.
38+
the constraints will often times \textbf{set} the value of \phaseEnd{} and thereby force a phase transition upon the module.
39+
40+
In other words, a phase transition happens if and only if $\phaseEnd_{i} = 1$ and means $\phase{p}_{i} = 1$ and $\phase{q}_{i + 1} = 1$ with the only given possibility for p and q, depending of $\rlpTxnTransactionColumnTxType$:
4141
\begin{table}[h]
4242
\centering
4343
\renewcommand{\arraystretch}{1.5}

rlp_utils/_local.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
\def\locWeightedFlagSum {\loc{wght\_flag\_sum}}
1111

1212
% INTEGER instruction
13-
\def\integerCtMax {\redm{2}}
13+
\def\integerCtMax {\numConst{2}}
1414
\def\locInputInteger {\loc{in/integer}}
1515
\def\locInputIntegerHi {\locInputInteger\loc{\_hi}}
1616
\def\locInputIntegerLo {\locInputInteger\loc{\_lo}}
@@ -38,8 +38,8 @@
3838
\def\locBaseRlpPrefixShort {\loc{base\_rlp\_prefix\_short}}
3939
\def\locBaseRlpPrefixLong {\loc{base\_rlp\_prefix\_long}}
4040

41-
\def\bytestringEmptyCtMax {\redm{0}}
42-
\def\bytestringNonEmptyCtMax {\redm{2}}
41+
\def\bytestringEmptyCtMax {\numConst{0}}
42+
\def\bytestringNonEmptyCtMax {\numConst{2}}
4343

4444
\def\locInputBytestringLength {\loc{in/byte\_string\_length}}
4545
\def\locInputFirstByte {\loc{in/first\_byte}}

0 commit comments

Comments
 (0)