1. Introduction and Preliminaries
This paper deals with the monoid structure on the set of all binary operations over a fixed set
, as studied in [1] and [2]. Throughout this paper,
represents a nonempty set. A pair
, where
is a binary operation on
, is said to be a magma. In the literature, magmas are sometimes referred to by various alternative names, such as binars or groupoids. Adopting the notation from [2] and [1], we denote the set of all binary operations on
(all magmas on
) as
and refer to that collection as the magma of
. The use of the word “magma” with these two different but strongly related meanings does not pose a problem and helps the narrative flow smoothly.
Observe that for a finite set
with
, the cardinality of
is
. Observing, for example, that
when
,
,
when
,
, and
when
,
,
the reader can see that the size of magma sets grows very rapidly.
The large cardinality of
represents serious challenges for computational explorations, even for small values of
. Another symptom of the rapid growth of
is that, when
is infinite,
is always uncountable. When
is finite, we often write
instead of
, since clearly sets with the same number of elements induce isomorphic magma monoids.
1.1. Magma Monoids
We consider an operation,
, which endows
with a monoid structure. That operation was independently considered in [3] and in [1] and [2].
We follow the notation and terminology of [1] and [2].
Other papers that followed [3] are [4], [5], and [6]. Fayoumi’s work in [4] provides an elegant characterization of the center of
and a generalization of commutative operations through commutative maps was explored in [5]. Nebeský introduced a method of describing graphs using binary operations in [7], [8], and [9], which was further developed in [6].
Following the construction in [10], [11] examines ways to lift the
operation from
to sets of graphs whose vertex set is
. The graph-induced operations considered in [12], [13], and [14] include one-value and two-value graph magmas and have applications in the study of amenable bases over infinite-dimensional algebras (e.g., [15]). The graphs inducing such operations are some of the ones explored in [11].
Definition:
on
is defined as follows: for every
in
and
in
,
The notations
and
are used interchangeably.
Remark: Let
be the binary operation that projects onto the first component, that is, for all
,
. Then,
is a non-commutative monoid, having
as its identity element. For the proof, refer to Theorem 2.1 of [2] or Theorem 2 of [3].
We denote the magma monoid resulting from endowing
with the operation
as
. This same monoid was denoted
in [3] and related works.
The motivation behind the two independent introductions in the literature of the
operation, respectively, in [3] and in [1] and [2], is different from each other. To explain the motivation for [1] and [2], we need the following definition.
Definition: For every operation
in
, the (left, right, two-sided) outset of
is defined as the set (
,
,
), where:
;
;
.
The motivations behind the two independent introductions in the literature [1] and [2] were the following interesting fact:
Remark: For each operation
in the magma monoid
, the outsets
, and
are submonoids of
, inheriting the identity element
from the parent monoid.
In contrast with the above proposition, the motivation in [3] to study the magma monoid was the ability to see it as a natural extension of the monoid of functions
, under composition. Specifically, we formalize these foundational concepts in Definition 1.1 and Remark 1.1, which are lifted from [3], but with notation adjusted to match what we use in this paper.
Definition: Given a function
, consider a groupoid
where the multiplication is given by the formula
Groupoids of this type,
, are referred to as leftoids.
Given two leftoids
and
the operation “
” can be defined as follows.
where
Thus,
and so
is the leftoid
. This multiplication corresponds to the composition of functions from
to
.
If
, then
has the multiplication
. Since the composition of functions is an associative operation, we obtain the proposition below.
Remark: The collection of leftoids with respect to the operation
is a semigroup with identity
.
Proof. See Theorem 1 of [3].
It is customary, when introducing a new semigroup, to consider the extent to which Green’s relations hold for that semigroup and seek information about its idempotents and regular elements. These questions were partially considered for the magma monoid in [2]. The results on idempotent elements relevant to this paper will be reviewed in Section 2.
Definition:
In this case,
is called a regular conjugate of
. It should be clear that, when this happens, then
is a regular conjugate of
.
Binary operations on a finite set
have a user-friendly representation, first introduced in [1], as numbers corresponding to the base
representation of the entries in the operation table. While using these representations, the result of applying the operation to an input pair
is simply choosing the
entry in the operation’s name, with
interpreted as a number in the base
.
Example: Operations in
for
. Each operation is named with the number between 0 and 15 whose binary representation is given by the entries of the table read from the top.
Example: For the set
, the binary operation associated with the number 100 can be represented by its Modulo 3 representation, 000010201. This representation is shown below. The Modulo 3 representations of the other two binary operations, 8229 and 9760, can be similarly determined.
Example: When
, almost all binary operations in
are regular. The following are the regular conjugates:
1) Self-conjugate operations:
;
2) Conjugate pairs:
.
The only exceptions are operations 6 and 9 (see Example 1.1), which fail to satisfy the regularity condition, namely
.
1.2. Periodic and Monogenic Semigroups
We introduce here the semigroup terminology from [16] that is pertinent to this paper. For more details, readers may consult a standard reference such as [16], [17].
For any subset
of
, the intersection of all subsemigroups of
that contain
is a subsemigroup of
denoted
.
The set
is said to be a generating set of
if
. If
for some
, then we write
. We consider a special case where the set
is generated by a singleton set
.
In that case,
.
Definition: The order of an element
in a semigroup is the number of elements in the subsemigroup
.
Notice that, unlike the case of a group, when
comes from a monoid and is not invertible, then the subsemigroup
does not contain the identity element of the monoid. An element of a semigroup has order one if and only if it is idempotent.
Definition: A semigroup
is called monogenic if there exists an element
such that
.
Given
, if all these powers are distinct, then
is isomorphic to the additive semigroup of natural numbers. Otherwise,
is finite, and the number of elements in it is called the order of the semigroup
, as well as the order of the element
. If
is infinite, then
is said to have infinite order.
Definition: A semigroup
is called periodic if to each element
of
there corresponds an idempotent
(i.e.,
) and a positive integer
such that
.
A semigroup is periodic if all its elements are of finite order, and every periodic semigroup has at least one idempotent.
In his study of periodic semigroups in [18] (as cited in [19]), Schwarz introduced the relation
on semigroups, which served as a useful tool in the study of periodic semigroups. We introduce that relation in Definition 1.2. In [19], Miller investigated the properties of periodic semigroups that satisfy the condition
, where
is the Green’s
relation, viewed as a subset of
. The key results from Miller’s study are summarized here for comparison with the critical results of this paper.
Definition: Let
be a periodic semigroup, and denote its set of idempotents
. For
in
,
if and only if there exist positive integers
and an element
in
such that
.
This makes
an idempotent separating equivalence relation on any periodic semigroup. The
-class containing an element
of
will be denoted
. Suppose
then
is a subsemigroup of
.
Lemma 1 [19]: Let
be a periodic semigroup with
and let
. Then
1)
if and only if
for
;
2)
for
;
3)
is a periodic unipotent subsemigroup of
.
2. Almost-Constant Operations and Units and Idempotents
in
The first step in our exploration of the order of elements in the magma monoid is to study almost constant operations (subsection 2.1), and units and idempotents with respect to
(respectively, subsection 2.2 and 2.3).
A lower bound for the number of idempotent elements in the magma monoid is stated in Proposition 14, and some examples of idempotent operations are listed in the subsequent remark. In Proposition 2, we prove that if
is an almost-constant operation, then
. We then describe a procedure for finding unit inverses and determine the number of units in
via Theorem 6.
2.1. Almost Constant Operations
Definition: Given
the binary operation
that maps every
to
, i.e.,
for all
is called the constant operation determined by
.
Let
or simply
represent the set of all constant binary operations on
.
The set of all constant operations,
, is a two-sided ideal of the magma monoid, since for every
and
, we have
and
.
Definition: Given
with
, the operation
is defined as:
This operation is said to be an almost-constant operation.
Example: For a set
with 5 elements, the subsequent operations are identified as almost-constant operations, and we denote them using the notation from Definition 2.1.
Proposition 2: For any
with
, if
is an almost-constant operation in
, then it satisfies the property:
.
Proof. Given an almost constant operation
in
let
. Then, straightforward calculations show that
exhibits a structure very similar to
, something that could also be called almost constant, but this time the output
is the norm and
is the exception, with the exception, once again, happening at
.
A second round of computation yields the desired result.
□
Definition: A binary operation
is called a unique square (or constant diagonal) operation if it satisfies the property:
for all elements
.
Proposition 3: A monoid is a unique square operation if and only if it is a group all of whose elements have order two.
2.2. Units in
In our search for units within the magma monoid, we encountered two types of operations that could be classified into two separate categories: distinct constant row operations (DCR) and distinct constant column(DCC) operations.
The name distinct constant row operations reflects the fact that, in a table representation, the rows are constant and distinct from each other. A similar reasoning applies to distinct constant column operations, where columns remain constant and distinct.
Lemma 4: If
is a distinct constant row or a distinct constant column in
, then
is a unit.
Lemma 4 yields the following inner direct sum decomposition:
.
Theorem 5:
is a subgroup of
, the group of units in
, and is isomorphic to
.
To further our understanding of the magma monoid, we aim to describe its units in a general setting. We define a key function that is vital for this characterization and present the main results. For further details, see [2].
Definition: For each set
with binary operations
and
in the magma monoid, define a map
that takes a pair of elements
in
to a new pair
.
In light of Definition 0
can be interpreted as the composition of the operations
and
.
Theorem 6: Given
,
is a unit in the magma monoid if, and only if the map
is bijective.
Proof. See Theorem 3.5 in [2].
Example: For
, the following operations are units in
:
Using the insights from Definition 0 and Theorem 6, we can now determine the cardinality of the set of units in the magma monoid, denoted by
, as presented in Proposition 23.
Theorem 7: For a set
of size
, the cardinality of the set of unit elements in
,
, is given by
.
Example: For
,
; For
,
.
Procedure for Finding Inverse of Units in
The following procedure outlines the steps to determine the inverse of a binary operation
belonging to the set
. Let
. Then:
1) To obtain the elements for the diagonals, iterate through each index
in the set
. For each
, compute the product
. If the result of this product is
(i.e.,
), then the inverse operation applied to
yields
(i.e.,
.
2) Given that
is not equal to
and
is not equal to
, consider the expression
. Suppose this expression evaluates to
. Then, applying the inverse operation to
yields
(i.e.,
), and applying the inverse operation to
yields
(i.e.,
).
3) Proceed to Step 2 and systematically vary the values of
and
until all the cells in the inverse table
are completely filled.
Following the procedure outlined above, we successfully determined the inverse of the operation described in Example 2.2.1.
Example: Given the binary operation
defined by the table:
We can determine the inverse of
by following the three-step procedure outlined earlier.
Step 1: From the operation table for
, we observe that
, which implies that
. Continuing this process, we find additional inverse relations:
Steps 2 and 3: Reading from the operation table for
we find the following inverse relations:
Following the procedure, we obtain the inverse operation table
as:
2.3. Idempotents in
Definition: An operation
is said to be an idempotent operation with respect to
if
, for all
.
In brief,
is idempotent if
. The set of all idempotent elements is not a subsemigroup of the
[2].
Our search for idempotent elements in
commences with commutative binary operations within
. We enumerate and classify these operations (Definition 2.3), revealing three distinct categories. Notably, in Proposition 9, we show that idempotent elements are confined to two of these categories. Clearly, if
, then the cardinality of the set of commutative binary operations in the magma monoid,
is given by
.
Definition: We define the following sets on the magma monoid:
The set
consists of those binary operations, in Definition 0, to which we refer as unique square operations (or constant diagonal operations).
Proposition 8:
1) The set
is a two-sided ideal of
.
2) Given
, if
then
, the set of all constant binary operations.
Proof.
1) Let
and choose
such that
for all
. For
with
, we have:
for all
making
have a constant diagonal.
For
, letting
yields:
and
Thus,
is commutative. Consequently,
. A similar argument yields
.
2) Given
, if
is such that
for all
, we will show that
, for all
. We have:
, since
is commutative. Therefore,
, a constant operation, as claimed.
Proposition 9: Given
,
1) if
then
is an idempotent operation.
2) if
then
is an idempotent element if and only if it is a constant operation.
Proof.
1) Given
and
. We can easily verify that for all
,
and
. Therefore,
is idempotent.
2) Given
and
, we have two cases
(a) if
, then
, so
is idempotent;
(b) if
, then by Proposition 8
, so
itself is not idempotent.
Hence,
is idempotent if and only if it is a constant operation.
Proposition 10: Given
, if
then
is not an idempotent element.
Proof. Given
, choose
such that
,
, and
. Then we have:
Thus,
, since
and
, and
.
Whereas the idempotency of the commutative binary operations in
depends on the nature of the diagonal arrangement of the operation, the idempotency of the non-commutative binary operations, in most cases, is independent of the diagonal arrangement.
Proposition 11: Given an idempotent, non-commutative binary operation
with the properties:
1)
for all
(non-commutativity);
2)
for all
(idempotence on the diagonal).
Define a new binary operation
on
as follows:
Then, the operation
is also idempotent in
.
Proof. Let
be an idempotent, non-commutative binary operation that satisfies the idempotence on the diagonal condition. Choose
such that
for all
with
, and
if
. We show
is idempotent, i.e.,
for all
.
We consider two cases:
1)
for all
:
.
Hence,
.
2)
for all
:
Let
for all
. Then
. Hence,
.
Therefore,
is idempotent.
Example: For a set
with three elements, the following operations are idempotent in
:
Proposition 12:
Binary operations in
that differ from the identity operation
in exactly one entry are idempotent with respect to
.
Proof. Suppose there exists a pair
such that
and
for all
then,
and
. And
. □
Theorem 13:
Let
be a subset of
with cardinalities
and
. Suppose
is an idempotent binary operation in
with an element
such that
. Then, the binary operation
defined on
as follows is also idempotent:
Proof. See [2] □
We characterize the idempotent and non-idempotent elements in
in Remark 2.3.
Remark: By applying Theorem 13 and Proposition 12, we can identify the following as some of the idempotent operations in the magma monoid (
):
All constant operations;
All the elements in the set
;
The identity;
Operations that differ from the identity by only one entry;
Idempotents derived from the set with
elements.
The following operations in
are non-idempotents:
Non-identity unitary operations;
Almost constant operations;
All elements of the set
;
All the elements in the set
;
Operations that differ from constant operations by exactly one non-diagonal entry.
Despite the empty intersection of all idempotent sets referenced in Remark 0, nonempty intersections exist between some sets, revealing they are not fully pairwise disjoint. As a result, determining a precise lower bound for the number of idempotent elements in the magma monoid poses a significant challenge.
We aim to refine the lower bound established in Proposition 2.9 of [2], as the set of constant operations and the identity have disjoint intersections with all elements in the set
. Consequently, we present an enhanced lower bound for the number of idempotent elements in Proposition 14.
The sets of non-identity unitary operations, almost constant operations, and elements in
are pairwise disjoint. By leveraging the cardinalities of these sets, we can establish a tighter upper bound on the number of idempotent operations within the magma monoid.
Proposition 14 gives a bound for the number of idempotents in the magma monoid
, where the underlying set
has
elements.
Proposition 14: For
, let
denote the set of all idempotent elements in the magma monoid. Then, the following inequality holds:
Example: For
,
; For
,
.
3. Main Results
To gain insight into the structure of
for arbitrary sets
, we first examine the specific cases of
and
, where
and
, as these small, finite cases provide a concrete foundation for understanding the general pattern and properties of
.
3.1. Order of Elements for
and
Extending our previous analysis in Section 2, this section presents our results on the order of elements in the magma monoid for
and
. We group the elements into six distinct categories in Proposition 15 and investigate their order within each category, drawing on insights from Lemmas 16 and 17.
Proposition 15: The elements of
can be categorized into the following six classes for both
and
:
1) Non-identity units
2) Idempotents
3) Almost constant operations
4) Commutative and unique square operations
5) Non-commutative and unique square operations
6) Other operations
Lemma 16: For
, the magma monoid contains seven idempotent elements, which form the set
These idempotents can be further classified into:
1) Identity: 12
2) Constant operations:
3) Elements from the set
:
4) Operations that are one entry different from the identity:
Lemma 17: For
, the element in the magma monoid of order 2 are categorized as follows:
1) Non-identity elements:
2) Almost-constant operations:
3) Commutative and unique square operations:
4) Non-commutative and unique square operations:
Theorem 18 For
, if
, then the order of
satisfies
Proof. By Lemmas 16 and 17, we have exhaustively classified all the possible elements in
. Hence, any element
must satisfy one of the conditions listed in these lemmas, implying that the order
is either 1 or 2. □
Remark: Note that the above results imply that
is not a monogenic semigroup when
, since every element has order 1 or 2.
Following from Definition 1.2 and Theorem 18, we can classify the elements of
into the following idempotent classes, along with their respective elements (see Example 1.1 for the corresponding operations, denoted by numbers):
1)
2)
3)
4)
5)
6)
7)
Proposition 19: For any set
with exactly 2 elements and any operation
, the set
forms a commutative subsemigroup of
.
Proposition 20: Given a commutative binary operation
for
, there exists an idempotent operation
such that
for some
with
.
Proof. Consider a commutative binary operation
in the semigroup
, and let
be an idempotent element. The idempotency of
is influenced by the configuration of its diagonal elements. To explore this, we examine various scenarios related to the diagonal arrangement of the commutative binary operation
within
.
Case 1: If
for all
, then
and, by Proposition 9
is idempotent. Hence,
.
Case 2: If
for all
with
, then
and, by Proposition 10
. Hence,
.
Case 3: For
, let
and
. Then, we can easily verify that
is idempotent, i.e.,
. Hence,
.
Case 4: For
, let
and
. If we choose
,
, then we have
and
, so
for all
. Thus
is idempotent by Proposition 9. Similarly, if we choose either
or
, then we have
and so
and by Proposition 10,
. Therefore,
.
Case 5: For
such that
for all
, and
and
are pairwise distinct. If we choose
,
and
then we can verify that
for all
. Therefore,
.
Case 6: For
, such that
for all
, and two of the diagonal elements
and
assume the same value. If we choose
and
then
,
and
. Thus, from Case 2,
is idempotent, and therefore
.
The configurations of the diagonal elements examined above cover all possible cases of commutative binary operations.
Theorem 21: For
, if
is a commutative binary operation, then the order of
satisfies
.
Proof. By Proposition 20, if
is an idempotent element in
then there exists an integer
such that
where
. We now examine the following cases to determine the order of
:
Case 1: If
then
for all
, so
and
.
Case 2: If
, then
for all
so we have
so
.
Case 3: If
, then
is either 3 or 5 since
Case 4: If
, then
since
Therefore, we have shown that the order of any commutative binary operation
on a set S with
is bounded between 1 and 7, inclusive.
Proposition 22: Given a non-commutative binary operation
for
the following hold:
1) If
for all
and
is not a unit, then there exists an idempotent operation
such that
for some
with
.
2) If
for all
, then there exists an idempotent operation
such that
for some
with
.
3) If there exists
such
for all
then there exists an idempotent operation
, such that
.
Proof. By employing a similar line of reasoning as in the proof of Proposition 20, it can be shown that all three propositions hold true. □
The order of every unit element in
is less than or equal to 144 (See Example 2.2).
Remark: For any operation
on the set
with
, the order of the subsemigroup generated by
is at most 144, i.e.,
.
3.2. Order of an Element
Proposition 23: For any element
, the order of the subsemigroup generated by
is strictly less than the cardinality of
, i.e.,
. In other words,
is not generated by any single element.
Proposition 24: The magma monoid,
is not a monogenic semigroup.
Proposition 25:
1) The order of the subsemigroup generated by an operation
is 1 if and only if
is idempotent.
2) The order of every almost-constant operation,
, is 2.
Proposition 26: Let
be an idempotent element in
if
then, either
1)
in which case
generate a subsemigroup of two elements,
.
2)
in which case
generates a subsemigroup of three elements,
.
Proof. If
then the element
has a cyclic pattern of order 4 where
and,
for all
. This implies that the powers of
are periodic, with
. Consequently, the subsemigroup generated by
has only two possible forms:
1) If
then the subsemigroup is,
.
2) Otherwise, the subsemigroup is
.
3.3. Minimal Spanning Set of
Let
be a set with
. The monoid
exhibits the following decomposition properties:
1)
decomposes into commutative and non-commutative elements.
2) The commutative subset is closed under
and forms a two-sided ideal, implying it cannot generate
.
3) Non-commutative elements split into units and non-units.
4) The set of units is closed and contains an isolated subgroup generated by distinct constant row and column permutations.
5) By Theorem 5,
is a finitely generated subgroup of
generated by precisely two elements.
From these decompositions, we deduce:
At least two elements generate the units.
One additional non-unit element generates the non-commutative subset.
One commutative element is required.
Therefore, the minimal generating set for
consists of at least four elements.
Proposition 27: For
, the set
spans
, and it is a minimal generating set.
Proof. We can decompose the elements of
into the following:
1) Units:
(distinct constant row/column permutations).
2) Non-units, Non-commutative:
.
3) Commutative:
.
The set
generates
where
1) Units:
generate
.
2) Non-unit, Non-commutative:
combined with
generates
.
3. Commutative:
, combined with
generates the commutative elements.
Following the notation in Example 0 and the definition 0, we can do the following calculations to generate all the elements in
:
forms a minimal generating set for
.
Remark: For
, the minimal generating set
is not unique. Specifically,
also generates
, demonstrating non-uniqueness.
4. Conclusion
This study provides a comprehensive analysis of the magma monoid
, shedding light on the algebraic structures of idempotents, almost constant operations, and units. The classification of elements for
and
, along with the identification of generator sets, contributes to a deeper understanding of the magma monoid’s properties. The presented methodology for finding inverses of units and identifying generator sets offers a valuable tool for further research. This work lays the groundwork for exploring the applications of magma monoids in algebra and computer science(e.g., automata [20]), and highlights potential avenues for future investigation
Acknowledgements
The author would like to express their sincere thanks to the editor and the anonymous reviewers for their helpful comments and suggestions.