[guided]We prove surjectivity by starting with an arbitrary clopen subset $C \in \operatorname{Clop}(S_n(A))$ and building one formula whose basic clopen set is exactly $C$.
First handle the degenerate case. If $C=\varnothing$, choose a contradictory $\mathcal{L}(A)$-formula $\bot(x_1,\dots,x_n)$. No complete consistent type contains $\bot$, so
\begin{align*}
[\bot]_{S_n(A)}=\varnothing=C.
\end{align*}
Thus the empty clopen set is already in the image. We now assume $C \neq \varnothing$.
The Stone topology on $S_n(A)$ is defined by declaring the formula neighborhoods $[\rho]_{S_n(A)}$, with $\rho(x_1,\dots,x_n)$ an $\mathcal{L}(A)$-formula, to be a basis. Therefore, because $C$ is open, each point $p \in C$ has a basic formula neighborhood contained in $C$. Concretely, for each $p \in C$ there is an $\mathcal{L}(A)$-formula $\varphi_p(x_1,\dots,x_n) \in p$ such that
\begin{align*}
p \in [\varphi_p]_{S_n(A)} \subset C.
\end{align*}
Therefore the family
\begin{align*}
\{[\varphi_p]_{S_n(A)} : p \in C\}
\end{align*}
is an open cover of $C$.
Now compactness is the point where clopen, rather than merely open, is used. Since $C$ is clopen, it is closed in $S_n(A)$. The space $S_n(A)$ is compact by the standard finite-intersection-property proof from first-order compactness: a family of closed formula conditions with the finite intersection property is exactly a finitely satisfiable partial type over $T_A$, and compactness extends it to a complete type in $S_n(A)$. A closed subset of a compact [topological space](/page/Topological%20Space) is compact, so $C$ is compact. Hence the open cover above has a finite subcover: there exist $p_1,\dots,p_m \in C$, with $m \in \mathbb{N}$, such that
\begin{align*}
C = \bigcup_{i=1}^{m} [\varphi_{p_i}]_{S_n(A)}.
\end{align*}
Define the $\mathcal{L}(A)$-formula
\begin{align*}
\theta(x_1,\dots,x_n) := \bigvee_{i=1}^{m} \varphi_{p_i}(x_1,\dots,x_n).
\end{align*}
Because membership in a complete type respects finite disjunctions, the preservation of finite joins proved earlier gives
\begin{align*}
[\theta]_{S_n(A)}
= \bigcup_{i=1}^{m} [\varphi_{p_i}]_{S_n(A)}
= C.
\end{align*}
Thus $C$ is in the image of $\Theta$. Since $C$ was an arbitrary clopen subset of $S_n(A)$, $\Theta$ is surjective.[/guided]