Solution (source code)

= Solution

The <quotient topology> is defined by
$$
\boxed{U\subseteq X/\mathcal R\text{ open}\iff p^{-1}(U)\text{ open in }X.}
$$
Preimages commute with arbitrary <unions> and finite <intersections> and take the empty and whole sets to the corresponding sets, so this definition indeed gives a <topology>.