How can I do this?
When I put \qedhere in cases environment, the square is between the margins somewhere. It is not where the square appears in the usual proof environment, at the right margin.
\documentclass{amsart}
\usepackage{amssymb, amsmath, amsthm}
\newtheorem{theorem}{Theorem}
\newtheorem*{ut}{Theorem}
\begin{document}
\begin{proof}
$$
X(m,n)=
\begin{cases}
x(n),\\
x(n-1)\\
x(n-1)\qedhere
\end{cases}
$$
\end{proof}
\begin{ut}The sky is blue.\end{ut}
\begin{proof}Duh.\end{proof}
\end{document}




alignhere and the problem is completely different. – egreg Jan 06 '16 at 12:17