Generator Sets for the Magma Monoid

Abstract

This paper explores the algebraic structures of the magma monoid ( ℳ( S ),⊲ ) , where ℳ( S ) comprises all binary operations on S . We investigate the order and generator set of elements characterizing idempotents, almost constant operations, and units, which facilitates our analysis. A procedure for finding inverses of units is presented, along with key results on almost constant operations. Focusing on | S |=2 and | S |=3 , we classify the elements into various categories, determine their orders, and identify generating sets for the magma monoid. The findings inform a concise methodology for identifying the generator sets of an arbitrary element ∗∈ℳ( S ) .

Share and Cite:

Owusu-Mensah, I. (2026) Generator Sets for the Magma Monoid. Advances in Pure Mathematics, 16, 1-18. doi: 10.4236/apm.2026.161001.

1. Introduction and Preliminaries

This paper deals with the monoid structure on the set of all binary operations over a fixed set S , as studied in [1] and [2]. Throughout this paper, S represents a nonempty set. A pair ( S,⊙ ) , where ⊙ is a binary operation on S , 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 S (all magmas on S ) as ℳ( S ) and refer to that collection as the magma of S . 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 S with | S |=n , the cardinality of ℳ( S ) is

n ( n 2 ) . Observing, for example, that

  • when n=2 , | ℳ( S ) |= 2 4 =16 ,

  • when n=3 , | ℳ( S ) |= 3 9 =19683 , and

  • when n=4 , | ℳ( S ) |= 4 16 =4294967296 ,

the reader can see that the size of magma sets grows very rapidly.

The large cardinality of ℳ( S ) represents serious challenges for computational explorations, even for small values of | S | . Another symptom of the rapid growth of | ℳ( S ) | is that, when S is infinite, | ℳ( S ) | is always uncountable. When | S |=n is finite, we often write ℳ( n ) instead of ℳ( S ) , since clearly sets with the same number of elements induce isomorphic magma monoids.

1.1. Magma Monoids

We consider an operation, ⊲ , which endows ℳ( S ) 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 ℳ( S ) 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 | ℳ( S ) | to sets of graphs whose vertex set is S . 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 ℳ( S ) is defined as follows: for every x,y in S and ∗,∘ in ℳ( S ) ,

( ∗⊲∘ )( x,y )=∘( ∗( x,y ),∗( y,x ) ).

The notations ∗⊲∘ and ⊲( ∗,∘ ) are used interchangeably.

Remark: Let π 1 be the binary operation that projects onto the first component, that is, for all i,j∈S , π 1 ( i,j )=i . Then, ( ℳ( S ),⊲ ) is a non-commutative monoid, having π 1 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 ℳ( S ) with the operation ⊲ as ( ℳ( S ),⊲ ) . This same monoid was denoted ( Bin( S ), □ ) 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 ℳ( S ) , the (left, right, two-sided) outset of ⋆ is defined as the set ( ou t l ( ⋆ ) , ou t r ( ⋆ ) , out( ⋆ ) ), where:

  • ou t l ( ⋆ )={ ∗∈ℳ( S )|⋆ is left-distributive over ∗ } ;

  • ou t r ( ⋆ )={ ∗∈ℳ( S )|⋆ is right-distributive over ∗ } ;

  • out( ⋆ )={ ∗∈ℳ( S )|⋆ is two-sided distributive over ∗ } .

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 ℳ( S ) , the outsets ou t l ( ∗ ),ou t r ( ∗ ) , and out( ∗ ) are submonoids of ( ℳ( S ),⊲ ) , inheriting the identity element π 1 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 g:S→S , 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 g:S→S , consider a groupoid ( S,∘,g ) where the multiplication is given by the formula

∘( a,b )=g( a ).

Groupoids of this type, ( S,∘,g ) , are referred to as leftoids.

Given two leftoids ( S, ∘ 1 ,g ) and ( S, ∘ 2 ,f ) the operation “ ⊲ ” can be defined as follows.

( S, ∘ 1 ,g )⊲( S, ∘ 2 ,f )=( S,⊲ ),

where

a⊲b=( a ∘ 1 b ) ∘ 2 ( b ∘ 1 a ).

Thus, a⊲b=g( a )∘g( b )=fg( a ) and so ( S,⊲ ) is the leftoid ( S,⊲,g∘f ) . This multiplication corresponds to the composition of functions from S to S .

If g( a )=i d S ( a )=a , then ( S,∘,i d S ) has the multiplication a∘b=a . 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 ( S,∘,i d S ) .

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:

  • An element ∗ of ℳ( S ) is regular if there exists an element ∘ satisfying the two conditions that

∗⊲∘⊲∗=∗  and  ∘⊲∗⊲∘=∘.

  • 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 S have a user-friendly representation, first introduced in [1], as numbers corresponding to the base | S | representation of the entries in the operation table. While using these representations, the result of applying the operation to an input pair ( i,j ) is simply choosing the ij-th entry in the operation’s name, with ij interpreted as a number in the base | S | .

Example: Operations in M( S ) for S={ 0,1 } . 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 S={ 0,1,2 } , 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 S={ 0,1 } , almost all binary operations in ℳ( S ) are regular. The following are the regular conjugates:

1) Self-conjugate operations: { 0,2,3,4,5,8,10,12,13,14,15 } ;

2) Conjugate pairs: { 1,7 } .

The only exceptions are operations 6 and 9 (see Example 1.1), which fail to satisfy the regularity condition, namely ∗ 3 ≠∗ .

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 ℳ( S ) , the intersection of all subsemigroups of ℳ( S ) that contain χ is a subsemigroup of ℳ( S ) denoted 〈 χ 〉 .

The set χ is said to be a generating set of ℳ( S ) if ℳ( S )=〈 χ 〉 . If χ={ ∗ 1 , ∗ 2 ,⋯, ∗ n } for some n∈ℕ , then we write 〈 χ 〉=〈 ∗ 1 , ∗ 2 ,⋯, ∗ n 〉 . We consider a special case where the set 〈 χ 〉 is generated by a singleton set χ={ ∗ } .

In that case, 〈 ∗ 〉={ ∗, ∗ 2 , ∗ 3 ,⋯ } .

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 S is called monogenic if there exists an element i∈S such that S=〈 i 〉 .

Given S={ i n |n∈ℕ } , if all these powers are distinct, then 〈 i 〉 is isomorphic to the additive semigroup of natural numbers. Otherwise, 〈 i 〉 is finite, and the number of elements in it is called the order of the semigroup 〈 i 〉 , as well as the order of the element i∈S . If 〈 i 〉 is infinite, then i is said to have infinite order.

Definition: A semigroup S is called periodic if to each element a of S there corresponds an idempotent e (i.e., e= e 2 ) and a positive integer m such that a m =e .

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 K 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 J⊆K , where J is the Green’s J relation, viewed as a subset of S×S . The key results from Miller’s study are summarized here for comparison with the critical results of this paper.

Definition: Let S be a periodic semigroup, and denote its set of idempotents E S . For a,b in S , aKb if and only if there exist positive integers m,n and an element e in E S such that a m = b n =e .

This makes K an idempotent separating equivalence relation on any periodic semigroup. The K -class containing an element x of S will be denoted K x . Suppose e∈ E S then K e is a subsemigroup of S .

Lemma 1 [19]: Let S be a periodic semigroup with J⊆K and let e∈ E S . Then

1) ab∈ K e if and only if ba∈ K e for a,b∈S ;

2) ab K a i b for a,b∈S ;

3) K e is a periodic unipotent subsemigroup of S .

2. Almost-Constant Operations and Units and Idempotents in ( ℳ( S ),⊲ )

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 ( ℳ( S ),⊲ ) (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 ∗ 3 =∗ . We then describe a procedure for finding unit inverses and determine the number of units in ( ℳ( S ),⊲ ) via Theorem 6.

2.1. Almost Constant Operations

Definition: Given j∈S the binary operation c j that maps every ( x,y )∈S×S to j , i.e., c j ( x,y )=j for all x,y∈S is called the constant operation determined by j .

Let K( S ) or simply K represent the set of all constant binary operations on S .

The set of all constant operations, K , is a two-sided ideal of the magma monoid, since for every ∗∈ℳ( S ) and ∘∈K , we have ∗⊲∘=∘ and ∘⊲∗= c i∗i .

Definition: Given i,a∈S with i≠a , the operation c i ( a ) is defined as:

c i ( a )( x,y )={ a, if x=y=i, i, otherwise.

This operation is said to be an almost-constant operation.

Example: For a set S 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 i,a∈S with i≠a , if c i ( a ) is an almost-constant operation in ℳ( S ) , then it satisfies the property: c i (a) 3 = c i ( a ) .

Proof. Given an almost constant operation c i ( a ) in ℳ( S ) let b i ( a )= c i ( a )⊲ c i ( a ) . Then, straightforward calculations show that b i ( a ) exhibits a structure very similar to c i ( a ) , something that could also be called almost constant, but this time the output a is the norm and i is the exception, with the exception, once again, happening at ( i,i ) .

b i ( a )( x,y )={ i, if x=y=i, a, otherwise.

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: ∗( a,a )=∗( b,b ) for all elements a,b∈S .

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 ( ℳ( S ),⊲ )

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 ℳ( S ) , then ∗ is a unit.

Lemma 4 yields the following inner direct sum decomposition: DCR⊕{ π 1 , π 2 }=DCC∪DCR .

Theorem 5: DCC∪DCR is a subgroup of U , the group of units in ℳ( S ) , and is isomorphic to S n × ℤ 2 .

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 S with binary operations ∗ and ∘ in the magma monoid, define a map ( ∗×∘ζ ) that takes a pair of elements ( x,y ) in S×S to a new pair ( x∗y,y∘x ) S×S .

In light of Definition 0 ∗⊲∘ can be interpreted as the composition of the operations ∘ and ∗×∗ζ .

Theorem 6: Given ∗∈ℳ( S ) , ∗ is a unit in the magma monoid if, and only if the map ∗×∗ζ is bijective.

Proof. See Theorem 3.5 in [2].

Example: For n=4 , the following operations are units in ( ℳ( S ),⊲ ) :

3 2 1 0 3 2 3 1 3 2 2 1 1 0 1 0 3 0 2 0 0 2 1 3 3 2 1 0 3 1 3 0 3 2 2 0 3 2 1 1 1 3 1 0 0 0 2 2

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 U , as presented in Proposition 23.

Theorem 7: For a set S of size n , the cardinality of the set of unit elements in

ℳ( S ) , U , is given by ( n 2 )! ⋅n! ⋅ 2 ( n 2 ) .

Example: For n=2 , | U |=( 2 2 )!2! 2   ( 2 2 ) =4 ; For n=3 , | U |=( 3 2 )!3! 2   ( 3 2 ) =144 .

Procedure for Finding Inverse of Units in ( ℳ( S ),⊲ )

The following procedure outlines the steps to determine the inverse of a binary operation ∗ belonging to the set U . Let x 1 , x 2 ,⋯, x n ∈S . Then:

1) To obtain the elements for the diagonals, iterate through each index i in the set { 1,2,⋯,n } . For each i , compute the product x i ∗ x i . If the result of this product is x j (i.e., x i ∗ x i = x j ), then the inverse operation applied to x j ∗ x j yields x i (i.e., ∗ −1 ( x j , x j )= x i ) .

2) Given that i is not equal to j and m is not equal to n , consider the expression ( ( x i ∗ x j ),( x j ∗ x i ) ) . Suppose this expression evaluates to ( x n , x m ) . Then, applying the inverse operation to ( x n , x m ) yields x i (i.e., ∗ −1 ( x n , x m )= x i ), and applying the inverse operation to ( x m , x n ) yields x j (i.e., ∗ −1 ( x m , x n )= x j ).

3) Proceed to Step 2 and systematically vary the values of x i and x j until all the cells in the inverse table * −1 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:

∗ 3 2 1 0 3 2 3 1 3 2 2 1 1 0 1 0 3 0 2 0 0 2 1 3

We can determine the inverse of ∗ by following the three-step procedure outlined earlier.

Step 1: From the operation table for ∗ , we observe that ∗( 3,3 )=2 , which implies that ∗ −1 ( 2,2 )=3 . Continuing this process, we find additional inverse relations:

  • ∗ −1 ( 3,3 )=0

  • ∗ −1 ( 1,1 )=2

  • ∗ −1 ( 0,0 )=1

Steps 2 and 3: Reading from the operation table for ∗ we find the following inverse relations:

  • ( ∗( 3,2 ),∗( 2,3 ) )=( 3,2 )⇒ ∗ −1 ( 3,2 )=3, ∗ −1 ( 2,3 )=2

  • ( ∗( 3,1 ),∗( 1,3 ) )=( 1,0 )⇒ ∗ −1 ( 1,0 )=3, ∗ −1 ( 0,1 )=1

  • ( ∗( 3,0 ),∗( 0,3 ) )=( 3,0 )⇒ ∗ −1 ( 3,0 )=3, ∗ −1 ( 0,3 )=0

  • ( ∗( 2,1 ),∗( 1,2 ) )=( 1,3 )⇒ ∗ −1 ( 1,3 )=2, ∗ −1 ( 3,1 )=1

  • ( ∗( 2,0 ),∗( 0,2 ) )=( 0,2 )⇒ ∗ −1 ( 0,2 )=2, ∗ −1 ( 2,0 )=0

  • ( ∗( 1,0 ),∗( 0,1 ) )=( 2,1 )⇒ ∗ −1 ( 2,1 )=1, ∗ −1 ( 1,2 )=0

Following the procedure, we obtain the inverse operation table ∗ −1 as:

∗ −1 = 3 2 1 0 3 0 3 1 3 2 2 3 1 0 1 2 0 2 3 0 0 2 1 1

2.3. Idempotents in ( ℳ( S ),⊲ )

Definition: An operation ∗∈ℳ( S ) is said to be an idempotent operation with respect to ⊲ if ( ∗⊲∗ )( a,b )=∗( a,b ) , for all a,b∈S .

In brief, ∗ is idempotent if ∗ 2 =∗ . The set of all idempotent elements is not a subsemigroup of the ( ℳ( S ),⊲ ) [2].

Our search for idempotent elements in ( ℳ( S ),⊲ ) commences with commutative binary operations within ℳ( S ) . 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 | S |=n , then the cardinality of the set of commutative binary operations in the magma monoid, ℳ( S ) is given by n n( n+1 ) 2 .

Definition: We define the following sets on the magma monoid:

Y={ ∗∈ℳ( S )|∗ is commutative and there is a j∈S         such that ∗( i,i )=j for all i∈S }

W={ ∗∈ℳ( S )|∗ is commutative and ∗( i,i )=i for all i∈S }

V={ ∗∈ℳ( S )|∗ is commutative and if ∗( i,j )=a         then ∗( a,a )≠a for all i,j,a∈S }

The set Y 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 Y is a two-sided ideal of ℳ( S ) .

2) Given ∗∈ℳ( S ) , if ∗∈Y then ∗ 2 ∈K , the set of all constant binary operations.

Proof.

1) Let ∗∈Y and choose k∈S such that ∗( x,x )=k for all x∈S . For ∘∈ℳ( S ) with ∘( k,k )=j , we have: ( ∗⊲∘ )( x,x )=j for all x∈S making ∗⊲∘ have a constant diagonal.

For x≠y , letting ∗( x,y )=∗( y,x )=z yields:

( ∗⊲∘ )( x,y )=∘( ∗( x,y ),∗( y,x ) )=∘( z,z ) and

( ∗⊲∘ )( y,x )=∘( ∗( x,y ),∗( y,x ) )=∘( z,z ).

Thus, ∗⊲∘ is commutative. Consequently, ∗⊲∘∈Y . A similar argument yields ∘⊲∗∈Y .

2) Given ∘∈Y , if j∈S is such that ∘( x,x )=j for all x∈S , we will show that ∘ 2 ( x,y )=j , for all x,y∈S . We have:

∘ 2 ( x,y )=∘( ∘( x,y ),∘( y,x ) )=∘( ∘( x,y ),∘( x,y ) ) , since ∘ is commutative. Therefore, ∘ 2 = c j , a constant operation, as claimed.

Proposition 9: Given ∗∈ℳ( S ) ,

1) if ∗∈W then ∗ is an idempotent operation.

2) if ∗∈Y then ∗ is an idempotent element if and only if it is a constant operation.

Proof.

1) Given ∗∈W and x,y∈S . We can easily verify that for all x∈S , ∗ 2 ( x,x )=x=∗( x,x ) and ∗ 2 ( x,y )=∗( x,y ) . Therefore, * is idempotent.

2) Given ∘∈Y and x,y∈S , we have two cases

(a) if ∘∈K , then ∘ 2 =∘ , so ∘ is idempotent;

(b) if ∘∉K , then by Proposition 8 ∘ 2 ∈K , so ∘ itself is not idempotent.

Hence, ∘ is idempotent if and only if it is a constant operation.

Proposition 10: Given ∗∈ℳ( S ) , if ∗∈V then ∗ is not an idempotent element.

Proof. Given ∘∈V , choose x,y,j,i∈S such that ∘( x,y )=j , ∘( j,j )=i , and i≠j . Then we have:

∘ 2 ( x,y )=∘( ∘( x,y ),∘( y,x ) )=∘( ∘( x,y ),∘( x,y ) )=∘( j,j )=i

Thus, ∘ 2 ( x,y )≠∘( x,y ) , since ∘ 2 ( x,y )=i and ∘( x,y )=j , and i≠j .

Whereas the idempotency of the commutative binary operations in ( ℳ( S ),⊲ ) 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 ∗∈ℳ( S ) with the properties:

1) ∗( x,y )≠∗( y,x ) for all x,y∈S (non-commutativity);

2) ∗( i,i )=i for all i∈S (idempotence on the diagonal).

Define a new binary operation ∘ on S as follows:

∘( a,b )={ j if a=b ∗( a,b ) otherwise

Then, the operation ∘ is also idempotent in ℳ( S ) .

Proof. Let ∗ be an idempotent, non-commutative binary operation that satisfies the idempotence on the diagonal condition. Choose ∘∈ℳ( S ) such that ∘( x,y )=∗( x,y ) for all x,y∈S with x≠y , and ∘( x,y )=j if x=y . We show ∘ is idempotent, i.e., ∘ 2 ( x,y )=∘( x,y ) for all x,y∈S .

We consider two cases:

1) x≠y for all x,y∈S :

∘ 2 ( x,y )=∘( ∘( x,y ),∘( y,x ) )=∘( ∗( x,y ),∗( y,x ) ) =∗( ∗( x,y ),∗( y,x ) )= ∗ 2 ( x,y )=∗( x,y )=∘( x,y ) .

Hence, ∘ 2 ( x,y )=∘( x,y ) .

2) x=y for all x,y∈S :

Let ∘( x,x )=j for all x∈S . Then ∘ 2 ( x,x )=∘( ∘( x,x ),∘( x,x ) )=∘( j,j )=j . Hence, ∘ 2 ( x,x )=∘( x,x ) .

Therefore, ∘ is idempotent.

Example: For a set S with three elements, the following operations are idempotent in ( ℳ( S ),⊲ ) :

Proposition 12:

Binary operations in ℳ( S ) that differ from the identity operation π 1 in exactly one entry are idempotent with respect to ⊲ .

Proof. Suppose there exists a pair ( a,b ) such that ∗( a,b )=t≠a and

∗( c,d )=c= π 1 ( c,d ) for all ( c,d )≠( a,b ) then, ∗( c,d )= π 1 ( c,d )=c and

∗⊲∗( c,d )=∗( ∗( c,d ),∗( d,c ) )=∗( c,d )=c . And

∗⊲∗( a,b )=∗( ∗( a,b ),∗( b,a ) )=∗( t,b )=t . □

Theorem 13:

Let T be a subset of S with cardinalities | S |=n and | T |=m . Suppose ∗ is an idempotent binary operation in ℳ( T ) with an element l∈T such that ∗( l,l )=l . Then, the binary operation ⊙ defined on ℳ( S ) as follows is also idempotent:

⊙( x,y )={ ∗( x,y ) if ( x,y )∈T×T l if ( x,y )∉T×T

Proof. See [2] □

We characterize the idempotent and non-idempotent elements in ( ℳ( S ),⊲ ) 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 ( | S |≥3 ):

  • All constant operations;

  • All the elements in the set W ;

  • The identity;

  • Operations that differ from the identity by only one entry;

  • Idempotents derived from the set with n−1 elements.

The following operations in ℳ( S ) are non-idempotents:

  • Non-identity unitary operations;

  • Almost constant operations;

  • All elements of the set V ;

  • All the elements in the set Y\K ;

  • 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 W . 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 Y 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 ℳ( S ) , where the underlying set S has n elements.

Proposition 14: For | S |=n≥3 , let ℐ⊂( ℳ( S ),⊲ ) denote the set of all idempotent elements in the magma monoid. Then, the following inequality holds:

n+ ∑ m=1 n ( n m ) m ( m 2 ) m≤| ℐ |≤ n n 2 −( n 2 )!n! 2 ( n 2 ) +1

Example: For n=2 , 8≤| I |≤13 ; For n=3 , 101≤| I |≤19540 .

3. Main Results

To gain insight into the structure of ℳ( S ) for arbitrary sets S , we first examine the specific cases of ℳ( 2 ) and ℳ( 3 ) , where 2={ 0,1 } and 3={ 0,1,2 } , as these small, finite cases provide a concrete foundation for understanding the general pattern and properties of ℳ( S ) .

3.1. Order of Elements for ℳ( 2 ) and ℳ( 3 )

Extending our previous analysis in Section 2, this section presents our results on the order of elements in the magma monoid for | S |=2 and | S |=3 . 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 ℳ( S ) can be categorized into the following six classes for both | S |=2 and | S |=3 :

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 | S |=2 , the magma monoid contains seven idempotent elements, which form the set

ℐ={ 0,4,8,12,13,14,15 }

These idempotents can be further classified into:

1) Identity: 12

2) Constant operations: { 0,15 }

3) Elements from the set W : { 8,14 }

4) Operations that are one entry different from the identity: { 4,13 }

Lemma 17: For | S |=2 , the element in the magma monoid of order 2 are categorized as follows:

1) Non-identity elements: { 3,5,10 }

2) Almost-constant operations: { 1,7 }

3) Commutative and unique square operations: { 6,9 }

4) Non-commutative and unique square operations: { 2,11 }

Theorem 18 For | S |=2 , if ∗∈ℳ( S ) , then the order of ∗ satisfies 1≤〈 ∗ 〉≤2

Proof. By Lemmas 16 and 17, we have exhaustively classified all the possible elements in ℳ( S ) . Hence, any element ∗∈ℳ( S ) 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 ℳ( S ) is not a monogenic semigroup when | S |=2 , since every element has order 1 or 2.

Following from Definition 1.2 and Theorem 18, we can classify the elements of ℳ( 2 ) into the following idempotent classes, along with their respective elements (see Example 1.1 for the corresponding operations, denoted by numbers):

1) K 0 ={ 0,6 }

2) K 4 ={ 2,4 }

3) K 8 ={ 7,8 }

4) K 12 ={ 3,5,10,12 }

5) K 13 ={ 11,13 }

6) K 14 ={ 1,14 }

7) K 15 ={ 9,15 }

Proposition 19: For any set S with exactly 2 elements and any operation ∗∈ℳ( 2 ) , the set K * forms a commutative subsemigroup of ℳ( 2 ) .

Proposition 20: Given a commutative binary operation ∗∈ℳ( S ) for | S |=3 , there exists an idempotent operation e∈ℳ( S ) such that ∗ n =e for some n with 1≤n≤4 .

Proof. Consider a commutative binary operation ∗ in the semigroup ( ℳ( S ),⊲ ) , and let e∈ℳ( S ) 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 ℳ( S ) .

Case 1: If ∗( i,i )=i for all i∈S , then ∗∈ T I ⊆ℳ( S ) and, by Proposition 9 ∗ is idempotent. Hence, ∗=e .

Case 2: If ∗( i,i )=j for all i∈S with i≠j , then ∗∈ T K and, by Proposition 10 ∗ 2 ∈K . Hence, ∗ 2 =e .

Case 3: For i,j,k∈S , let ∗( i,i )=i,∗( j,j )=j and ∗( k,k )≠k . Then, we can easily verify that ∗ is idempotent, i.e., ∗ 2 =∗ . Hence, ∗=e .

Case 4: For i,j,k∈S , let ∗( i,i )=i,∗( j,j )≠j and ∗( k,k )≠k . If we choose ∗( j,j )=k , ∗( k,k )=j , then we have ∗ 2 ( j,j )=j and ∗ 2 ( k,k )=k , so ∗ 2 ( i,i )=i for all i∈S . Thus ∗ 2 is idempotent by Proposition 9. Similarly, if we choose either ∗( j,j )=i or ∗( k,k )=i , then we have

∗ 2 ( i,i )= ∗ 2 ( j,j )= ∗ 2 ( k,k )=i and so ∗ 2 ∈ T K and by Proposition 10,

( ∗ 2 ) 2 ∈K . Therefore, ∗ 4 =e .

Case 5: For i,j,k∈S such that ∗( i,i )≠i for all i∈S , and ∗( i,i ),∗( j,j ) and ∗( k,k ) are pairwise distinct. If we choose ∗( i,i )=j , ∗( j,j )=k and ∗( k,k )=i then we can verify that ∗ 3 ( i,i )=i for all i∈S . Therefore, ∗ 3 =e .

Case 6: For i,j,k∈S , such that ∗( i,i )≠i for all i∈S , and two of the diagonal elements ∗( i,i ),∗( j,j ) and ∗( k,k ) assume the same value. If we choose *( i,i )=*( k,k )=j and *( j,j )=k then ∗ 2 ( i,i )=k , ∗ 2 ( j,j )=j and ∗ 2 ( k,k )=k . Thus, from Case 2, ∗ 2 is idempotent, and therefore ∗ 2 =e .

The configurations of the diagonal elements examined above cover all possible cases of commutative binary operations.

Theorem 21: For | S |=3 , if ∗∈ℳ( S ) is a commutative binary operation, then the order of ∗ satisfies 1≤| 〈 ∗ 〉 |≤7 .

Proof. By Proposition 20, if e is an idempotent element in ℳ( S ) then there exists an integer n such that ∗ n =e where 1≤n≤4 . We now examine the following cases to determine the order of ∗ :

Case 1: If ∗=e then ∗ n =e for all n≥1 , so 〈 ∗ 〉={ ∗ } and | 〈 ∗ 〉 |=1 .

Case 2: If ∗ 2 =e , then ∗ 2n = ∗ 2 =e for all n≥1 so we have

〈 ∗ 〉={ { ∗, ∗ 2 } if  ∗ 3 =∗ { ∗, ∗ 2 , ∗ 3 } otherwise

so 2≤| 〈 ∗ 〉 |≤3 .

Case 3: If ∗ 3 =e , then | 〈 ∗ 〉 | is either 3 or 5 since

〈 ∗ 〉={ { ∗, ∗ 2 , ∗ 3 } if  ∗ 4 =∗ { ∗, ∗ 2 , ∗ 3 , ∗ 4 , ∗ 5 } otherwise

Case 4: If ∗ 4 =e , then 4≤| 〈 ∗ 〉 |≤7 since

〈 ∗ 〉={ { ∗, ∗ 2 , ∗ 3 , ∗ 4 } if  ∗ 5 =∗ { ∗, ∗ 2 , ∗ 3 , ∗ 4 , ∗ 5 } or { ∗, ∗ 2 , ∗ 3 , ∗ 4 , ∗ 5 , ∗ 6 } or { ∗, ∗ 2 , ∗ 3 , ∗ 4 , ∗ 5 , ∗ 6 , ∗ 7 } otherwise

Therefore, we have shown that the order of any commutative binary operation ∗ on a set S with | S |=3 is bounded between 1 and 7, inclusive.

Proposition 22: Given a non-commutative binary operation ∗∈ℳ( S ) for | S |=3 the following hold:

1) If ∗( i,i )=i for all i∈S and ∗ is not a unit, then there exists an idempotent operation e∈ℳ( S ) such that ∗ n =e for some n with 2≤n≤4 .

2) If ∗( i,i )=j for all i∈S , then there exists an idempotent operation e∈ℳ( S ) such that ∗ n =e for some n with 2≤n≤4 .

3) If there exists j∈S such ∗( i,j )=j=∗( j,i ) for all i∈S then there exists an idempotent operation e∈ℳ( S ) , such that ∗ 2 =e .

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 ( ℳ( S ),⊲ ) is less than or equal to 144 (See Example 2.2).

Remark: For any operation ∗ on the set S with | S |=3 , the order of the subsemigroup generated by ∗ is at most 144, i.e., | 〈 ∗ 〉 |≤144 .

3.2. Order of an Element ∗∈ℳ( S )

Proposition 23: For any element ∗∈ℳ( S ) , the order of the subsemigroup generated by ∗ is strictly less than the cardinality of ℳ( S ) , i.e., | 〈 ∗ 〉 |<| ℳ( S ) | . In other words, ℳ( S ) is not generated by any single element.

Proposition 24: The magma monoid, ( ℳ( S ),⊲ ) is not a monogenic semigroup.

Proposition 25:

1) The order of the subsemigroup generated by an operation ∗∈ℳ( S ) is 1 if and only if ∗ is idempotent.

2) The order of every almost-constant operation, c i ( a ) , is 2.

Proposition 26: Let e be an idempotent element in ℳ( S ) if ∗⊲∗=e then, either

1) ∗ 3 =∗ in which case ∗ generate a subsemigroup of two elements, { ∗, ∗ 2 } .

2) ∗ 3 =∘ in which case ∗ generates a subsemigroup of three elements, { ∗, ∗ 2 , ∗ 3 } .

Proof. If ∗⊲∗=e then the element ∗ has a cyclic pattern of order 4 where ∗ 4 = ∗ 2 and, ∗ n = ∗ n( mod4 ) for all n≥5 . This implies that the powers of ∗ are periodic, with ∗ n ∈{ ∗, ∗ 2 , ∗ 3 } . Consequently, the subsemigroup generated by ∗ has only two possible forms:

1) If ∗ 3 =∗ then the subsemigroup is, 〈 ∗ 〉={ ∗, ∗ 2 } .

2) Otherwise, the subsemigroup is 〈 ∗ 〉={ ∗, ∗ 2 , ∗ 3 } .

3.3. Minimal Spanning Set of ℳ( S )

Let S be a set with | S |=n . The monoid ℳ( S ) exhibits the following decomposition properties:

1) ℳ( S ) decomposes into commutative and non-commutative elements.

2) The commutative subset is closed under ⊲ and forms a two-sided ideal, implying it cannot generate ℳ( S ) .

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, DCC∪DCR is a finitely generated subgroup of U 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 ℳ( S ) consists of at least four elements.

Proposition 27: For n=2 , the set T={ 1,2,3,5 } spans ℳ( S ) , and it is a minimal generating set.

Proof. We can decompose the elements of ℳ( 2 ) into the following:

1) Units: { 3,5,10,12 } (distinct constant row/column permutations).

2) Non-units, Non-commutative: { 2,4,11 } .

3) Commutative: { 0,1,6,7,8,9,14,15 } .

The set T={ 1,2,3,5 } generates ℳ( 2 ) where

1) Units: { 3,5 } generate { 3,5,10,12 } .

2) Non-unit, Non-commutative: { 2 } combined with { 3,5 } generates { 2,4,11 } .

3. Commutative: { 1 } , combined with { 1,3,5 } 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 ℳ( 2 )\T={ 0,4,6,7,8,9,10,11,12,13,14,15 } :

1⊲2=0,2⊲2=4,2⊲( 1⊲1 )=6,3⊲1=8

3⊲( 1⊲1 )=7,2⊲1=9,3⊲5=10,2⊲5=11

3⊲3=12,2⊲3=13,1⊲1=14,1⊲2⊲3=15.

T={ 1,2,3,5 } forms a minimal generating set for ℳ( 2 ) .

Remark: For | S |=2 , the minimal generating set T is not unique. Specifically, T={ 1,3,5,11 } also generates ℳ( 2 ) , demonstrating non-uniqueness.

4. Conclusion

This study provides a comprehensive analysis of the magma monoid ( ℳ( S ),⊲ ) , shedding light on the algebraic structures of idempotents, almost constant operations, and units. The classification of elements for | S |=2 and | S |=3 , 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.

Conflicts of Interest

The author declares no conflicts of interest regarding the publication of this paper.

References

[1] López-Permouth, S.R., Owusu-Mensah, I. and Rafieipour, A. (2021) Distributivity Relations on the Binary Operations over a Fixed Set. Communications in Algebra, 49, 5093-5108.[CrossRef]
[2] López-Permouth, S.R., Owusu-Mensah, I. and Rafieipour, A. (2022) A Monoid Structure on the Set of All Binary Operations over a Fixed Set. Semigroup Forum, 104, 667-688.[CrossRef]
[3] Kim, H.S. and Neggers, J. (2008) The Semigroups of Binary Systems and Some Perspectives. Bulletin of the Korean Mathematical Society, 45, 651-661.[CrossRef]
[4] Fayoumi, H.F. (2011) Locally-Zero Groupoids and the Center of . Communications of the Korean Mathematical Society, 26, 163-168.
[5] Owusu-Mensah, I. (2025) Commuting Map on Semigroup of Binary Operations. Journal of Mathematics and Computer Science, 15, 1-12.
[6] Kim, H.S., Neggers, J. and Ahn, S.S. (2018) A Method to Identify Simple Graphs by Special Binary Systems. Symmetry, 10, Article 297.[CrossRef]
[7] Nebeský, L. (1998) An Algebraic Characterization of Geodetic Graphs. Czechoslovak Mathematical Journal, 48, 701-710.[CrossRef]
[8] Nebeský, L. (2000) A Tree as a Finite Nonempty Set with a Binary Operation. Mathematica Bohemica, 125, 455-458.[CrossRef]
[9] Nebeský, L. (2006) Travel Groupoids. Czechoslovak Mathematical Journal, 125, 455-458.
[10] Kelarev, A.V. and Sokratova, O.V. (2000) Syntactic Semigroups and Graph Algebras. Bulletin of the Australian Mathematical Society, 62, 471-477.[CrossRef]
[11] Owusu-Mensah, I. (2020) Algebraic Structures on the Set of All Binary Operations over a Fixed Set. Ph.D. Thesis, Ohio University.
https://etd.ohiolink.edu/acprod/odb_etd/ws/send_file/send?accession=ohiou1584490788584639&disposition=inline
[12] Aydoğdu, P., López-Permouth, S.R. and Muhammad, R.A. (2020) Infinite-Dimensional Algebras without Simple Bases. Linear and Multilinear Algebra, 68, 2390-2407.[CrossRef]
[13] Díaz-Boils, J. and López-Permouth, S.R. (2022) The Isomorphism Problem for Graph Magma Algebras. Communications in Algebra, 50, 4822-4841.[CrossRef]
[14] Aydoğdu, P., Díaz Bolls, J., López-Permouth, S.R. and Muhammad, R.A. (2022) Two Value Graph Magma Algebras and Amenabilityx. In: Springer Proceedings in Mathematics & Statistics, Springer, 383-400.[CrossRef]
[15] López-Permouth, S.R. and Stanley, B. (2019) Graph Magma Algebras Have no Projective Bases. Linear and Multilinear Algebra, 69, 1997-2005.[CrossRef]
[16] Howie, J.M. (2003) Fundamentals of Semigroup Theory. LMS Monographs New Series Clarendon Press.
[17] Clifford, A.H. and Preston, G.B. (1961) Algebraic Theory of Semigroups Vol I. Mathematical Surveys No. 7. American Mathematical Society.
[18] Schwarz, Š. (1953) Contribution to the Theory of Torsion Semigroups. Czechoslovak Mathematical Journal, 3, 7-21.[CrossRef]
[19] Miller, D.W. (1983) Some Aspects of Green’s Relations on Periodic Semigroups. Czechoslovak Mathematical Journal, 33, 537-544.[CrossRef]
[20] Brough, T. and Cain, A.J. (2017) Automaton Semigroups: New Constructions Results and Examples of Non-Automaton Semigroups. Theoretical Computer Science, 674, 1-15.[CrossRef]

Copyright © 2026 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.