3. Cubic Subgroupoids and Cubic Ideals
In this section, we introduce the concepts of cubic groupoids and cubic ideals of a groupoid, and obtain their various properties and give some examples related to them. We define the level set of a cubic set of a groupoid and we give the relationship between a cubic subgroupoid of a groupoid and its level set. Additionally, we obtain the relationship between a cubic left ideal (resp., right ideal and ideal) and its level set. Moreover, we provide a sufficient condition that the image of a cubic subgroupoid (resp., left ideal, right ideal and ideal) under a groupoid homomorphism is also a cubic subgroupoid (resp., left ideal, right ideal and ideal).
Definition 5 ([
30]). 
For a groupoid , let . Then, the product  of A and B is a fuzzy set in X defined as follows: for each , Definition 6 ([
31]). 
For a groupoid , let . Then, the product  of  and  is an IVFS in X, defined as follows: for each , By using the definitions of the inf and the sup of cubic numbers, we can define the product of two cubic sets as follows.
Definition 7. For a groupoid , let . Then, two types product of  and , denoted by  and , are cubic sets in X defined as follows: for each ,  Remark 1. From Definitions 5–7, we can easily see that the following holds:
(1) 
(2)  where  Example 1. Let  be the groupoid with the following Cayley table (see Table 1): Consider two octahedron sets  and  in X, respectively given by: Then, we can easily calculate  and  (see Table 2):   is called a 
fuzzy point with the support 
 and the value 
 with 
 (See [
32]), if for each 
,
      
We denote the set of all fuzzy points in X by .
It is well known [
33] that 
 for each 
.
 is called an 
interval-valued fuzzy point (briefly, IVFP) with the support 
 and the value 
 with 
 (see [
28]), if for each 
,
      
We denote the set of all IVFPs in X by .
It is well known [
28] that 
 for each 
.
Definition 8 ([
34]). 
Let  and let  be any cubic number such that  and . Then,  is called a cubic point in X with the support  and the value , denoted by , if for each ,The set of all cubic points in X is denoted by . It is clear that .
 Definition 9 ([
34]). 
Let  and let .(i)  is said to P-belong to , denoted by , if
 and , i.e.,  and .
(ii)  is said to R-belong to , denoted by , if
 and , i.e.,  and .
It is obvious that  and  for each 
 Proposition 1. For a groupoid , let  and let . Then, we have
(1) 
(2) , .
 Proof.   (1) The proofs are straightforward from Definition 7, Remark 1, Proposition 3.2 (a) in [
31] and Proposition 1.1 (i) in [
30].
(2) The proof of the first part follows from Definition 7, Remark 1, Proposition 3.2 (b) in [
31] and Proposition 1.1 (ii) in [
30]. Then, we prove only the second part. From Remark 1 (2), it is sufficient to show that 
Let 
. For each 
, we may suppose that there are 
, such that 
 and 
 without loss of generality. Then, we can easily check that
        
Since 
 and 
, we get
        
Thus,  So .    □
 The following are the immediate consequences of Definition 7.
Proposition 2. Let  be a groupoid.
(1) If “·" is associative (resp., commutative) in X, then so are “" and “" in .
(2) If “·" has an identity , then we have
  ()  is an identity of “" in , i.e.,
 for each ,
  ()  is an identity of “" in , i.e.,
 for each .
 Definition 10. For a groupoid , let . Then,
(i)  is called a P-cubic subgroupoid in X, if , i.e., (ii)  is called an R-cubic subgroupoid in X, if , i.e.,   [resp., ] denotes the set of all P-[resp., R-] cubic subgroipoids in X. In (ii), if , then A is called a fuzzy anti-subgroupoid in X and  denotes the set of all fuzzy anti-subgroupoids in X.
Let 
 [resp., 
] denote the set of all fuzzy [resp., interval-valued fuzzy] subgroupoids in a groupoid 
X in the sense of Liu [
30] [resp., Kang and Hur [
31]].
Remark 2.
(1) For a groupoid X, let  Then,
  (1)  if and only if ,
  (1)  if and only if .
(2) If A is a subgroupoid of a groupoid X, then we can easily see that (3) For a groupoid X, let . If , then clearly, (4) For a groupoid X, let . If , then (5) For a groupoid X, it is clear that for each  [resp., ] and each , where  is any composite of x’s.
(6) For a groupoid X, let  be any cubic number. Then,  and 
Example 2.(1) Let  be the groupoid and  be the cubic set in X given in Example 1. Then, we can easily calculate that Thus,  and .
(2) Let  be the groupoid with the following Cayley table (see Table 3): Consider the cubic sets  in X defined as follows: Then, we can easily check that  and .
From Definitions 7 and 10, Proposition 2 (1) and Remark 2 (1), we obtain the following consequence.
Proposition 3. For a groupoid , let . Then, the following are equivalent:
(1) ,
(2) for any ,  i.e.,  is a groupoid,
(3) for any ,  i.e.,
  (i) 
  (ii) 
 From Remark 2 (1) and the above Proposition, it is obvious that  is a groupoid if and only if  and  are groupoids.
Proposition 4. For a groupoid , let .
(1) 
If “·” is associative in X, then so is “” in , i.e., for any (2) 
If “·" is commutative in X, then so is “" in , i.e., for any (3) 
If “·" has an identity , then for each  From Definitions 7 and 10, Proposition 2 (1) and Remark 2 (1), we have the following.
Proposition 5. For a groupoid , let . Then, the following are equivalent:
(1) ,
(2) for any ,  i.e.,  is a groupoid,
(3) for any ,  i.e.,
(i) 
(ii) 
 Proposition 6. For a groupoid , let .
(1) 
If “·" is associative in X, then so is “" in , i.e., for any (2) 
If “·" is commutative in X, then so is “" in , i.e., for any (3) 
If “·" has an identity , then for each  Definition 11. For a groupoid , let . Then,  is called a:
(i) P-cubic left ideal (briefly, PCLI) of X, if for any , (ii) P-cubic right ideal (briefly, PCRI) of X, if for any , (iii) P-cubic ideal (briefly, PCI) of X, if it is both a PCLI and a PCRI of X,
(iv) R-cubic left ideal (briefly, RCLI) of X, if for any , (v) R-cubic right ideal (briefly, RCRI) of X, if for any , (vi) R-cubic ideal (briefly, RCI) of X, if it is both an RCLI and an RCRI of X.
We will denote the set of all PCIs [resp., PCLIs, PCRIs, RCIs, RCLIs and RCRIs] of X as  [resp., , , ,  and ].
 For a groupoid 
X, let 
 [resp., 
 and 
] and 
 [resp., 
 and 
] denote the set of all fuzzy ideals [resp., left ideals and right ideals] (See [
35]) and the set of all IVFIs [resp., IVLIs, IVRIs] (See [
31]) of 
X.
Remark 3. From Definition 11, we have the following (a)–(f).
(a)  for any , Consequently, .
(b)  and A satisfies the condition (3), The fuzzy set A satisfying the condition (3) will be called a fuzzy left anti-ideal in X, and we denote the set of all fuzzy left anti-ideals in X as 
(c)  for any , Consequently, 
(d)  and A satisfies the condition (5), The fuzzy set A satisfying the condition (5) will be called a fuzzy right anti-ideal in X and we denote the set of all fuzzy anti-right ideals in X as 
(e)  for any , consequently, .
(f)  and A satisfies the condition (7), The fuzzy set A satisfying the condition (7) will be called a fuzzy anti-ideal in X, and we denote the set of all fuzzy anti-ideals in X as 
(g) For a groupoid X, let . If  [resp.,  and ], then  [resp.,  and ] and  [resp.,  and ].
(h) For a groupoid X, let . If  [resp.,  and ], then  [resp.,  and ] and  [resp.,  and ].
(i) For a groupoid X, let . If  [resp.,  and ], then  [resp.,  and ] and  [resp.,  and ]
 Remark 4. (1) For a groupoid X, let  be any cubic number. Then, 
 and 
(2) A PCLI [resp., PCRI, PCI, RCLI, RCRI and RCI] in a semigroup S, a group G and a ring R is defined as Definition 11.
(3) It is obvious that  for each  [resp.,  and ] and  for each  [resp.,  and ] but the converses are not true in general (see Example 3 (1)).
 Example 3. (1) Let  be the groupoid and  given in Example 2 (2). Then, clearly, . Thus, . So .
(2) Let  be the groupoid with the following Cayley table (see Table 4): Consider two cubic sets  and  in X given by: Then, we can easily calculate that  and . But . Thus, . So  and .
(3) Let  be the groupoid with the following Cayley table (see Table 5): Consider two cubic sets  and  in X given by: Then, we can easily check that  and . however, . Thus, . So  and .
 Theorem 1. For a groupoid X, let .
(1)  [resp.,  and ] if and only if A is a left ideal [resp., a right ideal and an ideal] of X.
(2)  [resp.,  and ] if and only if A is a left ideal [resp., a right ideal and an ideal] of X.
 Proof.  (1) The proof follows from Propositions 3.7, 6.6 in [
31] and 3.2 in [
35].
(2) The proof is similar to (1).    □
 Definition 12. Let  be any cubic number and let . Then, four subsets , ,  and  of X are defined as follows: In this case,  [resp., ,  and ] is called a P-- [resp., a strong P--, an R-- and a strong R--] level set of . In particular, we will denote the subset  of X as .
 Jun et al. [
19] called the subset 
 of 
X a 
cubic level set of 
.
Proposition 7. Let  be any cubic numbers and let .
(1) If , then  and .
(2) If , then  and .
 Proof.  The proofs are straightforward from Definitions 2 and 12.    □
 Theorem 2. For a groupoid X, let  and let  or  for each cubic number .
(1)  if and only if  is a subgroupoid.
(2) [resp.,  and ] if and only if  is a left ideal[resp., a right ideal and an ideal].
(3)  if and only if  is a subgroupoid.
(4) [resp.,  and ]if and only if  is a left ideal[resp., a right ideal and an ideal].
 Proof.  (1) Suppose  and let . Then, clearly,  and . Thus, by the hypothesis,  So . Hence,  is a subgroupoid.
Conversely, suppose 
 is a subgroupoid and let 
, say 
 Then clearly, 
 and 
. Moreover, by Proposition 7 (1), 
 Thus, 
 By the hypothesis, 
 So, we have
        
Hence, .
(2) The proof is similar to (1).
(3) Suppose 
 and let 
. Then, clearly, 
 and 
. Thus, we have
        
According to the hypothesis, we get  So . Hence,  is a subgroupoid.
Conversely, suppose 
 is a subgroupoid and let 
, say 
 Then, clearly, 
 and 
. Moreover, by Proposition 7 (2), 
 Thus, 
 According to the hypothesis, 
 So, we have
        
Hence, .
(4) The proof is similar to (3).    □
 Proposition 8. For a groupoid X, the following holds:
(1) If , then .
(2) If , then .
 Proof.  (1) The proof is obvious from Propositions 3.7 in [
31] and 3.1 in [
35].
(2) Suppose 
. According to Proposition 3.7 in [
31], 
 It is sufficient to show that for any 
,
        
Since 
 for each 
, by Proposition 5 (3),
        
Thus,  So, according to Proposition 5,     □
 Remark 5. For any  [resp., ],  [resp., ] in general.
 Example 4. Let  be the groupoid and  given in Example 3 (1). Consider two cubic sets  and  in X defined as follows: for each , Then, we can easily see that . Moreover, we have Thus,  So 
 Remark 6. For a groupoid X, let  [resp., . Then, from Proposition 8, we can easily see that In this case, we will denote  [resp., ] as  [resp., ].
It is obvious that  [resp., ] is a complete lattice with the least element  [resp., ] and the greatest element  [resp., , where for each  [resp., ], the inf and the sup of  are  [resp.,  and  [resp., ].
 The following is an immediate consequence of Proposition 8.
Corollary 1. For a groupoid X, let  and let Then, [resp., ].
In this case,  [resp., ] is called the P-[resp., R-]cubic subgroupoid in X generated by.
 Proposition 9. For a groupoid X, let  be the subgroupoid generated by A and let [resp., 
]
, where . Then, we get  Proof.  From Remark 2 (2) and Corollary 1, it is obvious that 
 [resp., 
]. Let 
 [resp., 
] such that 
 [resp., 
]. Then, clearly, for each 
Since 
 [resp., 
], we have: for any for any 
,
        
Thus 
 [resp., 
]. So, we get
        
We can easily show that  [resp., ]. Hence, the results hold.    □
 From the above Proposition, the subgoupoid lattice of 
X can be regarded as a sublattice of the cubic subgroupoid lattice of 
X. The following is an immediate consequence of Remark 3 and Proposition 3.3 in [
35].
Proposition 10. For a groupoid X, let [resp., , , ,  and ]. Then [resp.,  and ], [resp.,  and ]and [resp.,  and ], [resp.,  and ].
 Proposition 11. Let  be a groupoid homomorphism and let .
(1) If [resp., ], then [resp., ].
(2) If [resp., , , ,  and ], then [resp., , , ,  and .
 Proof.  (1) Suppose 
. Then, from Propositions 3.9 (
c) in [
31] and 4.1 in [
35], 
 and 
. Thus, according to Remark 2 (1), 
.
Now, suppose . Since , it is sufficient to show that  is a fuzzy anti-subgroupoid of X. Let . Then, we have
 (Since f is a groupoid homomorphism).
 (Since B is fuzzy anti-groupoid of Y).
Then,  is a fuzzy anti-subgroupoid of X. Thus, according to Remark 2 (1), .
(2) Suppose  and let . Since , it is sufficient to show that  is a fuzzy anti-left ideal of X. Let . Then, we have
 (Since B is a fuzzy anti-left ideal of X).
Thus,  is a fuzzy anti-left ideal of X. So, by Remark 3 (2), . The remainder’s proofs are similar.    □
 Definition 13. Let . Then, we say that  has the P-sup-property [resp., R-sup-property], if for each , there is , such that It is clear that  has the P-sup-property if and only if  and A have the sup-property. Furthermore, if  takes on only finitely many values, then it has the P-sup-property [resp., R-sup-property]. Jun et al. [19] called “ has the R-sup-property" as  has the cubic property.  Proposition 12. Let  be a groupoid homomorphism, let  has the P-sup-property [resp., R-sup-property].
(1) If [resp., ], then [resp., ].
(2) If [resp., , , ,  and ], then [resp., , ]and [resp., , ].
 Proof.  (1) Let 
 have the P-sup-property and suppose 
. Then, according to Remark 2 (1), 
 and 
. Thus, according to Propositions 3.11 in [
31] and 4.2 in [
35], 
 and 
. So, 
.
Now, let  have the R-sup-property and suppose . Since , it is sufficient to prove that  is a fuzzy anti-subgroupoid of Y Let . Then, we have
(i)  and , (ii)  and ,
(iii)  and , (iv)  and .
We prove only the case (i) and omit the remainders. Since 
 has the R-sup-property, there are 
 and 
 such that
        
Then,
 (Since ).
 (Since A is a fuzzy anti-subgroupoid).
.
Thus,  is a fuzzy anti-subgroupoid in Y. So, .
(2) Since the proof is similar to (1), the proofs are omitted.    □
 Definition 14. Let  be a mapping and let . Then,  is said to be f-invariant, if for any ,  implies 
 It is obvious that  is f-invariant if and only if  and A are f-invariant. Moreover, we can easily see that if  is f-invariant, then  and 
Example 5. Let  be sets and  be the mapping defined by  and . Consider two IVI-octahedron sets  in X given by: Then, we can easily check that  is invariant but  is not invariant. Moreover, we can easily confirm that  and 
   4. Cubic Subgroups and Cubic Normal Subgroups
Throughout this section and the next section, G and  are grouped with the identities e and , respectively, unless mentioned.
Definition 15. Let S be a semigroup and . Then,  is called a P- [resp., an R-]cubic subsemigroup of S, if it satisfies the following condition: for any , For each , if  for any , then A will be called a fuzzy anti-subsemigroup of S.
 Definition 16. Let . Then,  is called a P- [resp., R-]cubic subgroup of S, if it satisfies the following conditions: for any , We will denote the set of all P- [resp., R-]cubic subgroups of G as  [resp., ]. An R-cubic subgroup was called a cubic subgroup by Jun et al. [19].  Let us denote the set of all interval-valued fuzzy subgroups (See [
36]) [resp., fuzzy subgroups (See [
35]) and fuzzy anti-subgroups (See [
37]) of 
G as 
 [resp., 
 and 
].
Remark 7. (1) For each ,
  (a) 
  (b) 
(2) For each .
  (a)  if and only if H is a subgroup.
  (b)  if and only if H is a subgroup.
(3) Let . If , then  and .
(4) Let . If , then we have (5) Let  If , then we get  Example 6. Consider the additive group . Let  and  be the cubic sets in , defined as follows: for each , Then, we can easily check that  and 
 Proposition 13. If , then .
(2) If , then .
 Proof.  (1) The proof follows from Propositions 4.3 in [
31] and 5.2 in [
35].
(2) From Proposition 8 (2), it is clear that . Then, it is sufficient to prove that  for each . Let . Then, we have
 (Since ).
Thus 
 So, according to Remark 7 (
b) and Proposition 4.3 in [
31], 
.    □
 Proposition 14. (1) If , then , i.e.,  for each 
(2) (See Proposition 3.6, [
19]) 
If , then , i.e.,  for each  Proof.  (1) The proof follows from Propositions 3.1 (i) in [
36] and 5.4 in [
35].
(2) See the proof of Proposition 3.6 in [
19].    □
 Proposition 15. (1) If , then , i.e.,  for each 
(2) (See Proposition 3.7, [
19]) 
If , then , i.e.,  for each  Proof.  (1) The proof follows from Propositions 3.1 (ii) in [
36] and 5.4 in [
35].
(2) See the proof of Proposition 3.7 in [
19].    □
 Theorem 3. (1)  if and only if , i.e.,  for each 
(2) (See Theorem 3.10, [
19]) 
 if and only if , i.e.,  for each  Proof.  The proof follows from Propositions 3.2 in [
36] and 5.6 in [
35].
(2) See the proof of Theorem 3.10 in [
19].    □
 The following can be easily seen.
Proposition 16. If [resp., ], then [resp., .]
 Proposition 17. (1) Let . If  for any  then , i.e., 
(2) (See Proposition 3.7, [
19]) 
If  for any  then , i.e.,  Proof.  (1) The proof follows from Propositions 4.7 in [
31] and 5.5 in [
35].
(2) See the proof of Proposition 3.7 in [
19].    □
 Proposition 18. For each , consider the subset  of G defined as follows: If [resp., ], then  is a subgroup of G.
 Proof.  (The proof of the first part follows from Proposition 4.6 in [
31] and Corollary of 5.4 in [
35]. For the proof of second part, see Theorem 3.11 in [
19].    □
 Theorem 4. Let  and let  and  for any cubic number .
(1)  if and only if  is a subgroup of G.
(2)  if and only if  is a subgroup of G.
 Proof.  (1) The proof is straightforward from Propositions 4.16, 4.17 in [
31] and Theorems 2.1, 2.2 in [
38].
(2) See the proof of Theorem 3.12 in [
19].    □
 Proposition 19. (1) Every [resp.,  and ]is a constant.
(2) Every [resp.,  and ]is a constant.
 Proof.  (1) The proof is straightforward from Propositions 4.14 in [
31] and 5.9 in [
35].
(2) The proof is similar to (1).    □
 Proposition 20. let  be a group homomorphism. If [resp., ], then [resp., ].
 Proof.  From Propositions 3.4 in [
36] and 5.8 in [
35], the proof of the first part is easy. For the proof of the second part, see Theorem 3.13 (2) in [
19].    □
 Proposition 21. let  be a group homomorphism and let .
(1) If  and  have the P-sup-property, then .
(2) If  and  have the R-sup-property, then .
 Proof.  (1) The proof follows from Propositions 4.11 (
b) in [
31] and 5.8 in [
35]
(2) See Theorem 3.13 (1) in [
19].    □
 Definition 17. Let . Consider the following condition: Then,  is called:
(1) a P-cubic normal subgroup (briefly, PCNG) of G, if  and (10) holds,
(2) an R-cubic normal subgroup (briefly, RCNG) of G, if  and (10) holds.
We will denote the set of all PCNGs [resp., RCNGs] of G as  [resp., ].
 Let us denote the set of all interval-valued fuzzy normal subgroups [resp., fuzzy normal subgroups and fuzzy anti-normal subgroups] of G as  [resp.,  and ]
Remark 8. (1) Let G be a commutative group and let  [resp., ]. Then,  [resp., ].
(2)  if and only if  and .
(3)  if and only if  and .
 Example 7. Consider the general linear group of degree n. Then, clearly,  is a noncommutative group. Let  be the cubic sets in  as follows: for any , where  is the unit matrix, is the unit matrix, Then, we can easily check that  and .
 Proposition 22. Let .
(1) If , then 
(2) If , then 
 Proof.  (1) The proof is straightforward from Propositions 5.2 in [
31] and 2.1 (i) in [
30].
(2) Suppose  and let . Then, we have
 [By Remark 1 (2)]
 [By the hypothesis]
Thus, by Remark 1 (2) and Proposition 5.2 in [
31], 
    □
 Proposition 23. Let .
(1) If  and , then 
(2) If  and , then 
 Proof.  (1) The proof follows from Propositions 5.3 in [
31] and 2.1 (ii) in [
30].
(2) Suppose  and . Then, from Definitions 7 and 10 (ii), we can easily see that  Thus, it is sufficient to show that  for each . Let . Then, we get
 (According to the second part of (10))
. (According to Proposition 22 (2))
Thus, 
 So, according to Proposition 4.3 in [
31] and Remark 7 (1), 
    □
 Proposition 24. Let .
(1) If , then 
(2) If , then 
 Proof.  (1) The proof is clear from Corollary 5.3 in [
31] and Theorem 3.11 in [
39].
(2) Since 
 by (Corollary 5.3 [
31]), it is sufficient to show that 
 Let 
. Then, there are 
 such that 
 Since 
, 
. Thus, we have
So  Hence,     □
 The following is an immediate consequence of Propositions 22, 16 and 24.
Corollary 2. [resp., ]is a semilattice (i.e., a commutative idempotent semigroup).
 Proposition 25. If [resp., ], then  is a normal subgroup of G.
In this case,  is called a cubic quotient group of G with respect to .
 Proof.  The proof is straightforward.    □
 Remark 9. It is obvious that if N is a normal subgroup of G, then  [resp., ] and .
 Proposition 26. Let . If [resp., ], then [resp., ], where  denotes the natural mapping.
 Proof.  The proof of the first part is straightforward from Propositions 5.6 in [
31] and 2.3 in [
30]. To prove the second part, let 
. Then, we have
        
        and
        
Thus, 
. So, according to Proposition 5.6 in [
31] and Definition 4, 
.    □
 Theorem 5. Let  and let  and  for any cubic number .
(1)  if and only if  is a normal subgroup of G.
(2)  if and only if  is a normal subgroup of G.
 Proof.  (1) From Theorem 4 (1), it is obvious that 
 if and only if 
 is a subgroup of 
G and 
 if and only if 
 is a subgroup of 
G. Moreover, 
 if and only if 
 is a normal subgroup of 
G (see Propositions 3.2 and 3.4 in [
40] and  [
41] respectively). Then, it is sufficient to prove that 
 if and only if 
 is a normal subgroup of 
G.
Suppose  and let , . Then,
 (According to the hypothesis)
. (Since )
Thus, . So, according to Theorem 4 (1),  is a normal subgroup of G.
Conversely, suppose  is a normal subgroup of G. Assume that there are  such that , say . Then, there is a cubic number , such that . Thus,  but . This contradicts the normality of . So . Hence,  is normal.
(2) From 4 (2), it is obvious that  if and only if  is a subgroup of G and  if and only if  is a subgroup of G. Since  is normal if and only if  is normal by (1), it is sufficient to show that the fuzzy anti-subgroup A is normal if and only if  is normal.
Suppose 
 is normal and let 
, 
. Then, we have
        
Thus, . So  is normal. The proof of the converse is similar to the converse of (1).    □
 Proposition 27. let  be a group homomorphism. If [resp., ], then [resp., ].
 Proof.  The proof follows from Proposition 20, Definitions 4 and 17.    □
 Proposition 28. let  be a group homomorphism and let .
(1) If  and  has the P-sup-property, then .
(2) If  and  has the R-sup-property, then .
 Proof.  The proof is straightforward from Proposition 21, Definitions 4 and 17.    □
   5. Cubic Congruences
A relation 
R on a groupoid 
X is said to be 
left compatible [resp., 
right compatible and 
compatible], if for any 
,
      
A left [resp., right] compatible equivalence relation on 
X is called a 
left [resp. 
right] 
congruence on 
X. A compatible equivalence relation on 
X is called a 
congruence on 
X. It is well known (Proposition 1.5 [
25]) that a relation 
R on a groupoid 
X if and only if it is both a left and a right congruence on 
X.
Definition 18 (See [
34]). 
For a groupoid X, a mapping  is called a cubic relation on X. In fact,  is an interval-valued fuzzy relation on X (See [36]) and R is a fuzzy relation on X (see [2]). We denote the set of all cubic (resp., interval-valued fuzzy and fuzzy) relation on X as  (resp.,  and ). Definition 19. For a groupoid X, let .
(i) The P-composition of  and  (See [34]), denoted by , is a cubic relation on X defined as follows: for each , where  and 
(ii) The R-composition of  and , denoted by , is a cubic relation on X defined as follows: for each , where  and 
 Definition 20. For a groupoid X, let . Then,  is said to be called a P-cubic equivalence relation on X (see [34]), if it satisfies the following conditions: (i) P-cubic reflexive (see [34]), if , i.e.,  and  for each , (ii) R-cubic reflexive, if , i.e.,  and  for each ,
(iii) symmetric (see [34]), if  for each , (iv) P-cubic transitive (See [34]), if , i.e.,  (see [42]) and  (see [2]), (v) R-cubic transitive, if , i.e.,  and ,
(vi) a P-cubic equivalence relation on X, if it satisfies the conditions (i), (iii) and (iv),
(vii) an R-cubic equivalence relation on X, if it satisfies the conditions (ii), (iii) and (v).
We will denote the set of all P-cubic (resp.,, R-cubic, interval-valued fuzzy and fuzzy) equivalence relations on X as  (resp.,, ,  and ).
If a fuzzy relation R on X satisfies the second part of (ii), (iii) and the second part of (v), then R is called a fuzzy anti-equivalence relation on X, and we denote the set of all fuzzy anti-equivalence relations on X as 
 Remark 10. (1) Let R be a classical equivalence relation on a groupoid X. Then, clearly, (2) Let X be a groupoid and let . Then, we can easily check that (3) Let X be a groupoid and let . Then, we have  Definition 21. For a groupoid X, let .
(i)  is said to be P-cubic left compatible, if for any , (ii)  is said to be P-cubic right compatible, if for any , (iii)  said to be P-cubic compatible, if for any , (iv)  is said to be R-cubic left compatible, if for any , (v)  is said to be R-cubic right compatible, if for any , (vi)  is said to be R-cubic compatible, if for any , If a fuzzy relation R on X satisfies the second part of (iv) (resp., (v) and (vi)), then R is called a fuzzy anti-left compatible [resp., anti-right compatible and anti-compatible].
 Example 8. Let  be the groupoid with the following Cayley table (see Table 6): Consider six cubic relations  () on X given by (see Table 7): where  is a cubic number. Let us give the relationships between cubic numbers in .
The relationships between cubic numbers in : The relationships between cubic numbers in : The relationships between cubic numbers in : The relationships between cubic numbers in : The relationships between cubic numbers in : The relationships between cubic numbers in : Then, we can easily check that  [resp.,  and ] is a P-cubic left [resp., P-cubic right and P-cubic] compatible relation on X and  [resp.,  and ] is an R-cubic left [resp., R-cubic right and R-cubic] compatible relation on X.
 Theorem 6. Let R be a relation on a groupoid X. Then, the following are equivalent:
(1) R is left compatible.
(2)  is P-cubic left compatible.
(3)  is R-cubic left compatible.
 Proof.  (1)⟺(2): The proof follows from Lemmas 3.4 in [
43] and 2.1 in [
39].
(1)⟺(3): Suppose the condition (1) holds. Since 
 is an interval-valued fuzzy left compatible by (Lemmas 3.4 [
43]), it is sufficient to prove that 
 is fuzzy left compatible. Let 
.
Case 1. Suppose . Then, clearly,  By the condition (1), . Thus, . So 
Case 2. Suppose 
. Then, we have
        
In either cases,  Hence,  is R-cubic left compatible.
Suppose the condition (3) holds. Let 
 and let 
. Then, according to condition (3), we have
        
Thus,  So . Hence, R is left compatible.    □
 Then, we follow the dual of Theorem 6.
Theorem 7. Let R be a relation on a groupoid X. Then, the following are equivalent:
(1) R is right compatible.
(2)  is P-cubic right compatible.
(3)  is R-cubic right compatible.
 Definition 22. Let X be a groupoid and let .
(i)  is called a P-cubic left congruence (briefly, PCLC), if  and  is P-cubic left compatible.
(ii)  is called a P-cubic right congruence (briefly, PCRC) on X, if  and  is P-cubic right compatible.
(iii)  is called a P-cubic congruence (briefly, PCC) on X, if  and  is P-cubic compatible.
(iv)  is called a R-cubic left congruence (briefly, RCLC) on X, if  and  is R-cubic left compatible.
(v)  is called a R-cubic right congruence (briefly, RCRC) on X, if  and  is R-cubic right compatible.
(vi)  is called a R-cubic congruence (briefly, RCC) on X, if  and  is R-cubic compatible.
A fuzzy relation R is called a fuzzy anti-left congruence (briefly, FALC) [resp., anti-right congruence (briefly, FARC) and anti-congruence (briefly, FAC)] on X, if  and R is fuzzy anti-left compatible [resp., anti-right compatible and anti-compatible].
We will denote the set of all PCLCs [resp., PCRCs, PCCs, RCLCs, RCRCs and RCCs] on X as  [resp., , , ,  and ].
 Example 9. Let  be the groupoid given in Example 8. Consider two cubic relations,  and , on X, defined as follows (see Table 8 and Table 9): Then, we can easily check that  and .
 Let us denote the set of all fuzzy left congruences [resp., right congruences and congruences] and all interval-valued fuzzy left congruences [resp., right congruences and congruences] on X as  [resp.,  and ] and  [resp.,  and ].
Remark 11. (1) For a groupoid X, let  [resp., , , ,  and ]. Then,  [resp., , , ,  and ].
(2) For a groupoid X, let  [resp.,  and ]. Then,  [resp.,  and ]. Moreover,  [resp.,  and ].
 Theorem 8. For a groupoid X, let  or . Then,
(1)  if and only if  and .
(2)  if and only if  and .
 Proof.  (1) The proof is straightforward from Proposition 3.8 in [
43] and Theorem 2.3 in [
39].
(2) From Proposition 3.8 in [
43], it is obvious that 
 if and only if 
 and 
. Then, it is sufficient to show that 
 if and only if 
 and 
.
Suppose  and let . Then, we have
 (Since R is fuzzy anti-compatible).
 (Since R is fuzzy anti-reflexive)
.
Thus, R is fuzzy anti-left compatible. It is clear that . So . Similarly, we can see that .
Conversely, suppose  and . Let . Then, we get
 [Since ]
 (Since )
. (According to the hypothesis)
Thus R is fuzzy anti-compatible. So, .    □
 From Remark 10 (1), Theorems 6, 7 and 8, we obtain the following.
Theorem 9. Let R be a relation on a groupoid X. Then, the following are equivalent:
(1) R is a congruence.
(2) .
(3) .
 Lemma 1. For a groupoid X, let .
(1) If  and  are P-cubic reflexive, then  is P-cubic reflexive.
(2) If  and  are R-cubic reflexive, then  is R-cubic reflexive.
 Proof.  (1) Let . Then, we have
. (Since  and  are reflexive).
It is obvious that 
. Thus, 
 So 
 is interval-valued fuzzy reflexive. Moreover, 
 is fuzzy reflexive from Proposition 4.7 in [
44]. Hence, 
 is P-cubic reflexive.
(2) Let . Then, we have
 (Since R and S are fuzzy anti-reflexive).
It is obvious that  Thus, . So,  is fuzzy anti-reflexive. From (1),  is interval-valued fuzzy reflexive. Hence,  is R-cubic reflexive.    □
 Lemma 2. For a groupoid X, let .
(1) If  and  are P-cubic compatible, then  is P-cubic compatible.
(2) If  and  are R-cubic compatible, then  is R-cubic compatible.
 Proof.  (1) The proof is clear from Lemmas 3.13 in [
43] and 2.7 in [
39].
(2) Let . Then, we have
[Since R and S are fuzzy anti-left compatible]
Thus, 
 is fuzzy anti-left compatible. Similarly, we can see that 
 is fuzzy anti-right compatible. So 
 is fuzzy anti-compatible. From Lemma 3.13 in [
43], 
 is interval-valued fuzzy compatible. Hence, 
 is R-cubic compatible.    □
 The following is an immediate consequence of (Theorem 3.14 [
43]) and (Theorem 2.8 [
39]).
Theorem 10. Let  and  be P-cubic congruences on a groupoid X. Then, the following are equivalent:
(1) .
(2) .
(3)  is cubic symmetric.
(4) 
 Lemma 3. Let R and S be fuzzy anti-congruences on a groupoid X. Then, the following are equivalent:
(1) .
(2) .
(3)  is fuzzy symmetric.
(4) 
 Proof.  (1)⟺(2): The proof is straightforward.
(2)⟺(3): The proof is straightforward.
(3)⟺(4): Suppose the condition (3) holds and let . Then, we have
(Since R and S are fuzzy symmetric)
. (According to the hypothesis)
Thus, 
(4)⟺(1): Suppose the condition (4) holds. Then, we have
.
(Since R and S are fuzzy anti-transitive).
Thus, 
 is fuzzy anti-transitive. It is obvious that 
 is fuzzy anti-reflexive due to Lemma 1 (2). Moreover, 
 is fuzzy symmetric from the proof’s procedure of Theorem 2.8 in [
39]. So 
. It follows from Lemma 2 (2) that 
 is fuzzy anti-compatible. Hence, (1) holds.    □
 The following is an immediate consequence of Theorem 3.14 in [
43] and Lemma 3.
Theorem 11. Let  and  be R-cubic congruences on a groupoid X. Then, the following are equivalent:
(1) .
(2) .
(3)  is cubic symmetric.
(4) 
 Proposition 29. If [resp., 
]
, then the following holds:  Proof.  The proof of the first part is straightforward from (Lemma 3.16 [
43]) and Lemma 3.1 [
39]), and the second part can be easily proved.    □
 Proposition 30. If [resp., 
]
, then the following holds:  Proof.  The proof of the first part is straightforward from (Lemma 3.16 [
43]) and Lemma 3.1 [
39]) and the second part can be easily proved.    □
 Proposition 31. Let [resp., 
]
and let  be the cubic relation on G defined as follows: for each , Then, [resp., ].
In this case, we will call  as a P-cubic congruence [resp., an R-cubic congruence] on G induced by .
 Proof.  The proof of the first part is straightforward from (Lemma 3.16 [
43]) and Lemma 3.1 [
39]), and the second part can be easily proved.    □
 Proposition 32. Let [resp., 
]
. Then  Proof.  To show the first part, let  and let . Let  and . Then, clearly,  Thus, we get
So 
Now, let us prove the second part. Since  from the above, it is sufficient to show that . Then, we have
Thus,  So, the second part holds.    □
 Proposition 33. [resp., ]is a semilattice.
 Proof.  Let  and let . Then, we have
Thus, 
 From Theorem 10, it is obvious that 
 Thus 
 is a semigroup. We can easily see that 
 So 
 is a semilattice. It is well-known (Theorem 3.7 [
39]) that 
 is a semilattice. Hence, 
 is a semilattice.
To prove the second part, it is sufficient to show that  is a semilattice. We can easily see that  and  for any . Moreover, from Theorem 10,  for any . Then,  is a semilattice.    □
 Proposition 34. Let [resp., 
]
and let  be the cubic set in G defined as follows: for each , Then, [resp., ].
In this case, we will call  a P-cubic normal subgroup [resp., an R-cubic normal subgroup] of G induced by .
 Proof.  To prove the first part, let . Then, we have
 (Since  is compatible)
 (Since  is transitive)
 (Since  is symmetric)
Thus . On the other hand, we get
 (Since  is compatible)
So, according to Theorem 3 (1), 
. It is well known (Theorem 3.4 [
39]) that 
. Hence, 
Now let us show the second part. Since , it is sufficient to prove that . Let  Then, we have
 (Since R is fuzzy anti-transitive)
 (Since R is fuzzy symmetric)
Thus, according to Theorem 3 (2),  So .    □
 Now, we give the extension of (1) already mentioned in the introduction via cubic sets.
Proposition 35. There is a bijection between  and [resp.,  and ].
 Proof.  We define 
 [resp., 
] as follows: for each 
 [resp., 
],
        
Then, we can easily see that  [resp., ] is well defined. Furthermore, it can be seen that  [resp., ] is bijective.    □