Solution (source code)

= Solution

Let $M$ be a prime model and let $[\varphi]\subseteq S_n(T)$ be a nonempty basic open set. Some model of $T$ realizes $\varphi$, so completeness of $T$ gives
$$
T\models\exists\bar x\,\varphi(\bar x).
$$
Therefore $M$ realizes $\varphi$ by some tuple $\bar a$. The prime-model characterization in part (e) says $\operatorname{tp}^M(\bar a/\varnothing)$ is isolated, and it lies in $[\varphi]$. Every nonempty basic open set thus contains an isolated point, proving <density of isolated types from a prime model>.