Let $B$ be a non-empty set equipped with the discrete topology, and let $A$ be an infinite set. Then $B^A$ is the set of all functions $f:A\to B$.
I have to verify some elementary properties of the product topology that $B^A$ inherits:
Prove that $U\subset B^A$ is open iff for all $f\in U$ there exists a finite $E\subset A$ such that all maps $g:A\to B$ with $g|_E=f|_E$ belong to $U$.
I don't know how to check this.. I know I should think of $B^A$ as $\prod_{a\in A}B_a$ where $B_a=B$ are copies of $B$ for all $a\in A$. The basis open sets are then $\prod_{a\in A}U_a$ where $U_a=B_a$ for all but finitely many $a$. Since $B$ has the discrete topology the $U_a$ which are not $B_a$ can be an arbitrary subset of $B$. Then the open sets are unions of the basis open sets.
But how does this give me the statement? Can someone provide any help?