Wikipedia
Near-semiring
In mathematics, a near-semiring (also seminearring) is an algebraic structure more general than a near-ring or a semiring. Near-semirings arise naturally from functions on semigroups.