A set with a map is called a magma. The map is called a binary operator (or just operator), and for , we write as , and often shorten it to just . Note that is called the product of and .
A binary operator of a magma is associative if . In this case we can use induction to show that the product of elements can simply be written , and any parenthesizing of this product is equivalent.
A binary operator of a magma is commutative if . It is customary to use additive notation in such cases, that is we often denote as , when is commutative.
identity element
let be a magma. an element is called the identity element (or just identity) if for every , . Note that the identity of a magma is unique. Otherwise, suppose is also an identity of , then .
Semigroup
A semigroup is a magma whose operator is associative.
Monoid
A monoid is a semigroup with a (unqiue) identity.
Group
A monoid where each element has an inverse such that is a group. A group is abelian if it's operator is commutative.
The inverse of an element in a group is unique
Let be a group, then for each , there is a unique such that .
\begin{proof}
Suppose both are inverses of an arbitrary element . Then, multiplying on boh sides, we get . Therefore, .
\end{proof}
The unique property of the identity of a group
let be a group, then the identity is the only element in such that
\begin{proof}
Suppose for some , we have that . Then, multiplying by on both sides, we have .
\end{proof}
A one way condition to guarantee abelian groups
let be a group, such that for each , , then is abelian.
\begin{proof}
let be arbitrary elements in . Then, .
Hence there is a unique , such that . Using the algebraic properties of groups, it is not hard to see that . However, its given to us that . which means that (they are "both" the unique inverse elements of ). Equivalently, . Again, in , . Hence, and . Therefore, , hence is abelian.
To show that this condition is only one way, consider the group of integers with addition as the operator, . This group is abelian, however, it is not true that for each .
\end{proof}
A semigroup with left identity and left inverses is a group
let be a semigroup, such that there exists such that for all , and for each , there exists such that . Then is a group.
\begin{proof}
we play some algebraic tricks here:
Let , then . Consider the equation . Notice that (every element has a left inverse). Now, . Hence, upon simplifying, we have . Hence is also a right identity, therefore, is the identity.
Similarly, . Hence, . Upon simplifying, we have . Therefore is also the right inverse and hence the inverse of .
\end{proof}
A semigroup with right identity and right inverses is a group
Proof Outline
Give a proof, symmetrical to the proof of [[#^e5f52d]]
A finite semigroup with two sided cancellation law is a group
Let be a finite semigroup, , such that implies and implies . Then is a group.
\begin{proof} for an arbitrary element , consider the map , given by for all . This map is injective, as implies . Hence, each goes to a unique . therefore, the image of under has exactly elements, Hence , therefore, the map is bijective. hence, there exists a unqiue such that that is . Now consider an arbitrary element . notice that . Hence . therefore is the left identity. moreover, (e is the left identity) Hence, therefore, is also the right identity. Now, for an arbitrary element the map as described above is bijective, so there is a unique such that . Equivalently every element has a unique right inverse such that . We finish the proof by applying [[#^c54aa6]].
\end{proof}
Product of groups:
The direct product of groups
Let be a collection of groups. Then, the set with the product of two tuples and , where . Is given by is called the direct product of a collection of groups.
The direct product of a collection of groups, is a group
\begin{proof} (outline)
Associativity of the product defined above, follows directly from the associativity of the products of each group . The tuple of identity elements from each group acts as the identity element, and for the arbitrary element , the inverse element is given by . \end{proof}