Let
\(m,n\in \nonnegints\text{.}\) Then let
\(\mathbb{M}\) denote the set of all natural numbers
\(p\) for which
\(m+(n+p)=(m+n)+p\text{.}\) We show that
\(\mathbb{M}=\nonnegints\text{.}\)
Note that
\begin{equation*}
m+(n+0) = m+n = (m+n)+0
\end{equation*}
which shows that \(0\in \mathbb{M}\text{.}\)
Now assume that \(k\in \mathbb{M}\text{,}\) i.e., \(m+(n+k) = (m+n)+k\text{.}\) Then
\begin{equation*}
m+[n+(k+1)]=m+[(n+k)+1]=[m+(n+k)]+1= [(m+n)+k]+1=(m+n)+(k+1).
\end{equation*}
Notice here that the first, second, and fourth equalities follow from the second part of the definition of addition while the third uses our inductive assumption that \(m+(n+k)=(m+n)+k)\text{.}\) This shows that \(k+1\in \mathbb{M}\text{.}\) Therefore, \(\mathbb{M}= \nonnegints\text{.}\) Since \(m\) and \(n\) were arbitrary elements of \(\nonnegints\text{,}\) the theorem follows.