$(X, \mathcal{T}_X), (Y,\mathcal{T}_Y)$ be topological space, and let $A, B$ be subset of $X,Y$ respectively.
Now, $(X \times Y, \mathcal{T}_{X \times Y})$ be product topology. $A \times B \subset X \times Y$. Consider subspace topology $\mathcal{T}_1$ on $A \times B$
Also, $(A, \mathcal{T}_A), (B, \mathcal{T}_B)$ where $\mathcal{T}_A$ and $\mathcal{T}_B$ are subspace topologies on $A, B$ respectively,consider product topology $\mathcal{T}_2$ on $A \times B$
Prove $\mathcal{T}_1 = \mathcal{T}_2$
My idea is to show that the bases of $\mathcal{T}_1$ and $\mathcal{T}_2$ are same. where $\mathcal{T}_1$ basis is {$(A \times B) \cap (U \times V) | (U \times V) \in \mathcal{T}_{X \times Y}$}
and $\mathcal{T}_2$ basis is {$U_0 \times V_0 | U_0 \in \mathcal{T}_A, V_0 \in \mathcal{T}_B$}. I know how to show these two bases are equal. However, I don't if this is sufficient to prove two topologies are equal.