LaTeX is truncating my theorem reference numbers. How do I correct this?

I will have a Theorem, Lemma or Corollary and it will be numbered, say for example, 2.2.3 ... Unfortunately, every reference back to ANY Theorem, Lemma or Corollary simply state 2.2 ... It seems to be truncating the last number!

Here is code that represents what I've done so far...

\documentclass[12pt]{amsart}
\newtheorem{theorem}{Theorem}[section]

\begin{document}

\chapter
\section

\begin{theorem} This is the theorem.
\begin{proof} This is the proof.
\end{proof}
\end{theorem}
\label{thm-01}

Now we reference Theorem \ref{thm-01}

\end{document}

The theorem labels itself as Theorem 1.1.1 but when I reference it later in the document it reads "No we reference Theorem 1.1"

Any suggestions on how to fix this?

• Presumably the theorem counter is being incorrectly incremented, but if you don't show the code, it's hard to say what is wrong with it. – David Carlisle Jun 9 '14 at 17:48
• @Daivd Carlisle I'm not really sure what part of the code one would want to see... I have \begin{corollary} This is the corollary. \begin{proof} This follows directly from Theorem \ref{thm-01}. \end{proof} \end{corollary} \label{cor-01} And that shows how I reference and label the theorems, etc... – Bark Jr. Jun 9 '14 at 17:51
• You should make a small (10 line) complete document that shows the problem, starting from a copy of your original and deleting everything that you can while still demonstrating the problem. Clearly the behaviour that you describe is not the default so you have code that is changing the behaviour but its hard to debug unseen. see meta.tex.stackexchange.com/a/3225/1090 – David Carlisle Jun 9 '14 at 18:01
• I put a better version into the main question. Let me know if that clears up my question or if you need more info. – Bark Jr. Jun 9 '14 at 18:18