Abstract
In this paper, we derive a mass formula for the self-orthogonal codes and self-dual codes over a non-commutative non-unitary ring, namely, where and p is any odd prime. We also give a classification of self-orthogonal codes and self-dual codes over , where and 7, in short lengths.
MSC:
94B05; 16D10
1. Introduction
Mass formulas serve as important tools for classifying self-dual codes over finite fields [1,2,3,4,5] and unitary rings [6,7,8,9,10,11]. When generating nonequivalent self-dual codes, mass formulas serve as terminating flags for the computing effort. Recently, this methodology was extended to the non-unitary ring I, in the terminology of [12], where quasi self-dual codes, a special class of self-orthogonal codes, serve as the central objects for classification [13,14]. Even more recently, a satisfying definition of self-dual codes for non-unitary non commutative rings was introduced in [15]. It is the intersection of the right dual with the left dual. Thus, a non-commutative ring leads to three types of self-dual codes: left self-dual, right self-dual and self-dual.
In the present note, we present mass formulas for self-orthogonal codes, self-dual codes, and left self-dual codes over the non-commutative non-unitary ring of order for p an odd prime, and type E in the classification of Fine [12]. This ring is henceforth denoted by We apply them to the classification of these codes when in short lengths. The proof techniques combine self-dual mass formula over finite field, and linear algebra over the ring which is reminiscent of that on chain rings of depth 2 [9,10].
The content is organized in the following manner: Section 2 introduces essential preliminary concepts and notations necessary for comprehending the remainder of the paper. In Section 3, the framework of linear codes over is established. Section 4 elaborates on the mass formulas. Section 5 is dedicated to the classification in short lengths for fixed types. Finally, Section 6 serves as the conclusion of the article.
2. Preliminaries
2.1. Codes over
Let p be an odd prime number. A linear code of length n and dimension k over a finite field is an -subspace of the vector space of dimension Compactly, we call an -code. The elements of a code are called . Two codewords and are orthogonal if their standard inner product is zero, and the vector space consisting of all vectors in that are orthogonal to every codeword in is called the of , denoted by . is said to be self-orthogonal (resp. self-dual) if (resp. ).
2.2. Additive Codes over
Let be a primitive element in , so that has order and . Then . The , , is defined by . An of length n over is -additive subgroup of containing codewords for some integer k in the range .
2.3. The Ring
Following [12], we define a ring on two distinct generators by their relations
Thus, consists of elements and has characteristic p. We also define a natural action of on by the rule , for all and for all .
Lemma 1.
The ring does not contain a unity element.
Proof.
Assume, by contradiction, that there is a unique element e in such that for every . Since is generated by a and b, e can be written as
Choose . By assumption,
which implies . Also, choose . Then
So a is not the unity of , which leads to an inconsistency. Therefore, is a non-unital ring. □
From the ring representation of and Lemma 1, is a non-commutative ring without multiplicative identity. Moreover, contains a unique maximal ideal
Thus, we can write as
Define the reduction map modulo as by where . This map can be extended in the natural way from to .
3. Codes over
A linear code of length n over , or simply an -code, is a one-sided -submodule of . We denote the (Hamming) weight of by and adapt the notation
where is the number of codewords of Hamming weight i, for the weight distribution of a code over as in Magma [16]. The inner product between two vectors is defined as . For an -code C, the right dual of , defined as
is a right module of , while the left dual of , defined as
is a left module of . The two-sided dual of is . The code is said to be self-orthogonal if every a codeword in is orthogonal to every codeword in , that is, . If (resp. ) then is right self-dual (RSD) (resp. left self-dual (LSD)). If , then is self-dual (SD).
Using the map defined as
we can attach to an -code an additive -code . It can be easily seen that for all .
Lemma 2.
- (i)
- For any positive integer n, there exist a self-orthogonal code over of length n.
- (ii)
- For any odd prime p, there is a left self-orthogonal code over .
Proof.
- (i)
- Consider as linear code over of length 1. To prove the self-orthogonality of , for all , , we have thatSince , , it follows that, and (mod p). Then, . Taking the direct sum of n copies of this code yields a self-orthogonal code of any length n.
- (ii)
- Let p be a prime and let denote the all-one codeword of length p. The repetition code of length p is then defined by Clearly is a linear code over . Since has characteristic p, then we have that .
□
Let be linear code over . We define the residue code of as
and the torsion code of as
From Equation (2), we have and is the subfield subcode of defined by Let be the restriction of to . We have that , and that . Let and . We say that is linear code of type . It can be seen that is free as an -module if and only if . By the first isomorphism theorem applied to we have .
In Theorem 1, we will extend a few results from [15,17] by simply substituting codes over for binary codes in the proofs.
Theorem 1.
Suppose is a linear code over . Let be non-negative integers with . Then the following hold:
- (i)
- Every linear code over of length n and type is equivalent to a code with generator matrix in standard formwhere is the identity matrix, the matrices A, B and Z have entries from .
- (ii)
- and .
- (iii)
- (iv)
- (v)
- (vi)
If G is a matrix over , we denote by the code of length n over with generator matrix G.
Next, we make a modification on the construction of self-orthogonal codes, (left or right) self-dual codes, and self-dual codes in [15], to be suitable for an odd prime p.
Theorem 2.
If is a linear code over such that and be arbitrary linear codes over , then
- (i)
- is a self-orthogonal code if and only if ;
- (ii)
- is a self-dual if and only if ;
- (iii)
- is a left self-dual if and only if ;
- (iv)
- is a right self-dual if and only if .
Proof.
First, we will prove that and . Observe that . Let . Then , so , thus, we have . Now, , so by definition of torsion code, is a subset of . Let . Since the zero vector is in , . Therefore, .
- (i)
- Let be a self-orthogonal code. Note that . Suppose that . Since is self-orthogonal, for all , we haveHence . Conversely, to prove the self-orthogonality of , for all and for all we havesince .
- (ii)
- Let be a self-dual code. Then from the preceding case, . Now, let be arbitrary. From Theorem 1 (vi), we have . Hence, . It follows that . For the converse, suppose that . From the preceding case, we have . Since and , . It follows that .
- (iii)
- is left self-dual code if and only if , by Theorem 1 (iii) and (v).
- (iv)
- is right self-dual code if and only if (by Theorem 1 (iii) and (iv)). Equivalently, we have if and only if if and only if .
□
4. Computation of the Mass Formula
At the start, we define the notion of equivalence of codes. Two codes and over are if there is an monomial matrix M (with exactly one entry in each row and column and all other entries are zero) such that The monomial automorphism group of code consists of all M such that . Let be the signed symmetric group of order . The number of codes equivalent to a code of length n is
The mass formula for self-orthogonal codes is given by
where the sum runs through all inequivalent self-orthogonal codes over of length n.
We apply a similar approach to that used for the computation of a mass formula in [7]. Let be a code over of length n with dimension and generator matrix
and be a code over of length n with dimension and generator matrix
where , and is of full row rank. Observe that , and the code with generator matrix (3) has residue code and torsion code .
We need the following lemmas to count the number free self-orthogonal -codes.
Lemma 3.
If is a free -code of length n, then the matrix B in Theorem 1 (i) is unique.
Proof.
Suppose is a free code and there exist such that
Then = . Hence, = . □
For the remainder of this section, assume that . Then
and
It follows from (7) that A is of full row rank.
Lemma 4.
The map defined by
is a surjective linear map.
Proof.
Note that is a linear map by properties of matrix. To prove the surjective condition, choose an arbitrary matrix G in . Consider the matrix in . We have
□
Now, let us consider the sets
Lemma 5.
If , then
Proof.
By Theorem 1 (i), has a generator matrix (3). Consider the map
Clearly, is well defined. Now, we will show that is bijective. Suppose such that . Then . Since Z is of full row rank, we conclude , which shows that is injective. Now, suppose that such that . By Theorem 1 (i), , for some matrix F. The inclusion implies that
for some matrix M of size . So , which shows that is surjective, and hence, is bijective. Therefore,
□
Lemma 6.
If , then there is a unique code , such that .
Proof.
By Theorem 1 (i) and Lemma 3, has a generator matrix for some unique matrix B. Then the code with a generator matrix
satisfies , and Since , (8) implies that is a self-orthogonal code, hence . Now, suppose that and . By Theorem 1 (i), we have that . This, together with forces . Since , we have . □
Let be the number of self-orthogonal codes of length n and dimension over , which is found in [18,19,20].
In [21], the number of subspaces of dimension k contained in an n-dimensional vector space over is given by the Gaussian coefficient for , where
Let be the number of distinct self-orthogonal codes over of length n. Mass formulas are useful for finding all inequivalent codes of given length. Our goal now is to compute .
Theorem 3.
For all codes of length n with type , the number of free self-orthogonal codes over is
Proof.
We may assume without loss of generality that is a code with generator matrix (4). If is a self-orthogonal code of length n over of type , then by setting , satisfies Theorem 2 (i). We have codes , which is the number of self-orthogonal codes over . By Theorem 1 (i), has generator matrix . Finally, we have
so,
Since , then . Now, we have find the number of the matrix B which satisfies . Setting in the linear map in Lemma 4,
□
Example 1.
We consider the case , and . In Table 1, we give the list of inequivalent self-orthogonal codes over the ring of type . Using the mass formula in Theorem 3, we have the following computations:
Table 1.
Self-orthogonal codes of length n over .
In the next theorem, we give the number of self-orthogonal codes over .
Theorem 4.
The number of self-orthogonal codes over of length n with type is given by
Proof.
We may assume without loss of generality that and are codes with generator matrices (4) and (5), respectively. Let be a self-orthogonal code of length n over of type . By setting and , and satisfy Theorem 2 (i). Then, there are self-orthogonal codes and we have codes such that . Now, we have to compute . By Lemmas 5 and 6, we have
From Theorem 3, we have that . Therefore, . □
Remark 1.
Let be an -code of length n and of type , where . Then will be a self-orthogonal code. Furthermore, if , then will be self-dual.
The following results derive the mass formula for the SD codes and the LSD codes over , respectively.
Theorem 5.
For a given integer we have the identity
where runs over distinct representatives of equivalence classes under monomial action of SD -codes of length n and type .
Proof.
From Theorem 2 (ii), the number of SD -codes depends on the number of self-orthogonal codes over , and . □
Example 2.
We consider the case , and . In Table 1, we give the list of inequivalent self-orthogonal codes over of type . Using the mass formula in Theorem 5, we make the following computations,
Corollary 1.
For a given even integer , we have the identity
where runs over distinct representatives of equivalence classes under monomial action of left SD -codes of length n and type .
Proof.
From Theorem 2 (iii), the number of left self-dual -codes depends on the number of self-dual codes over , with . Thus, the result follows. □
Proposition 1.
For all codes of length n, there is a unique right self-dual -code.
Proof.
The result follows from Theorem 2 (iv), where is the unique code. □
5. Classification
We classify self-orthogonal codes and self-dual codes of length with given residue of dimension , where . Also, we classify self-orthogonal codes and self-dual codes of length with given residue of dimension , where using the building method discussed in Theorem 2. To carry out the the classification, we represent codes over by their associated additive codes over under the mapping defined in (2), and considered the action of the group of monomial matrices (with 1 and as nonzero entries) to directly calculate the automorphism group. These calculations are performed using MAGMA [16]. See Table 1, Table 2 and Table 3 for a summary of our results for , respectively.
Table 2.
Self-orthogonal codes of length n over .
Table 3.
Self-orthogonal codes of length n over .
6. Conclusions and Open Problems
In this paper, we have given a mass formula to classify certain self-orthogonal codes over the non-unitary non-commutative ring , with p an odd prime. Particularly, we were considering the two main cases of classification self-orthogonal codes, and SD codes under monomial action. In the previous section, concrete classifications in short lengths are given. Extension of these results to higher lengths would require more programming or more computing power. Similar theoretical and experimental questions remain open for other non-unitary non-commutative rings in the Rhagavandran list [12,22] in an odd characteristic.
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); writing—original draft preparation, A.A. (Adel Alahmadi), A.A. (Altaf Alshuhail) and P.S.; writing—review and editing, R.A.B. and L.G.; supervision, A.A. (Adel Alahmadi) and P.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by The Deanship of Scientific Research (DSR) at King Abdulaziz University (KAU), Jeddah, Saudi Arabia, under grant no. (KEP.-PhD: 99-130-1443).
Data Availability Statement
Data are 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).
Conflicts of Interest
The authors declare no conflict of interest.
References
- Conway, J.H.; Pless, V. On the enumeration of self-dual codes. J. Comb. Theory Ser. A 1980, 28, 26–53. [Google Scholar] [CrossRef]
- Huffman, W.C.; Pless, V. Fundamentals of Error-Correcting Codes; Cambridge University Press: Cambridge, MA, USA, 2003. [Google Scholar]
- Leon, J.S.; Pless, V.; Sloane, N.J.A. Self-dual codes over GF(5). J. Comb. Theory Ser. A 1982, 32, 178–194. [Google Scholar] [CrossRef]
- Mallows, C.L.; Pless, V.; Sloane, N.J.A. Self-dual codes over GF(3). SIAM J. Appl. Math. 1976, 31, 649–666. [Google Scholar] [CrossRef]
- Rains, E.M.; Sloane, N.J.A. Self-dual codes, Chapter 3. In Handbook of Coding Theory, I; Pless, V.S., Hufman, W.C., Eds.; Elsevier: North Holland, The Netherlands, 1998. [Google Scholar]
- Balmaceda, J.M.; Betty, R.A.; Nemenzo, F. Mass formula for self-dual codes over . Discret. Math. 2008, 308, 2984–3002. [Google Scholar] [CrossRef]
- Betty, R.A.; Munemasa, A. Mass formula for self-orthogonal codes over . J. Comb. Inf. Syst. Sci. 2009, 34, 51–66. [Google Scholar]
- Choi, W.-H. Mass formula of self-dual codes over galois rings GR(p2,2). Korean J. Math. 2016, 24, 751–764. [Google Scholar] [CrossRef]
- Gaborit, P. Mass formulas for self-dual codes over and Fq + uFq rings. IEEE Trans. Inf. Theory 1996, 42, 1222–1228. [Google Scholar] [CrossRef]
- Dougherty, S.T.; Gaborit, P.; Harada, M.; Solé, P. Type II codes over + u. IEEE Trans. Inf. Theory 1999, 45, 32–45. [Google Scholar] [CrossRef]
- Fields, J.; Gaborit, P.; Leon, J.; Pless, V. All self-dual codes of length 15 or less are known. IEEE Trans. Inf. Theory 1998, 44, 311–322. [Google Scholar] [CrossRef]
- Fine, B. Classification of finite rings of order p2. Math. Mag. 1993, 66, 248–252. [Google Scholar] [CrossRef]
- Alahmadi, A.; Alshuhail, A.; Betty, R.A.; Galvez, L.; Solé, P. Mass formula for self-orthogonal and self-dual codes over non-unital rings of order four. Mathematics 2023, 11, 4736. [Google Scholar] [CrossRef]
- 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]
- 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]
- Bosma, W.; Cannon, J.; Playoust, C. The Magma algebra system. I. The user language. J. Symb. Comput. 1997, 24, 235–265. [Google Scholar] [CrossRef]
- 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]
- Kim, K.H.; Park, Y.H. The mass formula of self-orthogonal codes over GF(q). Korean J. Math. 2017, 25, 201–209. [Google Scholar]
- Pless, V. Number of isotropic subspaces in a finite geometry. Atti Della Accad. Naz. Dei Lincei-Rend.-Cl. Sci.-Fis.-Mat. Nat. 1965, 39, 418–421. [Google Scholar]
- Pless, V. On the uniqueness of the golay codes. J. Comb. Theory 1968, 5, 215–228. [Google Scholar] [CrossRef]
- Van Lint, J.; Wilson, R. A Course in Combinatorics, 2nd ed.; Cambridge University Press: Cambridge, UK, 2001. [Google Scholar]
- Raghavendran, R. A class of finite rings. Compos. Math. 1970, 22, 49–57. [Google Scholar]
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. |
© 2024 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/).