[step:Reduce arithmetical definitions to finite iterated jumps]Assume conversely that $A' \in \mathcal S$ for every $A \in \mathcal S$. Let $\varphi(n,\vec b,\vec A)$ be an arithmetical formula with free number variable $n$, number parameters $\vec b = (b_1,\dots,b_\ell) \in \mathbb N^\ell$, and set parameters $\vec A = (A_1,\dots,A_k)$ from $\mathcal S$. Number parameters are standard because $\mathcal M$ is an $\omega$-model, so the tuple $\vec b$ can be hardwired into any ordinary computation.
Define the oracle $C \subseteq \mathbb N$ as follows. If $k \geq 1$, let
\begin{align*}
C := A_1 \oplus \cdots \oplus A_k
\end{align*}
be the finite join computed using a fixed primitive recursive coding of pairs, so that each membership question $t \in A_i$ is computable from $C$ uniformly in $i$ and $t$, and membership in $C$ is computable from the finite tuple $(A_1,\dots,A_k)$. If $k = 0$, let $C := \varnothing$. Since $\mathcal M$ is an $\omega$-model of $\mathsf{RCA}_0$, its second-order part $\mathcal S$ is a [Turing ideal](/page/Turing%20Ideal): it contains all computable sets, is closed under finite joins, and is downward closed under [Turing reducibility](/page/Turing%20Reducibility). Hence $C \in \mathcal S$ in both cases.
Define the finite iterated [Turing jump](/page/Turing%20Jump) of $C$ recursively by $C^{(0)} := C$ and, for each $r \in \mathbb N$, by $C^{(r+1)} := (C^{(r)})'$. For sets $D,E \subseteq \mathbb N$, write $D \le_T E$ to mean that $D$ is [Turing reducible](/page/Turing%20Reducibility) to $E$, namely that there is an oracle Turing machine which, with oracle $E$, decides membership in $D$.
We use the relativised arithmetical hierarchy theorem, equivalently the relativised form of [Post's theorem](/page/Post%27s%20Theorem): for every arithmetical formula $\varphi(n,\vec b,\vec A)$ whose set parameters are uniformly computable from the oracle $C$, there is some $m \in \mathbb N \cup \{0\}$ and a total computable decision procedure with oracle $C^{(m)}$ deciding $\varphi(n,\vec b,\vec A)$ uniformly in $n$, with the fixed number parameters $\vec b$ built into the program. The hypotheses are satisfied because each set parameter $A_i$ is computable from the finite join $C$, and the number parameters $\vec b$ are standard natural numbers in the $\omega$-model. Equivalently, the set
\begin{align*}
B := \{n \in \mathbb N : \varphi(n,\vec b,\vec A)\}
\end{align*}
satisfies $B \le_T C^{(m)}$.[/step]