How to fix the problem that the text does not show in the frame ?
like this:
\documentclass{beamer}
\usetheme{Madrid}
\begin{document}
\begin{frame}
$$
s=\{(x,y)\ |\ \text{$x\neq y$ and $x, y$ occur in the same row or column or have the same symbol} \},
$$
and
$$
f=X\times X-(1_X\cup s).
$$
\end{frame}
\end{document}


