[guided]Now fix the quantifier-free formula $\theta(x_1,\dots,x_n,y)$. In the language
\begin{align*}
L_{\mathrm{or}}=\{0,1,+,-,\cdot,<\},
\end{align*}
terms are polynomial expressions. Thus every atomic formula can be rewritten, over ordered rings, as a polynomial equation or a strict polynomial inequality:
\begin{align*}
p(x_1,\dots,x_n,y)=0,
\qquad
p(x_1,\dots,x_n,y)>0,
\qquad
p(x_1,\dots,x_n,y)<0,
\end{align*}
where $p\in\mathbb Z[x_1,\dots,x_n,y]$.
Because $\theta$ is quantifier-free, it is a finite Boolean combination of such atomic sign conditions. For a real closed field $R$, define
\begin{align*}
S_R
:=
\{(a,b)\in R^n\times R: R\models \theta(a,b)\}.
\end{align*}
The preceding description shows that $S_R$ is a finite Boolean combination of polynomial equalities and strict inequalities in $R^{n+1}$. This is exactly the definition of a semialgebraic subset of $R^{n+1}$.[/guided]