Abstract
Inspired by the concept of -algebra as an important part of the ordered algebra, in this paper we investigate the binary block code generated by an arbitrary -algebra and study related properties. For this goal, we initiate the study of the -function on a nonempty set P based on -algebra L, and by using that, l-functions and l-subsets are introduced for the arbitrary element l of a -algebra. In addition, by the mean of the l-functions and l-subsets, an equivalence relation on the -algebra L is introduced, and using that, the structure of the code generated by an arbitrary -algebra is considered. Some related properties (such as the length and the linearity) of the generated code and examples are provided. Moreover, as the main result, we define a new order on the generated code C based on the -algebra and show that the structures of the -algebra with its order and the correspondence generated code with the defined order are the same.
1. Introduction
, in 1998, introduced -algebra in order to provide a general framework for formalizing statements of a fuzzy nature [1]. -algebra is the algebraic structure arising from the continuous triangular norms, and it has certain logical axioms similarly to Boolean algebras or -algebras from classical logic or Lukasiewicz logic, respectively. In addition, every -algebra is a -algebra, whereas the converse is not always true. Thus, the class of -algebra is a subset of the class of -algebra, and this is the main reason that we selected -algebra to investigate the code generated by it. Moreover, showed that every -algebra with an involutory complement is -algebra.
In the twentieth century, there is a problem in engineering about the transmutation of information. Shannon [2] in 1948 and Hamming [3] in 1950 provided some frameworks to solve the problem. Their idea was developed and, as a consequence, the electronic information could be transmitted throughout the noisy channel and stored by minimum errors, and coding theory was born. Because the electronic information is a string of zeros and ones, it uses a finite field as the alphabet set. Thus, coding theory can use different areas of mathematics such as linear algebra, finite geometry, lattices, and combinatorics, especially when the alphabet set is generalized to different types of fields. Coding theory can be viewed not only as a part of computer science and engineering but also as a part of pure mathematics, as the mathematicians were interested in the fundamental aspects of this concept.
Application of coding theory in ordered algebraic structures was initiated by Jun and Song in 2011 [4]. They introduced the notion of BCK-valued functions and established binary block codes by using the notion of BCK-valued functions. After that, in 2014, Borumand et al. [5] and in 2015, Flaut [6] presented some relationships between -algebras and the related binary block codes. They proved that every -algebra determines a binary block code. Gilani [7] studied some properties of the codes generated by -functions in an arbitrary -algebras. Details about the fundamental relations in an arbitrary -algebra and related generated code, namely -code, was investigated by Bordbar in [8]. During the last few years, binary block codes generated by different types of ordered algebraic structures were studied, for instance, codewords in a binary block code generated by a -valued function investigated by Chinram and Iampan in 2021 [9], and in 2015, Mostafa et al. [10] applied coding theory to -algebras and gave some connection between binary block codes and -algebras.
In this paper, we investigate the code generated by a -algebra. Our motivation is to study the properties of a code generated by one ordered algebraic structure. We begin with a discussion of the ordered algebraic structure known as -algebra as it is an extended algebraic structure and has some other ordered structures as its subsets, such as -algebra. Moreover, by using the order in a -algebra, we define a new order in a generated code and give the code an algebraic ordered structure. The defined order among the codewords can be useful in decoding and will be our future work. For our goal, in Section 3 we define a -function on an arbitrary nonempty set P based on -algebra L and by using the -function, l-functions of it and l-subsets of P for are investigated. In addition, properties of -function and its l-functions and l-subsets of P that we need for generated code are considered. In Section 4, a binary equivalence relation ≈ defines on a -algebra L, and by using this relation and -function, the code C based on L is generated. Finally, we study an order among the codewords of C that gives the code C an ordered algebraic structure. In Theorem 3, we show that the -algebra L with its order and the code C based on L with respect to defined order have the same structures.
2. Preliminaries
A BL-algebra is a structure such that is a bounded lattice, is an abelian monoid, i.e., ⊙ is commutative and associative, and the following conditions hold for all :
(BL1)
(BL2) if and only if
(BL3)
(BL4)
Every -algebra satisfies the following assertions
for all .
For more information about -algebra, please refer to [1,11].
The alphabets used in coding theory are finite fields with q elements, . We say that a code is if its codewords are defined over the alphabet . The most commonly used alphabets are binary fields, . This article focuses on codes with the familiar alphabet , which are known as binary codes.
Let c be a codeword. Then the of a codeword c is the number of nonzero components in the codeword. The between two codewords is the number of places in which the codewords and differ. In other words, is the Hamming weight of the vector , representing the component-wise difference of the vectors and . The minimum (Hamming) distance of a code C is the minimum distance between any two codewords in the code C, that is,
The notation is used to represent a code with code length n, a total of M codewords, and minimum distance d. One of the major goals of coding theory is to develop codes that strike a balance between having small n (for fast transmission of messages), large M (to enable transmission of a wide variety of messages), and large d (to detect many errors).
3. -Functions on a Nonempty Set
In this section, the notions of -functions on a nonempty set P based on a -algebra L, l-functions, and l-subsets of P for an arbitrary element , will be introduced. Some of the properties connected with l-subsets of P and l-functions of a -function will be investigated. Throughout this section, unless stated otherwise, denotes a -algebra. In addition, in this paper, we use the set L for our definitions as a -algebra .
Definition 1.
Let P be a nonempty set and L be a -algebra. A mapping is called a-function on P based on L and denoted by . If there is no confusion of L, we use ϕ instead of . Moreover, for a -function ϕ on P and , define for each as follows:
The function is called a l-function of ϕ.
Definition 2.
Let P be a nonempty set and L be a -algebra. For a -function on P and each , the set defined by
is called a l-subset of P.
Example 1.
Let be a set with the following Cayley tables:
Then is a -algebra (see [12]), where and
(1) For a set , the function defined by
is a -function on P, and the l-subsets of P for each are as follows:
In addition, for each , the l-functions of ϕ are as shown in the following table:
(2) Let and define the function by
Then ψ is a -function on Q. For each , the l-subsets of Q are as follows:
In addition, the l-functions of ψ for each are as shown in the following table:
The following proposition shows the relationship between -function on P and its l-functions and l-subsets of P for .
Proposition 1.
Let be a -function on a nonempty set P based on L, where L is a -algebra. Then the function ϕ can be described by its l-functions and l-subsets of P, for , as the infimum of the following sets:
in other words,
Proof.
Let be an arbitrary element and . Then using (1),
Thus , which means that . Assume that , for . Then . By using (2), we conclude that . Because it follows that
Corollary 1.
For a -algebra L, if is a -function on P based on L, then for ,
where
Proposition 2.
Let L be a -algebra and be a -function on a nonempty set P based on L. Then for elements we have the following assertion,
Proof.
Assume that are arbitrary elements such that . Hence . Moreover let . Then , which means that . By using (5) we have
Thus using (1), we conclude that
Therefore, , that is □
Theorem 1.
Let be a -function on P. Then
- (i)
- (ii)
Proof.
For -function , let be such that . Moreover, suppose that . If , then
which means that . Thus . Similarly, , and this is a contradiction. Therefore, for all , if , then . This proves the .
In order to prove , suppose that such that . Then clearly or . Hence,
Therefore,
(ii) Let and be such that . Then , and using Proposition 2,
Conversely, suppose that for and . Because , we conclude that . Therefore, and the proof is complete. □
Theorem 1 part (ii) shows that the converse of Proposition 2 is true. Thus, we have the following corollary.
Corollary 2.
Let be a -function on a nonempty set P based on L, where L is a -algebra. Then
Proposition 3.
Let be a -function on a nonempty set P and . Put
Then
Proof.
Note that there exists the infimum of M in L for any . Thus, for the infimum element of M we have
□
For a -algebra L and a -function on a nonempty set P, define the sets and as follows:
Then we have the following corollary.
Corollary 3.
If is a -function on a nonempty set P, then
- (i)
- (ii)
- for , we have
Proposition 4.
Let be a -function on a nonempty set P. Then P is represented by the union of for , that is,
Proof.
Obviously, . Let and be such that . Then by using the definition of l-subset of P, we have . Thus,
which means that . Therefore, . □
Proposition 5.
Let be a -function on a nonempty set P and . Then
Proof.
It follows from Proposition 3 that
□
Let be a -function on a nonempty set P and ≈ be a binary relation on L defined by
The binary relation ≈ is an equivalence relation on L. Moreover, for an arbitrary element , define the sets and as follows:
The relationships between an equivalence relation ≈ and the sets and are described in the following theorem.
Theorem 2.
For a -function on a nonempty set P and the elements , we have the following assertion:
Proof.
Suppose that . Then
□
4. Code Generated by a BL-Algebra
The relation ≈ on L that is defined in (15) is an equivalence relation on L. Thus, it provides the partition of L. For any , let denotes an equivalence class containing l, which means that
In what follows, a binary block code of length n will be made from an arbitrary finite -algebra. In this method n is a natural number; this helps us to generate a binary block code of the desired length n.
For , let and L be a finite -algebra. Every -function on P determines a binary block code C of length n in the following way:
Let . Then for the correspondence codeword is such that for
where . We called C a based on L and denoted by . If there is no confusion of L, we use C instead of .
During our study of block code generated by an arbitrary -algebra, three parameters are important. The first parameter is the code length n. In the -code based on L, we can make a code of the desired length n. This can be helpful as we can choose the length in different situations. The second parameter that we consider is the total number of codewords. In this kind of code, the total number of codewords is equal to the total number of distinct equivalence classes of ≈ relation. The third parameter is the distance between pairs of codewords in a code. In the following examples, these notations will be explained much more.
Example 2.
Let be a set with Cayley tables as follows:
Then is a -algebra. For a set let be a -function on P given by
Then the l-subsets of P are
In addition, the l-functions of ϕ are
Clearly, we have four different equivalence classes, which are . Thus the total number of codewords is 4 . By using (17), we conclude that
Thus the binary block code C of length and 4 codewords is . Besides, the minimum distance of C is 1 (). It is clear that the code C is not a linear code because
Let and be two codewords belonging to a binary block-code C of length n. Define an order relationship ⪯ on the set of codewords belonging to a binary block-code C of length n as follows:
By using (2) for the -algebra L and (18) for the -code C based on L, we conclude that the graphs of L concerning the order ≤ and the code C with respect to the order ⪯ have the same structures. For instance, in Example 2, we have
Therefore, we can have the following theorem.
Theorem 3.
Let be a finite -algebra and , where . Then L determines a block-code C of length n (namely -code) such that the graph of L with respect to its order ≤ and the graph of -code C with respect to the order ⪯ have the same structure.
Proof.
Let be a finite -algebra and . Moreover, suppose that . Then P is a nonempty set and defined by , for is a -function on L based on L. Suppose that be a set of all equivalence classes of the elements of L regarding the equivalence relation ≈ defined in (15). That is,
Moreover, let , for , and . Then using (7) and (15), we conclude that
This means that the function in (19) is well defined and the inverse implications show that the function is one-to-one.
Now suppose that are such that , for . Then Proposition 2 shows that . If and , then . Because , and , therefore . Thus, in this case .
If and , then and we have two opportunities. The first one is , which means that , and the second one is , which means that . In both case, we have . Hence, . Therefore, if , then , that is, preserves the order. Therefore, the figures of and have the same structures. □
Example 3.
Let be a set with the following Cayley tables.
Then is a -algebra. For a set , let be a -function on a set P given by
Then
Thus, using the (17) we have
Finally, the generated binary block code C based on L is:
5. Conclusions
In this paper, we have studied the code generated by a -algebra as one of the important classes of ordered algebra. For this goal, the notion of -function on a nonempty set P based on -algebra L was introduced, and for , l-fuctions of a -fuction and l-subsets of P were studied. After investigating some results concerning the -functions, our study has focused on a binary equivalence relation ≈ on L, and using this relation we define the code C based on L. Finally, we have defined an order between the codewords of C, which gives the code C the ordered structure. Moreover, the graph of C with its order and the graph of L have the same structures.
The results related to -code C show that, in general, this code is not linear. For our future work, we will concentrate on some conditions that make this binary block code a linear code. Moreover, using the notations and ideas of this article, the order that we defined between the codewords of the code C based on -algebra L can help us to find a new algorithm for decoding the ciphertext. In our future research, we focus on this part of the decoding algorithm.
Author Contributions
Conceptualization, H.B.; methodology, H.B.; investigation, H.B.; writing—original draft preparation, H.B.; writing—review and editing, H.B. All authors have read and agreed to the published version of the manuscript.
Funding
No funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Conflicts of Interest
The author declares no conflict of interest.
References
- Hájek, P. Metamathematics of Fuzzy Logic; Kluwer Academic Publishers: Dordrecht, The Netherlands, 1998. [Google Scholar]
- Shannon, C.E. A Mathematical Theory of Communications. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef] [Green Version]
- Hamming, R.W. Error detecting and error-correcting codes. Bell Syst. Tech. J. 1950, 29, 147–160. [Google Scholar] [CrossRef]
- Jun, Y.B.; Song, S.Z. Codes based on BCK-algebras. Inf. Sci. 2011, 181, 5102–5109. [Google Scholar] [CrossRef]
- Saeid, A.B.; Fatemidokht, H.; Flaut, C.; Rafsanjani, M.K. On codes based on BCK-algebras. J. Intell. Fuzzy Syst. 2015, 29, 2133–2137. [Google Scholar] [CrossRef] [Green Version]
- Flaut, C. BCK-algebras arising from block codes. J. Intell. Fuzzy Syst. 2015, 28, 1829–1833. [Google Scholar] [CrossRef] [Green Version]
- Gilani, A. Codes generates by BCK-functions in BCK-algebras. In Proceedings of the 4th International Conference on Combinatorics, Cryptography, Computer Science and Computing, Tehran City, Iran, 20–21 November 2019. [Google Scholar]
- Bordbar, H. BCK codes. Adv. Comp. Int. 2022, 2, 4. [Google Scholar] [CrossRef]
- Chinram, R.; Iampan, A. Codewords generated by UP-valued functions. AIMS Math. 2021, 6, 4771–4785. [Google Scholar] [CrossRef]
- Mostafa, M.; Youssef, B.; Jad, H.A. Coding theory applied to KU-algebras. J. New Theory 2015, 6, 43–53. [Google Scholar]
- Busneag, D.; Piciu, D. On the lattice of deductive systems of a BL-algebra. Cent. Eur. Sci. J. 2003, 2, 221–237. [Google Scholar]
- Hedayati, H.; Jun, Y.B. Chain conditions on fuzzy positive implicative filters of BL-algebras. Hacet. J. Math. Stat. 2011, 40, 819–828. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

