Let R be a ring (often assumed a unital ring). A left R-module is an abelian group (M,+) together with a scalar multiplication map R×M→M, (r,m)↦rm, such that for all r,s∈R and m,n∈M:
- r(m+n)=rm+rn,
- (r+s)m=rm+sm,
- (rs)m=r(sm),
- if R is unital, then 1Rm=m.
A right R-module is defined similarly with a map M×R→M, (m,r)↦mr, satisfying the analogous axioms.
The axioms are collected in module axioms. When R is a field, left R-modules are the same objects as vector spaces. Ideals of a ring give basic examples of modules, linking module theory to ideal theory.