In a mathematical text, I have a lemma which I will just state and not proof. I want to give it a QED box at the end. Usually, I can just put the command \qed at the end of the lemma. See the following example:
\documentclass{amsart}
\theoremstyle{plain}
\newtheorem{lemma}{Lemma}
\begin{document}
The reader is familiar with the following statement:
\begin{lemma}
If $a, b, c$ denote the sides of a rectangular triangle, and if $a$ denotes the longest side, then
%
\begin{equation}
a^2 = b^2+c^2.
\end{equation}
\qed
\end{lemma}
\end{document}
It produces a PDF-file which almost fits my desires:
My problem is that the QED-symbol is too low. This happens because of the equation environment. The same problem appears in the proof environment, but in the proof environment it can be remedied by putting qedhere inside the equation environment.
Naively, I tried putting \qedhere inside my equation inside the lemma. The command had no effect, i. e. no QED box appeared. When I put \qed inside the equation environment like
\begin{equation*}
a^2 = b^2+c^2. \qed
\end{equation*}
then I get the following, which I also dislike:
Is there an analogue of the \qedhere command that works in other environments than proof? If not, is there an easy way to get what I want?
I conferred these two posts:
QED symbol after statements without proof
How to make qed box inside alignment environment
But it seems that they both don't address my problem.



