Semiring
A semiring is an algebraic structure consisting of a set S equipped with two binary operations, addition (denoted +) and multiplication (denoted \cdot), such that (S, +) is a commutative monoid with identity element $0, (S, \cdot) is a monoid with identity element $1, multiplication distributes over addition on both sides (i.e., a \cdot (b + c) = a \cdot b + a \cdot c and (a + b) \cdot c = a \cdot c + b \cdot c for all a, b, c \in S), and [0](/page/0) acts as an absorbing element for multiplication (i.e., a \cdot 0 = 0 \cdot a = 0 for all a \in S).[1] Semirings generalize rings by relaxing the requirement for additive inverses, allowing for structures where subtraction is not always possible, such as the natural numbers under usual addition and multiplication.[1] The concept was formally introduced by H. S. Vandiver in 1934 as a "simple type of algebra" lacking the cancellation law for addition, motivated by studies in ring ideals and finite arithmetics. Common examples include the semiring of non-negative integers (\mathbb{N}_0, +, \cdot, 0, 1), the Boolean semiring (\{0,1\}, \lor, \land, 0, 1) used in logic, and the max-plus semiring (\mathbb{R} \cup \{\infty\}, \max, +, \infty, 0) applied in optimization problems.[1] Semirings play a central role in various mathematical and computational domains, including formal language theory where they model weighted automata, idempotent analysis for solving nonlinear equations without inverses, and tropical geometry as an algebraic framework for optimization and polyhedral computations.[1] Their theory encompasses ideals, homomorphisms, and radicals analogous to ring theory; semirings are also known as rigs in some contexts. Extensions like semifields address specific applications in cryptography and coding theory.[2]Definition and Fundamentals
Axioms
A semiring is defined as a set S equipped with two binary operations, addition + and multiplication \cdot, such that (S, +) forms a commutative monoid with identity element $0, (S, \cdot) forms a monoid with identity element $1, multiplication distributes over addition on both the left and the right, and the additive identity $0 is absorbing for multiplication, meaning $0 \cdot x = x \cdot 0 = 0 for all x \in S.[3] These conditions are captured by the following eight axioms, which hold for all x, y, z \in S:- Associativity of addition: (x + y) + z = x + (y + z)
- Commutativity of addition: x + y = y + x
- Additive identity: x + 0 = 0 + x = x
- Associativity of multiplication: (x \cdot y) \cdot z = x \cdot (y \cdot z)
- Multiplicative identity: x \cdot 1 = 1 \cdot x = x
- Left distributivity: x \cdot (y + z) = (x \cdot y) + (x \cdot z)
- Right distributivity: (x + y) \cdot z = (x \cdot z) + (y \cdot z)
- Absorption by zero: $0 \cdot x = x \cdot 0 = 0