Let {($X_\alpha,\mathscr T_\alpha):\alpha\in J$} be a set of topological spaces. Let $\beta_1,\beta_2,...,\beta_n$ be a finite set of distinct members of $J$. For each i=1,2,...,n let $U_{\beta_{i}}\in\mathscr T_{\beta_{i}}$, and let $B=\cap _{i=1}^{n}\pi_{\beta_{i}}^{-1}(U_{\beta_{i}})$. Prove that $B=\prod_{\alpha\in J}B_\alpha$, where $B_{\beta_{i}}=U_{\beta_{i}}$ for i = 1,2,...,n and $B_\alpha = X_\alpha$ for all $\alpha$ different from $\beta_1,\beta_2,...,\beta_n$.
I want to do this with if and only if statements instead of showing containment both ways. Here is what I have.
Let $(x_\alpha)$ be a J-tuple such that $x_\alpha\in X_\alpha$ for all $\alpha\in J$. Let $(x_\alpha)\in\cap _{i=1}^{n}\pi_{\beta_{i}}^{-1}(U_{\beta_{i}})$ This holds if and only if $x_{\beta_{i}}\in U_{\beta_{i}}$ for i = 1,2,...,n.
How can i stretch this to get to the product.
Am I on the right track? Any and all help is appreciated.