BCI/BCK-algebras are two classes of logical algebras which were first introduced in mathematics in 1966 by Y. Imai and K. Iseki, through the paper [1], as a generalization of the concept of set-theoretic difference and propositional calculi. BCK-algebras is a proper subclass of the class of BCI-algebras. These algebras have many applications, one of the recent applications of BCK-algebras was given in the Coding Theory (see [2, 3]).
Preliminaries
An algebra (X, ∗ , θ) of type (2, 0) is called a BCI-algebra if the following conditions are fulfilled:
((x ∗ y) ∗ (x ∗ z)) ∗ (z ∗ y) = θ, for all x, y, z∈ X ;
(x ∗ (x ∗ y)) ∗ y = θ, for all x, y∈ X ;
x ∗ x = θ, for all x∈ X ;
x ∗ y = θ and y ∗ x = θ imply x = y, forx, y∈ X ;
If a BCI-algebra X satisfies the following identity: (5) θ ∗ x = θ, for all x ∈ X, then X is called a BCK-algebra (see [4]).
The partial order relation on a BCI/BCK-algebra is defined such that x ≤ y if and only if x ∗ y = θ .
A BCI/BCK-algebra X is called commutative if x ∗ (x ∗ y) = y ∗ (y ∗ x) , for all x, y ∈ X and implicative if x ∗ (y ∗ x) = x, for all x, y ∈ X .
If (X, ∗ , θ) and (Y, ∘ , θ) are two BCI/BCK-algebras, a map f : X → Y with the property f (x ∗ y) = f (x) ∘ f (y) , for all x, y ∈ X, is called a BCI/BCK-algebras morphism. If f is a bijective map, then f is an isomorphism of BCI/BCK-algebras (see [4]).
Hereafter in this paper, X always denotes a finite BCI/BCK-algebra.
In the following, we will use some notations and results given in the paper [3].
Definition 2.1. A mapping is called a BCK-function on A, where A is a nonempty set and X is a BCK-algebra.
Definition 2.2. A cut function of is defined to be a mapping with q ∈ X, such that for each x ∈ A we have if and only if
Definition 2.3. Let A = {1, 2, …, n} be a set and let X be a BCK-algebra. In [3], to each BCK-function was associated a binary block-code of length n. A codeword in a binary block-code V is an element of the form vx = x1x2 … xn such that xi = j if and only if for i ∈ A and j ∈ {0, 1}.
Definition 2.4. Let V a binary block-code and let vx = x1x2 … xn and vy = y1y2 … yn be two codewords belonging to V. We define an order relation ⩽c on V as follows:vx ⩽ cvy if and only if yi ⩽ xi, for all i ∈ {1, 2, …, n}.
Main results
Definition 3.1. Let (S, ⩽) be a partially ordered set. For q ∈ S, we define a mapping Sq : S → {0, 1} such that for each b ∈ S, we have Sq (b) =1 if and only if q ⩽ b . Using this map, a codeword vx = x1x2 ⋯ xn of a binary block-code V can be determined as follow:xi = j if and only if Sx (i) = j, for i ∈ S and j ∈ {0, 1}.
In the following, we will give some examples of binary block codes obtained from a partially ordered set.
Example 3.2. Let S = {0, 1, 2, 3, 4} be a set with a partial order over S as in Fig. 1(a).
Therefore, using above definition, we obtain the table below.
Ss
0
1
2
3
4
S0
1
1
1
1
1
S1
0
1
1
1
1
S2
0
0
1
0
1
S3
0
0
0
1
1
S4
0
0
0
0
1
From this table, we obtain the binary block code from Fig. 1(b), namely
V = {11111, 01111, 00101, 00011, 00001} .
Example 3.3. Let S = {0, 1, 2, 3, 4} be a set with a partial order over S, as we can see in the Fig. 2(a).
Therefore, using Definition 3.1, we obtain the table below.
Ss
0
1
2
3
4
S0
1
1
1
1
1
S1
0
1
0
1
0
S2
0
0
1
0
1
S3
0
0
0
1
0
S4
0
0
0
0
1
From this table, we obtain the binary block code as in the Fig. 2(b), namely V = {11111, 01010, 00101, 00010, 00001} .
Example 3.4. Let S = {A, B, C, D} be a set with a partial order over S, as in the Fig. 3(a).
Therefore, using Definition 3.1, we obtain the table below.
Ss
0
1
2
3
4
SA
1
0
0
0
SB
1
1
0
0
SC
1
1
1
0
SD
1
1
0
1
From this table, we obtain the binary block code as in the Fig. 3(b), namely V = {1000, 1100, 1110, 1101} .
Using Definition 2.3, in the following, we will provide examples of binary block-codes arising from BCK-algebras.
Example 3.5. Let X = {0, 1, 2, 3, 4} be a BCK-algebra with the following Cayley table and the order on X represented in the Fig. 4(a).
*
0
1
2
3
4
0
0
0
0
0
0
1
1
0
0
0
0
2
2
1
0
1
0
3
3
3
3
0
0
4
4
4
4
4
0
Let be a BCK-function on X given by
Therefore we obtain the following table.
Ãx
0
1
2
3
4
Ã0
1
1
1
1
1
Ã1
0
1
1
1
1
Ã2
0
0
1
0
1
Ã3
0
0
0
1
1
Ã4
0
0
0
0
1
From this table, it results the following binary block code V = {11111, 01111, 00101, 00011, 00001} , which is the same as in the Example 3.2. see Fig. 4(b).
Example 3.6. Let X = {0, 1, 2, 3, 4} be a BCK-algebra with the following Cayley table and the order on X represented in the See Fig. 5(a).
*
0
1
2
3
4
0
0
0
0
0
0
1
1
0
1
0
1
2
2
2
0
2
0
3
3
1
3
0
3
4
4
4
2
4
0
Let be a BCK-function on X given by
Therefore we obtain the following table.
Ãx
0
1
2
3
4
Ã0
1
1
1
1
1
Ã1
0
1
0
1
0
Ã2
0
0
1
0
1
Ã3
0
0
0
1
0
Ã4
0
0
0
0
1
From this table, we obtain the following binary block code V = {11111, 01010, 00101, 00010, 00001} , the same as in the Example 3.3. See Fig. 5(b).
Remark 3.7. On a partial ordered set with a minimum element θ we can define a BCK-algebra structure(see [2], (2.1)) From the obtained block-codes by the aforesaid methods, it is obvious that the code obtained in Example 3.2 is the same with the code obtained in Example 3.5 and the code obtained in Example 3.3 is the same with the code obtained in Example 3.6. The explanation is that we use only the order of BCK-algebra, not its algebraic properties. From above examples, it is obvious that the method presented in paper [3] dose not depend on algebraic properties of BCK-algebra and from the above examples, we remark that there is a one-to-one correspondence between the ordering relation ⩽ and order relation ⩽c . Nevertheless, as we can see in the following, binary block codes can be a useful tool which helps us to provide some order relations with which we can find examples of BCK/BCI algebras with some properties. They also can be useful to find ideals and closed ideals in a BCK/BCI algebra.
Let X be a BCK-algebra and V be a linear binary block-code with n codewords of length n . We consider the matrix with the rows consisting of the codewords of V . This matrix is called the matrix associated to the codeV .We consider the codewords in V lexicographically ordered in the ascending sense. With this remark, for V = {w1, . . . . , wn} , we denote lines in MV with Lw1, . . . , Lwn . Obviously, On V, we define the following multiplication “∗”
wi* wj=wk if and only if } Lwi+Lwj=Lwk.
Proposition 3.8.With this multiplication, (V,*,θ),
where θ =w1,
becomes an abelian group.
Remark 3.9. The above group is a BCI-algebra.
Example 3.10. We consider the binary linear block code C={0000,0001,0010,0011}={θ,A,B,C}.The associated BCI-algebra(group) is X={θ,A,B,C}with zero element θ and multiplication given in the following table.
*
θ
A
B
C
θ
θ
A
B
C
A
A
θ
C
B
B
B
C
θ
A
C
C
B
A
θ
Definition 3.11. Let (X-.,*,θ)be a BCI/BCK-algebra, and I⊆ X.We say that Iis a right-ideal if θ ∈ I and x∈ I,y∈ Ximply x* y∈ I. An ideal Iof a BCI/BCK-algebra Xis called a closed ideal if it is also a subalgebra of X(i.e. θ ∈ Iand if x,y∈ Iit results that x* y∈ I).
Let C be a binary block code. In Theorem 3.9, from [2], we find a BCK -algebra Xsuch that the obtained binary block-code VX contains the binary block-code Cas a subset.Let Cbe a binary block code with mcodewords of length q.With the above notations, let Xbe the associated BCK-algebra and W
={θ,w1,...,wm+q} the associated binary block code which include the code C.We consider the codewords θ,w1,w2,...,wm+qlexicographically ordered, θ≥lexw1 ≥lexw 2≥ lex...≥lexw m+q.Let M∈ Mm+q+1({0,1})be the associated matrix with the rows θ,w1,...,wm+q,in this order and Lwiand Cwjthe lines and columns in the matrix M. We consider the sub-matrix M′ of the matrix Mwith the rows Lw1,...,Lw mand the columns Cwm+1,...,Cwm+q, which is the matrix associated to the code C.
Proposition 3.12.With the above notations, we have that {θ, wm+1,...,wm +q}
determines a closed right ideal in the algebra X.
Proof. Let Y=
{θ,wm+1,...,wm+q}.Due to the following multiplication
in the obtained BCK-algebra, we can have only the following two possibilities: wi* wj=θ or wi* wj=wi.Therefore Yis a right-ideal in X.
Remark 3.13. From Proposition 3.12, we obtain that to each binary block code we can associate a BCK-algebra in which this code determines a right ideal.Let Abe a nonempty set and Xbe a BCK-algebra.
Proposition 3.14.Let C
be a binary block code with m
codewords of length q
and let X
be the associated BCK-algebra, as the above. Therefore, there are the sets A
and B⊆ X,
the BCK-function f:A→ X
and a cut function frsuch that the code C
can be written under the form C={fr:A→ {0,1} / fr (x) =1, if and only if r* f (x) =θ,∀ x∈ A,r∈ B}.
Remark 3.15. i) Let S={1,2,...,n}be a set with nelements. We know that (P (S),Δ,∩) is a Boolean ring, where {{P(S)}}is the power set of the set S,Δ is symmetric difference of the sets and ∩ is the intersection of two sets. Let 𝔉={f:S→ {0,1} /ffunction}.To each f∈ 𝔉 corresponds a binary block codeword and to each binary block codeword c′ corresponds an element from {{P(S)}}. Indeed, to each binary codeword c=(i1,...,in),we will associate the set Ic={j1,j2,...,jk}∈ P (S) such that ij1=ij2=...=
ijk=1.ii) Using the above established correspondence, if C={c1,c2,...,cm}is a linear binary block code and Q={Ic1,Ic2,...,Icm}⊆ P (S), where Ici is the associated subset for the codeword c1, then Qis a sub ring in the Boolean ring (P (S),Δ,∩).It results a bijective map between the sub rings of the Boolean ring (P (S),Δ,∩) and linear binary block codes with codewords of length n.
Example 3.16. i) Let C={0000,0001,0010,0011}={w6,w7,w8,w9}be a linear binary block code and let X={θ,w2,w3,w4,w5,w6,w7,w8,w9 }be the obtained BCK-algebra as in Theorem 3.9 from [2].
The multiplication of this algebra is given in the table below.
*
θ
w2
w3
w4
w5
w6
w7
w8
w9
θ
θ
θ
θ
θ
θ
θ
θ
θ
θ
w2
w2
θ
w2
w2
w2
w2
w2
θ
θ
w3
w3
w3
θ
w3
w3
w3
w3
θ
w3
w4
w4
w4
w4
θ
w4
w4
w4
w4
θ
w5
w5
w5
w5
w5
θ
w5
w5
w5
w5
w6
w6
w6
w6
w6
w6
θ
w6
w6
w6
w7
w7
w7
w7
w7
w7
w7
θ
w7
w7
w8
w8
w8
w8
w8
w8
w8
w8
θ
w8
w9
w9
w9
w9
w9
w9
w9
w9
w9
θ
From Proposition 3.12, we remark that {θ,w6,w7, w8,w9}is a right ideal in the BCK-algebra X.From Proposition 3.14, for A={w6,w7,w8,w9 }and B={w2,w3,w4,w5 },we recover the initial code C.
Example 3.17. For the same linear binary block codeC={0000,0001,0010,0011},let Q={∅,{4},
{3},{3,4}}as in Remark 3.15 ii). It is clear that Qis a sub-ring in the Boolean ring (P ({1,2,3,4}),Δ,∩) and Ccan be considered as a sub ring of this Boolean ring.
Remark 3.18. Proposition 3.14 improved Theorem 3.9 from [2], since we can always obtain the code Cand, from Proposition 3.12, we have that the code Cgenerate a right ideal in the algebra X.
Remark 3.19. The obtained results of the above remarks and propositions can be illustrated by partially ordered sets. We know that we can find the matrix M∈ Mm+q+1({0,1})associated to the code C. For set S={1,2,...,m+q+1},we can find the sets A, B⊆ Sand the function f:A→ S, such that the code Ccan be recovered by writing it under the form: C={fr:A→ {0,1} / fr (b) =1,if and only if r≤ b,∀ b∈ A,r∈ B}.Here, A={m+2,...,m+q+1}and B={2,...,
m+1}.
Example 3.20. Let C={0000,0001,0010,0011}be a linear binary block code and let S={1,2,3,4,5,6, 7,8,9}. In this example, m=q=4. The matrix associated to the code Cis:
1
1
1
1
1
1
1
1
0
1
0
0
0
0
0
1
1
0
0
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
and the partial order on S,denoted by ≤ is given in the Fig. 6.
From above proposition, we have A={6,7,8,9}and B={2,3,4,5},therefore, from Aand B, we can recover the initial code C.
Conclusions
From the above examples, we saw that the codes can be used in the study of BCK/BCIalgebras as an important tool in providing orders with which we can build algebras with some asked properties. Will be very interesting to study in a further paper the reverse problem, namely, how and if the properties of BCK/BCI-algebras can influence the properties of the associated binary block codes.
Acknowledgments
The authors are very grateful to the referees for their constructive suggestions and valuable comments which improved the standard of this paper.
References
1.
ImaiYIsekiK1966On axiom systems of prepositional calculiProc Japan Academic421922
2.
FlautC2015BCK-algebras arising from block codesJournal of Intelligent and Fuzzy Systems28418291833
3.
JunYBSongSZ2011Codes based on BCK-algebrasInformation Sciences18151025109
4.
MengJJunYB1994BCK-algebrasKyung Moon Sa Co.Seoul, Korea