In AMS-LaTeX, the symbol is automatically appended at the end of a proof environment \begin{proof} ... \end{proof}. It can also be obtained from the commands \qedsymbol, \qedhere or \qed (the latter causes the symbol to be right aligned).[3]