As in the title, with $X$ and $Y$ smooth manifolds. I am filling in the details of a proof here, and I have a question about identifications of tangent vectors/spaces.
Fix $(p,q)\in X\times Y$. Let $i:x\mapsto (x,q)$ and $\pi:(x,y)\mapsto x$. Then, $L=d(i\circ \pi)$ is a projection, so $\text{ker}(L)\oplus \text{im}(L)=T_{(p,q)}(X\times Y).$
Assume first that $X$ and $Y$ are Euclidean spaces, and take a curve $\gamma:(-\epsilon,\epsilon)\to X\times Y$ with $\gamma (0)=(p,q)$. Now, $\gamma (t)=(\gamma_1(t),\gamma_2(t))$ with $\gamma_1(0)=p$. Then,
$d(\iota_X\circ \pi_X)_{(p,q)}\gamma'(0) = \frac{d}{dt}|_{t=0}(\gamma_1(t),q) = (\gamma_1'(0),0)$
so the image of $L$ is isomorphic to $T_pX.$
Simlilarly, since $di$ is injective, $\text{ker}L=\text{ker}\pi$ so for $\gamma$ as above we have
$(d\pi)_{(p,q)}\gamma'(0)=\frac{d}{dt}|_{t=0}\pi\circ\gamma(t)=\gamma_1'(0).$
If this is to be equal to $0$ then $T_pX=0$ and so $\text{ker}L\cong T_qY.$
Now, suppose that $X$ and $Y$ are arbitrary manifolds, so that now the tangent vector is defined by
$d(\iota_X\circ \pi_X)_{(p,q)}\gamma'(0)(f) = \frac{d}{dt}|_{t=0}f(\gamma_1(t),q)$ for smooth $f:X\times Y\to \mathbb R.$
In the above link to the sketch of a proof, the author uses the first blockquote equation for the arbitrary manifolds $X$ and $Y$, (the second is mine) but isn't there a problem with this? He/she seems to be using the same symbol for different objects and/or making some identification. Namely, the equation that should be used is that in the third blockquote, because if not, then the $\gamma'(0)$ on the LHS is a tangent vector in $T_{(p,q)}(X\times Y$), whereas the RHS is not a tangent vector. The derivative does not even make sense unless we are working in some coordinate chart, but even in this case, it is not clear to me what identification(s) we are using. I am not claiming that the result is false, only that there is some explanation that I am missing here. In fact, I have a general problem with this type of machinery one uses in differential geometry (I am self-studying Lee). I understand how the various definitions of the tangent space are equivalent, but I have trouble understanding equations in which there are implicit identifications made.