Next Article in Journal
Emergency Supply Alternatives for a Storage Facility of a Repairable Multi-Component System
Previous Article in Journal
Optimizing Portfolio in the Evolutional Portfolio Optimization System (EPOS)
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A New Method for Constructing Self-Dual Codes over Finite Commutative Rings with Characteristic 2

1
School of Mathematical Sciences, Dalian University of Technology, Dalian 116024, China
2
School of Mathematics and Information, China West Normal University, Nanchong 637001, China
*
Author to whom correspondence should be addressed.
Mathematics 2024, 12(17), 2731; https://doi.org/10.3390/math12172731 (registering DOI)
Submission received: 1 June 2024 / Revised: 11 August 2024 / Accepted: 13 August 2024 / Published: 31 August 2024

Abstract

:
In this work, we present a new method for constructing self-dual codes over finite commutative rings R with characteristic 2. Our method involves searching for k × 2 k matrices M over R satisfying the conditions that its rows are linearly independent over R and M M = α α for an R-linearly independent vector α R k . Let C be a linear code generated by such a matrix M . We prove that the dual code C of C is also a free linear code with dimension k, as well as C / H u l l ( C ) and C / H u l l ( C ) are one-dimensional free R-modules, where H u l l ( C ) represents the hull of C . Based on these facts, an isometry from R x + R y onto R 2 is established, assuming that x + H u l l ( C ) and y + H u l l ( C ) are bases for C / H u l l ( C ) and C / H u l l ( C ) over R, respectively. By utilizing this isometry, we introduce a new method for constructing self-dual codes from self-dual codes of length 2 over finite commutative rings with characteristic 2. To determine whether the matrix M M takes the form of α α with α being a linearly independent vector in R k , a necessary and sufficient condition is provided. Our method differs from the conventional approach, which requires the matrix M to satisfy M M = 0 . The main advantage of our method is the ability to construct nonfree self-dual codes over finite commutative rings, a task that is typically unachievable using the conventional approach. Therefore, by combining our method with the conventional approach and selecting an appropriate matrix construction, it is possible to produce more self-dual codes, in contrast to using solely the conventional approach.

1. Introduction

Self-dual codes are a significant class of codes that possess both algebraic and combinatorial properties, connecting them to various other areas of mathematics such as design theory, combinatorics, number theory, invariant theory, unimodular lattices and quantum codes. In particular, binary self-dual codes have garnered extensive attention, with considerable research effort dedicated to developing techniques for constructing new extremal and optimal binary self-dual codes. These known construction techniques include the double-circulant and bordered double-circulant constructions [1,2,3,4], the four-circulant construction and its variations [5,6,7,8,9,10,11], group rings and their connection to self-dual codes [12,13,14,15,16,17,18,19,20], bordered matrix constructions [12,13,14,17,19,21,22,23,24], neighbours of binary self-dual codes [25,26], the widely employed building-up construction [27,28,29], the production of binary self-dual codes as Gray images of self-dual codes over finite commutative Frobenius rings of characteristic 2 [28,30,31,32], and the well-known lifting method [10,11,33,34,35,36,37].
All of the matrix constructions described in the literature mentioned above are defined over finite commutative Frobenius rings with characteristic 2. It is worth noting that all these matrices have the property that the number of rows is half of the number of columns. As a result, all the self-dual codes produced from these matrix constructions are free.
After conducting a comprehensive review of the literature mentioned above, we can outline the conventional method for the construction of extremal binary self-dual codes as follows: One needs to present a new matrix construction, M, over a certain finite commutative Frobenius ring of characteristic 2 equipped with a Gray map, and establish the necessary conditions for M to satisfy M M = 0 . In some cases, it may be necessary to provide additional conditions to ensure the linear independence of the rows of M . If these conditions are met, then M may be used to generate a self-dual code. By considering the Gray image of this self-dual code and employing well-known techniques such as the neighbor method and building-up construction, it may be possible to obtain a new extremal binary self-dual code. This conventional approach has been extensively utilized in the literature, leading to the construction of numerous new extremal binary self-dual codes. For further details, please refer to the aforementioned literature.
For the identical task, namely finding new extremal binary self-dual codes, we introduce a new method in this paper. This method, based on an isometry defined in Theorem 1, can be used to construct self-dual codes over finite commutative rings of characteristic 2, regardless of whether they are Frobenius rings or not. We now outline it as follows: Let C be a linear code generated by M over R, where R is a finite commutative ring with characteristic 2, M is a k × 2 k matrix over R with its rows being linearly independent and satisfies M M = α α with a linearly independent vector α in R k . We can prove that the dual code C of C is a free linear code with dimension k (see Proposition 2). Furthermore, we can demonstrate that both C / H u l l ( C ) and C / H u l l ( C ) are one-dimensional free R-modules (see Propositions 4 and 5), where H u l l ( C ) = C C . Based on these facts, we can establish an isometry from R x + R y onto R 2 , where x + H u l l ( C ) and y + H u l l ( C ) serve as bases for C / H u l l ( C ) and C / H u l l ( C ) over R, respectively. By utilizing this isometry, we can construct self-dual codes of length 2 k from the matrix M and self-dual codes in R 2 , and prove that they are exactly those self-dual codes containing H u l l ( C ) as a subcode (see Theorem 1).
An apparent difference between our method and the conventional approach is that the matrix M plays different roles in both methods. In the conventional method, M is directly used as a generator matrix to generate a self-dual code. Therefore, one must search for matrices M that satisfy the condition M M = 0 concerning a chosen matrix construction. However, as illustrated above, our method imposes distinct requirements on the conditions that M must adhere to, which leads to the conclusion that M is unable to generate any self-dual code constructed using our method. More specially, let M be a k × 2 k matrix over R satisfying the conditions mentioned in the previous paragraph, and let D be a self-dual code constructed from the matrix M and D 0 using our method, where R remains a finite commutative ring with characteristic 2 and D 0 is a self-dual code in R 2 with generator matrix M 0 . Due to the involvement of D 0 , the generator matrix for D will be a matrix derived from M and M 0 rather than M itself. This means that the matrix M no longer acts directly as a generator matrix for any self-dual code created using our method. Therefore, our method diverges from the conventional approach, providing a new perspective on constructing self-dual codes over finite commutative rings of characteristic 2. In this sense, our method can be seen as a complement to the conventional approach rather than simply a continuation (see Remark 8 or the last three examples in Section 5).
In addition to the distinction mentioned above, another significant difference between these two construction methods is that our method can construct nonfree self-dual codes over finite commutative rings of characteristic 2, in contrast to the conventional approach. To further clarify this point, let us revisit the aforementioned self-dual code D . We can demonstrate that D will be nonfree if D 0 is nonfree. This implies that our method can construct nonfree self-dual codes over finite commutative rings of characteristic 2, as long as there exists a nonfree self-dual code of length 2 over the corresponding rings. However, the conventional approach frequently fails to achieve this objective. A possible explanation for this is the difficulty of determining the code size directly from its generator matrix, as highlighted in [38]. For this difficulty, it is customary to demand that the rows of the generator matrix are linearly independent when constructing self-dual codes over a finite commutative ring (like a non-chain ring) using the conventional approach. This simplifies the task of determining the size of the resulting self-orthogonal code and confirming whether it is indeed a self-dual code. As a side effect, the self-dual codes produced by the conventional method are typically free. Therefore, our method has the potential to construct self-dual codes that would be missed by the conventional approach. Additionally, once a matrix M that satisfies the aforementioned corresponding conditions has been identified, it can be utilized to construct multiple self-dual codes through our method. This is because, in general, there is more than one self-dual code of length 2 over a finite commutative ring that is not a field.
For our method to be considered a viable option for producing self-dual codes, we must address the question of determining whether the matrix M M has the form of α α , where α is a linearly independent vector. To address this question, we present a necessary and sufficient condition for M M to have this form (see Theorem 2). We also demonstrate that some known matrix constructions, like the four-circulant construction and its certain variations, are not suitable for our method to produce self-dual codes over finite commutative rings of characteristic 2 (see Theorems 3 and 4).
The rest of the paper is organized as follows: Section 2 provides preliminary definitions and results on codes and group rings, as well as discusses certain properties concerning matrices over finite commutative rings. In Section 3, we present several key results on free linear codes over finite commutative rings, which are necessary for proving our main theorem. Section 4 contains the proof of our main theorem (Theorem 1), which establishes an isometry. Based on this theorem, we introduce a new method for constructing self-dual codes over finite commutative rings with characteristic 2. Additionally, this section includes two results on constructing self-dual codes of length 2 over finite commutative rings of characteristic 2 (Propositions 8 and 9). In Section 5, we provide a necessary and sufficient condition for a symmetric matrix to have the form α α , where α is a linearly independent vector (Theorem 2). This result is crucial for our construction method. We also prove some results in this section that can be used to exclude certain matrix constructions as candidates for producing self-dual codes using our construction method (Theorems 3 and 4). Several examples are provided to propose suitable matrix constructions for our method. Finally, Section 6 ends the paper with concluding remarks and suggestions for possible future directions.

2. Preliminaries

2.1. Codes over Finite Commutative Rings

We begin by recalling the standard definitions from coding theory. In this paper, all rings are assumed to be finite commutative rings with an identity element 1 0 .
Let R be a finite commutative ring. A code  C over R of length n is a non-empty subset of R n , whose elements are called codewords. If C is an R-submodule of R n , then we say that C is linear. A linear code C is said to be free if it is a free submodule over R, with its dimension denoted as dim R C . Let x R n . The hamming weight of x , denoted by w t H ( x ) , is defined to be the number of non-zero coordinates in x . The Euclidean inner product on R n is defined by
[ x , y ] = i = 1 n x i y i ,
where x , y R n such that x = ( x 1 , x 2 , , x n ) and y = ( y 1 , y 2 , , y n ) . The dual code of C with respect to the Euclidean inner product is denoted by C and defined as
C = { x R n [ x , y ] = 0 , y C } ,
and we say that C is self-orthogonal if C C and self-dual if C = C . Additionally, the hull of a code C is defined as H u l l ( C ) = C C . By definition, H u l l ( C ) is self-orthogonal.
Given a k × n matrix M over R, we define C ( M ) to be the R-submodule R M 1 , M 2 , , M k of R n generated by M 1 , M 2 , , M k , where M i ( 1 i k ) denotes the i-th row of M. For a linear code C over R, if C = C ( M ) , we call M a generator matrix for C .
Two codes C and C in R n are said to be equivalent provided there exists a monomial matrix M such that C = C M : = { x M | x C } . In particular, if M is a permutation matrix, then we say that C and C are permutative equivalent codes.

2.2. Matrices over Finite Commutative Rings

Let us denote the set of k × n matrices in R by M a t k × n ( R ) , where R is a finite commutative ring. When k = n , we write it as M a t k ( R ) for simplicity. Given M M a t k × n ( R ) , we use M i (resp. M ( j ) ) to denote the i-th row (resp. j-th column) of M. Additionally, the transpose of matrix M is denoted as M .
We shall now discuss the properties of matrices over finite commutative rings, some of which are derived from the Chinese Remainder Theorem.
Let m l ( 1 l s ) be the distinct maximal ideals of R. The Jacobson radical  J ( R ) of R is defined as the intersection of all the maximal ideals of R, i.e., J ( R ) = l = 1 s m l , which in our case is a nilpotent ideal. Let e be a positive integer such that J ( R ) e = { 0 } . By the Chinese Reminder Theorem, we can obtain the canonical ring-isomorphism
Ψ : R R 1 × R 2 × × R s ,
r ( r ( 1 ) , r ( 2 ) , , r ( s ) ) ,
where R l ( l l s ) is the local ring R / m l e and r ( l ) : = r + m l e is the canonical image of r in R / m l e . We can further extend Ψ to the following R-algebra isomorphism
Ψ ¯ : R n R 1 n × R 2 n × × R s n ,
which is given by
( r 1 , r 2 , , r n ) ( r 1 ( 1 ) , r 2 ( 1 ) , , r n ( 1 ) ) , ( r 1 ( 2 ) , r 2 ( 2 ) , , r n ( 2 ) ) , , ( r 1 ( s ) , r 2 ( s ) , , r n ( s ) ) ,
where the R-algebra structure on R 1 n × R 2 n × × R s n is defined by the ring-homomorphism
R R 1 n × R 2 n × × R s n ,
r ( r ( 1 ) , r ( 1 ) , , r ( 1 ) ) , ( r ( 2 ) , r ( 2 ) , , r ( 2 ) ) , , ( r ( s ) , r ( s ) , , r ( s ) ) .
For a matrix M = ( r i j ) M a t k × n ( R ) , we set M ( l ) = ( r i j ( l ) ) ( 1 l s ) , which is obviously a k × n matrix over R l . Let A and B be two matrices over R, it is clear that ( A + B ) ( l ) = A ( l ) + B ( l ) and ( A B ) ( l ) = A ( l ) B ( l ) , provided that these operations are defined for the given matrices. In addition, if ( R , m ) is a local ring, then we denote by r ¯ the residue class of r R modulo the unique maximal ideal m , and define M ¯ = ( r i j ¯ ) being the k × n matrix obtained by taking modulo m .
Let S be a subset of R n that is not empty. By an R-linear combination of elements of S, one means a sum
v S r v v
where { r v } is a set of elements of R, almost all of which are equal to 0. We take the standard definition of linear independence. Namely, S is said to be linearly independent over R whenever we have an R-linear combination
v S r v v
which is equal to 0, then r v = 0 for all v S . If S is linearly independent over R, we shall also say that its elements are linearly independent over R. In particular, we refer to v as an R-linearly independent vector if the set { v } , which contains only the vector v R n , is linearly independent over R . To simplify matters, we sometimes omit the prefix R .
Using the notation given above, and keeping in mind that Ψ ¯ is an R-algebra isomorphism, the following result can be easily derived.
Lemma 1.
Let R be a finite commutative ring with s distinct maximal ideals m 1 , , m s . Let M be a k × n matrix over R. Then, the rows of M are linearly independent over R if and only if the rows of M ( l ) are linearly independent over R l for each l = 1 , 2 , , s .
We can utilize the following lemma to determine if the rows of M ( l ) are linearly independent over the finite commutative local ring R l .
Lemma 2.
Let ( R , m ) be a finite commutative local ring, and M a k × n matrix over R. Then, the following are equivalent:
(1)
the rows of M are linearly independent over R;
(2)
the rows of M ¯ are linearly independent over R / m ;
(3)
there exist A and P , where A is an invertible k × k matrix and P is an n × n permutation matrix over R, such that A M P = ( I k | H ) for some matrix H M a t k × ( n k ) ( R ) , where I k denotes the k × k identity matrix over R.
Proof. 
( 1 ) ( 2 ) follows from the fact that A n n ( m ) : = { r R r π = 0 , π m } is a non-zero ideal.
( 2 ) ( 3 ) . Since the rows of M ¯ are linearly independent over R / m , we can select k columns from M ¯ , say M ¯ ( j 1 ) , , M ¯ ( j k ) , that are also linearly independent over R / m . Let B = ( M ( j 1 ) , , M ( j k ) ) , which is obviously a k × k matrix over R. Since B ¯ = ( M ¯ ( j 1 ) , , M ¯ ( j k ) ) is invertible, we can find a matrix A M a t k ( R ) such that A ¯ B ¯ = I k ¯ . From this, we can conclude that all the diagonal elements of A B belong to R * (here R * denotes the group of units of R). Therefore, we can transform A B into the identity matrix I k M a t k ( R ) by performing a finite number of elementary row operations. This process also yields a suitable invertible k × k matrix A over R. Let A = A A , and let P be an n × n permutation matrix obtained from identity matrix I n by rearranging the column vectors as follows:
The j 1 - t h , j 2 - t h , …, j k - t h columns are moved to the 1 s t , 2 n d , …, k - t h columns, respectively. Thus, A M P is a matrix with the desired form ( I k | H ) , where H is a k × ( n k ) matrix over R.
( 3 ) ( 1 ) is clear, since A is an invertible matrix. □
From Lemmas 1 and 2, the following is an immediate consequence.
Proposition 1.
Let R be a finite commutative ring, and M a k × n matrix over R. If the rows of M are linearly independent over R, then there exists an invertible k × k matrix A and an orthogonal n × n matrix Q(i.e., Q Q = I n ) over R, such that A M Q is of type ( I k | H ) , where H is a k × ( n k ) matrix over R.
Remark 1.
Note, that the matrix Q in Proposition 1 may not necessarily be a permutation matrix, even though all the matrix Q ( 1 ) , Q ( 2 ) , , Q ( s ) are permutation matrices. We would like to emphasize that the matrices A and Q, which are necessary for our construction method, can be determined by using the proof of Lemma 2 in combination with the algebra-isomorphism Ψ ¯ given above.
We continue by recalling the definition of λ -circulant matrices. Let a = ( a 0 , a 1 , , a n 1 ) R n and let
A = a 0 a 1 a 2 a n 1 λ a n 1 a 0 a 1 a n 2 λ a n 2 λ a n 1 a 0 a n 3 λ a 1 λ a 2 λ a 3 a 0 M a t n ( R ) ,
where R is a commutative ring and λ R . Then, A is called the λ-circulant matrix generated by a , denoted A = c i r c λ ( a ) . If we let
P λ = 0 I n 1 λ 0 M a t n ( R ) ,
then it follows that A = i = 0 n 1 a i P λ i . Since P λ n = λ I n , the set of all n × n λ -circulant matrices over R forms a commutative subring of the matrix ring M a t n ( R ) . Moreover, if λ R * , where R * denotes the group of units of R, then A is a λ 1 -circulant matrix. Additionally, if λ = 1 , then A is called the circulant matrix generated by a and is more simply denoted by A = c i r c ( a ) .

2.3. Group Rings

We will proceed to define group rings and review the common methods for constructing matrices using elements from group rings. This approach was first introduced by Hurley in [20] for codes over finite fields and was later extended to finite commutative rings in [15].
Let R be a commutative ring with identity, and let G be a multiplicative group. Denote by R G the free R-module with G as its basis. Let r, r R and g, g G . We define
( r g ) ( r g ) = ( r r ) ( g g ) .
By means of the above equation, we can define a multiplication operation on R G according to the distributive law of multiplication over addition. This multiplication operation turns R G into a ring with identity, denoted by R [ G ] , which is known as the group ring of G over R .
Note, that the unit element of R [ G ] is simply e G , where e G represents the unit element of G . Additionally, R can be viewed as a subring of R [ G ] through the natural embedding
f 0 : R R [ G ] ( r r e G ) ,
which further makes R [ G ] an algebra over R .
Now, we will restrict G to a finite multiplicative group with order k . Let G = { g 1 = e G , g 2 , , g k } be a predetermined ordering of the elements in the group G . There exists a well-known injective ring homomorphism, denoted by σ , from R [ G ] into M a t k ( R ) (relative to this ordering), which maps an element v = r g 1 g 1 + r g 2 g 2 + + r g k g k R [ G ] to a matrix σ ( v ) M a t k ( R ) , defined as
σ ( v ) = r g 1 1 g 1 r g 1 1 g 2 r g 1 1 g 3 r g 1 1 g k r g 2 1 g 1 r g 2 1 g 2 r g 2 1 g 3 r g 2 1 g k r g k 1 g 1 r g k 1 g 2 r g k 1 g 3 r g k 1 g k .
Additionally, σ is also an R-algebra homomorphism and can be induced from the so-called regular representation of G .
For a vector v over R, we denote by | v | the sum of all coordinates of v .
Since G is a group, it follows that
| σ ( v ) 1 | = = | σ ( v ) k | = | σ ( v ) ( 1 ) | = = | σ ( v ) ( k ) | = i = 1 k r g i .
For an element v = r g 1 g 1 + r g 2 g 2 + + r g k g k R [ G ] , define the element v * R [ G ] as
v = i = 1 k r g i g i 1 = i = 1 k r g i 1 g i .
This is commonly referred to as the canonical involution for this group ring. This involution, in effect, is an anti-automorphism of R [ G ] of order 2 and satisfies σ ( v ) = σ ( v ) for each v R [ G ] .

3. Free Linear Codes over Finite Commutative Rings

In this section, we will present several key results on free linear codes over finite commutative rings. These results will serve as the basis for our main theorem (Theorem 1). Let the notation be as in the previous section. By utilizing Lemma 1 and Proposition 1, we can obtain the following result.
Proposition 2.
Let R be a finite commutative ring with s distinct maximal ideals m 1 , , m s . Let M be a k × n matrix over R. Denote the linear code generated by M (resp. M ( l ) ) over R (resp. R l ) as C (resp. C ( l ) ), where 1 l s . Then, the following hold:
(1)
Ψ ¯ ( C ) = C ( 1 ) × × C ( s ) .
(2)
Ψ ¯ ( C ) = C ( 1 ) × × C ( s ) .
(3)
Ψ ¯ H u l l ( C ) = H u l l ( C ( 1 ) ) × × H u l l ( C ( s ) ) .
(4)
C is a free linear code with dim R C = t if and only if C ( l ) is free over R l with dim R l C ( l ) = t for each l = 1 , 2 , , s .
(5)
If the rows of M are linearly independent over R, then C is free, | C | | C | = | R | n , and ( C ) = C . Here, | C | represents the cardinality of the set C .
Proof. 
( 1 ) , ( 2 ) , and ( 3 ) follow directly from the R-algebra isomorphism Ψ ¯ and the definition of hull. ( 4 ) is an immediate consequence of Lemma 1. Alternatively, please refer to Section 2.3 in [39].
To prove ( 5 ) , we will use Proposition 1 which states that there exists an invertible k × k matrix A and an orthogonal n × n matrix Q over R such that A M Q = ( I k | H ) , where H M a t k × ( n k ) ( R ) . This means that C = C ( I k | H ) Q . Therefore,
C = C ( H I n k ) Q .
This shows that C is free with dim R C = n dim R C , and thus | C | | C | = | R | n . Furthermore, since C is free, we can similarly deduce that ( C ) is also free with dim R ( C ) = k . Therefore, considering that C is a subset of ( C ) , we can conclude that C = ( C ) .
Remark 2.
If R is a finite commutative Frobenius ring, it is well-known that the last two conclusions of ( 5 ) in Proposition 2 remain valid even without any assumptions on the linear code C . However, R is not required to be a Frobenius ring here. To ensure the validity of these two results, we instead require C to be a free linear code. (see [39] for a full description of Frobenius rings and codes over Frobenius rings).
Proposition 2 has an important implication: it enables us to reduce much of the theory of codes by considering the case where the ring is local.
We will now recall a result on projective modules over local rings from [40]. A module is projective if it is (isomorphic to) a direct summand of a free module.
Proposition 3
([40]). Let ( R , m ) be a commutative local ring and E a finitely generated projective R-module. Then, E is free. In fact, if x 1 , , x n are elements of E whose residue classes x 1 ¯ , , x n ¯ are a basis of E / m E over R / m , then x 1 , , x n are a basis of E over R. If x 1 , , x r are such that x 1 ¯ , , x r ¯ are linearly independent over R / m , then they can be completed to a basis of E over R.
Corollary 1.
Let ( R , m ) be a finite commutative local ring with m 0 . Let C C be two free linear codes in R n . Then, C / C is a free R-module.
Proof. 
Let M 1 , , M k be a basis of C over R, where k = dim R C . We will show that this basis can be completed to a basis for C over R by applying Proposition 3. For this, it will suffice to prove that M 1 ¯ , , M k ¯ C / m C are linearly independent over R / m , where M i ¯ = M i + m C for each i = 1 , 2 , , k . Now, let us assume that r 1 , , r k R satisfy the equation r 1 ¯ M 1 ¯ + + r k ¯ M k ¯ = 0 . This implies that
r 1 M 1 + + r k M k m C .
Take π R such that π m = 0 and π 0 . (The existence of such an element π follows from the fact that m is a non-zero nilpotent ideal.) Thus, we can conclude that
π ( r 1 M 1 + + r k M k ) = 0 .
But M 1 , , M k are linearly independent over R. Hence,
π r 1 = = π r k = 0 ,
which implies that
r 1 ¯ = = r k ¯ = 0 ¯ .
This shows that M 1 ¯ , , M k ¯ C / m C are linearly independent over R / m . By Proposition 3, we can extend M 1 , , M k to form a basis M 1 , , M k , , M k of C over R, where k = dim R C . Setting C = R M k + 1 , , M k , which is clearly free over R, we obtain
C = C C ,
so
C / C ( C )
is a free R-module. □
Using Proposition 2 and Corollary 1, we can deduce the following proposition.
Proposition 4.
Let R be a finite commutative ring, and C be a free linear code of length n over R. If C / H u l l ( C ) is also free over R, then so are H u l l ( C ) and C / H u l l ( C ) . Furthermore, we have
dim R C + dim R C / H u l l ( C ) = dim R C + dim R C / H u l l ( C ) ,
and
H u l l ( C ) = C + C .
Proof. 
We first establish the following claim:
Suppose that C and C are free linear codes in R n , and C C . Then, C / C is also free as an R-module.
To prove this claim, let M 1 , , M k be a basis for C over R, where k is the dimension of C . We can then construct a matrix M with rows consisting of these basis elements. Let M be a generator matrix for C and k the dimension of C . By Proposition 2, we have
Ψ ¯ C ( M ) = C ( M ( 1 ) ) × × C ( M ( s ) ) ,
and
Ψ ¯ C ( M ) = C ( M ( 1 ) ) × × C ( M ( s ) ) .
where s is the number of maximal ideals in R . Since C C , it is clear that C ( M ( l ) ) C ( M ( l ) ) for all l. Furthermore, since the rows of M are linearly independent over R, by Lemma 1, we can conclude that each C ( M ( l ) ) is a free linear code over the corresponding local ring R l with dimension k. Thus, from the proof of the Corollary 1, for each l = 1 , 2 , , s , we can add k k rows below the last row of the matrix M ( l ) to obtain a new matrix M ( l ) , whose rows exactly form a basis for C ( M ( l ) ) . Construct a matrix M M a t k × n ( R ) from these matrices M ( l ) using the ring-isomorphism Ψ . We can see that the rows of M are linearly independent over R and form a basis for C . Note, that the first k rows of M are the same as the rows of M. This means we can extend a basis of C to a basis for C , thereby proving that the quotient module C / C is also free over R.
To prove this proposition, we consider the exact sequence
0 H u l l ( C ) C φ C / H u l l ( C ) 0 ,
where φ is the canonical map. Since C / H u l l ( C ) is assumed to be free over R, the exact sequence splits, namely, there is an R-module homomorphism
ψ : C / H u l l ( C ) C
such that φ ψ = i d C / H u l l ( C ) . This, combined with our previous claim and Proposition 2, confirms that both H u l l ( C ) and C / H u l l ( C ) are also free over R.
The equation
dim R C + dim R C / H u l l ( C ) = dim R C + dim R C / H u l l ( C )
is derived directly from the identity equation | C | | C / H u l l ( C ) | = | C | | C / H u l l ( C ) | .
As for the last conclusion, by Proposition 2, we know that ( C ) = C , and hence we have
( C + C ) = C C = H u l l ( C ) ,
which implies that
C + C H u l l ( C ) .
Furthermore, considering the exact sequence
0 H u l l ( C ) C C C + C 0 ,
where the map
H u l l ( C ) C C and C C C + C
are defined as
z ( z , z ) and ( x , y ) x + y ,
respectively, we can see that
| R | n = | C C | = | H u l l ( C ) | | C + C | .
We can also see that | R | n = | H u l l ( C ) | | H u l l ( C ) | , as H u l l ( C ) is free over R . Therefore, we can conclude that
H u l l ( C ) = C + C .

4. The Construction Method

We will hereafter always assume that R is a finite commutative ring of characteristic 2, and it is not necessarily a Frobenius ring.
In this section, armed with the preparation from the preceding section, we will introduce a new method for constructing self-dual codes over R by utilizing self-dual codes of length 2. This method is based on our main theorem, which is stated as follows:
Theorem 1.
Let C be a free linear code of length n over R with dimension k, where n = 2 k . Assume that C / H u l l ( C ) is a free R-module with dimension 1. Then:
(1)
Both H u l l ( C ) and C / H u l l ( C ) are free over R with dimensions k 1 and 1, respectively.
(2)
Let x C and y C . Then, x + H u l l ( C ) (resp. y + H u l l ( C ) ) is a basis of C / H u l l ( C ) (resp. C / H u l l ( C ) ) over R if and only if [ x , x ] (resp. [ y , y ] ) lies in R * . Furthermore, if x and y satisfy these equivalent conditions, then they are linearly independent over R and H u l l ( C ) = H u l l ( C ) R x R y .
(3)
Let x C and y C be two elements satisfying the equivalent conditions in (2), respectively. Then, the map
η : R x + R y R 2
defined by
η ( r 1 x + r 2 y ) = ( r 1 | x | , r 2 | y | )
is an isometry, meaning that η is an R-module isomorphism with [ η ( v ) , η ( w ) ] = [ v , w ] for all v , w R x + R y . Define D ( C ) to be the set of all self-dual codes of length n over R that contain H u l l ( C ) as a subcode. Then,
D ( C ) = { H u l l ( C ) + η 1 ( D 0 ) | D 0 is a self-dual code in R 2 } .
Additionally, the cardinality of D ( C ) , denoted as | D ( C ) | , is equal to the number of self-dual codes in R 2 .
Proof. 
( 1 ) follows directly from Propositions 2 and 4 in the previous section.
( 2 ) We will only provide the proof for x , as the proof for y is similar. This is because, by (5) in Proposition 2, we observe that C is also a free linear code with the same dimension as C and H u l l ( C ) = H u l l ( C ) . We now let r R and x C . Then, we have the obvious implications:
r ( x + H u l l ( C ) ) = H u l l ( C ) [ r x , C ] = { 0 } [ r x , R x + H u l l ( C ) ] = 0 r [ x , x ] = 0 ,
where [ r x , C ] : = { [ r x , x ] | x C } . From this, if [ x , x ] R , then x + H u l l ( C ) is linearly independent over R, and hence forms a basis for C / H u l l ( C ) over R . Conversely, if x + H u l l ( C ) is a basis of C / H u l l ( C ) over R, then
C = R x + H u l l ( C ) ,
whence the penultimate implication arrow can be replaced by “ ”. Thus, we conclude
[ x , x ] R * .
Furthermore, let x C , y C , and r 1 , r 2 R be such that [ x , x ] , [ y , y ] R * , and r 1 x + r 2 y = 0 . Since
[ r 1 x + r 2 y , x ] = [ r 1 x + r 2 y , y ] = [ x , y ] = 0 ,
we can conclude that
r 1 [ x , x ] = r 2 [ y , y ] = 0 .
But both [ x , x ] and [ y , y ] are units in R, it follows that r 1 = r 2 = 0 . Therefore, x , y are linearly independent over R.
For the direct sum
H u l l ( C ) = H u l l ( C ) R x R y ,
it can be derived using Proposition 4.
( 3 ) We have proven that x , y are linearly independent over R. This demonstrates that the map
η : R x + R y R 2
defined by
η ( r 1 x + r 2 y ) = ( r 1 | x | , r 2 | y | )
is well-defined. It can be verified that η is an isometry, given that [ x , x ] and [ y , y ] are in R * , [ x , y ] = 0 , and the characteristic of R is 2 .
Our remaining task is to prove that
D ( C ) = { H u l l ( C ) + η 1 ( D 0 ) | D 0 is a self - dual code in R 2 } .
To conduct this, we claim that
η D ( R x + R y ) = η D ( R x + R y ) ,
if D is a linear code in R n satisfying H u l l ( C ) D H u l l ( C ) .
In fact, from H u l l ( C ) D H u l l ( C ) , we can deduce that
D = H u l l ( C ) D ( R x + R y ) .
Additionally, since R x + R y H u l l ( C ) and η is an isometry, we obtain that
η D ( R x + R y ) = η ( D ( R x + R y ) ) ( R x + R y ) = η D ( R x + R y ) ,
and hence
η D ( R x + R y ) = η D ( R x + R y ) .
Now, let D D ( C ) . It is clear that
H u l l ( C ) D H u l l ( C )
and
D = H u l l ( C ) D ( R x + R y ) .
Set D 0 = η D ( R x + R y ) , which is a linear code in R 2 . By the claim, we have
D 0 = η D ( R x + R y ) = η D ( R x + R y ) = η D ( R x + R y ) = D 0 ,
hence D 0 is self-dual. Thus, we obtain
D = H u l l ( C ) η 1 ( D 0 ) .
On the other hand, let D 0 be a self-dual code in R 2 and set
D = H u l l ( C ) + η 1 ( D 0 ) .
Considering that D is a linear code in R n and H u l l ( C ) D H u l l ( C ) , we have
D = H u l l ( C ) D ( R x + R y ) = H u l l ( C ) η 1 ( D 0 ) ,
and hence
η 1 ( D 0 ) = D ( R x + R y ) .
Again by the above claim, we can see that
η D ( R x + R y ) = η D ( R x + R y ) = D 0 = D 0 .
This shows that
D = H u l l ( C ) + η 1 ( D 0 ) = H u l l ( C ) + D ( R x + R y ) = D ,
and, therefore, D D ( C ) . Thus, we have shown that
D ( C ) = { H u l l ( C ) + η 1 ( D 0 ) | D 0 is a self - dual code in R 2 } .
As for the conclusion regarding the cardinality of D ( C ) , it follows directly from the results we have proven. □
As previously mentioned, Theorem 1 outlines a method for constructing self-dual codes over finite commutative rings of characteristic 2. However, before delving into the details, we must address the question of when C / H u l l ( C ) can be a one-dimensional free R-module. To solve this problem, we will first recall two small results.
Lemma 3.
Let R be a finite commutative ring with an identity element 1 0 . Let r 1 , , r k R . Then, the vector ( r 1 , , r k ) is an R-linearly independent vector if and only if the ideal r 1 , , r k generated by r 1 , , r k in R is equal to R itself.
Proof. 
This can be shown by noting that the Jacobson radical J ( R ) is a nilpotent ideal, and r 1 , , r k would be contained in some maximal ideal if it is a proper ideal. □
Lemma 4.
Let R be a commutative ring, and M M a t k × n ( R ) . Then, C ( M ) / H u l l C ( M ) C ( M M ) as R-modules.
Proof. 
Consider the map
ϕ : C ( M ) C ( M M )
defined by ϕ ( x ) = x M for every x C ( M ) , and verify ker ( ϕ ) = H u l l C ( M ) .
Now, we will provide a necessary and sufficient condition for linear code C to satisfy the property that C / H u l l ( C ) is a one-dimensional free R-module.
Proposition 5.
Let C be a linear code of length n over R . The following statements are equivalent:
(1)
C / H u l l ( C ) is a one-dimensional free R-module;
(2)
There exists a generator matrix M for C such that M M = α α for some linearly independent vector α over R ;
(3)
For any generator matrix M for C , we have M M = α α for some linearly independent vector α over R .
Furthermore, if M M a t k × n ( R ) is a matrix that generates C and M M = α α , where α is a linearly independent vector in R k , then the map
C / H u l l ( C ) R ,
defined by
v M + H u l l ( C ) v α
for any v R k , is an R-module isomorphism.
Proof. 
( 1 ) ( 2 ) . Let M 0 be a generator matrix for H u l l ( C ) , and let x C be a vector such that x + H u l l ( C ) forms a basis for C / H u l l ( C ) over R. Construct a new matrix M by appending the vector x to the bottom of M 0 . This results in M being a generator matrix for C . Set α = ( 0 , , 0 , | x | ) . It is easy to verify that M M = α α , and hence
C ( M M ) = R ( 0 , , 0 , | x | 2 ) .
By Lemma 4, we have
| R ( 0 , , 0 , | x | 2 ) | = | C ( M M ) | = | C / H u l l ( C ) | = | R | .
This shows that ( 0 , , 0 , | x | 2 ) , and hence α , is an R-linearly independent vector.
( 2 ) ( 3 ) . Consider M as a generator matrix for C that satisfies M M = α α , where α = ( α 1 , , α k ) is a linearly independent vector in R k . Thus, for any generator matrix M of C , there exists a suitable matrix A, such that
A M = M .
Set α = ( α 1 , , α k ) = α A . Direct calculation shows that
M M = α α .
We also need to prove that α is an R-linearly independent vector. In fact, according to Lemma 4,
| C ( α α ) | | H u l l ( C ) | = | C | = | C ( α α ) | | H u l l ( C ) | .
Furthermore, we can see that
C ( α α ) = α 1 , , α k α
and
C ( α α ) = α 1 , , α k α .
Since α is an R-linearly independent vector, Lemma 3 states that α 1 , , α k = R . Thus,
| α 1 , , α k α | = | C ( α α ) | = | C ( α α ) | = | R | .
From this, we can conclude that α is an R-linearly independent vector.
( 3 ) ( 1 ) . Let M be a generator matrix for C such that M M = α α , where α = ( α 1 , , α k ) is a linearly independent vector in R k . Using Lemma 4 again, we have
C / H u l l ( C ) C ( M M ) = C ( α α ) = α 1 , , α k α .
Since α is a linearly independent vector, α 1 , , α k = R by Lemma 3. Thus,
C / H u l l ( C ) ( R α )
is a one-dimensional free R-module.
To prove the last statement, consider the map
ϵ : C ( M ) R
defined by
ϵ ( v M ) = v α
for every v R k , where k is the number of rows in M. It is easy to verify that ϵ is well-defined and an epimorphism. Next, let v R k . Since α is a linearly independent vector, we have
v M ker ( ϵ ) v α = 0 v α α = 0 v M M = 0 v M H u l l C ( M ) .
Thus, ker ( ϵ ) = H u l l ( C ) , so that
C / H u l l ( C ) R v M + H u l l ( C ) v α
is an R-module isomorphism, as desired. □
Remark 3
(The proof for the implication ( 2 ) ( 3 ) also proves the following statement).
  • Let A be a k × k matrix over R such that A can be written as α α for an R-linearly independent vector α in R k . Then, for any vector α in R k , if α α equals A, then α is also an R-linearly independent vector.
Proposition 5 raises the question of how to determine if the square matrix M M can be expressed as α α , where α is a linearly independent vector over R . In order to address this problem, we introduce a method in Section 5, which provides a necessary and sufficient condition for determining if a square matrix has this form.
Example 1.
Let R = F 2 [ x ] / x 4 , which is a local Frobenius ring of order 16 with characteristic 2. To simplify notation, we define x ¯ = x + x 4 . Next, we define three 2 × 4 matrices over R :
M 1 = 1 0 1 x ¯ 0 1 x ¯ 1 ,
M 2 = 1 0 x ¯ + x ¯ 2 + x ¯ 3 1 + x ¯ + x ¯ 2 + x ¯ 3 0 1 1 x ¯ ,
and
M 3 = 1 0 x ¯ + x ¯ 2 + x ¯ 3 x ¯ + x ¯ 2 + x ¯ 3 0 1 1 x ¯ .
It can be calculated that
M 1 M 1 = x ¯ 2 0 0 x ¯ 2 , M 2 M 2 = 0 0 0 x ¯ 2 , and M 3 M 3 = 1 x ¯ x ¯ x ¯ 2 .
It is easy to verify that M 2 M 2 and M 3 M 3 can be written as ( 0 , x ¯ ) ( 0 , x ¯ ) and ( 1 , x ¯ ) ( 1 , x ¯ ) , respectively. However, we will obtain a contradiction if we assume that M 1 M 1 can be expressed in this form. Let C i ( i = 1 , 2 , 3 ) denote the linear code generated by M i over R . It is evident that all of them are two-dimensional free linear codes with length 4 over R . Furthermore, by Proposition 5, it follows that C 3 / H u l l ( C 3 ) is a one-dimensional free R-module, while both C 1 / H u l l ( C 1 ) and C 2 / H u l l ( C 2 ) are not. Additionally, we can obtain that the order of H u l l ( C 1 ) is 16 by computer, and hence | C 1 / H u l l ( C 1 ) | = | R | . Even so, C 1 / H u l l ( C 1 ) is not a free module with dimension 1 over R .
The occurrence of these three cases in Example 1 is not surprising, after all, the alphabets we consider are finite rings rather than finite fields.
-
The construction method
We have now reached the point where we will present our method for constructing self-dual codes of length n over finite commutative rings R with characteristic 2, where n = 2 k is an even number. This method, founded on Theorem 1 and Proposition 5, consists of six steps.
Step 1: 
Search for matrices M in M a t k × n ( R ) such that the rows of M are linearly independent over R and M M = α α , for an R-linearly independent vector α = ( α 1 , , α k ) in R k . The linear code generated by M will be denoted as C .
Step 2: 
Select a codeword x from C such that x + H u l l ( C ) forms a basis for C / H u l l ( C ) over R.
This can be conducted by finding a vector ( r 1 , , r k ) in R k that satisfies r 1 α 1 + + r k α k R * . Then, set
x = ( r 1 , , r k ) M .
According to the last conclusion of Proposition 5, x + H u l l ( C ) forms a basis for C / H u l l ( C ) over R .
Step 3: 
Select a codeword y from C such that y + H u l l ( C ) forms a basis for C / H u l l ( C ) over R .
This can be conducted by finding a generator matrix for C . To conduct this, we can use the proof of Lemma 2, as demonstrated in Remark 1, to determine two suitable matrices A and Q such that A M Q is of the form ( I k | H ) , where A is a k × k invertible matrix, Q is an n × n orthogonal matrix over R, and H is a k × k matrix over R . One can verify immediately that ( H | I k ) Q is a generator matrix for C . Next, according to (2) in Theorem 1, we need to find a vector ( r 1 , , r k ) R k that satisfies the condition
r 1 ( | H ( 1 ) | + 1 ) + + r k ( | H ( k ) | + 1 ) R * ,
and use this vector to construct the vector y as
y = ( r 1 , , r k ) ( H | I k ) Q .
This ensures that y + H u l l ( C ) is a basis for C / H u l l ( C ) over R . If M is initially in the form of ( I k | H ) , the process of finding y can be simplified significantly.
Step 4: 
Determine a generator matrix for H u l l ( C ) .
From the proof of the last statement in Proposition 5, it follows that
H u l l ( C ) = { v M | v R k and [ v , α ] = 0 } .
This means that we only need to find a basis for C ( α ) (remember that α is an R-linearly independent vector in R k ). Once we have found this basis, denoted as { v 1 , , v k 1 } , we can use it to construct a basis for H u l l ( C ) over R, namely,
{ v 1 M , , v k 1 M } .
These basis elements can then be arranged as rows to form a ( k 1 ) × n matrix M , which will serve as a generator matrix for H u l l ( C ) .
Step 5: 
Identify the corresponding isometry η as defined in Theorem 1.
Step 6: 
Construct self-dual codes of length n over R from self-dual codes in R 2 .
Let D 0 be a self-dual code in R 2 with a generator matrix M 0 . We can then construct the resulting self-dual code D as H u l l ( C ) η 1 ( D 0 ) . The generator matrix for D can be easily obtained from the generator matrices M and M 0 .
Remark 4.
Regarding this construction method, we would like to address two additional points.
Firstly, once a matrix M that satisfies the conditions outlined in Step 1 has been found, it can be utilized to construct multiple self-dual codes through the aforementioned method. This is because there is often more than one self-dual code of length 2 over R . Additionally, the self-dual code D produced by this method may or may not be free, depending on whether the corresponding self-dual code D 0 of length 2 is also a free linear code. Therefore, our method allows for the construction of nonfree self-dual codes, as long as there is a nonfree self-dual code in R 2 . This objective is typically unachievable using the conventional approach. These advantages can be seen as benefits of our construction method.
Secondly, when the ring R is a finite commutative local ring, Steps 2 and 4 can be completed effectively. This is because α contains a coordinate component that belongs to R * in this case. Additionally, Step 3 can be easily accomplished by utilizing the proof of Lemma 2. However, even if R is not a local ring, these steps can still be completed with the help of the Chinese Remainder Theorem or the algebra-isomorphism Ψ ¯ defined in Section 2. Nevertheless, if R has multiple maximal ideals, Step 3 may be time-consuming. Therefore, a more efficient method for finding y is needed.
Examples of constructing self-dual codes using this method will be provided in Section 5.
Next, we will present two propositions: Propositions 6 and 7. One can reduce computation time, while the other, a slight generalization of Theorem 3.2 in [41], can be used to construct more matrices M that meet the requirements outlined in Step 1.
Proposition 6.
Let C be a linear code over R with the same properties as stated in Theorem 1. Let P be an n × n permutation matrix over R . Set C = C P : = { x P | x C } . Then, C is also a free linear code over R with length n and dimension n / 2 . Additionally, C / H u l l ( C ) is also a one-dimensional free R-module. Furthermore, there is a bijection between D ( C ) and D ( C ) , given by D D P .
Proof. 
More generally, let us assume that P is an orthogonal matrix. It follows from this assumption that the map
R n R n
defined by
v v P
is an isometry. As a result, C is also a n / 2 -dimensional free linear code with length n, and C / H u l l ( C ) is also a one-dimensional free R-module. Additionally, we can see that
H u l l ( C ) = H u l l ( C ) P .
Thus, we can define a map from D ( C ) into D ( C ) by
D D P
for any D in D ( C ) . Since P is an invertible matrix and | D ( C ) | = | D ( C ) | , which equals the number of self-dual codes in R 2 , we can conclude that this map is a bijection, as desired. □
Proposition 7.
Let M be a k × n matrix over R, and let v and w be two vectors in R n . Define M ( v , w ) to be the k × n matrix whose i-th row is M i + [ v , M i ] w + [ w , M i ] v , where M i is the i-th row of M, and i = 1 , 2 , , k . If [ v , v ] = [ v , w ] = [ w , w ] = 0 , then M ( v , w ) M ( v , w ) = M M . Additionally, if the rows of M are linearly independent over R, then the same is true for M ( v , w ) .
Proof. 
Set Q ( v , w ) = I n + v w + w v . Given the conditions, it can be deduced that Q ( v , w ) is an orthogonal symmetric n × n matrix over R . Consider the map
λ : R n R n
defined by
λ ( v ) = v + [ v , v ] w + [ w , v ] v
for any v in R n . This map can be easily verified as an isometry, and it can be seen that
λ ( v ) = v Q ( v , w ) .
This implies that the i-th row of M ( v , w ) is equal to λ ( M i ) = M i Q ( v , w ) . Therefore, it follows that
M ( v , w ) = M Q ( v , w ) .
From this, we can then deduce that
M ( v , w ) M ( v , w ) = M M .
Additionally, since Q ( v , w ) is an invertible matrix, the condition that the rows of M are linearly independent over R also implies that the rows of M ( v , w ) are linearly independent over R. □
Remark 5.
Maintaining the notation used in Proposition 7, we set n = 2 k and assume that the rows of M are linearly independent over R . Furthermore, we assume that M M = α α , where α is an R-linearly independent vector in R k . By applying Proposition 7, we can see that M ( v , w ) M ( v , w ) = α α . Thus, we construct a new matrix M ( v , w ) that satisfies the requirements in Step 1. Now, let C and C be two linear codes generated by M and M ( v , w ) , respectively. These codes are k-dimensional free linear codes of length n over R . Furthermore, Proposition 5 implies that both C / H u l l ( C ) and C / H u l l ( C ) are one-dimensional free modules over R . This means that both C and C satisfy the conditions in Theorem 1. Additionally, we can see that
C = C M ( v , w ) = C M Q ( v , w ) = C ( M ) Q ( v , w ) = C Q ( v , w ) .
Since Q ( v , w ) is orthogonal, it follows from the proof of Proposition 6 that the map
D ( C ) D ( C )
given by
D D Q ( v , w )
is a bijection.
To construct self-dual codes using our method, one must first obtain self-dual codes of length 2 over the corresponding ring. In response to this necessity, we will present two results regarding the construction of self-dual codes of length 2 to conclude this section. In the first result, for finite commutative rings of characteristic 2, a comprehensive list of all free self-dual codes of length 2 is provided. In the second result, concerning a finite commutative local ring of characteristic 2, we obtain a nonfree self-dual code of length 2. Moreover, for a finite commutative chain ring with characteristic 2, we construct all nonfree self-dual codes of length 2 over it.
A finite commutative ring which is both principal and local is called a finite chain ring. For an alternative and equivalent definition of chainrings, as well as a discussion of their properties, please refer to [39].
Proposition 8.
The set of all free self-dual codes of length 2 over R is equal to
{ R ( 1 , 1 + r ) | r R and r 2 = 0 } .
Proof. 
On one hand, let C = C ( ( 1 , 1 + r ) ) , where r R and r 2 = 0 . It is clear that C is self-orthogonal. By Proposition 2, since C is a one-dimensional free linear code over R, we can conclude that the size of C is also | R | , and hence C = C . Thus, C is a free self-dual code of length 2 over R .
On the other hand, let C be a free self-dual code of length 2 over R . Again from Proposition 2, it follows that the dimension of C is 1 . Let ( r 1 , r 2 ) R 2 be a basis for C . Then, C = R ( r 1 , r 2 ) . Set r = r 1 + r 2 . Since C is self-dual, r 2 = 0 . Furthermore, since ( r 1 , r 2 ) = ( r 1 , r 1 + r ) is linearly independent over R, according to Lemma 3, there exist r 3 and r 4 in R such that r 3 r 1 + r 4 ( r 1 + r ) = 1 , which implies that r 3 r 1 + r 4 r 1 = 1 + r 4 r . Since r 4 r is a nilpotent element, it follows that r 1 R * . Thus,
C = R ( r 1 , r 2 ) = R ( r 1 , r 1 + r ) = R ( 1 , 1 + r 1 1 r ) ,
where ( r 1 1 r ) 2 = 0 .
Proposition 9.
Let ( R , m ) be a finite commutative local ring with the unique maximal ideal m 0 . Let e be the minimum positive integer number satisfying m e = 0 . Define A n n ( m ) = { r R | r π = 0 , π m } as usual. Then:
( 1 ) Let C = { ( π , π + r ) | π m , r A n n ( m ) } . Then, C is a nonfree self-dual code of length 2 over R . Furthermore, if r A n n ( m ) for each r R satisfying r 2 = 0 , then code C is the unique nonfree self-dual code of length 2 over R .
( 2 ) If R is a chain ring with m = π , then the set of all nonfree self-dual codes of length 2 over R is equal to
{ C ( M ) | M T } ,
where
T = { π e 2 0 0 π e 2 , π e 1 r π e 1 0 π e 2 | e 1 , e 2 Z + , e 1 < e 2 , and e 1 + e 2 = e ; r 1 + m e 2 e 1 } .
(Note: If e is an odd number, then π e 2 is not defined. Therefore, in this case, the former type of matrix in the set T will not occur.)
Furthermore, let C and C be two linear codes generated by
π e 1 r π e 1 0 π e 2 and π e 3 r π e 3 0 π e 4 T ,
respectively, where r , r 1 + m . Then, C = C if and only if e 1 = e 3 , e 2 = e 4 , and r + r m e 2 e 1 .
Proof. 
( 1 ) By definition, C is self-orthogonal. However, we can also show that C is self-dual. To do so, let ( r 1 , r 2 ) C . Since [ ( r 1 , r 2 ) , ( 0 , r ) ] = [ ( r 1 , r 2 ) , ( π , π ) ] = 0 for each r A n n ( m ) and π m , we can conclude that r 1 + r 2 A n n ( m ) and r 2 m . Let us set r = r 1 + r 2 . Then, ( r 1 , r 2 ) = ( r 1 , r 1 + r ) , which clearly belongs to C . Therefore, C is a self-dual code with length 2 over R . It is clear that C is not a free linear code.
Next, we will prove the uniqueness of C under the hypothesis that for every r R satisfying r 2 = 0 , r A n n ( m ) . For this, let us assume C is also a nonfree self-dual code of length 2 over R . It is easy to verify that C m × m , for otherwise C would contain an R-linearly independent vector and hence be a free linear code, contradicting the fact that C is not free. For each ( r 1 , r 2 ) C , we have r 1 + r 2 A n n ( m ) , since ( r 1 + r 2 ) 2 = 0 . Therefore, ( r 1 , r 2 ) = r 1 , r 1 + ( r 1 + r 2 ) belongs to C . Thus, we obtain that C C and hence C = C . This implies that C is the unique nonfree self-dual code with length 2 over R .
( 2 ) Consider a matrix M over the chain ring R that can generate a nonfree self-dual code of length 2. It is also easy to verify that all the components of M are contained in m . Since R is a chain ring, we can transform the matrix M into a new matrix M , which can take one of two forms:
π e 1 0 0 π e 2 or π e 3 r π e 3 0 π e 4 .
Here, e 1 , e 2 , e 3 , and e 4 are all positive integers that satisfy the conditions e 1 e 2 , e 3 < e 4 , respectively, and r R m e 4 e 3 . This can be achieved through a finite sequence of elementary row operations and column permutations and by deleting any rows that consist entirely of zeros. Since C ( M ) is a self-dual code and is permutation equivalent to C ( M ) , C ( M ) is also a self-dual code.
If M has the form on the left side, we can then conclude that
e 1 = e 2 = e / 2 .
This is because the surjection
R 2 C ( M )
given by
( r 1 , r 2 ) r 1 ( π e 1 , 0 ) + r 2 ( 0 , π e 2 )
has a kernel of A n n ( m e 1 ) × A n n ( m e 2 ) and | C ( M ) | = | R | .
On the other hand, If M has the form on the right side, we can then obtain that
e 3 + e 4 = e and r 1 + m e 2 e 3 .
This can be derived using a similar approach as in the previous case.
Additionally, it is important to note that if e 3 < e 4 and r 1 + m e 2 e 3 , then
r π e 3 π e 3 π e 4 0 = r 0 0 1 1 0 π e 4 e 3 1 1 0 0 r 1 π e 3 r 1 π e 3 0 π e 4 ,
and r 1 is also in 1 + m e 2 e 3 . Thus, from the above analysis, it follows that every nonfree self-dual code of length 2 over R belongs to the set { C ( M ) | M T } .
As for the reverse inclusion, one can easily verify that all the linear codes generated by matrices in the set T are nonfree self-dual codes of length 2 over R .
To prove the last statement in the proposition, we first assume C = C . This implies that there exist r 1 , r 2 , r 3 , and r 4 in R such that
( 0 , π e 2 ) = r 1 ( π e 3 , r π e 3 ) + r 2 ( 0 , π e 4 )
and
( π e 1 , r π e 1 ) = r 3 ( π e 3 , r π e 3 ) + r 4 ( 0 , π e 4 ) .
From this, it follows that π e 2 π e 4 . Similarly, we can see that the reverse inclusion is also true. Thus, e 2 = e 4 , and then e 1 = e 3 , as e 1 + e 2 = e = e 3 + e 4 . Furthermore, from the equation
( π e 1 , r π e 1 ) = r 3 ( π e 1 , r π e 1 ) + r 4 ( 0 , π e 2 ) ,
it follows that
r π e 1 + r π e 1 = r 4 π e 2 ,
and hence r + r m e 2 e 1 . Conversely, since r + r m e 2 e 1 , there exists an element r 0 in R such that r + r = r 0 π e 2 e 1 . From this, we can deduce that
r π e 1 = r π e 1 + r 0 π e 2 and r π e 1 = r π e 1 + r 0 π e 2 .
Therefore,
( π e 1 , r π e 1 ) = ( π e 1 , r π e 1 ) + r 0 ( 0 , π e 2 )
and
( π e 1 , r π e 1 ) = ( π e 1 , r π e 1 ) + r 0 ( 0 , π e 2 ) .
Combining the conditions e 1 = e 3 and e 2 = e 4 , this shows that C = C .
Remark 6.
In Proposition 9, when R is a finite commutative chain ring with characteristic 2 and e is an even number, it is easy to prove that the self-dual codes generated by the two types of matrices in the set T are not equal. Additionally, assuming that R is a finite commutative principal ring with characteristic 2, we can theoretically construct all self-dual codes of length 2 over R by applying Propositions 8 and 9. This is because R is isomorphic, via the Chinese Remainder Theorem, to a finite direct product of chainrings.

5. Conditions for a Matrix to Take the Form of αα

In the previous section, we posed a question that still needs to be answered: How can we determine if a symmetric matrix A M a t k ( R ) (i.e., A = A ) can be written in the form of α α , where α is an R-linearly independent vector in R k ? To address this problem, we introduce the following theorem, which is essential for the construction method discussed in the previous section.
Theorem 2.
Let A be a k × k symmetric matrix over R, with all its diagonal elements being square elements in R . Denote the ( i , j ) -component of A as a i j . Then, the following are equivalent:
(1)
A can be written in the form of α α , where α is an R-linearly independent vector in R k .
(2)
( a 11 , , a k k ) is linearly independent over R, and there exist elements r 1 , , r k , r 1 , , r k in R satisfying r i 2 = a i i for each i = 1 , 2 , , k and r 1 r 1 + + r k r k = 1 , such that A = α α , where α = ( r 1 , , r k ) A .
(3)
( a 11 , , a k k ) is linearly independent over R . Additionally, for any elements r 1 , , r k , r 1 , , r k in R, if r i 2 = a i i for each i = 1 , 2 , , k and r 1 r 1 + + r k r k = 1 , then A = α α , where α = ( r 1 , , r k ) A .
Proof. 
( 1 ) ( 2 ) . Let A = α α , where α = ( r 1 , , r k ) is an R-linearly independent vector in R k . It is clear that a i i = r i 2 and A i = r i α for each i = 1 , 2 , , k , where A i is the i-th row of A . Since α is linearly independent over R, it follows from Lemma 3 that
r 1 , , r k = R ,
and hence
a 11 , , a k k = R .
By Lemma 3, this means that the vector ( a 11 , , a k k ) is also linearly independent over R . Next, let r 1 , , r k be elements in R such that r 1 r 1 + + r k r k = 1 . We want to show that
α = ( r 1 , , r k ) A .
Indeed,
( r 1 , , r k ) A = r 1 A 1 + + r k A k = r 1 r 1 α + + r k r k α = ( r 1 r 1 + + r k r k ) α = α .
Thus, we have completed the proof of this part.
( 2 ) ( 3 ) . Given the conditions in ( 2 ) , there exist elements r 1 , , r k , r 1 , , r k in R satisfying r i 2 = a i i for each i = 1 , 2 , , k and r 1 r 1 + + r k r k = 1 , such that A = β β , where β = ( r 1 , , r k ) A . Now, let r 1 , , r k , r 1 , , r k be a family of elements in R satisfying r i 2 = a i i for each i = 1 , 2 , , k and r 1 r 1 + + r k r k = 1 . Set α = ( r 1 , , r k ) A . We need to show that
A = α α .
First, we can see that r i 2 = a i i = β i 2 for any i, where β i is the i-th coordinate of β . Therefore, for each i = 1 , 2 , , k , there is an element Δ i in R satisfying Δ i 2 = 0 and r i = β i + Δ i . Since r 1 r 1 + + r k r k = 1 , it follows that
r 1 β 1 + + r k β k = 1 + Δ 0 ,
where Δ 0 = r 1 Δ 1 + + r k Δ k . Furthermore, since A = β β , we have
α = ( r 1 , , r k ) A = ( r 1 β 1 + + r k β k ) β = ( 1 + Δ 0 ) β .
Noting that Δ 0 2 = 0 , we can conclude that
α α = β ( 1 + Δ 0 ) ( 1 + Δ 0 ) β = β β = A ,
as desired.
( 3 ) ( 1 ) . Since a i i is a square element in R, there exists an element r i in R satisfying r i 2 = a i i , for each i = 1 , 2 , , k . By the linear independence of ( a 11 , , a k k ) over R, it follows that r 1 , , r k = R , meaning that there are elements r 1 , , r k in R such that r 1 r 1 + + r k r k = 1 . Thus, from (3), we can obtain that
A = α α ,
where α = ( r 1 , , r k ) A . Furthermore, the linear independence of α follows directly from Lemma 3 and the fact that the vector ( a 11 , , a k k ) is linearly independent over R. □
Remark 7.
Let r 1 , , r k be elements in R such that r 1 , , r k = R . In Theorem 2, a family of elements r 1 , , r k in R is needed to satisfy the equation r 1 r 1 + + r k r k = 1 in order to determine the corresponding vector α. The Chinese Remainder Theorem will once again play a crucial role in finding these elements. Additionally, if any of the r i is a unit in R, the process will be effortless. It is important to note that the vector α is necessary for our construction method to determine the corresponding x and H u l l ( C ) in Steps 2 and 4. Fortunately, Theorem 2 also provides a method for constructing the required vector α, as described above.
Let R be a commutative ring. If R is an Artinian ring with J ( R ) = 0 , then R is a semisimple ring. All semisimple commutative rings are also Frobenius rings. In the case of semisimple rings with characteristic 2, we have the following proposition:
Proposition 10.
Let R be a finite commutative semisimple ring with characteristic 2. Let A be a k × k matrix over R. Then, A takes the form α α , where α is a vector in R k , if and only if all the diagonal elements of A are square elements of R and A = ( r 1 , , r k ) ( r 1 , , r k ) , as long as r 1 , , r k R satisfying r 1 2 , , r k 2 are exactly the diagonal elements of A.
Proof. 
It suffices to note that there are no non-zero nilpotent elements in R. □
Remark 8.
In addition to the advantage discussed in Remark 4, we would like to highlight another aspect. Our construction method can be seen as a supplement to the conventional method for producing self-dual codes. As mentioned in Section 1, different types of generation matrices M have been utilized in producing self-dual codes over finite commutative rings of characteristic 2. These matrices typically have half as many rows as columns and have rows that are linearly independent over R. Thus, the linear code C generated by M is self-dual only when M M = 0 . Hence, under the conventional approach, if matrix M fails to satisfy the condition M M = 0 , it is commonly disregarded and not taken into account for the construction of self-dual codes. Nevertheless, our method offers a new idea. Specifically, if one can confirm through the aforementioned two results that the matrix M M takes the form α α for some R-linearly independent vector α, then the matrix M can still be utilized for the creation of self-dual codes. This positions our method as a significant supplement to the conventional approach, as demonstrated by the last three examples in this section.
However, if M takes the form I k | σ ( v ) , where σ has been defined in Section 2, v is an element in R [ G ] , and G is an even-order group (meaning k is even), then it is impossible to express M M as α α for any vector α that is linearly independent over R. This is due to the following more general result.
Theorem 3.
Let R be a finite commutative ring with characteristic 2. Consider matrix M in the form of ( I k | A ) , where A is a k × k matrix over R. Let a (resp. b ) denote the vector that is the sum of all rows (resp. columns) of A . Let G = { g 1 = e G , g 2 , , g k } be a finite group with order k, and σ be the corresponding injection from the group ring R [ G ] into M a t k ( R ) . Denote by S the set of all elements v R [ G ] such that the matrix M = I k | σ ( v ) satisfies the condition that M M takes the form α α for some R-linearly independent vector α in R k . The following statements hold:
(1)
If there exists a maximal ideal m in R such that a ¯ = b ¯ = ( r ¯ , , r ¯ ) for some element r in R, and k is an even number, then M M cannot be written in the form α α for any R-linearly independent vector α in R k . Here, the “bars” always refer to modulo m .
(2)
If there exists a maximal ideal m in R such that R / m is a binary field, and either a ¯ or b ¯ is equal to ( r ¯ , , r ¯ ) (relative to taking modulo m ) for some element r in R, and k is an even number, then M M cannot be expressed as α α for any R-linearly independent vector α in R k .
(3)
S is a nonempty set if and only if k is an odd number. Furthermore, if k is odd, then
S = { v R [ G ] | e G + v v * = u 2 π G for some u R * } ,
where π G : = g 1 + g 2 + + g k R [ G ] .
Proof. 
( 1 ) Assume that M M = α α for some R-linearly independent vector α in R k . By the conditions in ( 1 ) , there is a maximal ideal m in R such that a ¯ = b ¯ = ( r ¯ , , r ¯ ) for some element r in R. This implies that all the diagonal elements of M ¯ M ¯ are equal to 1 ¯ + r ¯ 2 , and therefore, the components of α ¯ are equal to 1 ¯ + r ¯ . However, according to Lemma 3, we know that 1 ¯ + r ¯ 0 ¯ , since α is linearly independent over R . Now, let us consider the sum of all components of the first row of A ¯ A ¯ , denoted as Δ . Since k is even and all components of α ¯ are equal to each other, we can conclude that Δ = 1 ¯ . However, we can also express Δ as r ¯ 2 , since a ¯ = b ¯ = ( r ¯ , , r ¯ ) . This leads to the equation r ¯ 2 = 1 ¯ , which in turn, implies that 1 ¯ + r ¯ = 0 ¯ . This contradicts our previous statement that 1 ¯ + r ¯ 0 ¯ . Therefore, we can conclude that M M cannot be written in the form α α for any R-linearly independent vector α in R k .
( 2 ) Assuming M M = α α , where α is an R-linearly independent vector in R k , let C be the linear code generated by M . It is clear that C is a free linear code with dimension k . According to Proposition 2, we can show that C is also a free linear code with dimension k . By applying Propositions 4 and 5, we can conclude that both C / H u l l ( C ) and C / H u l l ( C ) = C / H u l l ( C ) are one-dimensional free R-modules. Noting that ( A | I k ) is a generator matrix for C , we can use Proposition 5 again to obtain
( I k | A ) ( I k | A ) = I k + A A = β β ,
where β is an R-linearly independent vector in R k . This implies that we only need to consider the case where b ¯ = ( r ¯ , , r ¯ ) , where r R . We will proceed with our proof based on this case. Since I k + A A = α α , taking modulo m , we can deduce that
I k ¯ + A ¯ A ¯ = α ¯ α ¯ .
Since b ¯ = ( r ¯ , , r ¯ ) , all the diagonal elements of A ¯ A ¯ are equal to ( 1 ¯ + r ¯ ) 2 . From this, we conclude that all the components of α are equal to 1 ¯ + r ¯ . Furthermore, since α is linearly independent over R, we can deduce from Lemma 3 that r ¯ = 0 ¯ . This leads us to the conclusion that the diagonal elements of matrix A ¯ A ¯ are all 0 ¯ , while all other components are 1 ¯ . Considering that k is an even number, we can obtain that the determinant det ( A ¯ ) = 1 ¯ . However, by adding the last k 1 columns of A ¯ to the first column and taking into account the fact that b ¯ = ( r ¯ , , r ¯ ) and r ¯ = 0 ¯ , we can determine that det ( A ¯ ) = 0 ¯ . This is a contradiction, which proves that M M cannot be expressed as α α for any R-linearly independent vector α in R k .
( 3 ) We will first prove the necessary and sufficient condition in ( 3 ) . On one hand, if S is a nonempty set, then k must be an odd number according to ( 1 ) . On the other hand, we can take A = σ ( v ) , where v = g 2 + + g k R [ G ] . It is easy to verify that the matrix M = ( I k | A ) has the property that all the components of matrix M M are equal to 1 since k is an odd number. This means that M M = α α , where α is a vector that has all its components equal to 1. Therefore, v belongs to S by the definition of S , proving that S is indeed a nonempty set.
Next, we will show that
S = { v R [ G ] | e G + v v * = u 2 π G for some u R * } .
To conduct this, we only need to prove the inclusion “⊂”. Let v S . By the definition of S , we know that the matrix M = I k | σ ( v ) satisfies the property that M M has the form α α for some R-linearly independent vector α = ( α 1 , α 2 , , α k ) in R k . Since
M M = σ ( e G + v v * ) ,
it follows that the diagonal elements of M M are equal, and the sums of the components in each column of M M are also equal. This, combined with the facts that α is linearly independent over R and k is an odd number, allows us to conclude that
α α 1 = α α 2 = = α α k
and α R * , and we can then obtain that α 1 = α 2 = = α k R * . Set α 1 = u , where u R * . Since
σ ( e G + v v * ) = M M = α α
is a matrix with all its components being equal to u 2 , it follows that
e G + v v = u 2 π G ,
and hence
S { v R [ G ] | e G + v v = u 2 π G for some u R } .
Example 2.
Let the notation be as in Theorem 3. Now, we consider the matrix M = ( I 2 | A ) over F 4 , where A is defined as
A = ω + 1 0 1 ω .
Here, F 4 denotes a quaternary field and ω is an element of F 4 that satisfies the equation ω 2 + ω + 1 = 0 . It is easy to verify that M M = α α , where α = ( ω , ω ) . Clearly, α is linearly independent over F 4 , with a = ( ω , ω ) and b = ( ω + 1 , ω + 1 ) . Despite these conditions, it remains undeniable that M M takes the form α α for some linearly independent vector α in F 4 2 . This example highlights the necessity of the condition a ¯ = b ¯ in the first statement of Theorem 3. It also emphasizes the significance of R / m being a binary field in the second statement of the theorem.
If the matrices A in Theorem 3 are block matrices containing four blocks, then we have the following result.
Theorem 4.
Let R be a finite commutative ring with characteristic 2 . Let M be a k × 2 k matrix in the form of ( I k | A ) , where A is a block matrix of the form
A = A 1 A 2 A 3 A 4 ,
with A i ( 1 i 4 ) representing t × t matrices over R . Denote the sum of all rows (resp. columns) of A i as vector a i (resp. b i ) for each i. If there exists a maximal ideal m in R such that a i ¯ = b i ¯ = ( r i ¯ , , r i ¯ ) for each i, where r i is an element in R, and if t is an even number, then M M cannot be expressed as α α for any R-linearly independent vector α in R k . Here, the “bars” mean modulo m .
Proof. 
The proof follows a similar approach to the proof of ( 1 ) in Theorem 3. Let us assume that M M = α α , where α = ( α 1 , , α t , α t + 1 , , α k ) is an R-linearly independent vector in R k . We know that there is a maximal ideal m in R such that a i ¯ = b i ¯ = ( r i ¯ , , r i ¯ ) for each i . This means that all the diagonal elements of A i ¯ A i ¯ are equal to r i ¯ 2 . Therefore, the first t diagonal elements of M ¯ M ¯ are all 1 ¯ + r 1 ¯ 2 + r 2 ¯ 2 , while the last t are all 1 ¯ + r 3 ¯ 2 + r 4 ¯ 2 . Using this, along with the equation M ¯ M ¯ = α ¯ α ¯ , we can conclude that
α 1 ¯ = = α t ¯ = 1 + r 1 + r 2 ¯ ,
and
α t + 1 ¯ = = α k ¯ = 1 + r 3 + r 4 ¯ .
Next, let us consider the sum of the first t components in the first row of A ¯ A ¯ , denoted by Σ 1 . Since t is an even number, we know that Σ 1 = 1 ¯ . Additionally, Σ 1 is also equal to the inner product of the first row of A ¯ and the sum of the first t rows of A ¯ , which is ( r 1 ¯ + r 2 ¯ ) 2 . Thus, we can obtain that
α 1 ¯ = = α t ¯ = 0 ¯ .
Moving on, we can also consider the sum Σ 2 of the last t components in the ( t + 1 ) -st row of A ¯ A ¯ . Similarly, we can see that
α t + 1 ¯ = = α k ¯ = 0 ¯ .
However, this leads to a contradiction due to the linear independence of the vector α . Specifically, according to Lemma 3, the ideal generated by all the components of α is R itself. This implies that not all of α 1 ¯ , , α k ¯ are equal to 0 ¯ , which contradicts our previous conclusion. Hence, it is not possible for M M to be expressed as α α for an R-linearly independent vector α in R k .
It is obvious that Theorem 4 can be naturally generalized to the case that the block matrix A is composed of more blocks.
According to Theorems 3 and 4, certain matrix constructions commonly used in the literature to generate self-dual codes over finite commutative rings with characteristic 2, such as those in [5,6], are not compatible with our construction method. This means that the k × k matrices A, which make up the right half of the matrices M = ( I k | A ) , must undergo initial screening if our method is being considered for constructing self-dual codes over finite commutative rings with characteristic 2.
In the following examples, we will preliminarily examine which specific types of matrices A and M are suitable for our construction method.
Example 3.
Let R = F 4 + u F 4 , where F 4 is the quaternary field and u 2 = 0 . The ring R is a finite commutative chain ring with order 16 and characteristic 2 . Its unique maximal ideal m = u satisfies m 0 but m 2 = 0 . Therefore, by Propositions 8 and 9, we know that there are five self-dual codes of length 2 over R :
R ( 1 , 1 ) , R ( 1 , 1 + u ) , R ( 1 , 1 + u ω ) , R ( 1 , 1 + u ( 1 + ω ) ) , and R ( u , 0 ) , ( 0 , u ) ,
where ω F 4 satisfies ω 2 + ω + 1 = 0 . Note, that the first four codes are free, while the last one is the unique nonfree self-dual code of length 2 over R .
Consider matrices M that have the form ( I k | A ) , where A is a k × k λ-circulant matrix over R and k = 6 . Here, we restrict λ to be a member of R * . We will use this type of matrix M to produce self-dual codes of length 12 over R .
When using the conventional method, we need to find matrices M that satisfy the equation M M = 0 . As a result, we can construct 29,952 distinct self-dual codes, all of which are free linear codes.
When utilizing our construction approach, the first step involves searching for matrices M that satisfy the condition M M = α α for a vector α in R k that is R-linearly independent. By employing these matrices M, our method can construct a total of 2560 self-dual codes. Among these codes, 512 are nonfree, and out of the remaining 2048 free self-dual codes, 1568 cannot be produced with matrices of this type using the conventional method.
In total, by using both methods, we can construct a total of 32,032 self-dual codes of length 12 over R .
Example 4.
Let R 1 = F 2 + u F 2 , where F 2 is the binary field and u 2 = 0 . We know that R 1 is a finite commutative chain ring of order 4 and characteristic 2, with a unique maximal ideal m = u such that m 0 but m 2 = 0 . Similarly, by Propositions 8 and 9, there exist three self-dual codes of length 2 over R 1 :
R 1 ( 1 , 1 ) , R 1 ( 1 , 1 + u ) , and R 1 ( u , 0 ) , ( 0 , u ) .
Among these self-dual codes, the first two are free, while the last one is the sole nonfree self-dual code in R 1 2 .
We now use matrices M in the form of ( I k | A ) to construct self-dual codes with length 12 over R 1 . Here, k = 6 and A is defined as
A = a 0 + b 0 a 1 + b 1 a 2 + b 2 a 3 + b 3 a 4 + b 4 a 5 + b 5 a 5 a 0 a 1 a 2 a 3 a 4 a 4 a 5 a 0 a 1 a 2 a 3 a 3 a 4 a 5 a 0 a 1 a 2 a 2 a 3 a 4 a 5 a 0 a 1 a 1 a 2 a 3 a 4 a 5 a 0 ,
which can be viewed as a variation of the circulant matrix.
Following the procedure outlined in the previous example, the conventional approach facilitates the generation of 384 self-dual codes. However, our method enables the production of 12,480 self-dual codes, with 192 being nonfree. It is important to stress that all the 384 self-dual codes produced by the conventional approach are free and can also be constructed using our proposed technique.
Therefore, by utilizing both methods simultaneously, a total of 12,480 self-dual codes with length 12 over R 1 can be constructed using matrices of the form ( I k | A ) .
Example 5.
Let R 1 be the ring described in the previous example. Next, we will consider the bordered matrix construction, which is defined as
M = γ 1 β 2 β 2 γ 2 β 4 β 4 β 1 β 3 I k B β 1 β 3 .
Here, γ 1 , γ 2 , β 1 , β 2 , β 3 , and β 4 are elements of R 1 , k = 5 , and B is a k × k circulant matrix over R 1 .
By employing matrices M of this type, we can construct 720 self-dual codes utilizing our approach. Out of these, 480 are free linear codes, all of which can also be generated through conventional methods. However, it is noteworthy that the remaining 240 nonfree self-dual codes cannot be acquired via the conventional method.
All of the computational results mentioned above were obtained by conducting searches using PARI/GP (Version 2.15.3) [42].
These examples demonstrate that, in contrast to using solely the conventional approach, utilizing our method alongside the conventional approach can lead to the construction of a greater number of self-dual codes, as long as a suitable matrix construction is taken into account. This is because the chosen matrix construction could be more fully utilized by applying both methods simultaneously, as well as our method can construct nonfree self-dual codes over a finite commutative ring of characteristic 2 (provided a nonfree self-dual code of length 2 exists over the corresponding ring). As a result, this enhances the probability of discovering new extremal binary self-dual codes. Therefore, our technology serves as a valuable complement to the conventional approach.
Finally, we wish to emphasize that, besides the matrix types mentioned in the previous examples, all bordered matrix constructions presented in [12,13,14,17,19,21,22,23,24] are potentially applicable to our method. Nonetheless, further exploration is necessary to determine which other matrix types would also be suitable for our construction method to produce self-dual codes over finite commutative rings with characteristic 2.

6. Conclusions

In this paper, we presented a new method for constructing self-dual codes over finite commutative rings with characteristic 2, not necessarily Frobenius rings. Our approach differs from the conventional method and can be seen as a complementary approach. The main advantage of our method is its ability to construct nonfree self-dual codes over finite commutative rings, a task that is typically unachievable using the conventional approach. Therefore, it is possible to produce more self-dual codes by combining our method with the conventional approach, when a specific type of matrix is chosen to construct self-dual codes over a finite commutative ring of characteristic 2.
A natural direction for future work could be to employ specific matrix constructions from existing literature, particularly bordered matrix constructions, in conjunction with our methods and well-established construction techniques, such as the neighbor method, the building-up construction, and the lifting method, to discover new extremal binary self-dual codes.

Author Contributions

Conceptualization, Y.M. and J.N.; methodology, Y.M. and Y.L.; validation, J.N. and Y.L.; writing—original draft, Y.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Nature Science Foundation of China (Grant No. 12171194).

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Acknowledgments

The authors would like to thank the editor and the anonymous referee for their careful reading and helpful comments.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Gulliver, T.A.; Harada, M. Classification of extremal double circulant self-dual codes of lengths 64 to 72. Des. Codes Cryptogr. 1998, 13, 157–269. [Google Scholar] [CrossRef]
  2. Gulliver, T.A.; Harada, M. Classification of extremal double circulant self-dual codes of lengths 74–88. Discret. Math. 2006, 306, 2064–2072. [Google Scholar] [CrossRef]
  3. Gulliver, T.A.; Harada, M. On extremal double circulant self-dual codes of lengths 90–96. Appl. Algebra Eng. Commun. Comput. 2019, 30, 403–415. [Google Scholar] [CrossRef]
  4. Harada, M.; Gulliver, T.A.; Kaneta, H. Classification of extremal double-circulant self-dual codes of length up to 62. Discret. Math. 1998, 188, 127–136. [Google Scholar] [CrossRef]
  5. Gildea, J.; Kaya, A.; Taylor, R.; Tylyshchak, A. New Self-Dual Codes from 2 × 2 Block Circulant Matrices, Group Rings and Neighbours of Neighbours. arXiv 2020, arXiv:2002.09789v1. [Google Scholar] [CrossRef]
  6. Gildea, J.; Kaya, A.; Yildiz, B. New binary self-dual codes via a variation of the four-circulant construction. Math. Commun. 2020, 25, 213–226. [Google Scholar]
  7. Gildea, J.; Korban, A.; Roberts, A.M. New binary self-dual codes of lengths 56, 58, 64, 80 and 92 from a modification of the four circulant construction. Finite Fields Appl. 2021, 75, 101876. [Google Scholar] [CrossRef]
  8. Harada, M.; Nishimura, T. An extremal single even self-dual code of length 88. Adv. Math. Commun. 2007, 1, 261–267. [Google Scholar] [CrossRef]
  9. Harada, M.; Kiermaier, M.; Wassermann, A.; Yorgova, R. New binary singly even self-dual codes. IEEE Trans. Inf. Theory 2010, 56, 1612–1617. [Google Scholar] [CrossRef]
  10. Kaya, A.; Yildiz, B.; Pasa, A. New extremal binary self-dual codes from a modified four circulant construction. Discret. Math. 2016, 339, 1086–1094. [Google Scholar] [CrossRef]
  11. Karadeniz, S.; Yildiz, B.; Aydin, N. Extremal binary self-dual codes of lengths 64 and 66 from four-circulant constructions over F 2 + u F 2 . Filomat 2014, 28, 937–945. [Google Scholar] [CrossRef]
  12. Dougherty, S.T.; Gildea, J.; Korban, A.; Kaya, A.; Tylyshchak, A.; Yildiz, B. Bordered con-structions of self-dual codes from group rings and new extremal binary self-dual codes. Finite Fields Appl. 2019, 57, 108–127. [Google Scholar] [CrossRef]
  13. Dougherty, S.T.; Gildea, J.; Kaya, A. Quadruple bordered constructions of self-dual codes from group rings. Cryptogr. Commun. 2020, 12, 127–146. [Google Scholar] [CrossRef]
  14. Dougherty, S.T.; Gildea, J.; Kaya, A. 2n bordered constructions of self-dual codes from group rings. Finite Fields Appl. 2020, 67, 101692. [Google Scholar] [CrossRef]
  15. Dougherty, S.T.; Gildea, J.; Taylor, R.; Tylyshchak, A. Group Rings, G-Codes and Constructions of Self-Dual and Formally Self-Dual Codes. Des. Codes Cryptogr. 2018, 86, 2115–2138. [Google Scholar] [CrossRef]
  16. Gildea, J.; Kaya, A.; Taylor, R.; Yildiz, B. Construction for self-dual codes induced from group rings. Finite Fields Appl. 2018, 51, 71–92. [Google Scholar] [CrossRef]
  17. Gildea, J.; Taylor, R.; Korban, A.; Tylyshchak, A. Double bordered constructions of self-dual codes from group rings over Frobenius rings. Cryptogr. Commun. 2020, 12, 769–784. [Google Scholar] [CrossRef]
  18. Gildea, J.; Korban, A.; Korban, A.; Yildiz, B. Constructing self-dual codes from group rings and reverse circulant matrices. Adv. Math. Commun. 2021, 15, 471–485. [Google Scholar] [CrossRef]
  19. Gildea, J.; Kaya, A.; Tylyshchak, A.; Yildiz, B. A modified bordered construction for self-dual codes from group rings. J. Algebra Comb. Discret. Struct. Appl. 2020, 7, 103–119. [Google Scholar] [CrossRef]
  20. Hurley, T. Group Rings and Rings of Matrices. Int. J. Pure Appl. Math. 2006, 31, 319–335. [Google Scholar]
  21. Gildea, J.; Korban, A.; Roberts, A.M.; Tylyshchak, A. New binary self-dual codes of lengths 56, 62, 78, 92 and 94 from a bordered construction. arXiv 2021, arXiv:2108.09184. [Google Scholar]
  22. Gildea, J.; Korban, A.; Roberts, A.M.; Tylyshchak, A. Binary self-dual codes of various lengths with new weight enumerators from a modified bordered construction and neighbours. Adv. Math. Commun. 2024, 18, 738–752. [Google Scholar] [CrossRef]
  23. Gildea, J.; Korban, A.; Roberts, A.M. The weight enumerators of singly-even self-dual [88, 44, 14] codes and new binary self-dual [68, 34, 12] and [88, 44, 14] codes. Finite Fields Appl. 2024, 93, 102315. [Google Scholar] [CrossRef]
  24. Gildea, J.; Hamilton, H.; Kaya, A.; Yildiz, B. Modified quadratic residue constructions and new extremal binary self-dual codes of lengths 64, 66 and 68. Inf. Process. Lett. 2020, 157, 105927. [Google Scholar] [CrossRef]
  25. Brualdi, R.A.; Pless, V.S. Weight enumerators of self-dual codes. IEEE Trans. Inf. Theory 1991, 37, 1222–1225. [Google Scholar] [CrossRef]
  26. Gildea, J.; Kaya, A.; Korban, A.; Yildiz, B. New extremal binary self-dual codes of length 68 from generalized neighbors. Finite Fields Appl. 2020, 67, 101727. [Google Scholar] [CrossRef]
  27. Dougherty, S.T.; Kim, J.L.; Kulosman, H.; Liu, H. Self-dual codes over commutative Frobenius rings. Finite Fields Appl. 2010, 16, 14–26. [Google Scholar] [CrossRef]
  28. Kaya, A.; Yildiz, B. Various constructions for self-dual codes over rings and new binary self-dual codes. Discret. Math. 2016, 339, 460–469. [Google Scholar] [CrossRef]
  29. Kim, J.L. New extremal self-dual codes of lengths 36, 38, and 58. IEEE Trans. Inf. Theory 2001, 47, 386–393. [Google Scholar]
  30. Dougherty, S.T.; Karadeniz, S.; Yildiz, B. Cyclic codes over Rk. Des. Codes Cryptogr. 2012, 63, 113–126. [Google Scholar] [CrossRef]
  31. Dougherty, S.T.; Yildiz, B.; Karadeniz, S. Self-dual codes over Rk andbinary self-dual codes. Eur. J. Pure Appl. Math. 2013, 6, 89–106. [Google Scholar]
  32. Dougherty, S.T.; Karadeniz, S.; Yildiz, B. Constructing formally self-dual codes over Rk. Discret. Appl. Math. 2014, 167, 188–196. [Google Scholar]
  33. Kaya, A.; Yildiz, B.; Siap, I. New extremal binary self-dual codes from F 4 + u F 4 -lifts of quadratic double circulant codes over F 4 . Finite Fields Appl. 2015, 35, 318–329. [Google Scholar] [CrossRef]
  34. Kaya, A. New extremal binary self-dual codes of lengths 64 and 66 from R2-lifts. Finite Fields Appl. 2017, 46, 271–279. [Google Scholar] [CrossRef]
  35. Kaya, A.; Tufekci, N. New extremal binary self-dual codes of lengths 66 and 68 from codes over Rk,m. Bull. Korean Math. Soc. 2017, 54, 29–42. [Google Scholar] [CrossRef]
  36. Karadeniz, S.; Yildiz, B. New extremal binary self-dual codes of length 64 from R3-lifts of the extended binary Hamming code. Des. Codes Cryptogr. 2015, 74, 673–680. [Google Scholar] [CrossRef]
  37. Karadeniz, S.; Aksoy, R. Self-dual Rk lifts of binary self-dual codes. Finite Fields Appl. 2015, 34, 317–326. [Google Scholar] [CrossRef]
  38. Dougherty, S.T.; Saltürk, E.; Szabo, S. On codes over Frobenius rings: Generating characters, MacWilliams identities and generator matrices. Appl. Algebra Eng. Commun. Comput. 2019, 30, 193–206. [Google Scholar] [CrossRef]
  39. Dougherty, S.T. Algebraic Coding Theory over Finite Commutative Rings; Springer Briefs in Mathematics; Springer: Cham, Switzerland, 2017; ISBN 978-3-319-59805-5. [Google Scholar]
  40. Lang, S. Algebra, Rev., 3rd ed.; Springer: New York, NY, USA, 2002; pp. 424–426. [Google Scholar]
  41. Ishizuka, K.; Saito, K. Construction for both self-dual codes and LCD codes. arXiv 2021, arXiv:2108.12544v1. [Google Scholar] [CrossRef]
  42. PARI Group. PARI/GP, Version 2.15.3; University of Bordeaux: Talence, France, 2023.
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

Ma, Y.; Nan, J.; Liu, Y. A New Method for Constructing Self-Dual Codes over Finite Commutative Rings with Characteristic 2. Mathematics 2024, 12, 2731. https://doi.org/10.3390/math12172731

AMA Style

Ma Y, Nan J, Liu Y. A New Method for Constructing Self-Dual Codes over Finite Commutative Rings with Characteristic 2. Mathematics. 2024; 12(17):2731. https://doi.org/10.3390/math12172731

Chicago/Turabian Style

Ma, Yongsheng, Jizhu Nan, and Yuanbo Liu. 2024. "A New Method for Constructing Self-Dual Codes over Finite Commutative Rings with Characteristic 2" Mathematics 12, no. 17: 2731. https://doi.org/10.3390/math12172731

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