\newtheorem{thm}{قضيه}[chapter]
\newtheorem{cor}[thm]{نتيجه}
\newtheorem{lem}[thm]{لم}
\newtheorem{prop}[thm]{الگوريتم}
\theoremstyle{remark*}
\newtheorem{rem}[thm]{تذکر}
\newtheorem{defn}[thm]{تعريف}
\newtheorem{Ex}[thm]{مثال}
\newtheorem{nokteh}[thm]{نکته}
\newtheorem{Propos}[thm]{گزاره}

\begin{Ex}

\end{Ex}