I'm writing a multichapter report and I'm having a problem with the theorems being numbered correctly of section zero of a new chapter.
For instance, chapter two ends with Corollary 2.3.21 and Chapter three begins with Theorem 3.0.22. Also, Chapter three ends with Corollary 3.3.2 and Chapter four begins with Theorem 4.0.3. And so on...
My (edited to not write out whole theorems) code follows.
\documentclass[12pt]{report}
\usepackage{fullpage}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{MnSymbol}
\usepackage[shortlabels]{enumitem}
\usepackage[all,arc,curve,color,frame]{xy}
\usepackage[pdftex]{graphicx}
%Declaring a bunch of math symbols%
\newtheorem{theorem}{Theorem}[section]
\newtheorem{remark}[theorem]{Remark}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{example}[theorem]{Example}
\newtheorem*{theorem*}{Theorem}
\newtheorem*{corollary*}{Corollary}
\begin{document}
\chapter{The First Chapter} \input{thefirstchapter}
\chapter{The Second Chapter} \input{thesecondchapter}
et cetera
edit: I also forgot to mention something very curious about this: Chapters one and two are fine, it's every following chapter that is a problem.
edit part 2: Here's a minimal working example
\documentclass[12pt]{report}
\usepackage{fullpage}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{remark}[theorem]{Remark}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{lemma}[theorem]{Lemma}
\begin{document}
\chapter{The First Chapter}
\begin{theorem} Here's some stuff.\end{theorem}
\begin{remark} Here's a remark about stuff \end{remark}
\section{stuff part 2}
\begin{corollary} Here's some stuff about stuff\end{corollary}
\begin{conjecture} Here's what should happen \end{conjecture}
\chapter{The Second Chapter}
\begin{lemma} Here's some small stuff\end{lemma}
\begin{lemma} Here's some more smalll stuff\end{lemma}
\section{big stuff}
\begin{theorem} Big Theorem\end{theorem}
\begin{theorem} Big Theorem\end{theorem}
\begin{corollary} Big Consequence.\end{corollary}
\section{almost as big stuff}
\begin{lemma} small stuff\end{lemma}
\begin{theorem} big stuff\end{theorem}
\begin{corollary} big stuff\end{corollary}
\chapter{The Third chapter}
\begin{definition} How about this stuff?\end{definition}
\end{document}
Note that the first lemma of chapter 2 prints as lemma 2.0.3 and the definition in chapter 3 prints as definition 3.0.4