I'm trying to prove that
$$ B = \left\{ \prod_{i=1}^{n} U_i : U_i \text{ are open in } X_i \right\} $$
is a basis of the product topology.
I was trying to use the subbase of the product topology, that is sets of the form:
$ p_i ^ {-1} (G_i) $ where $G_i$ is an arbitrary open set in $X_i$. Where $p_i((x_1, x_2, \dots, x_n)) = x_i$.
I've seen this:Basis of the product topology