On Codes over $\mathbb{F}_{q}+v\mathbb{F}_{q}+v^{2}\mathbb{F}_{q}$
A. Melakhessou, K. Guenda, T. A. Gulliver, M. Shi, P. Sol\'e

TL;DR
This paper explores the properties and constructions of linear LCD and formally self-dual codes over a specific ring extension of finite fields, providing existence conditions, bounds, and new code constructions.
Contribution
It introduces new conditions for the existence of LCD codes and constructs formally self-dual codes over the ring R, extending bounds on minimum distances.
Findings
Conditions for the existence of LCD codes over R
Construction methods for formally self-dual codes over R
Bounds on minimum distances of LCD codes over finite fields and rings
Abstract
In this paper we investigate linear codes with complementary dual (LCD) codes and formally self-dual codes over the ring , where , for odd. We give conditions on the existence of LCD codes and present construction of formally self-dual codes over . Further, we give bounds on the minimum distance of LCD codes over and extend these to codes over .
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCoding theory and cryptography · Cooperative Communication and Network Coding · graph theory and CDMA systems
On Codes over
A. Melakhessou, K. Guenda, T. A. Gulliver, M. Shi and P. Solé A. Melakhessou is with Department of Mathematics, University of Batna 2, Algeria, K. Guenda is with the Faculty of Mathematics USTHB, Algeria, T. A. Gulliver is with the Department of Electrical and Computer Engineering, University of Victoria, Canada, M. Shi is with the School of Mathematical Sciences, Anhui University, P.R. China, and P. Solé is with the Department of Mathematics, Université de Vincennes - Paris 8, France.
Abstract
In this paper we investigate linear codes with complementary dual (LCD) codes and formally self-dual codes over the ring , where , for odd. We give conditions on the existence of LCD codes and present construction of formally self-dual codes over . Further, we give bounds on the minimum distance of LCD codes over and extend these to codes over .
1 Introduction
Codes over finite rings have been known for several decades, but interest in these codes increased substantially after the discovery that good non-linear binary codes can be constructed from codes over . Recently, codes over finite non chain rings have been considered. Codes over the ring , were introduced by Gao et al. [9], and Shi et al. [26] studied their properties and gave several families of codes over this ring.
Linear codes with complementary dual (LCD) codes over finite fields were first studied by Massey [23] and more recently by Carlet and Guilley [4] and Dougherty et al. [7]. LCD codes can be used to protect information against side channel attacks [4]. When considered over these codes have the advantage to be easily decoded [23]. This property also applies to LCD codes over because this ring can be seen as the direct product . Further, LCD codes can be used to obtain optimal entanglement-assisted quantum codes [11].
Formally self-dual codes are an important class of codes because they have weight enumerators that are invariant under the MacWilliams transform, and can have better parameters than self-dual codes [2]. In this paper, LCD and formally self-dual codes are considered over the ring , where and is an odd prime power. We give conditions on the existence of LCD codes over this ring. Further, several constructions of LCD codes are given, in particular from weighing matrices. Constructions of formally self-dual codes over are also presented. In addition, bounds on the minimum distance of LCD codes over the finite field are given and extended to codes over .
The remainder of this paper is organized as follows. Section 2 provides some preliminary results regarding the finite ring . The Lee weights of the elements of are defined, and a Gray map is introduced. This map leads to some useful results on linear codes over . We investigate the relationship between the dual and Gray image of codes. Section 3 considers LCD codes over . Necessary and sufficient conditions on the existence of LCD codes over are given, and LCD codes are constructed from weighting matrices. Tables of LCD codes up to length are given which are obtained from skew matrices and conferences matrices over the finite field where is a prime number such that . In Section 4, we present three constructions of formally self-dual codes over . Further, LCD codes are constructed which are also formally self-dual. In Section 5 we give bounds on the minimum distance of LCD codes over , and these bounds are extended to free LCD codes over .
2 Preliminaries
In this section, we present some basic results on linear codes over the ring , where and is odd [9, 26]. The ring is equivalent to the ring . This shows that is a finite commutative, principal ring with the following non-trivial maximal ideals
[TABLE]
Hence by the Chinese Remainder Theorem we have
[TABLE]
It is convenient to write the decomposition given in (1) using orthogonal idempotents in which is given by
[TABLE]
where , , and . Each element of can be expressed uniquely as , where .
A linear code of length over is an -submodule of . An element of is called a codeword of . A generator matrix of is a matrix whose rows generate . The Hamming weight of a codeword is the number of nonzero components in . The Euclidean inner product is
[TABLE]
where . The dual code of with respect to the Euclidean inner product is defined as
[TABLE]
A code is called self-dual if and is called self-orthogonal if .
For a linear code of length over , define
[TABLE]
It is clear that , and are linear codes of length over . A direct consequence of the ring decomposition of in (2) is that a linear code over can be uniquely expressed as
[TABLE]
Moreover, from (3) and the definition of the dual code we have that
[TABLE]
Further, is self-dual if and only if , and are self-dual over . If , and are generator matrices of , and , respectively, then
[TABLE]
is a generator matrix of . Often when working with codes over rings, an image to the underlying field is employed. For the ring considered in this paper, a Gray map is defined as follows.
Definition 2.1
The Gray map from to is defined by
[TABLE]
where .
For in , the Lee weight of is defined as
[TABLE]
where denotes the Hamming weight of over . Let denote the minimum Hamming distance of a code . For a codeword , the Lee weight is defined as and the Lee distance between codewords and is defined as . The minimum Lee distance of a code is then , , .
Definition 2.2
A linear code of length over and minimum Lee distance is called an code. Further if it is with minimum Hamming distance , then it is denoted If has minimum Lee distance and is a free -submodule that is isomorphic as a module to , then the integer is called the rank of and the code is denoted as .
Proposition 2.3
[26*]**
Let be an code. Then is a linear code over . Further, if is the dual of , then .*
Remark 2.4
If there exists an code over , then there exists a code
Lemma 2.5
[26*]**
If is a linear code of length over with generator matrix , then*
[TABLE]
and .
We now give some useful results on cyclic codes over . A code is said to be cyclic if it satisfies
[TABLE]
It is well known that cyclic codes of length over can be considered as ideals in the quotient ring via the following -module isomorphism
[TABLE]
Definition 2.6
The reciprocal of the polynomial is defined as
[TABLE]
If , then the polynomial is called self-reciprocal.
Proposition 2.7
[9*]**
Let be a cyclic code of length over . Then there exist polynomials which are divisors of in such that and . Further*
[TABLE]
where such that .
Proposition 2.8
There is no cyclic self-dual cyclic code of length over .
**Proof. **We know that . From [16, Theorem 1] we have that , and are self-dual cyclic codes over if and only if is a power of and is even. Since we assumed that is odd, the result then follows.
3 LCD Codes over
A linear codes with complementary dual (LCD) code is defined as a linear code whose dual code satisfies
[TABLE]
LCD codes have been shown to provide an optimum linear coding solution [23].
For LCD codes over , we have the following result.
Theorem 3.1
A code of length over is an LCD code if and only if , and are LCD codes over .
**Proof. **A linear code has dual code . We have that . Due to the direct sum we have if and only if , for . Thus is an LCD code.
Theorem 3.2
If is an LCD code over , then is an LCD code over . If is an LCD code of length over , then is an LCD code of length over .
**Proof. **The first part is deduced from Theorem 3.1. From Proposition 2.3, we have that . Since is bijective and , the result follows.
Next we give a necessary and sufficient condition on the existence of LCD codes over . First we require the following result due to Massey [23].
Proposition 3.3
If is a generator matrix for an linear code over , then is an LCD code if and only if the matrix is nonsingular.
Theorem 3.4
If is a generator matrix for a linear code over , then C is an LCD code if and only if is nonsingular.
**Proof. **The generator matrix of can be expressed in canonical form as
[TABLE]
Since the are orthogonal idempotents, a simple calculation gives
[TABLE]
From Proposition 3.3 a necessary and sufficient condition for a code over with generator matrix to be LCD is that be non singular. Hence the proof follows from the generator matrix given in (7).
We now give conditions on the existence of cyclic LCD codes over using the generator polynomial. This is an extension of the following result due to Massey [23].
Lemma 3.5
Let be a cyclic code over generated by . Then is LCD if and only if is self-reciprocal.
Theorem 3.6
A cyclic code , is an LCD code over if and only if for all , is a self-reciprocal polynomial.
**Proof. **The result follows from Proposition 2.7 and Lemma 3.5.
3.1 Existence of LCD Codes over
In this section, we show that LCD codes are an abundant class of codes over .
3.2 LCD Codes from Weighing Matrices
In [7], the authors constructed LCD codes from orthogonal matrices and left the existence of LCD codes from other classes of combinatorial objects as an open problem. Thus, in this section we construct LCD codes over and from weighing matrices. We start with the following definition.
Definition 3.7
A weighing matrix of order and weight is an -matrix such that , . A weighing matrix , respectively , is called a Hadamard matrix, respectively conference matrix. A matrix is symmetric if , and is skew-symmetric (or skew) if .
Tables of weighing matrices are given in [5]. Weighing matrices have been used to construct self-dual codes [1]. The following results show that it is also possible to construct LCD codes from weighing matrices.
Proposition 3.8
Let be a weighing matrix of order and weight . We have the following results.
- (i)
Let be a nonzero element of such that . Then the matrix
[TABLE]
generates an LCD code over .
- (ii)
Let be a skew weighing matrix of order , and and nonzero elements of such that . Then the matrix
[TABLE]
generates a LCD code over .
**Proof. **The result follows from Definition 3.7 and Proposition 3.3.
From Remark 2.4 and Proposition 3.8 we have the following result.
Corollary 3.9
Under the condition of Proposition 3.8, the matrix
[TABLE]
is the generator matrix of a LCD code over .
Example 3.10
Let , , and so that . Then for the weighing matrix given by
[TABLE]
* generates a LCD code over .*
Next we show that if is odd there always exists a suitable matrix to construct an LCD code.
Theorem 3.11
[20, Theorem 7.32]** Assume , be the quadratic character of and for , , . Then we have a Hadamard matrix given by
[TABLE]
Corollary 3.12
For all nonzero such that , the code generated by
[TABLE]
where is the Hadamard matrix of order given in (12), is an LCD code over of length .
**Proof. **If , then from [10, Lemma 3.3] has no solution in . The result then follows from Proposition 3.8 and Theorem 3.11.
Example 3.13
From Corollary 3.12, the following Hadamard matrix over
[TABLE]
gives an LCD code over . According to [12] this is an optimal code.
Theorem 3.14
[24*, p. 56]**
Assume , be the quadratic character of and for , . Then we have a symmetric conference matrix given by*
[TABLE]
Corollary 3.15
For all nonzero such that , the code generated by
[TABLE]
where is the conference matrix of order given in (14), is an LCD code over of length .
**Proof. **The result follows from Theorem 3.14 and Proposition 3.3.
In [1] the authors constructed self-dual codes from conference matrices. We note that if has a solution, the matrix generates a self-dual code over . Then if there exists such that , from Proposition 3.8 generates an LCD code with the same parameters as the self-dual code. This result also holds for the minimum distance of LCD codes generated by . It is easy to verify that whenever we have a skew matrix , we can construct a skew matrix , where
[TABLE]
The above results were used to construct the LCD codes over , prime, , given in Tables 1-4. It is worth noting that for many parameters a self-dual code cannot be constructed from weighing matrices, whereas for the same parameters (except for the case ), it was always possible to construct LCD codes.
3.3 General Construction of LCD Codes
We start with the following lemma.
Lemma 3.16
If with a power of an odd prime, then the following hold:
- (i)
there exists such that if ,
- (ii)
there exist such that if , and
- (iii)
for every there exist such that in .
**Proof. **It is easy to show that if there exist solutions over for cases (i)-(iii), then these solutions also hold over since is a subring of . Hence we only need to show that these solutions exist over . From [10, Lemma 3.3], if then is a square in , which proves (i). From [15, p. 281], if then there exist such that , which proves (ii). From [13, Theorem 370], we have that every prime is the sum of four squares. Since and in this proves (iii).
The next result shows that it is always possible to construct LCD codes over .
Theorem 3.17
If is the generator matrix of a self-dual code over , then the generator matrix generates an LCD code over . If is the generator matrix of a linear code over , then the following hold.
- (i)
If and , then the code over with generator matrix generates an LCD code over .
- (ii)
If and such that , then generates an LCD code over .
- (iii)
If with , then such that generates an LCD code over .
**Proof. **Part (i) is just a verification. The other parts follow from Lemma 3.16.
4 Construction of Formally Self-Dual Codes over
Recall that a code is called formally self-dual if and have the same weight enumerator. Codes which are equivalent to their dual are called isodual codes, and isodual codes are also formally self-dual. In this section, we present three constructions of formally self-dual codes over . First, we give the following result which links formally self-dual codes over to formally self-dual codes over .
Theorem 4.1
If is a formally self-dual code over , then the image under the corresponding Gray map is a formally self-dual code.
**Proof. **The result follows from Theorem 2.7 and the fact that the Gray map is an isometry.
An square matrix is called -circulant of order if it has the following form
[TABLE]
If this matrix is circulant and there is a vast literature on double circulant and bordered double circulant self-dual codes [2].
The proof of the next theorem is the same as that for [2, Theorem 6.1] given over the ring . It is given here for completeness.
Theorem 4.2
Let be a -circulant matrix over of order . Then the code generated by is a formally self-dual code over .
**Proof. **Let be the code generated by and the code generated by . It is easy to verify that the codes and are orthogonal codes, and since they both have rank , . Let be the code generated by . Since for any in , the codes and have the same weight enumerator. In order to complete the proof, we show that is equivalent to , therefore is formally self-dual. Let be the permutation
[TABLE]
where . If is the matrix obtained by applying on the rows of and is the matrix obtained by applying on the columns of , then . Hence, and are equivalent. Similarly, by applying a suitable column permutation we obtain that and are equivalent. Thus, and are equivalent and therefore is formally self-dual.
Example 4.3
Let , , and be the following -circulant matrix
[TABLE]
Then generates a formally self-dual code of length over . The Gray image of this code is a formally self-dual code over . This is an optimal code.
Example 4.4
Let , , and be the following -circulant matrix
[TABLE]
Then generates a formally self-dual code of length over . The Gray image of this code is an formally self-dual code over .
Theorem 4.5
Let be an -circulant matrix. Then the code generated by
[TABLE]
where , is a formally self-dual code over .
**Proof. **The proof is similar to that of Theorem 4.2.
Example 4.6
Let , , , , and
[TABLE]
Then
[TABLE]
generates a formally self-dual code of length over . The Gray image of this code is an formally self-dual code over . This is an optimal code.
Using a proof similar to that of Theorem 4.2, we have the following construction of formally self-dual codes over .
Theorem 4.7
Let be an matrix over such that . Then the code generated by is a formally self-dual code over of length .
Example 4.8
Let , , and be the matrix
[TABLE]
We have that , so generates a formally self-dual code of length over . The Gray image of this code is an formally self-dual code over .
Example 4.9
Let , , and be the matrix
[TABLE]
We have that , so generates a formally self-dual code of length over . The Gray image of this code is a formally self-dual code over .
Proposition 4.10
Let , and be linear codes of length over . , and are isodual codes if and only if is an isodual code of length over .
**Proof. **Let , , and be monomial permutations such that , and . Then . Since , it follows that is equivalent to .
4.1 Construction of LCD Formally Self-Dual Codes over
LCD formally self-dual codes over are constructed in this subsection.
Theorem 4.11
With the same assumptions as in Theorem 4.2, the matrix generates an LCD formally self-dual code over if and only if is nonsingular.
**Proof. **The result follows from Theorem 4.2 and Theorem 3.4.
Example 4.12
Let , , and be the following -circulant matrix
[TABLE]
It is easily determined that is nonsingular. Thus, generates an LCD formally self-dual code of length over .
Theorem 4.13
With the same assumptions as in Theorem 4.5, the code generated by
[TABLE]
is an LCD formally self-dual code over if and only if is nonsingular.
Example 4.14
Let , , and be the following -circulant matrix
[TABLE]
If and , it is easily determined that for the matrix
[TABLE]
* is nonsingular. Then generates an LCD formally self-dual code of length over .*
Theorem 4.15
With the same assumptions as in Theorem 4.7, the code generated by is an LCD formally self-dual code over if and only if is nonsingular.
**Proof. **From Theorem 4.7, we know that generates a formally self-dual code. To prove that generates an LCD codes we apply the conditions of Theorem 3.4 on the matrix .
5 Bounds on LCD Codes
Bounds on codes are important for the combinatorial properties of the codewords as it was shown in [3]. In this section we will give some bounds on LCD codes over fields and the ring . When dealing with codes over , may be odd or even. While, when we are over the ring , must be odd as assumed in the begin of the paper.
We begin with the following bound which was given by Dougherty et al. [7]
[TABLE]
They also gave estimates and results for this bound. For linear codes over , we have the following bound
[TABLE]
The next result gives an upper bound on for an LCD code over
Proposition 5.1
If an self-dual code exists, then . In particular, if is an extremal self-dual code over , then if , and if . For and , .
**Proof. **If there exists an self-dual code with generator matrix , then the matrix satisfies , and hence by Proposition 3.3 generates an LCD code with parameters . In the binary case, the bound given corresponds to the condition on extremal binary self-dual codes given in [14, Chap. 9 ]. In the ternary case, the bound corresponds to the condition on extremal ternary self-dual codes given in [14, Chap. 9 ].
The proof of the following result follows from Theorem 3.17 and the Singleton bound.
Proposition 5.2
If there exists an code over , then
[TABLE]
Proposition 5.3
If is odd, then , for .
If is even, then , for .
**Proof. **From [8, Theorem 8], if is odd (this case correspond to and both even or odd), then the cyclic code generated by the polynomial is a maximum distance separable (MDS) cyclic code. Since is self-reciprocal, from Lemma 3.5 the code is LCD. Since the code is also MDS, the result follows.
If is even and is odd, then the polynomial generates a MDS cyclic code from [8, Theorem 8]. Since is self-reciprocal, the code is LCD by Lemma 3.5. The result then follows since the code is MDS.
For codes over , define the bound
[TABLE]
From Remark 2.4, we have the following bound
[TABLE]
which gives the following result.
Corollary 5.4
All the lower bounds on given in [7] are also lower bounds on .
6 Conclusion and Open Problems
In this paper, LCD codes and formally self-dual codes were considered over the ring , where , for odd. Conditions were given on the existence of LCD codes, and constructions presented for LCD and formally self-dual codes over . Some of the results presented can easily be generalized to codes over some Frobenius rings such as those in [25]. As an extension of the results in [7], we gave bounds on LCD codes over , and used these to obtain bound on LCD codes over . It was shown that lower bounds on LCD codes over are also lower bounds on LCD codes over . LCD codes were constructed from weighing matrices. It will be interesting to construct LCD codes from other combinatorial objects. Further, it should be possible to obtain a linear programming bound for codes over .
Acknowledgements
The authors would like to thank reviewers as well as Professors R. K. Bandi, S. Dougherty, A. Kaya and I. Kotsireas for their useful comments which improved considerably the paper. This research is supported by National Natural Science Foundation of China (61672036), Technology Foundation for Selected Overseas Chinese Scholar, Ministry of Personnel of China (05015133), the Open Research Fund of National Mobile Communications Research Laboratory, Southeast University(2015D11) and Key projects of support program for outstanding young talents in Colleges and Universities (gxyqZD2016008).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Arasu, K.T., Gulliver, T.A.: Self-dual codes over 𝔽 p subscript 𝔽 𝑝 \mbox{\msbm F}_{p} and weighing matrices. IEEE Trans. Inf. Theory, 47(5), 2051–2056 (2001)
- 2[2] Batoul, A., Guenda, K., Kaya, A., Yildiz, B.: Cyclic isodual and formally self-dual codes over 𝔽 q + v 𝔽 q subscript 𝔽 𝑞 𝑣 subscript 𝔽 𝑞 \mathbb{F}_{q}+v\mathbb{F}_{q} . Eur. J. Pure Appl. Math., 8(1) 64–80 (2015)
- 3[3] Bennenni, N., Guenda, K., Gulliver, T.A.: Greedy Construction of DNA Codes and New Bounds, accepted to appear at AAECC
- 4[4] Carlet, C., Guilley, S.: Complementary dual codes for counter-measures to side-channel attacks. In: Pinto, R., Rocha Malonek, P., Vettori, P. (eds) Coding Theory and Applications. CIM Series in Mathematical Sciences, 3. Springer, Cham 97–105 (2015)
- 5[5] Colbourn, C.J., Dinitz, J.H.: The Handbook of combinatorial theory. CRC Press, Boca Raton, FL (2006)
- 6[6] Dougherty, S.T.: Formally self-dual codes and Gray maps. In: Proceedings of the International Workshop on Algebraic and Combinatorial Coding Theory, Pomorie, Bulgaria 136–141 (2012)
- 7[7] Dougherty, S.T., Kim, J.-L., Ozkaya, B., Sok, L., Solé, P.: The combinatorics of LCD codes: linear programming bound and orthogonal matrices. Arxiv. https://arxiv.org/abs/1506.01955 (2015). Accessed June 2015
- 8[8] Ezerman, M.F., Grassl, M., Solé, P.: The weights in MDS codes. IEEE Trans. Inf. Theory, 57(1) 392–396 (2011)
