So I've seen here that you can actually have a personnalized theorem environment name but I was wondering if there was a way to refer to it as is. I've chosen the solution
\documentclass{article}
\usepackage{amsthm}
\swapnumbers % optional, of course
\newtheorem{thm}{Theorem}[section] % the main one
\newtheorem{lemma}[thm]{Lemma}
% other statement types
\theoremstyle{plain} % just in case the style had changed
\newcommand{\thistheoremname}{}
\newtheorem{genericthm}[thm]{\thistheoremname}
\newenvironment{namedthm}[1]
{\renewcommand{\thistheoremname}{#1}%
\begin{genericthm}}
{\end{genericthm}}
\begin{document}
\section{Something}
A theorem
\begin{thm}
$1+1=2$.
\end{thm}
And a named theorem
\begin{namedthm}{Zorn's Lemma}[Zermelo]\label{zorn}
All well-behaved ordered sets have maximal elements.
\end{namedthm}
\end{document}
given by @egreg and I would like to have it say "by Zorn's Lemma" when I write
by \cref{zorn}.
I know that I don't technically need it since it shouldn't be something that changes but we never know. Maybe I could link it with a hyperlink hidden under the text "Zorn's lemma"?

