latextheorem

Latex- Lemma shows black rectangle at the end


I am having an issue with my latex document. When I use the lemma by using the below code it shows a small black rectangle at the end of every lemma.

CODE:

 \documentclass{IEEEtran}
    \usepackage{eucal}
    \usepackage{algorithm,algorithmic}
    \begin{document}
    
    \section{ Analysis}
    
    This section discusses essential proofs of some of the properties explained in the earlier,\\
    \newtheorem{theorem}{\textbf{Lemma}}
    
    \begin{theorem}
        Lemma statement 1
    \end{theorem} 
    
    \begin{IEEEproof}
        The body of the lemma.The body of the lemma. The body of the lemma. The body of the lemma.  The body of the lemma.The body of the lemma.The body of the lemma. The body of the lemma.   The body of the lemma.The body of the lemma.The body of the lemma. The body of the lemma.
    \end{IEEEproof}
    
    \newtheorem{theorem2}{\textbf{Lemma}}
    \begin{theorem}
        Lemma statement 2
    \end{theorem} 
    \begin{IEEEproof}
        The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma. The body of the lemma.
    \end{IEEEproof}
    
    \end{document}

The above code shows the below output,

enter image description here


Solution

  • As suggested I post my comment as an answer:

    This rectangle marks the end of the proof (q.e.d.), as the IEEEproof environment defines. If you don't want to use this proof format you can just make this part a regular paragraph and adjust spacing if needed:

        \begin{theorem}
            Lemma statement 1
        \end{theorem} 
        
    \textit{Proof:}
            The body of the lemma.The body of the lemma. The body of the lemma. The body of the lemma.  The body of the lemma.The body of the lemma.The body of the lemma. The body of the lemma.   The body of the lemma.The body of the lemma.The body of the lemma. The body of the lemma.
        
    

    Gives you this:

    enter image description here