\documentclass[]{amsart}

\usepackage{amsmath,amsthm,amscd,amsfonts,amssymb,enumerate}
\usepackage{graphicx}		
\usepackage{color}
\usepackage[colorlinks]{hyperref}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{question}[theorem]{Question}
\numberwithin{equation}{section}


\begin{document}
\section{Definitions and preliminaries}

\begin{definition}
 This is a math formula $x=Y$ for testing.
\end{definition}

\end{document} 