TITLE: Is a commutative monoid with a $\mathbb Z$-action an abelian group?
QUESTION [5 upvotes]: Let $M$ be a commutative monoid and let there be an action of $\mathbb Z$, i.e., a function $\mathbb Z\times M\to M$ such that for $r,s\in\mathbb Z$ and $m,n\in M$ we have:
\begin{equation}
\left(r+s\right)\cdot m=r\cdot m+s\cdot m\\
r\cdot\left(m+n\right)=r\cdot m+r\cdot n\\
r\cdot\left(s\cdot m\right)=\left(rs\right)\cdot m\\
1\cdot m=m
\end{equation}
Then is $M$ actually an abelian group with inverses given by $\left(-1\right)\cdot m$?
Note that such an action would be extension of the natural action of $\mathbb N$ on $M$.

REPLY [2 votes]: Atticus' answer already solves this.
Here's an additional observation: Let $(M, +, 0_M)$ be a commutative monoid with a $\Bbb Z$-action. Then, $M$ is a group iff $M$ is cancellative.
$(\Rightarrow)$ is clear since groups are cancellative.
$(\Leftarrow)$ Suppose $M$ is cancellative.
Claim 1. $0 \cdot m = 0_M$ for all $m \in M$.
Proof. This is the typical proof. Note that
$$0 \cdot m = (0 + 0) \cdot m = 0 \cdot m + 0 \cdot m$$
and use cancellation. $\Box$
Claim 2. Let $m \in M$. Then, $(-1) \cdot m$ acts as an inverse for $m$.
Proof. We have $(-1 + 1) \cdot m = 0_M$ and $1 \cdot m = m$. $\Box$
Thus, every element has an inverse and we are done.

This shows that some familiar examples such as $(\Bbb N_0, +, 0)$ and $(\Bbb Z \setminus \{0\}, \cdot, 1)$ cannot have a $\Bbb Z$-action. (Since they are cancellative but are not groups.)