The class of all
semigroups forms a variety of algebras of signature (2), meaning that a semigroup has a single binary operation. A sufficient defining equation is the associative law: : x(yz) = (xy)z. The class of
groups forms a variety of algebras of signature (2,0,1), the three operations being respectively
multiplication (binary),
identity (nullary, a constant) and
inversion (unary). The familiar axioms of associativity, identity and inverse form one suitable set of identities: : x(yz) = (xy)z : 1 x = x 1 = x : x x^{-1} = x^{-1} x = 1. The class of
rings also forms a variety of algebras. The signature here is (2,2,0,0,1) (two binary operations, two constants, and one unary operation). If we fix a specific ring
R, we can consider the class of
left R-modules. To express the scalar multiplication with elements from
R, we need one unary operation for each element of
R. If the ring is infinite, we will thus have infinitely many operations, which is allowed by the definition of an algebraic structure in universal algebra. We will then also need infinitely many identities to express the module axioms, which is allowed by the definition of a variety of algebras. So the left
R-modules do form a variety of algebras. The
fields do
not form a variety of algebras; the requirement that all non-zero elements be invertible cannot be expressed as a universally satisfied identity (see below). The
cancellative semigroups also do not form a variety of algebras, since the cancellation property is not an equation, it is an implication that is not equivalent to any set of equations. However, they do form a
quasivariety as the implication defining the cancellation property is an example of a
quasi-identity. == Birkhoff's variety theorem ==