My question is more a curiosity than a problem.
I notice that the following text builds a valid document. I thought the only correct way to use this theorem environment would be to write the body between '\begin{definition}' and '\end{definition}'.
Why don't I get any warnings or errors?
\documentclass{article}
\usepackage{amsthm}
\newtheorem{definition}{Definition}
\title{A reason to argue}
\author{Grassy Knoll}
\begin{document}
\section{Introduction}
Here is a weird thing:
\definition[rain] Water that falls from the sky.
It falls from up high.
The definition does not end, so something is wrong.
\end{document}
\enddefinition
.