[step:Encode legal transitions by constant-size local windows]
Define a two-row length-three window to be an element of $C^3 \times C^3$. Let
\begin{align*}
L_M \subset C^3 \times C^3
\end{align*}
be the finite set of windows that can occur in three adjacent cells of two consecutive configurations related by one legal transition of $M$. Since $M$, $Q$, and $\Gamma$ are fixed independently of $x$, the set $L_M$ has constant size depending only on $M$.
For each time $t \in \{0,\dots,T-1\}$, each center cell $j \in J_T$, each row index $s \in I_T$, each tape index $k \in \{j-1,j,j+1\}$, and each marker $c \in C$, define the literal or constant $Y_{s,k,c}$ as follows. If $k \in J_T$, set $Y_{s,k,c}:=X_{s,k,c}$. If $k \notin J_T$, set $Y_{s,k,\blank}:=1$ and set $Y_{s,k,c}:=0$ for every $c \in C \setminus \{\blank\}$. Thus missing boundary cells outside $J_T$ are interpreted as fixed blank cells.
Include the formula asserting that the six markers in cells $j-1,j,j+1$ at times $t$ and $t+1$ form an element of $L_M$:
\begin{align*}
\bigvee_{((a_-,a_0,a_+),(b_-,b_0,b_+)) \in L_M} \Bigl(Y_{t,j-1,a_-} \wedge Y_{t,j,a_0} \wedge Y_{t,j+1,a_+} \wedge Y_{t+1,j-1,b_-} \wedge Y_{t+1,j,b_0} \wedge Y_{t+1,j+1,b_+}\Bigr).
\end{align*}
Because each row has exactly one head-state marker, there is a unique scanned cell and state in the row at time $t$. The window centered at that scanned cell selects one legal transition of $M$; the overlapping windows centered at the neighbouring cells force the written symbol, new state marker, and head displacement to agree with that same transition. Every window whose three cells do not include the scanned cell contains no head-state marker in its upper row, so membership in $L_M$ forces the corresponding lower-row tape symbols to remain unchanged. Hence a pair of consecutive rows is a legal transition of $M$ if and only if every adjacent two-row window belongs to $L_M$.
[/step]