Abstract
We study the structure of self-orthogonal and self-dual codes over two non-unital rings of order four, namely, the commutative ring and the noncommutative ring We use these structures to give mass formulas for self-orthogonal and self-dual codes over these two rings, that is, we give the formulas for the number of inequivalent self-orthogonal and self-dual codes, of a given type, over the said rings. Finally, using the mass formulas, we classify self-orthogonal and self-dual codes over each ring, for small lengths and types.
Keywords:
code over ring; non-unital ring; self-orthogonal code; quasi self-dual; self-dual code; mass formulas MSC:
94B05; 16D10
1. Introduction
Coding theory has been classically studied using finite fields as alphabets [1,2,3,4,5,6,7,8,9,10,11]. In the last thirty years, rings have been used instead of finite fields, i.e., linear codes are defined as modules over a ring [12,13,14,15,16,17]. There have been many studies on codes over different rings, but most of these are commutative rings, and in almost all cases rings with unity. Recently, there has been interest in non-unital rings of order four [18,19,20,21,22]. The nonexistence of a unity in this ring makes it difficult to deal with usual concepts such as self-duality. For this reason, the notion of quasi self-dual (QSD) codes was introduced. Naturally, it is interesting to look at a bigger class of codes called self-orthogonal codes, which contains self-dual, or in this case, QSD codes.
We begin with some basic concepts about codes over rings. A linear code of length n over a ring R is an R-submodule of the module if R is a commutative ring or a one-sided R-submodule of the module if R is a noncommutative ring. All codes in this paper are linear codes. Every element of the code is called a codeword. A generator matrix for is a matrix whose rows generate the code, and none of the rows can be written as a linear combination of the other rows. For a matrix , we denote by the code of length n over R with generator matrix G. In this paper, we will consider two non-unital rings of order four, namely, the rings I and E in the classification of [23,24]. These rings are given by
and
It is clear from the multiplication tables that both of these rings do not contain a unity and, in addition, the ring I is commutative while the ring E is noncommutative. We will look at the structures of codes over these rings. Like in the case of linear codes over rings with unity of order four, like [25] and [26], we establish the generator matrix for codes over the rings I and E and introduce the notion of residue and torsion codes. From the dimensions of these codes, we define the type of code. Then, given a generator matrix for a code of a given type over the said rings, we also want to obtain the generator matrices for the residue and torsion codes for . We will look at the conditions for the residue and torsion codes so that is self-orthogonal, as well as self-dual. Using these conditions, we will establish a mass formula for self-orthogonal and self-dual codes over each of the rings I and E, similar to the work presented in [27]. Let be the class of codes of length n and of the given type we need to classify. Then, counting orbits under the action of the symmetric group on n letters leads to the equation
where D runs over a system of distinct representatives of equivalence classes of codes of Classically this equation is written in the form
Computing the left-hand side one orbit at a time works as a stopping criterion in the classification of codes when it adds up to reach the quantity in the right-hand side. Calculating is a challenging problem in linear algebra over rings, and that is what we accomplish in this article.
The material is arranged as follows. Section 2 sets up basic notions and notation for codes over I. Section 3 studies them in light of the residue and torsion codes. Section 4 and Section 5 follow the same course as Section 2 and Section 3 but for codes over E. The mass formulas are established in Section 6. Section 7 is dedicated to classification in short lengths for fixed types.
2. Codes over I
In this section, we consider the ring I and recall some concepts about this ring from [19,21]. The ring I is given by
It has characteristic two and consists of four elements: , with . The addition and multiplication tables are as follows.
Observe that I is a non-unital commutative ring. It is a local ring whose maximal ideal is and residue field , the binary field. We define a natural action of on I by the rule and , for all . For all , this action is distributive in the sense that , where ⊕ denotes the addition in , . Moreover, every can be written as
where . Denote by the map of the reduction modulo J. We have and . This map can be extended in the natural way from to .
A (linear) code over I, or simply an I-code, of length n is an I-submodule of . There are two binary codes associated with a code over I, namely,
called the residue and torsion codes of , respectively. Note that . If is the dimension of and is the dimension of , then
Such code is said to be of type . An I-code is said to be free if and only if , that is, .
By Theorem 1 in [19], every code of length n over I of type is permutation-equivalent to a code with a generator matrix
where is the identity matrix, X and Z are binary matrices, and . In fact, generator matrices of and are given by
respectively.
We equip with the standard inner product , for , . The dual of an I-code is defined as for all . We say that a code is self-orthogonal if , and self-dual if . An I-code is self-orthogonal if and only if is a binary self-orthogonal code.
Example 1.
Any I-code of length n and type is a self-orthogonal code for all .
If is a self-dual I-code of length n with type , then (see Theorem 2 in [19]). We state the following useful results from [21].
Theorem 1
(Theorem 5 in [21]). A linear code of length n over I is self-dual if and only if the following two conditions are satisfied:
- 1.
- is a self-dual binary code;
- 2.
- .
Corollary 1
(Corollary 2 in [21]). If B is a self-dual binary code of length n, then B is a residue code of a self-dual code of length n over I.
A code of length n is called quasi self-dual (QSD) if it is self-orthogonal and of size . A linear I-code can never simultaneously be both QSD and self-dual (see Proposition 2 in [21]). We end this section with the following proposition.
Proposition 1.
- 1.
- For any positive integer n, there exists a QSD code over I of length n.
- 2.
- Let be an I-code with . Then will be a QSD code.
Proof.
- Let . Since for every , of size .
- If , then is a free code with , where k is the dimension of . By Theorem 1 and Corollary 1, we have a self-orthogonal code of size .
□
3. Codes over I with Prescribed Residue and Torsion
Let be a binary code of length n with dimension and generator matrix
and be a binary code of length n with dimension and generator matrix
where , and is of full row rank. Observe that .
Lemma 1.
Let be a code of length n over I with and . Then, there exists a matrix such that the matrix
is a generator matrix of . If is a free code, such a matrix N is unique.
Proof.
Since the residue and torsion codes of are and , respectively, then for some and ,
By an elementary row operation,
Taking , we have
Therefore, has a generator matrix (4). Let be a free code and suppose there exist such that
Then, which implies that □
For the remainder of this section, assume that . Then,
It follows from (5) that A is of full row rank.
Lemma 2.
The number of free self-orthogonal codes over I with residue code is
Proof.
Suppose is a free I-code with residue code . Then, by Lemma 1, has a generator matrix , for some unique . Note that is self-orthogonal if and only if
Observe that by (5),
for any . Hence, the number of free self-orthogonal codes over I with residue code is
□
Now, we define the sets
Lemma 3.
Suppose . Then, there exists a unique code such that .
Proof.
Since , by Lemma 1, has a generator matrix for some unique matrix N. Let be a code with generator matrix
The code satisfies and .
Clearly, . Since , is self-orthogonal and hence, . Suppose for some . Note that has torsion code . Thus, by Lemma 1, and so . Observe that . Therefore, . □
Lemma 4.
If , then .
Proof.
By Lemma 1, has a generator matrix (4). We define the map
Observe that is well defined. Now, we will show that is bijective. If such that , then
Therefore, . Hence, Since D is of full row rank, we have Therefore, is injective.
Suppose and . By Lemma 1, for some matrix H. From the inclusion , we have
for some matrix M. Therefore, , which shows that is surjective. Hence, is bijective. Thus,
□
Now, we count self-orthogonal I-codes with a given residue code and torsion code.
Theorem 2.
Let and be binary codes of length n where and . If and , then the number of self-orthogonal I-codes of length n with and is
Proof.
Theorem 3.
Let be a binary self-dual code of length n. Then, the number of self-dual I-codes of length n with is equal to the number of self-dual binary codes of length n.
Proof.
From Theorem 1, the number of self-dual I-codes depends on the number of self-dual codes over , and . □
4. Codes over E
In this section, we consider another ring, E. We recall some concepts from [20,21]. The ring E is given by
Similar to I, this ring has characteristic two and consists of four elements: , with . The addition and multiplication tables are as follows.
Observe that E is a non-unital and noncommutative ring. It is a local ring whose maximal ideal is and residue field . We define a natural action of on E by the rule and for all . For all , this action is distributive in the sense that , where ⊕ denotes the addition in , . Moreover, every can be written as
where . Denote by the map of reduction modulo J. We have and . This map can be extended in the natural way from to .
A (linear) code over E, or E-code, of length n is a one-sided E-submodule of . We also associate the two following binary codes with a code over E:
called the residue and torsion codes of , respectively. Note that . If is the dimension of and is the dimension of , then
As in I-codes, such a code over E is said to be of type and an E-code is said to be free if and only if , that is, .
By Theorem 1 in [20], every code C of length n over E is permutation-equivalent to a code with the generator matrix
where is the identity matrix, Z is a binary matrix, , and . In fact, generator matrices of and are given by
respectively.
We equip with the standard inner product , for , . The right dual of is the right module defined as
and the left dual of is the left module defined by
is said to be left nice (respectively, right nice) if (respectively, ). If it is both left and right nice, it is said to be nice.
Furthermore, is called right self-dual if and left self-dual if . The two-sided dual of , denoted by , is given by . We have is self-orthogonal if for all , , that is, , and self-dual if . We see that if is self-dual and of type , then .
The following lemma shows the relationship between the residue and torsion codes of a self-orthogonal code over E. The proof is given in [20].
Lemma 5.
Let be a self-orthogonal code of length n over E. Then,
- 1.
- is self-orthogonal, i.e., ;
- 2.
- ;
- 3.
- if .
In addition, is quasi self-dual (QSD) if it is self-orthogonal and of size . By Remark 2 in [21], the notions of QSD codes and self-dual codes over E are equivalent. We state the following theorems from [21].
Theorem 4
(Theorem 14 in [21]). If is a linear code of length n over E, then the following hold:
- 1.
- is left self-dual if and only if is free and is self-dual.
- 2.
- is right self-dual if and only if is of type .
Theorem 5
(Theorem 15 in [21]). A linear code over E is self-dual if and only if .
5. Codes over E with Prescribed Residue and Torsion
Similar to Section 2, we take to be a binary code of length n with dimension and generator matrix (2) and be a binary code of length n with dimension and has a generator matrix (3), where , and is of full row rank. Also, .
Lemma 6.
Suppose is a code of length n over E with and . Then, there exists a matrix such that the matrix
is a generator matrix of . If is a free code, such a matrix N is unique.
Proof.
Because the residue and torsion codes of are and , respectively, then for some and ,
By an elementary row operation,
Taking , we have
Therefore, has a generator matrix (8). The proof that such matrix N is unique if is a free code is similar to Lemma 1. □
For the remainder of this section, assume that . Then,
It follows from (9) that A is of full row rank. We define the mapping
where . Note that is surjective if X is of full row rank.
Lemma 7.
The number of free self-orthogonal codes over E with residue code is
Proof.
Suppose is a free E-code with residue code . By Lemma 6, has a generator matrix , for some unique . Note that is self-orthogonal if and only if
That is,
by (9). Since and is a binary matrix, we have . Hence, the number of free self-orthogonal codes with residue code is
since A is of full row rank. □
Similar to ring I, we define the sets
Lemma 8.
Let . Then, there exists a unique code such that .
Proof.
Since , by Lemma 6, has a generator matrix for some unique matrix N. Let be a code with generator matrix
The code satisfies and . Clearly, . Since , (10) implies is self-orthogonal and hence, . Suppose for some . Since has torsion code , by Lemma 6. Therefore, . Moreover, . Hence, . □
Lemma 9.
If , then .
Proof.
By Lemma 6, has a generator matrix (8). Define the map
Clearly, is well-defined. We will show that is bijective. If such that , then
which means . Therefore, Since D is of full row rank, we have Hence, is injective.
Suppose and . By Lemma 6, for some matrix F. The inclusion implies that
for some matrix M. Therefore, . Hence, the map is surjective, and it follows that is bijective. Thus,
□
Now, we count self-orthogonal E-codes with a given residue code and torsion code.
Theorem 6.
Let and be binary codes of length n where . If and , then the number of self-orthogonal E-codes of length n with and is
6. Mass Formula for Self-Orthogonal Codes over I and E
Let denote the number of distinct self-orthogonal binary codes of length n and dimension , given in [28]. We define the Gaussian coefficient for as
which gives the number of subspaces of dimension m contained in an n-dimensional vector space over .
We now have the following mass formula for self-orthogonal codes over I.
Theorem 7.
Let denote the number of distinct self-orthogonal codes of length n over I of type . We have
Proof.
If is a self-orthogonal code of length n over I of type , then by setting and , we see that and satisfy Lemma 3 in [19] and . There are self-orthogonal binary codes of length n. Given , there are codes such that . Then, the result follows from Theorem 2. □
We have the following mass formula for quasi self-dual codes over I as a direct consequence of the previous theorem.
Corollary 2.
The number of quasi self-dual codes of length n over I is given by
Proof.
Since quasi self-dual codes are self-orthogonal codes of type , the number of quasi distinct self-dual codes of length n over I is given by
□
Note that Corollary 2 agrees with Theorem 5 in [19].
Corollary 3.
For an even integer n, the number of self-dual codes of length n over I is given by
where is the number of self-dual binary codes of length n.
Proof.
By Theorem 3, the number of self-dual I-codes of length n depends on the number of self-dual binary residue codes and . □
And we have the following mass formula for self-orthogonal codes over E.
Theorem 8.
Let denote the number of distinct self-orthogonal codes of length n over E of type . We have
Proof.
If is a self-orthogonal code of length n over E of type , then by setting and , we see that and satisfy (1)–(2) of Lemma 5 and . There are self-orthogonal binary codes of length n. Given , there are codes such that . Then, the result follows from Theorem 6. □
We now have the following mass formula for self-dual codes over E as a direct consequence of the previous theorem.
Corollary 4.
The number of self-dual codes of length n over E is given by
Proof.
Note that self-dual codes are self-orthogonal codes of type . Therefore, the number of distinct self-dual codes of length n over E is given by
□
Note that Corollary 4 means classifying self-dual codes over E reduces to a classification of binary self-orthogonal codes, which agrees with [20], page 13.
Corollary 5.
The number of left self-dual codes of length n over E is given by
Proof.
By Theorem 4, the number of left self-dual codes is given by
since left self-dual codes are free codes with self-dual binary residue codes. □
Proposition 2.
There is a unique right self-dual code over E of length n.
Proof.
By Theorem 4, the code with type is the unique right self-dual code over E of length n. □
7. Classification
We illustrate how the mass formula can be used in the classification of self-orthogonal codes, that is, we find representatives for the equivalence classes of self-orthogonal codes for each length and type. The set of representatives is complete if the mass formula in Theorem 7 or 8 equals
where is the automorphism group of .
Example 2.
Letbe the set of self-orthogonal codes of length 3 over I of typegiven by the following generator matrices:
The codes in are inequivalent and each has an automorphism group of order 2. Therefore,
From 7,
which shows that there are exactly six self-orthogonal codes over I of length 3 and type , up to equivalence.
Table 1 is the classification of self-orthogonal codes over I for short lengths.
Table 1.
Inequivalent self-orthogonal codes of length over I.
Example 3.
Consider the self-orthogonal code of length 3 over E of type given by the generator matrix . Its automorphism group has order two and hence,
From Theorem 8, . Therefore, there is a unique self-orthogonal code over E of length 3 and type , up to equivalence.
We also have the classification of self-orthogonal codes over E for short lengths in Table 2.
Table 2.
Inequivalent self-orthogonal codes of length over E. The generator matrices for the codes where are the same as those in Table 1, but with b replaced with c.
The generators, order of automorphism group, and weight distribution of inequivalent self-orthogonal I-codes for and inequivalent self-orthogonal E-codes for may be requested by the interested reader from the authors.
In Table 3, we give a summary of the number of inequivalent self-orthogonal codes for small lengths over both the rings I and E of every possible type. The computations were performed in the MAGMA computer algebra system [29] using the so-called additive generator matrix, similar to the method used in [19,20].
Table 3.
Number of inequivalent self-orthogonal codes over I and E of length . Entries marked with * are QSD codes, and those marked with ** are self-dual codes.
8. Conclusions and Open Problems
In the present paper, we have derived mass formulas for self-dual and self-orthogonal codes over two non-unitary rings of order four, namely, E and I in the notation of Fine [23]. These formulas have been employed to classify these codes in short lengths and small types. To reach higher lengths would require more computer power or sharper algorithms. A natural generalization would be to consider similar rings of order for p being a prime greater than
Author Contributions
Conceptualization, A.A. (Adel Alahmadi), R.A.B., L.G. and P.S.; methodology, A.A. (Adel Alahmadi), R.A.B., L.G. and P.S.; validation, A.A. (Adel Alahmadi), A.A. (Altaf Alshuhail), R.A.B., L.G. and P.S.; investigation, A.A. (Adel Alahmadi), A.A. (Altaf Alshuhail), R.A.B., L.G. and P.S.; resources, A.A. (Adel Alahmadi) and R.A.B.; writing—original draft preparation, R.A.B. and L.G.; writing—review and editing, A.A. (Adel Alahmadi), A.A. (Altaf Alshuhail) and P.S.; supervision, A.A. (Adel Alahmadi) and P.S. All authors have read and agreed to the published version of the manuscript.
Funding
The Deanship of Scientific Research (DSR) at King Abdulaziz University (KAU), Jeddah, Saudi Arabia has funded this project, under grant no. (KEP.-PhD: 99-130-1443).
Data Availability Statement
Data is available upon request to the corresponding author.
Acknowledgments
The Deanship of Scientific Research (DSR) at King Abdulaziz University (KAU), Jeddah, Saudi Arabia has funded this project, under grant no. (KEP.-PhD: 99-130-1443). Also, R.A.B. and L.G. acknowledge the support by the Computational Research Program of the Institute of Mathematics, University of the Philippines Diliman. The authors also acknowledge the anonymous reviewers for their comments and suggestions to improve the presentation of this manuscript.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Assmus, E.F., Jr.; Mattson, H.F., Jr. New 5-designs. Comb. Theory 1969, 6, 122–151. [Google Scholar] [CrossRef] [Scilit]
- Bose, R.C.; Ray-Chaudhuri, D.K. On a class of error correcting binary group codes. Inf. Control 1960, 3, 68–79. [Google Scholar] [CrossRef] [Scilit]
- Betsumiya, K.; Gulliver, T.A.; Harada, M.; Munemasa, A. On type II codes over F4. IEEE Trans. Inform. Theory 2001, 47, 2242–2248. [Google Scholar] [CrossRef]
- Hocquenghem, A. Codes correcteurs d’erreurs. Chiffres (French) 1959, 2, 147–156. [Google Scholar]
- Huffman, W.C.; Pless, V. Fundamentals of Error-Correcting Codes; Cambridge University Press: Cambridge, MA, USA, 2003. [Google Scholar]
- Hartmann, C.R.P.; Tzeng, K.K. Generalizations of the BCH bound. Inf. Control 1972, 20, 489–498. [Google Scholar] [CrossRef] [Scilit]
- Massey, J.L. Linear codes with complementary duals. Discret. Math. 1992, 106, 337–342. [Google Scholar] [CrossRef] [Scilit]
- Massey, J.L. Reversible codes. Inf. Control 1964, 7, 369–380. [Google Scholar] [CrossRef] [Scilit]
- Roos, C. A generalization of the BCH bound for cyclic codes, including the Hartmann-Tzeng bound. J. Comb. Theory Ser. A 1982, 33, 229–232. [Google Scholar] [CrossRef] [Scilit]
- Conway, J.H.; Sloane, N.J.A. Sphere Packings, Lattices and Groups, 3rd ed.; Springer: New York, NY, USA, 1999. [Google Scholar]
- van Lint, J.H.; Wilson, R. On the minimum distance of cyclic codes. IEEE Trans. Inf. Theory 1986, 32, 23–40. [Google Scholar] [CrossRef] [Scilit]
- Abualrub, T.; Oehmke, R. Cyclic codes of length 2e over Z4. Discret. Appl. Math. 2003, 128, 3–9. [Google Scholar] [CrossRef] [Scilit]
- Blackford, T. Cyclic codes of oddly even length over Z4. Discret. Appl. Math. 2003, 128, 27–46. [Google Scholar] [CrossRef] [Scilit]
- Dougherty, S.T.; Ling, S. Cyclic codes over Z4 of even length. Des. Codes Cryptography 2006, 39, 127–153. [Google Scholar] [CrossRef] [Scilit]
- Jitman, S.; Sangwisut, E.; Udomkavanich, P. Hulls of cyclic codes over Z4. Discret. Math. 2020, 343, 111621. [Google Scholar] [CrossRef] [Scilit]
- Pless, V.; Qian, Z. Cyclic codes and quadratic residue codes over Z4. IEEE Trans. Inf. Theory 1996, 42, 1594–1600. [Google Scholar] [CrossRef] [Scilit]
- Prakash, O.; Yadav, S.; Verma, R.K. Constacyclic and linear complementary dual codes over Fq + uFq. Def. Sci. J. 2020, 70, 626–632. [Google Scholar] [CrossRef] [Scilit]
- Alahmadi, A.; Alkathiry, A.; Altassan, A.; Basaffar, W.; Bonnecaze, A.; Shoaib, H.; Solé, P. Type IV codes over a non-local non-unital ring. Proyecciones (Antofagasta) 2020, 39, 963–978. [Google Scholar] [CrossRef] [Scilit]
- Alahmadi, A.; Altassan, A.; Basaffar, W.; Bonnecaze, A.; Shoaib, H.; Solé, P. Quasi type IV codes over a non-unital ring. Appl. Algebra Eng. Commun. Comput. 2021, 32, 217–228. [Google Scholar] [CrossRef] [Scilit]
- Alahmadi, A.; Altassan, A.; Basaffar, W.; Shoaib, H.; Bonnecaze, A.; Solé, P. Type IV codes over a non-unital ring. J. Algebra Its Appl. 2022, 21, 2250142. [Google Scholar] [CrossRef] [Scilit]
- Alahmadi, A.; Melaibari, A.; Solé, P. Duality of codes over non-unital rings of order four. IEEE Access 2023, 11, 53120–53133. [Google Scholar] [CrossRef] [Scilit]
- Kim, J.-L.; Ohk, D.E. DNA codes over two noncommutative rings of order four. J. Appl. Math. Comput. 2022, 68, 2015–2038. [Google Scholar] [CrossRef] [Scilit]
- Fine, B. Classification of finite rings of order p2. Math. Mag. 1993, 66, 248–252. [Google Scholar] [CrossRef] [Scilit]
- Raghavendran, R. A class of finite rings. Compos. Math. 1970, 22, 49–57. [Google Scholar]
- Hammons, A.R.; Kumar, P.V.; Calderbank, A.R.; Sloane, N.J.A.; Solé, P. The Z4-linearity of Kerdock, Preparata, Goethals, and related codes. IEEE Trans. Inf. Theory 1994, 40, 301–319. [Google Scholar] [CrossRef] [Scilit]
- Dougherty, S.T.; Gaborit, P.; Harada, M.; Solé, P. Type II codes over F2 + uF2. IEEE Trans. Inf. Theory 1999, 45, 32–45. [Google Scholar] [CrossRef] [Scilit]
- Galvez, L.; Betty, R.A.; Nemenzo, F. Self-orthogonal Codes over Fq + uFq and Fq + uFq + u2Fq. Eur. J. Pure Appl. Math. 2020, 13, 873–892. [Google Scholar] [CrossRef] [Scilit]
- Hou, X.-D. On the number of inequivalent binary self-orthogonal codes. IEEE Trans. Inf. Theory 2007, 53, 2459–2479. [Google Scholar]
- Bosma, W.; Cannon, J.; Playoust, C. The Magma algebra system. I. The user language. J. Symb. Comput. 1997, 24, 235–265. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. 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/).