Using the isomath trick to get upright greek pis works fine almost always, but not inside an amsthm theorem environment.
\documentclass{amsart}
\newtheorem{theorem}{Theorem}[section]
\usepackage[greek, english]{babel}
\let\mathpi\pi{}
\renewcommand{\pi}{\text{\textrm{\greektext{p}}}}
\begin{document}
\begin{theorem} \pi \end{theorem}
not the same as $\pi$.
\end{document}
How to force pi to be the same inside the environment?
