Lang $SL_2$ p. 13 :Let $\{\phi_i\}$, $\{\psi_i\}$ be orthonormal bases for $L^2(X)$ and $L^2(Y)$ respectively. Let $$\theta_{ij}(x,y) = \phi_i(x)\psi_i(y).$$ Then $\{\theta_{ij}\}$ is an orthonormal basis for $L^2(X \times Y)$. To see this, it is first clear that the $\theta_{ij}$ are of norm 1, and mutually orthogonal. Let $g \in \mathcal L^2(X \times Y)$ be perpendicular to all $\{\theta_{ij}\}$. Then $$\int_X\phi_i(x)dx\int_Y\psi_j(y)g(x,y)dy=0(*)$$ for all $i,j$. Hence $$x \mapsto\int_Y\psi_j(y)g(x,y)dy$$ is zero except for $x$ in a null set $S$ in $X$. If $x \notin S$, then for almost all $y$, we have $g(x,y) = 0$
Questions:
I assume that in ($*$) a double integral is meant, i.e. the integral over $Y$ should be inside the integral over $X$.
1) It is not clear to me how to get from ($*$) to the conclusion that the above map is zero for almost all y, and similarly from this to the fact that $g(x,y)$ is zero for almost all y. This would of course follow if the orthonormal basis were positive, which is not always the case since sines and cosines form an orthonormal basis for $L^2[0,1]$.
2) In the next page, Lang considers an orthonormal basis for $L^2(X \times X)$. He ascertains that it is {$\phi_i\otimes\bar\phi_j$}. Why do we have to take conjugate on the second element in $L^2(X \times X)$ but not in $L^2(X \times Y)$?
3) Does anyone know what is the difference between $L^2$ and $\mathcal L^2$?