\documentclass[openany]{book}
\usepackage{amsthm}
\usepackage{xepersian}
\settextfont{XB Niloofar}
\makeatletter
\renewcommand \thesection {\@arabic\c@section}
\renewcommand \thechapter {\@tartibi\c@chapter}
\renewcommand*\l@chapter[2]{%
  \ifnum \c@tocdepth >\m@ne
    \addpenalty{-\@highpenalty}%
    \vskip 1.0em \@plus\p@
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \advance\leftskip\@tempdima
      \hskip -\leftskip
فصل
#1 \nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
      \penalty\@highpenalty
    \endgroup
  \fi} 
\renewcommand*\l@section{بخش\vspace*{-1em}\@dottedtocline{1}{3.5em}{2.3em}}
\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%
                                   {\normalfont\Large\bfseries بخش}}
\makeatother
\theoremstyle{definition}
\newtheorem{definition}{تعریف}[section]
\theoremstyle{theorem}
\newtheorem{theorem}[definition]{قضیه}
\begin{document}
\tableofcontents
\chapter{مقدمه}
\section{مفاهیم}

مقداری متن ... 
\begin{definition}
این یک تعریف است.
\end{definition}
\begin{theorem}
این یک قضیه است.
\end{theorem}
\section{تعاریف}
\begin{definition}
این یک تعریف است.
\end{definition}
\begin{theorem}
این یک قضیه است.
\end{theorem}
\section{قضایا}
مقداری متن ...
\chapter{پیشینه تاریخی}
\section{قرون وسطی}
مقداری متن ...

\end{document}