I don't want equations to be numbered in general, but I want to be able to reference specific equations and have them follow the theorem counter. For instance, in my example there are two equations within theorem 1.1, and I want the first one to be labeled 1.2 so I can reference it in the proof.
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
\begin{document}
\section{Section}
\begin{theorem}
We have some equations
\begin{align*}
\label{first}
1 + 1 = 2,
\end{align*}
and
\begin{align*}
2 + 2 = 4.
\end{align*}
\end{theorem}
\begin{proof}
See \ref{first}.
\end{proof}
\begin{theorem}
I want this counter to be 1.3
\end{theorem}
\end{document}


aliascntpackage. – Jan 18 '18 at 19:42amsthmyou can set the theorem counter to use the equation counter:\newtheorem{theorem}{Theorem}[equation]. this is documented in theamsthmusers guide (texdoc amsthm) with an explanation of how theorem numbering works. since you also want the theorems numbered by section, the obvious approach is then to number the equations by section:\numberwithin{equation}{section}. – barbara beeton Jan 18 '18 at 20:01