Next Article in Journal
Optimal Control Strategies for Mitigating Urban Heat Island Intensity in Porous Urban Environments
Previous Article in Journal
The Marcinkiewicz–Zygmund-Type Strong Law of Large Numbers with General Normalizing Sequences under Sublinear Expectation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Mass Formula for Self-Orthogonal and Self-Dual Codes over Non-Unital Rings of Order Four

1
Research Group of Algebraic Structures and Applications, Department of Mathematics, Faculty of Science, King Abdulaziz University, Jeddah 21589, Saudi Arabia
2
Department of Mathematics, Faculty of Science, University of Hail, Hail 55431, Saudi Arabia
3
Institute of Mathematics, University of the Philippines Diliman, Quezon City 1101, Philippines
4
I2M, (CNRS, University of Aix-Marseille, Centrale Marseille), 13009 Marseilles, France
*
Author to whom correspondence should be addressed.
Mathematics 2023, 11(23), 4736; https://doi.org/10.3390/math11234736
Submission received: 22 September 2023 / Revised: 17 October 2023 / Accepted: 19 October 2023 / Published: 23 November 2023
(This article belongs to the Section Mathematics and Computer Science)

Abstract

:
We study the structure of self-orthogonal and self-dual codes over two non-unital rings of order four, namely, the commutative ring I = a , b | 2 a = 2 b = 0 , a 2 = b , ab = 0 and the noncommutative ring E = a , b | 2 a = 2 b = 0 , a 2 = a , b 2 = b , ab = a , ba = b . 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.

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 C of length n over a ring R is an R-submodule of the R n module if R is a commutative ring or a one-sided R-submodule of the R n 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 C is a matrix G M k × n ( R ) whose rows generate the code, and none of the rows can be written as a linear combination of the other rows. For a matrix G M k × n ( R ) , we denote by R k G 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
I = a , b | 2 a = 2 b = 0 , a 2 = b , a b = 0
and
E = a , b | 2 a = 2 b = 0 , a 2 = a , b 2 = b , a b = a , b a = b .
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 Z 4 [25] and F 2 + u F 2 [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 C of a given type over the said rings, we also want to obtain the generator matrices for the residue and torsion codes for C . We will look at the conditions for the residue and torsion codes so that C 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 C 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 S n on n letters leads to the equation
D n ! | Aut ( D ) | = | C | ,
where D runs over a system of distinct representatives of equivalence classes of codes of C . Classically this equation is written in the form
D 1 | Aut ( D ) | = | C | n ! .
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 | C | 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
I = a , b | 2 a = 2 b = 0 , a 2 = b , ab = 0 .
It has characteristic two and consists of four elements: I = { 0 , a , b , c } , with c = a + b . The addition and multiplication tables are as follows.
+ 0 a b c 0 0 a b c a a 0 c b b b c 0 a c c b a 0 × 0 a b c 0 0 0 0 0 a 0 b 0 b b 0 0 0 0 c 0 b 0 b
Observe that I is a non-unital commutative ring. It is a local ring whose maximal ideal is J = { 0 , b } and residue field F 2 , the binary field. We define a natural action of F 2 on I by the rule r 0 = 0 r = 0 and r 1 = 1 r = r , for all r I . For all r I , this action is distributive in the sense that r ( s t ) = r s + r t , where ⊕ denotes the addition in F 2 , s , t F 2 . Moreover, every r I can be written as
r = as + bt ,
where s , t F 2 . Denote by α I : I I / J F 2 the map of the reduction modulo J. We have α I ( 0 ) = α I ( b ) = 0 and α I ( a ) = α I ( c ) = 1 . This map can be extended in the natural way from I n to F 2 n .
A (linear) code over I, or simply an I-code, of length n is an I-submodule of I n . There are two binary codes associated with a code C over I, namely,
res ( C ) = { α I ( y ) y C } and tor ( C ) = { x F 2 n b x C } ,
called the residue and torsion codes of C , respectively. Note that res ( C ) tor ( C ) . If k 1 is the dimension of res ( C ) and k 1 + k 2 is the dimension of tor ( C ) , then
| C | = | res ( C ) | | tor ( C ) | = 2 2 k 1 + k 2 .
Such code C is said to be of type { k 1 , k 2 } . An I-code C is said to be free if and only if k 2 = 0 , that is, res ( C ) = tor ( C ) .
By Theorem 1 in [19], every code of length n over I of type { k 1 , k 2 } is permutation-equivalent to a code with a generator matrix
a I k 1 a X Y 0 b I k 2 b Z ,
where I j is the j × j identity matrix, X and Z are binary matrices, and Y M k 1 × ( n k 1 k 2 ) ( I ) . In fact, generator matrices of res ( C ) and tor ( C ) are given by
I k 1 X α I ( Y ) and I k 1 X α I ( Y ) 0 I k 2 Z ,
respectively.
We equip I n with the standard inner product x · y = i = 1 n x i y i , for x = ( x 1 , , x n ) , y = ( y 1 , , y n ) I n . The dual of an I-code C is defined as C = { v I n u · v = 0 for all u C } . We say that a code C is self-orthogonal if C C , and self-dual if C = C . An I-code C is self-orthogonal if and only if res ( C ) is a binary self-orthogonal code.
Example 1.
Any I-code C of length n and type { 0 , k 2 } is a self-orthogonal code for all k 2 n .
If C is a self-dual I-code of length n with type { k 1 , k 2 } , then n = 2 k 1 + k 2 (see Theorem 2 in [19]). We state the following useful results from [21].
Theorem 1
(Theorem 5 in [21]). A linear code C of length n over I is self-dual if and only if the following two conditions are satisfied:
1. 
res ( C ) is a self-dual binary code;
2. 
tor ( C ) = F 2 n .
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 2 n . 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 C = a res ( C ) + b tor ( C ) be an I-code with tor ( C ) = res ( C ) = res ( C ) . Then C will be a QSD code.
Proof. 
  • Let C = b F 2 n . Since u F 2 n C for every u I , C C of size 2 n .
  • If tor ( C ) = res ( C ) , then C is a free code with n = 2 k , where k is the dimension of res ( C ) . By Theorem 1 and Corollary 1, we have a self-orthogonal code C of size 2 2 k = 2 n .

3. Codes over I with Prescribed Residue and Torsion

Let C 1 be a binary code of length n with dimension k 1 and generator matrix
I k 1 A ,
and C 2 be a binary code of length n with dimension k 1 + k 2 and generator matrix
I k 1 A 0 D ,
where A M k 1 × ( n k 1 ) ( F 2 ) , and D M k 2 × ( n k 1 ) ( F 2 ) is of full row rank. Observe that C 1 C 2 .
Lemma 1.
Let C be a code of length n over I with res ( C ) = C 1 and tor ( C ) = C 2 . Then, there exists a matrix N M k 1 × ( n k 1 ) ( F 2 ) such that the matrix
a I k 1 a A + b N 0 b D
is a generator matrix of C . If C is a free code, such a matrix N is unique.
Proof. 
Since the residue and torsion codes of C are C 1 and C 2 , respectively, then for some M 1 M k 1 × k 1 ( F 2 ) and M 2 M k 1 × ( n k 1 ) ( F 2 ) ,
I k 1 + k 2 a I k 1 + b M 1 a A + b M 2 0 b D C .
By an elementary row operation,
C I k 1 + k 2 I k 1 + c M 1 0 0 I k 2 a I k 1 + b M 1 a A + b M 2 0 b D = I k 1 + k 2 a I k 1 a A + b ( M 2 + M 1 A ) 0 b D .
Taking N = M 2 + M 1 A , we have
C I k 1 + k 2 a I k 1 a A + b N 0 b D = 2 2 k 1 + k 2 = C 1 C 2 = C .
Therefore, C has a generator matrix (4). Let C be a free code and suppose there exist N 1 , N 2 M k 1 × ( n k 1 ) ( F 2 ) such that
I k 1 a I k 1 a A + b N 1 = I k 1 a I k 1 a A + b N 2 .
Then, a A + b N 1 = a A + b N 2 , which implies that N 1 = N 2 .
For the remainder of this section, assume that C 1 C 1 . Then,
I k 1 + A A = 0 .
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 C 1 is
2 k 1 ( n k 1 ) .
Proof. 
Suppose C is a free I-code with residue code C 1 . Then, by Lemma 1, C has a generator matrix a I k 1 a A + b N , for some unique N M k 1 × ( n k 1 ) ( F 2 ) . Note that C is self-orthogonal if and only if
a I k 1 a A + b N a I k 1 a A + b N = 0 .
Observe that by (5),
( a I k 1 ) ( a I k 1 ) + ( a A + b N ) ( a A + b N ) = b ( I k 1 + A A ) = 0 ,
for any N M k 1 × ( n k 1 ) ( F 2 ) . Hence, the number of free self-orthogonal codes C over I with residue code C 1 is
N M k 1 × ( n k 1 ) | a I k 1 a A + b N a I k 1 a A + b N = 0 = 2 k 1 ( n k 1 ) .
Now, we define the sets
X = C C I n , type { k 1 , 0 } , C C , res ( C ) = C 1 and X = C C I n , C C , res ( C ) = C 1 , tor ( C ) = C 2 .
Lemma 3.
Suppose C X . Then, there exists a unique code C X such that C C .
Proof. 
Since C X , by Lemma 1, C has a generator matrix a I k 1 a A + b N for some unique matrix N. Let C 0 be a code with generator matrix
a I k 1 a A + b N 0 b D .
The code C 0 satisfies res ( C 0 ) = C 1 and tor ( C 0 ) = C 2 .
Clearly, C C 0 . Since C X , C 0 is self-orthogonal and hence, C 0 X . Suppose C C for some C X . Note that C has torsion code C 2 . Thus, by Lemma 1, I k 2 0 b D C and so C 0 C . Observe that C 0 = C 1 C 2 = 2 2 k 0 + k 1 = C . Therefore, C 0 = C . □
Lemma 4.
If C X , then C X | C C = 2 k 1 k 2 .
Proof. 
By Lemma 1, C has a generator matrix (4). We define the map
ψ : M k 1 × k 2 ( F 2 ) C X C C M I k 1 a I k 1 a A + b ( N + M D ) .
Observe that ψ is well defined. Now, we will show that ψ is bijective. If M 1 , M 2 M k 1 × k 2 ( F 2 ) such that ψ ( M 1 ) = ψ ( M 2 ) , then
I k 1 a I k 1 a A + b ( N + M 1 D ) = I k 1 a I k 1 a A + b ( N + M 2 D ) .
Therefore, a A + b ( N + M 1 D ) = A + b ( N + M 2 D ) . Hence, N + M 1 D = N + M 2 D . Since D is of full row rank, we have M 1 = M 2 . Therefore, ψ is injective.
Suppose C X and C C . By Lemma 1, C = I k 1 a I k 1 a A + b H , for some matrix H. From the inclusion C C , we have
a A + b H = a A + b ( N + M D )
for some matrix M. Therefore, H = N + M D , which shows that ψ is surjective. Hence, ψ is bijective. Thus,
C X | C C = M k 1 × k 2 ( F 2 ) = 2 k 1 k 2 .
Now, we count self-orthogonal I-codes C with a given residue code and torsion code.
Theorem 2.
Let C 1 and C 2 be binary codes of length n where C 1 C 2 and C 1 C 1 . If dim C 1 = k 1 and dim C 2 = k 1 + k 2 , then the number of self-orthogonal I-codes C of length n with res ( C ) = C 1 and tor ( C ) = C 2 is
2 k 1 ( n k 1 k 2 ) .
Proof. 
We may assume without loss of generality that C 1 and C 2 are binary codes with generator matrices (2) and (3), respectively. Now, we compute | X | . By Lemmas 3 and 4, we have
2 k 1 k 2 X = C X C X | C C = C X C X | C C = C X 1 = X .
The result follows from Lemma 2. □
Theorem 3.
Let C 1 be a binary self-dual code of length n. Then, the number of self-dual I-codes C of length n with res ( C ) = C 1 is equal to the number of self-dual binary codes of length n.
Proof. 
From Theorem 1, the number of self-dual I-codes C depends on the number of self-dual codes over F 2 , and tor ( C ) = F 2 n . □

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
E = a , b | 2 a = 2 b = 0 , a 2 = a , b 2 = b , a b = a , b a = b .
Similar to I, this ring has characteristic two and consists of four elements: E = { 0 , a , b , c } , with c = a + b . The addition and multiplication tables are as follows.
+ 0 a b c 0 0 a b c a a 0 c b b b c 0 a c c b a 0 × 0 a b c 0 0 0 0 0 a 0 a a 0 b 0 b b 0 c 0 c c 0
Observe that E is a non-unital and noncommutative ring. It is a local ring whose maximal ideal is J = { 0 , c } and residue field F 2 . We define a natural action of F 2 on E by the rule r 0 = 0 r = 0 and r 1 = 1 r = r for all r E . For all r E , this action is distributive in the sense that r ( s t ) = r s + r t , where ⊕ denotes the addition in F 2 , s , t F 2 . Moreover, every r E can be written as
r = a s + c t ,
where s , t F 2 . Denote by α E : E E / J F 2 the map of reduction modulo J. We have α E ( 0 ) = α E ( c ) = 0 and α E ( a ) = α E ( b ) = 1 . This map can be extended in the natural way from E n to F 2 n .
A (linear) code over E, or E-code, of length n is a one-sided E-submodule of E n . We also associate the two following binary codes with a code C over E:
res ( C ) = { α E ( y ) y C } and tor ( C ) = { x F 2 n c x C } ,
called the residue and torsion codes of C , respectively. Note that res ( C ) tor ( C ) . If k 1 is the dimension of res ( C ) and k 1 + k 2 is the dimension of tor ( C ) , then
| C | = | res ( C ) | | tor ( C ) | = 2 2 k 1 + k 2 .
As in I-codes, such a code C over E is said to be of type k 1 , k 2 and an E-code C is said to be free if and only if k 2 = 0 , that is, res ( C ) = tor ( C ) .
By Theorem 1 in [20], every code C of length n over E is permutation-equivalent to a code with the generator matrix
a I k 1 X Y 0 c I k 2 c Z ,
where I j is the j × j identity matrix, Z is a binary matrix, X M k 1 × k 2 ( E ) , and Y M k 1 × ( n k 1 k 2 ) ( E ) . In fact, generator matrices of res ( C ) and tor ( C ) are given by
I k 1 α E ( X ) α E ( Y ) and I k 1 α E ( X ) α E ( Y ) 0 I k 2 Z ,
respectively.
We equip E n with the standard inner product x · y = i = 1 n x i y i , for x = ( x 1 , , x n ) , y = ( y 1 , , y n ) E n . The right dual of C is the right module defined as
C R = y E n | x C , x · y = 0
and the left dual of C is the left module defined by
C L = y E n | x C , y · x = 0 .
C is said to be left nice (respectively, right nice) if | C | | C L | = 4 n (respectively, | C | | C R | = 4 n ). If it is both left and right nice, it is said to be nice.
Furthermore, C is called right self-dual if C = C R and left self-dual if C = C L . The two-sided dual of C , denoted by C , is given by C = C L C R . We have C is self-orthogonal if for all x , y C , x · y = 0 , that is, C C , and self-dual if C = C . We see that if C is self-dual and of type { k 1 , k 2 } , then n = 2 k 1 + k 2 .
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 C be a self-orthogonal code of length n over E. Then,
1. 
res ( C ) is self-orthogonal, i.e., res ( C ) res ( C ) ;
2. 
tor ( C ) res ( C ) ;
3. 
tor ( C ) = res ( C ) if | C | = 2 n .
In addition, C is quasi self-dual (QSD) if it is self-orthogonal and of size 2 n . 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 C is a linear code of length n over E, then the following hold:
1. 
C is left self-dual if and only if C is free and res ( C ) is self-dual.
2. 
C is right self-dual if and only if C is of type { 0 , n } .
Theorem 5
(Theorem 15 in [21]). A linear code C over E is self-dual if and only if res ( C ) = tor ( C ) .

5. Codes over E with Prescribed Residue and Torsion

Similar to Section 2, we take C 1 to be a binary code of length n with dimension k 1 and generator matrix (2) and C 2 be a binary code of length n with dimension k 1 + k 2 and has a generator matrix (3), where A M k 1 × ( n k 1 ) ( F 2 ) , and D M k 2 × ( n k 1 ) ( F 2 ) is of full row rank. Also, C 1 C 2 .
Lemma 6.
Suppose C is a code of length n over E with res ( C ) = C 1 and tor ( C ) = C 2 . Then, there exists a matrix N M k 1 × ( n k 1 ) ( F 2 ) such that the matrix
a I k 1 a A + c N 0 c D
is a generator matrix of C . If C is a free code, such a matrix N is unique.
Proof. 
Because the residue and torsion codes of C are C 1 and C 2 , respectively, then for some M 1 M k 1 ( F 2 ) and M 2 M k 1 × ( n k 1 ) ( F 2 ) ,
E k 1 + k 2 a I k 1 + c M 1 a A + c M 2 0 c D C .
By an elementary row operation,
C E k 1 + k 2 I k 1 + c M 1 0 0 I k 2 a I k 1 + c M 1 a A + c M 2 0 c D = E k 1 + k 2 a I k 1 a A + c ( M 2 + M 1 A ) 0 c D .
Taking N = M 2 + M 1 A , we have
C E k 1 + k 2 a I k 1 a A + c N 0 c D = 2 2 k 1 + k 2 = C 1 C 2 = C .
Therefore, C has a generator matrix (8). The proof that such matrix N is unique if C is a free code is similar to Lemma 1. □
For the remainder of this section, assume that C 1 C 2 C 1 . Then,
I k 1 + A A = 0 ,
D A = 0 .
It follows from (9) that A is of full row rank. We define the mapping
β X : M k × m ( F 2 ) M k × k ( F 2 ) N X N ,
where X M k × m ( F 2 ) . Note that β X is surjective if X is of full row rank.
Lemma 7.
The number of free self-orthogonal codes over E with residue code C 1 is
2 k 1 ( n 2 k 1 ) .
Proof. 
Suppose C is a free E-code with residue code C 1 . By Lemma 6, C has a generator matrix a I k 1 a A + c N , for some unique N M k 1 × ( n k 1 ) ( F 2 ) . Note that C is self-orthogonal if and only if
a I k 1 a A + c N a I k 1 a A + c N = 0 .
That is,
( a I k 1 ) ( a I k 1 ) + ( a A + c N ) ( a A + c N ) = a ( I k 1 + A A ) + c N A = c N A = 0 ,
by (9). Since c 0 and N A is a binary matrix, we have N A = 0 . Hence, the number of free self-orthogonal codes C with residue code C 1 is
{ N M k 1 × ( n k 1 ) | A N = 0 } = ker β A = M k 1 × ( n k 1 ) Im β A = 2 k 1 ( n k 1 ) k 1 k 1 ,
since A is of full row rank. □
Similar to ring I, we define the sets
Y = C C E n , type { k 1 , 0 } , C C , res ( C ) = C 1 and Y = C C E n , C C , res ( C ) = C 1 , tor ( C ) = C 2 .
Lemma 8.
Let C Y . Then, there exists a unique code C Y such that C C .
Proof. 
Since C Y , by Lemma 6, C has a generator matrix a I k 1 a A + c N for some unique matrix N. Let C 0 be a code with generator matrix
a I k 1 a A + c N 0 c D .
The code C 0 satisfies res ( C 0 ) = C 1 and tor ( C 0 ) = C 2 . Clearly, C C 0 . Since C Y , (10) implies C 0 is self-orthogonal and hence, C 0 Y . Suppose C C for some C Y . Since C has torsion code C 2 , E k 2 0 c D C by Lemma 6. Therefore, C 0 C . Moreover, C 0 = C 1 C 2 = 2 2 k 0 + k 1 = C . Hence, C 0 = C . □
Lemma 9.
If C Y , then C Y | C C = 2 k 1 k 2 .
Proof. 
By Lemma 6, C has a generator matrix (8). Define the map
ψ : M k 1 × k 2 ( F 2 ) C X C C M E k 1 a I k 1 a A + c ( N + M D ) .
Clearly, ψ is well-defined. We will show that ψ is bijective. If M 1 , M 2 M k 1 × k 2 ( F 2 ) such that ψ ( M 1 ) = ψ ( M 2 ) , then
E k 1 a I k 1 a A + c ( N + M 1 D ) = E k 1 a I k 1 a A + c ( N + M 2 D )
which means a A + c ( N + M 1 D ) = A + c ( N + M 2 D ) . Therefore, N + M 1 D = N + M 2 D . Since D is of full row rank, we have M 1 = M 2 . Hence, ψ is injective.
Suppose C Y and C C . By Lemma 6, C = E k 1 a I k 1 a A + c F , for some matrix F. The inclusion C C implies that
a A + c F = a A + c ( N + M D )
for some matrix M. Therefore, F = N + M D . Hence, the map ψ is surjective, and it follows that ψ is bijective. Thus,
C Y | C C = M k 1 × k 2 ( F 2 ) = 2 k 1 k 2 .
Now, we count self-orthogonal E-codes C with a given residue code and torsion code.
Theorem 6.
Let C 1 and C 2 be binary codes of length n where C 1 C 2 C 1 . If dim C 1 = k 1 and dim C 2 = k 1 + k 2 , then the number of self-orthogonal E-codes C of length n with res ( C ) = C 1 and tor ( C ) = C 2 is
2 k 1 ( n 2 k 1 k 2 ) .
Proof. 
We may assume without loss of generality that C 1 and C 2 are binary codes with generator matrices (2) and (3), respectively. The codes C 1 and C 2 satisfy the conclusions (1)–(2) of Lemma 5. Now, we have to compute | Y | . By Lemmas 8 and 9, we have
2 k 1 k 2 Y = C Y C Y | C C = C Y C Y | C C = C Y 1 = Y .
The result follows from Lemma 7. □

6. Mass Formula for Self-Orthogonal Codes over I and E

Let Φ ( n , k 1 ) denote the number of distinct self-orthogonal binary codes of length n and dimension k 1 , given in [28]. We define the Gaussian coefficient  n m q for m n as
n m q = ( q n 1 ) ( q n q ) ( q n q m 1 ) ( q m 1 ) ( q m q ) ( q m q m 1 ) ,
which gives the number of subspaces of dimension m contained in an n-dimensional vector space over F q .
We now have the following mass formula for self-orthogonal codes over I.
Theorem 7.
Let M I ( n , k 1 , k 2 ) denote the number of distinct self-orthogonal codes of length n over I of type k 1 , k 2 . We have
M I ( n , k 1 , k 2 ) = Φ ( n , k 1 ) n k 1 k 2 2 2 k 1 ( n k 1 k 2 ) .
Proof. 
If C is a self-orthogonal code of length n over I of type { k 1 , k 2 } , then by setting C 1 = res ( C ) and C 2 = tor ( C ) , we see that C 1 and C 2 satisfy Lemma 3 in [19] and res ( C ) tor ( C ) . There are Φ ( n , k 1 ) self-orthogonal binary codes C 1 of length n. Given C 1 , there are n k 1 k 2 2 codes C 2 such that C 1 C 2 F 2 n . 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
0 k 1 n 2 Φ ( n , k 1 ) n k 1 n 2 k 1 2 2 k 1 2 .
Proof. 
Since quasi self-dual codes are self-orthogonal codes of type { k 1 , n 2 k 1 } , the number of quasi distinct self-dual codes of length n over I is given by
0 k 1 n 2 M I ( n , k 1 , n 2 k 1 ) = 0 k 1 n 2 Φ ( n , k 1 ) n k 1 n 2 k 1 2 2 k 1 ( n k 1 n + 2 k 1 ) = 0 k 1 n 2 Φ ( n , k 1 ) n k 1 n 2 k 1 2 2 k 1 ( k 1 ) .
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
Φ n , n 2 ,
where Φ n , n 2 is the number of self-dual binary codes of length n.
Proof. 
By Theorem 3, the number of self-dual I-codes C of length n depends on the number of self-dual binary residue codes and tor ( C ) = F 2 n . □
And we have the following mass formula for self-orthogonal codes over E.
Theorem 8.
Let M E ( n , k 1 , k 2 ) denote the number of distinct self-orthogonal codes of length n over E of type k 1 , k 2 . We have
M E ( n , k 1 , k 2 ) = Φ ( n , k 1 ) n 2 k 1 k 2 2 2 k 1 ( n 2 k 1 k 2 ) .
Proof. 
If C is a self-orthogonal code of length n over E of type { k 1 , k 2 } , then by setting C 1 = res ( C ) and C 2 = tor ( C ) , we see that C 1 and C 2 satisfy (1)–(2) of Lemma 5 and res ( C ) tor ( C ) . There are Φ ( n , k 1 ) self-orthogonal binary codes C 1 of length n. Given C 1 , there are n 2 k 1 k 2 2 codes C 2 such that C 1 C 2 C 1 . 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
0 k 1 n 2 Φ ( n , k 1 ) .
Proof. 
Note that self-dual codes are self-orthogonal codes of type { k 1 , n 2 k 1 } . Therefore, the number of distinct self-dual codes of length n over E is given by
0 k 1 n 2 M E ( n , k 1 , n 2 k 1 ) = 0 k 1 n 2 Φ ( n , k 1 ) n 2 k 1 n 2 k 1 2 2 k 1 ( n 2 k 1 n + 2 k 1 ) = 0 k 1 n 2 Φ ( n , k 1 ) .
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
Φ ( n , n 2 ) .
Proof. 
By Theorem 4, the number of left self-dual codes is given by
M E ( n , n 2 , 0 ) = Φ ( n , n 2 ) n 2 n 2 0 2 2 n 2 ( n 2 n 2 0 ) = Φ ( n , n 2 ) ,
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 C = c F 2 n with type { 0 , n } 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
C 𝒞 n ! | Aut ( C ) |
where Aut ( C ) is the automorphism group of C .
Example 2.
Let 𝒞 be the set of self-orthogonal codes of length 3 over I of type { 1 , 1 } given by the following generator matrices:
a a 0 0 b 0 , a a 0 0 b b , a a 0 0 0 b , a c 0 0 b b , a c 0 0 0 b , a a b 0 b 0 .
The codes in  𝒞  are inequivalent and each has an automorphism group of order 2. Therefore,
C 𝒞 3 ! | Aut ( C ) | = 6 6 2 = 18 .
From 7,
M I ( 3 , 1 , 1 ) = Φ ( 3 , 1 ) 2 1 2 2 1 ( 3 1 1 ) = ( 3 ) ( 3 ) ( 2 ) = 18 ,
which shows that there are exactly six self-orthogonal codes over I of length 3 and type  { 1 , 1 } , up to equivalence.
Table 1 is the classification of self-orthogonal codes over I for short lengths.
Example 3.
Consider the self-orthogonal code C of length 3 over E of type { 1 , 1 } given by the generator matrix a a 0 0 0 c . Its automorphism group has order two and hence,
3 ! | A u t ( C ) | = 6 2 = 3 .
From Theorem 8, M E ( 3 , 1 , 1 ) = Φ ( 3 , 1 ) 3 2 1 2 2 3 2 1 = 3 . Therefore, there is a unique self-orthogonal code over E of length 3 and type { 1 , 1 } , up to equivalence.
We also have the classification of self-orthogonal codes over E for short lengths in Table 2.
The generators, order of automorphism group, and weight distribution of inequivalent self-orthogonal I-codes for n = 4 , 5 and inequivalent self-orthogonal E-codes for n = 5 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].

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 p 2 for p being a prime greater than 2 .

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

  1. Assmus, E.F., Jr.; Mattson, H.F., Jr. New 5-designs. Comb. Theory 1969, 6, 122–151. [Google Scholar] [CrossRef]
  2. 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]
  3. 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]
  4. Hocquenghem, A. Codes correcteurs d’erreurs. Chiffres (French) 1959, 2, 147–156. [Google Scholar]
  5. Huffman, W.C.; Pless, V. Fundamentals of Error-Correcting Codes; Cambridge University Press: Cambridge, MA, USA, 2003. [Google Scholar]
  6. Hartmann, C.R.P.; Tzeng, K.K. Generalizations of the BCH bound. Inf. Control 1972, 20, 489–498. [Google Scholar] [CrossRef]
  7. Massey, J.L. Linear codes with complementary duals. Discret. Math. 1992, 106, 337–342. [Google Scholar] [CrossRef]
  8. Massey, J.L. Reversible codes. Inf. Control 1964, 7, 369–380. [Google Scholar] [CrossRef]
  9. 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]
  10. Conway, J.H.; Sloane, N.J.A. Sphere Packings, Lattices and Groups, 3rd ed.; Springer: New York, NY, USA, 1999. [Google Scholar]
  11. van Lint, J.H.; Wilson, R. On the minimum distance of cyclic codes. IEEE Trans. Inf. Theory 1986, 32, 23–40. [Google Scholar] [CrossRef]
  12. Abualrub, T.; Oehmke, R. Cyclic codes of length 2e over Z4. Discret. Appl. Math. 2003, 128, 3–9. [Google Scholar] [CrossRef]
  13. Blackford, T. Cyclic codes of oddly even length over Z4. Discret. Appl. Math. 2003, 128, 27–46. [Google Scholar] [CrossRef]
  14. Dougherty, S.T.; Ling, S. Cyclic codes over Z4 of even length. Des. Codes Cryptography 2006, 39, 127–153. [Google Scholar] [CrossRef]
  15. Jitman, S.; Sangwisut, E.; Udomkavanich, P. Hulls of cyclic codes over Z4. Discret. Math. 2020, 343, 111621. [Google Scholar] [CrossRef]
  16. Pless, V.; Qian, Z. Cyclic codes and quadratic residue codes over Z4. IEEE Trans. Inf. Theory 1996, 42, 1594–1600. [Google Scholar] [CrossRef]
  17. 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]
  18. 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]
  19. 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]
  20. 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]
  21. 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]
  22. 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]
  23. Fine, B. Classification of finite rings of order p2. Math. Mag. 1993, 66, 248–252. [Google Scholar] [CrossRef]
  24. Raghavendran, R. A class of finite rings. Compos. Math. 1970, 22, 49–57. [Google Scholar]
  25. 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]
  26. 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]
  27. 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]
  28. Hou, X.-D. On the number of inequivalent binary self-orthogonal codes. IEEE Trans. Inf. Theory 2007, 53, 2459–2479. [Google Scholar]
  29. Bosma, W.; Cannon, J.; Playoust, C. The Magma algebra system. I. The user language. J. Symb. Comput. 1997, 24, 235–265. [Google Scholar] [CrossRef]
Table 1. Inequivalent self-orthogonal codes of length n 3 over I.
Table 1. Inequivalent self-orthogonal codes of length n 3 over I.
n { k 1 , k 2 } Generator Matrix | Aut ( C ) | Weight Distribution
2 { 0 , 1 } 0 b 1 [ < 0 , 1 > , < 1 , 1 > ]
b b 2 [ < 0 , 1 > , < 2 , 1 > ]
{ 0 , 2 } b 0 0 b 2 [ < 0 , 1 > , < 1 , 2 > , < 2 , 1 > ]
{ 1 , 0 } a u 2 [ < 0 , 1 > , < 2 , 3 > ]
u { a , c }
{ 1 , 1 } a a 0 b 2 [ < 0 , 1 > , < 1 , 2 > , < 2 , 5 > ]
3 { 0 , 1 } b 0 0 2 [ < 0 , 1 > , < 1 , 1 > ]
b b 0 2 [ < 0 , 1 > , < 2 , 1 > ]
b b b 6 [ < 0 , 1 > , < 3 , 1 > ]
{ 0 , 2 } b 0 0 0 b 0 2 [ < 0 , 1 > , < 1 , 2 > , < 2 , 1 > ]
b 0 b 0 b 0 2 [ < 0 , 1 > , < 1 , 1 > , < 2 , 1 > , < 3 , 1 > ]
b 0 b 0 b b 6 [ < 0 , 1 > , < 2 , 3 > ]
{ 0 , 3 } b 0 0 0 b 0 0 0 b 6 [ < 0 , 1 > , < 1 , 3 > , < 2 , 3 > , < 3 , 1 > ]
{ 1 , 0 } a u 0 2 [ < 0 , 1 > , < 2 , 3 > ]
u { a , c }
a u b 2 [ < 0 , 1 > , < 2 , 1 > , < 3 , 2 > ]
u { a , c }
{ 1 , 1 } a a 0 0 b 0 2 [ < 0 , 1 > , < 1 , 2 > , < 2 , 5 > ]
a u 0 0 b b 2 [ < 0 , 1 > , < 2 , 5 > , < 3 , 2 > ]
u { a , c }
a u 0 0 0 b 2 [ < 0 , 1 > , < 1 , 1 > , < 2 , 3 > , < 3 , 3 > ]
u { a , c }
a a b 0 b 0 2 [ < 0 , 1 > , < 1 , 2 > , < 2 , 1 > , < 3 , 4 > ]
{ 1 , 2 } a a 0 0 b 0 0 0 b 2 [ < 0 , 1 > , < 1 , 3 > , < 2 , 7 > , < 3 , 5 > ]
Table 2. Inequivalent self-orthogonal codes of length n 4 over E. The generator matrices for the codes where k 1 = 0 are the same as those in Table 1, but with b replaced with c.
Table 2. Inequivalent self-orthogonal codes of length n 4 over E. The generator matrices for the codes where k 1 = 0 are the same as those in Table 1, but with b replaced with c.
n { k 1 , k 2 } Generator Matrix | Aut ( C ) | Weight Distribution
2 { 1 , 0 } a a 2 [ < 0 , 1 > , < 2 , 3 > ]
3 { 1 , 0 } a a 0 2 [ < 0 , 1 > , < 2 , 3 > ]
a a c 2 [ < 0 , 1 > , < 2 , 1 > , < 3 , 2 > ]
{ 1 , 1 } a a 0 0 0 c 2 [ < 0 , 1 > , < 1 , 1 > , < 2 , 3 > , < 3 , 3 > ]
4 { 1 , 0 } a a 0 0 4 [ < 0 , 1 > , < 2 , 3 > ]
a a a a 24 [ < 0 , 1 > , < 4 , 3 > ]
a a b b 8 [ < 0 , 1 > , < 4 , 3 > ]
a a c 0 2 [ < 0 , 1 > , < 2 , 1 > , < 3 , 2 > ]
a a c c 4 [ < 0 , 1 > , < 2 , 1 > , < 4 , 2 > ]
{ 1 , 1 } a a 0 0 0 0 c 0 2 [ < 0 , 1 > , < 1 , 1 > , < 2 , 3 > , < 3 , 3 > ]
a a 0 0 0 0 c c 4 [ < 0 , 1 > , < 2 , 4 > , < 4 , 3 > ]
a a c 0 0 0 0 c 2 [ < 0 , 1 > , < 1 , 1 > , < 2 , 1 > , < 3 , 3 > , < 4 , 2 > ]
a u a u 0 0 c c 8 [ < 0 , 1 > , < 2 , 2 > , < 4 , 5 > ]
u { a , b }
a a c 0 0 0 c c 4 [ < 0 , 1 > , < 2 , 2 > , < 3 , 4 > , < 4 , 1 > ]
{ 1 , 2 } a a 0 0 0 0 c 0 0 0 0 c 4 [ < 0 , 1 > , < 1 , 2 > , < 2 , 4 > , < 3 , 6 > , < 4 , 3 > ]
a a a a 0 c c 0 0 0 c c 24 [ < 0 , 1 > , < 2 , 6 > , < 4 , 9 > ]
{ 2 , 0 } a a 0 0 0 0 a a 8 [ < 0 , 1 > , < 2 , 6 > , < 4 , 9 > ]
Table 3. Number of inequivalent self-orthogonal codes over I and E of length n 5 . Entries marked with * are QSD codes, and those marked with ** are self-dual codes.
Table 3. Number of inequivalent self-orthogonal codes over I and E of length n 5 . Entries marked with * are QSD codes, and those marked with ** are self-dual codes.
n { k 1 , k 2 } I-CodesRemarkE-CodesRemark
2 { 0 , 1 } 2 2
{ 0 , 2 } 1*1**, [20]
{ 1 , 0 } 2*, [19]1**, [20]
{ 1 , 1 } 1**-
3 { 0 , 1 } 3 3
{ 0 , 2 } 3 3
{ 0 , 3 } 1*1**, [20]
{ 1 , 0 } 4 2
{ 1 , 1 } 6*, [19]1**, [20]
{ 1 , 2 } 1 -
4 { 0 , 1 } 4 4
{ 0 , 2 } 6 6
{ 0 , 3 } 4 4
{ 0 , 4 } 1*1**, (Table 1 in [20] )
{ 1 , 0 } 9 5
{ 1 , 1 } 23 6
{ 1 , 2 } 14*2**, (Table 1 in [20])
{ 1 , 3 } 2 -
{ 2 , 0 } 10*1**, (Table 1 in [20])
{ 2 , 1 } 7 -
{ 2 , 2 } 1**-
5 { 0 , 1 } 5 5
{ 0 , 2 } 10 10
{ 0 , 3 } 10 10
{ 0 , 4 } 5 5
{ 0 , 5 } 1*1**, (Table 2 in [20])
{ 1 , 0 } 14 8
{ 1 , 1 } 59 18
{ 1 , 2 } 66 12
{ 1 , 3 } 24*2**, (Table 2 in [20])
{ 1 , 4 } 2 -
{ 2 , 0 } 36 3
{ 2 , 1 } 60*1**, (Table 2 in [20])
{ 2 , 2 } 17 -
{ 2 , 3 } 1 -
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.

Share and Cite

MDPI and ACS Style

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. https://doi.org/10.3390/math11234736

AMA Style

Alahmadi A, Alshuhail A, Betty RA, Galvez L, Solé P. Mass Formula for Self-Orthogonal and Self-Dual Codes over Non-Unital Rings of Order Four. Mathematics. 2023; 11(23):4736. https://doi.org/10.3390/math11234736

Chicago/Turabian Style

Alahmadi, Adel, Altaf Alshuhail, Rowena Alma Betty, Lucky Galvez, and Patrick Solé. 2023. "Mass Formula for Self-Orthogonal and Self-Dual Codes over Non-Unital Rings of Order Four" Mathematics 11, no. 23: 4736. https://doi.org/10.3390/math11234736

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop