I'd like to have references to an equation exclude the section number when the equation is referenced within the same section, but include it when it's referenced in a different section.
Here's an example of what I'm attempting to obtain: Here's what I've tried, and I have a pretty good idea of what's wrong with it:
\documentclass{article}
\usepackage[noabbrev]{cleveref}
\renewcommand{\thesection}{\Alph{section}}
\creflabelformat{equation}{#2(\thesection.#1)#3}
\begin{document}
\section{The first section}\label{first}
This is the some disussion in \cref{first}. This is the first equation:
\begin{equation}\label{A:1}
1+1 = 2
\end{equation}
This is some more disussion. Here is a reference to \cref{A:1}.
\section{The second section}\label{second}
\setcounter{equation}{0}
This is some discussion in \cref{second} which references \cref{first}.
This is another equation:
\begin{equation}\label{B:1}
2+2 = 4
\end{equation}
This is some discussion of \cref{B:1}, and a brief comment that it is
easily derived from equation \cref{A:1}.
\end{document}
Unfortunately, I don't know how get the result I'm looking for.