\documentclass{book}
%%%%%%%%%%%%%%
\usepackage{amssymb,amsthm,amsmath}

\newtheoremstyle{mystyle} % Theorem style name
{7pt} % Space above
{7pt} % Space below
{\normalfont} % Body font
{} % Indent amount
{\bf} % Theorem head font
{.\;\;} % Punctuation after theorem head
{0.25em} % Space after theorem head
{}

\theoremstyle{mystyle}
\newtheorem{theorem}{قضیه}[chapter]
\newtheorem{lemma}[theorem]{لم}
\newtheorem{definition}[theorem]{تعریف}
\newtheorem{example}{مثال}
\newtheorem*{proofT}{برهان}
\newtheorem{corollary}{نتیجه}
\newtheorem{mention}{تذکر}
\newtheorem{remark}{نکته}

%%%%%%%%%%%%%%

\usepackage{xepersian}
\settextfont[Scale=1.2]{XB Niloofar}
\setlatintextfont{Times New Roman}
\setdigitfont{Yas}
%%%%%%%%%%%%%%
\begin{document}

\chapter{فصل اول}

\section{بخش اول}

\begin{definition}
تعریف اول
\end{definition}

\begin{definition}
تعریف دوم
\end{definition}

\begin{definition}
تعریف سوم
\end{definition}

\begin{lemma}
لم اول
\end{lemma}

\begin{lemma}
لم دوم
\end{lemma}

\section{بخش دوم}

\begin{definition}
تعریف اول
\end{definition}

%%%%%
\chapter{فصل دوم}

\section{بخش اول}

\begin{definition}
تعریف اول
\end{definition}

\begin{definition}
تعریف دوم
\end{definition}

\end{document}