[step:Define the deterministic reachability recursion]For encoded vertices $a,b \in \{0,1\}^{m'(n)}$ and an integer $\ell \ge 0$, define the predicate $R(a,b,\ell)$ to mean that there is a directed path in $H_{M,x}$ from $a$ to $b$ of length at most $\ell$.
A deterministic procedure $\operatorname{Reach}(a,b,\ell)$ decides $R(a,b,\ell)$ recursively:
If $\ell = 0$, it accepts exactly when $a=b$.
If $\ell = 1$, it accepts exactly when $a=b$ or there is a directed edge from $a$ to $b$ in $H_{M,x}$.
If $\ell \ge 2$, it enumerates all binary strings $z \in \{0,1\}^{m'(n)}$ and accepts if, for some such $z$, both $\operatorname{Reach}(a,z,\lfloor \ell/2 \rfloor)$ and $\operatorname{Reach}(z,b,\lceil \ell/2 \rceil)$ accept.
The edge test used in the case $\ell = 1$ is deterministic and uses $O(f(n))$ space: it checks whether the two strings encode legal configurations related by one transition of $M$, or whether the first string encodes an accepting configuration and the second string is the reserved code for $q_{\mathrm{acc}}$.[/step]