Let $L$ be a first-order language, let $M$ be an $L$-structure, let $A \subseteq M$ be a parameter set, and let $n \in \mathbb{N}$. Let $S_n(A)$ denote the Stone space of complete $n$-types over $A$ in variables $\bar{x} = (x_1,\dots,x_n)$, equipped with the Stone topology whose basic open sets are
\begin{align*}
[\theta] := \{p \in S_n(A) : \theta(\bar{x}) \in p\},
\end{align*}
where $\theta(\bar{x})$ ranges over all $L(A)$-formulas in the variables $\bar{x}$.
For every $L(A)$-formula $\varphi(\bar{x})$, the subset $[\varphi] \subseteq S_n(A)$ is both open and closed. Moreover, for all $L(A)$-formulas $\varphi(\bar{x})$ and $\psi(\bar{x})$,
\begin{align*}
[\neg \varphi] &= S_n(A) \setminus [\varphi], \\
[\varphi \wedge \psi] &= [\varphi] \cap [\psi], \\
[\varphi \vee \psi] &= [\varphi] \cup [\psi].
\end{align*}…