−Table of Contents
Semirings
Abbreviation: SRng
Definition
A \emph{semiring} is a structure S=⟨S,+,⋅⟩ of type ⟨2,2⟩ such that
⟨S,⋅⟩ is a semigroup
⟨S,+⟩ is a commutative semigroup
⋅ distributes over +: x⋅(y+z)=x⋅y+x⋅z, (y+z)⋅x=y⋅x+z⋅x
Morphisms
Let S and T be semirings. A morphism from S to T is a function h:S→T that is a homomorphism:
h(x+y)=h(x)+h(y), h(x⋅y)=h(x)⋅h(y)
Examples
Example 1:
Basic results
Properties
Finite members
f(1)=1f(2)=10f(3)=132f(4)=2341f(5)=f(6)=