In mathematics, a semimodule over a semiring R is like a module over a ring except that it is only a commutative monoid rather than an abelian group.
Formally, a left R-semimodule consists of an additively-written commutative monoid M and a map from
R x M
r(m+n)=rm+rn
(r+s)m=rm+sm
(rs)m=r(sm)
1m=m
0Rm=r0M=0M
A right R-semimodule can be defined similarly. For modules over a ring, the last axiom follows from the others. This is not the case with semimodules.
If R is a ring, then any R-module is an R-semimodule. Conversely, it follows from the second, fourth, and last axioms that (-1)m is an additive inverse of m for all
m\inM
N
Z