Abbreviation: Rng
A \emph{ring} is a structure R=⟨R,+,−,0,⋅⟩ of type ⟨2,1,0,2⟩ such that
⟨R,+,−,0⟩ is an abelian groups
⟨R,⋅⟩ is a semigroups
⋅ distributes over +: x⋅(y+z)=x⋅y+x⋅z, (y+z)⋅x=y⋅x+z⋅x
Let R and S be rings. A morphism from R to S is a function h:R→S that is a homomorphism:
h(x+y)=h(x)+h(y), h(x⋅y)=h(x)⋅h(y)
Remark: It follows that h(0)=0 and h(−x)=−h(x).
Example 1: ⟨Z,+,−,0,⋅⟩, the ring of integers with addition, subtraction, zero, and multiplication.
0 is a zero for ⋅: 0⋅x=0 and x⋅0=0.
f(1)=1f(2)=2f(3)=2f(4)=11f(5)=2f(6)=4