[Tex/LaTex] Using chapter instead of section number with amsthm

amsthmnumberingtheorems

I'm trying to number my examples, definitions, theorems, etc. in the form Chapter#.example#.
However, the amsthm package only seems to provide sectional numbering, which I don't like.

Does anyone know how to get the correct format of numbering?

In the MWE the numbering should be: Example 1.1. and Definition 1.1.

\documentclass{book}
\usepackage{amsthm}
\newtheorem{exmp}{Example}
\newtheorem{defi}{Definition}[section]
\begin{document}
    \chapter{}
        \section{section 1}
        \begin{exmp}
        \end{exmp}
        \section{section 2}
        \begin{defi}
        \end{defi}
\end{document}

EDIT: I read this might be possible with thmtools, but i'd prefer to do it without loading additional packages if possible. Unless it becomes a to complicated solution ofcourse.

Best Answer

Although the manual doesn't explicitly say so, the following works:

\newtheorem{exmp}{Example}[chapter]
\newtheorem{defi}{Definition}[chapter]