[step:Encode computation histories in a finite first-order language]Fix a deterministic one-tape Turing machine $M_e$ with finite state set $Q$, tape alphabet $\Gamma$, initial state $q_{\mathrm{init}} \in Q$, and halting state $q_{\mathrm{halt}} \in Q$. For the input word $x = x_0 \cdots x_{m-1} \in \Gamma^m$, we construct a many-sorted first-order signature $\mathcal{L}_{e,x}$ with a time sort $T$ and a tape-position sort $P$.
The time sort has a constant $0_T$ and a unary function symbol
\begin{align*}
S_T : T \to T.
\end{align*}
The tape-position sort has a constant $0_P$ and unary function symbols
\begin{align*}
R &: P \to P, \\
L &: P \to P,
\end{align*}
intended to denote the right and left tape-neighbour maps. For each state $q \in Q$ we introduce a unary predicate
\begin{align*}
\operatorname{State}_q \subseteq T,
\end{align*}
for each tape symbol $a \in \Gamma$ a binary predicate
\begin{align*}
\operatorname{Sym}_a \subseteq T \times P,
\end{align*}
and a binary predicate
\begin{align*}
\operatorname{Head} \subseteq T \times P.
\end{align*}
The sentence $\theta_{e,x}$ is the conjunction of the following first-order assertions.
First, the tape-position successor maps are inverse to each other:
\begin{align*}
\forall p \in P \, \bigl(L(R(p)) = p \wedge R(L(p)) = p\bigr).
\end{align*}
Second, at every time there is exactly one state:
\begin{align*}
\forall t \in T \, \bigvee_{q \in Q} \operatorname{State}_q(t),
\end{align*}
together with, for all distinct $q,r \in Q$,
\begin{align*}
\forall t \in T \, \neg\bigl(\operatorname{State}_q(t) \wedge \operatorname{State}_r(t)\bigr).
\end{align*}
Third, at every time and tape position there is exactly one tape symbol:
\begin{align*}
\forall t \in T \, \forall p \in P \, \bigvee_{a \in \Gamma} \operatorname{Sym}_a(t,p),
\end{align*}
together with, for all distinct $a,b \in \Gamma$,
\begin{align*}
\forall t \in T \, \forall p \in P \, \neg\bigl(\operatorname{Sym}_a(t,p) \wedge \operatorname{Sym}_b(t,p)\bigr).
\end{align*}
Fourth, at every time there is exactly one head position:
\begin{align*}
\forall t \in T \, \exists p \in P \, \operatorname{Head}(t,p),
\end{align*}
and
\begin{align*}
\forall t \in T \, \forall p \in P \, \forall r \in P \,
\bigl(\operatorname{Head}(t,p) \wedge \operatorname{Head}(t,r) \implies p = r\bigr).
\end{align*}
Fifth, the initial configuration is imposed. We require
\begin{align*}
\operatorname{State}_{q_{\mathrm{init}}}(0_T) \wedge \operatorname{Head}(0_T,0_P).
\end{align*}
For each $i \in \{0,\dots,m-1\}$, let $R^i(0_P)$ denote the term obtained by applying $R$ exactly $i$ times to $0_P$; we require
\begin{align*}
\operatorname{Sym}_{x_i}(0_T,R^i(0_P)).
\end{align*}
Writing $\sqcup \in \Gamma$ for the blank symbol, we also require all other tape cells to be blank at time $0_T$:
\begin{align*}
\forall p \in P \,
\left(
\bigwedge_{i=0}^{m-1} p \neq R^i(0_P)
\implies
\operatorname{Sym}_{\sqcup}(0_T,p)
\right).
\end{align*}
Sixth, for each non-halting transition
\begin{align*}
\delta(q,a) = (q',b,\mathrm{R})
\end{align*}
of $M_e$, we include the local update axiom
\begin{align*}
\forall t \in T \, \forall p \in P \,
\Bigl(
\operatorname{State}_q(t) \wedge \operatorname{Head}(t,p) \wedge \operatorname{Sym}_a(t,p)
\implies
\operatorname{State}_{q'}(S_T(t)) \wedge \operatorname{Head}(S_T(t),R(p)) \wedge \operatorname{Sym}_b(S_T(t),p)
\Bigr),
\end{align*}
and, for each tape symbol $c \in \Gamma$,
\begin{align*}
\forall t \in T \, \forall p \in P \, \forall r \in P \,
\Bigl(
\operatorname{State}_q(t) \wedge \operatorname{Head}(t,p) \wedge \operatorname{Sym}_a(t,p) \wedge r \neq p
\implies
\bigl(\operatorname{Sym}_c(t,r) \iff \operatorname{Sym}_c(S_T(t),r)\bigr)
\Bigr).
\end{align*}
For a transition
\begin{align*}
\delta(q,a) = (q',b,\mathrm{L}),
\end{align*}
the same axiom is used with $\operatorname{Head}(S_T(t),L(p))$ in place of $\operatorname{Head}(S_T(t),R(p))$.
Finally, $\theta_{e,x}$ asserts that no halting state ever occurs:
\begin{align*}
\forall t \in T \, \neg \operatorname{State}_{q_{\mathrm{halt}}}(t).
\end{align*}
This construction is effective in the pair $(e,x)$, because $Q$, $\Gamma$, $\delta$, and the finite word $x$ are computably obtained from the machine index and input.[/step]