Beytepe, 06800, Ankara, Turkey
11email: [email protected], [email protected]
2 Middle East Technical University, Institute of Applied Mathematics,
06800, Ankara, Turkey
11email: [email protected]
Butson-Hadamard matrices and Plotkin-optimal -ary codes
Abstract
A Butson-Hadamard matrix is a square matrix of dimension whose entries are complex roots of unity such that . In the first part of this work, some new results on generalized Gray map are studied. In the second part, codes obtained from Butson-Hadamard matrices and some bounds on the minimum distance of these codes are proved. In particular, we show that the code obtained from a Butson-Hadamard matrix meets the Plotkin bound under a non-homogeneous weight. We also give the parameters of some code families which are obtained from modified Butson-Hadamard matrices under a (non)homogeneous Gray map.
2020 AMS Subject Classification: 05B20,94B60,94B65
Keywords:
Butson-Hadamard matrices, codes, generalized Gray map, Plotkin bound1 Introduction
A Hadamard matrix of order is an matrix whose entries are satisfying . Here is the identity matrix. Hadamard [8] conjectured that such matrices exist for every that is a multiple of . See [9, 11, 16] for more information about Hadamard matrices and their applications. Hadamard matrices can be generalized in many ways. Two of them are Butson-Hadamard (BH) matrices which are introduced by Butson in [3] and generalized Hadamard (GH) matrices by Drake in [6].
A Butson-Hadamard matrix is an matrix whose entries are complex roots of unity such that
where is the Hermitian transpose of . If all the entries of are -th roots of unity then we say that is a .
Another generalization of Hadamard matrices is (group) generalized Hadamard matrices. Let be a finite group and let be an matrix whose entries are elements of . For convenience, we identify the group with the naturally embedded copy of in the group ring A natural involution on , which we shall call conjugation, is defined by
(1) |
Then, for the matrices with entries in , define an adjoint, That is the adjoint is performed by first taking the transpose of the matrix and then conjugating each entry. We call that an matrix whose entries are in is a (group) generalized Hadamard matrix if
(2) |
For brevity, we say that such a matrix is a .
For example, the following is a ), where is a generator of the cyclic group of order 5.
Also we can say that a can exist only if is a multiple of . See also [12] for more information about generalized Hadamard matrices.
It is known that a BH (resp. GH) matrix can be transformed to an equivalent matrix consisting of 1s in the first row and column by dividing rows or columns, or by interchanging rows or columns. So, a BH (resp. GH) matrix is said to be normalized if the first row and column consist entirely of 1s.
In this paper we first study the parameters for code families where the rows of BH and modified BH matrices are assigned to be codewords. The minimum distance between the rows of normalized GH matrices has been studied widely, see [11, Sections 4.4 and 9.4]. In addition to minimum distance, the rank and kernel of the codes obtained from a GH matrix were recently studied in [4, 5], and codes from a cocyclic GH matrix and their equivalence to combinatorial difference sets are studied in [1, 2]. On the other hand, Greferath, McGuire and O’Sullivan [7] showed that the codes obtained from BH matrices meet the Plotkin bound under any homogeneous weight. Stepanov [18] also constructed codes obtained from modified BH matrices, which have parameters close to the Plotkin bound.
In this paper, we give a lower bound for the minimum distance of the codes obtained from a normalized BH matrix and an amenable BH matrix in Theorem 4.1 and 4.2, respectively. Then, we prove their minimum distance under a homegeneous Gray map, in Corollary 1. We also consider codes obtained from the image of the modified BH matrices under a non-homogeneous Gray map, and we prove their minimum distances in Theorem 4.3. We also show that the distances between the rows are same, hence the code is equidistant. Moreover, we show that the code meets the Plotkin bound in Corollary 4.
The paper is organized as follows. We study the generalized Plotkin bound in Section and generalized Gray map in Section . In Section we give some results on the minimum distance of codes obtained from BH and modified BH matrices. The codes obtained from the image of BH matrices under the non-homogeneous Gray map are given in Section .
2 The generalized Plotkin bound
Hadamard codes have been widely studied in the literature, see for instance [11]. Greferath et al. in [7] considered BH matrices and determined the parameters of the code obtained from normalized BH matrices, where they considered homogeneous weights. Their result is given below, but we first give the definition of a homogeneous weight.
Definition 1
[7]
A real-valued function on the finite ring is called a homogeneous weight if and the following hold:
(i) implies for all .
(ii) There exists a real number such that
where the number is called the average value of on .
For instance, the Lee weight on defined by and is a homogeneous weight with the average value .
A -ary code is defined to be a nonempty subset of of size , where d is the minimum distance of the code determined by the distance function induced by a specified homogeneous weight on . For an code with , the generalized Plotkin bound states that , and it is called Plotkin-optimal when
(3) |
where is the average value of the specified homogeneous weight.
Theorem 2.1
[7] Let be a normalized Butson-Hadamard matrix of type for some primitive -th root of unity . Then the code in formed by taking the rows of and omitting the first coordinate is a code over with parameters that meets the Plotkin bound.
3 Generalized Gray maps
In this section we consider two kinds of generalized Gray maps. At first, we give the generalized Gray map , originated in [10] (see Definition 2 below). Note that gives rise to a homogeneous weight. As Theorem 2.1 states, codes obtained from rows of BH matrices satisfy the Plotkin bound under any homogeneous weight [7]. On the other hand, very little is known when the map is non-homogeneous. Hence, we consider a generalized Gray map which yields a non-homogeneous weight (see Definition 3). We also prove some lemmas on in which we give the minimum distance of BH codes under the weight defined by .
Definition 2
Let be a positive integer, be any element of and its -ary expansion for some . The image of by a Gray map is defined to be the Boolean function on :
(5) |
Example 1
Suppose that and . Then the Gray map for is defined as follows:
(7) |
where , in lexicographical order, are taken as follows:
0 | 0 |
0 | 1 |
1 | 0 |
1 | 1 |
If , then its binary representation is equal to . Therefore if then we get . If we continue like this we can get Boolean function .
Let be the Hamming weight and be a weight on defined by . We note that and for any
(10) |
Then one can easily deduce from Definition 1 that is a homogeneous weight. In what follows, we list some properties of .
-
i.
Let be a positive integer and for some . Then is a homomorphism from to .
-
ii.
Let such that . Then
(13) Here is the Hamming distance between and .
In this paper we also consider another Gray map which yields a non-homogeneous weight.
Definition 3
[20] Let be a prime number and be a positive integer. A Gray map, denoted , on is defined as follows:
-
i.
If , then has 1 in the first location and ’s elsewhere.
-
ii.
If , then , where and are positive integers such that and .
Let be the weight on defined by . Then we have
(17) |
As the following example shows, is not homogeneous in general.
Example 2
Let , and . Now if we take and , then ; but since , , and are not equal. Therefore is not homogeneous by Definition 1.
Now we give four lemmas that we will use in the proof of Theorem 4.3.
Lemma 1
Let with . If either and or and , then the total number of ’s in and is
Proof
If and then the result is clear from the definition of . Let and Since and we see that . Therefore, the number of ’s in is equal to . On the other hand, , and by definition, the number of ’s in is This completes the proof.
Example 3
Let , . If we take and then we can easily find that and . Therefore the total number of ’s in and is equal to
Lemma 2
Let be a prime number, , and . Then
(20) |
Proof
First we consider . Without loss of generality we take . If then by the definition of , where it has the number in the first coordinates and the others are . We also have and as Therefore such that the first coordinates are and the others are . So . Now if then we can write for some such that Then . Also and . Now, if then we can say that and . Therefore . If then Hence and . Also we can say that since . Therefore there are same coordinates in and . So .
Now suppose that and for some such that . Then and since we must have . It follows that and . Since , we obtain . Also it is clear that if , then .
Lemma 3
Let be a prime number, , be a primitive -th root of unity and for . If , then the total number of zeros in is equal to .
Proof
We know that ’s satisfying will only be of the form , where and , see [13, Theorem 3.3]. Here we will give a proof only for the case , since we will give the case where is nonzero in Corollary. 3 We know that obtaining in the images for is only possible for or . So the number of in are equal to , respectively. Here there are elements. On the other hand, the number of zero in for are , in order. Therefore, the total number of zeros in is
Example 4
Let and be the primitive th root of unity. Also we know that . Then , . Total number of zeros in these images is equal to
4 Butson-Hadamard codes
In this section we will study codes obtained via assigning rows of normalized BH matrices and their translates as codewords. Namely, let be a primitive -th root of unity, be a normalized matrix and be the matrix with entries taken from the exponents of corresponding entries of . Then codes are constructed from the rows of .
Codes from normalized generalized Hadamard matrices and their translates are widely studied, see [11, Chapter 4] and references therein. Besides, codes constructed from modified quaternary complex BH matrices are given in [17], which are close to the Plotkin bound. Another type modified matrices and the codes obtained from them are studied in [14].
Definition 4
Let be positive integers and be a primitive -th root of unity, be a normalized matrix. Suppose that be the set of all -th roots of unity. If is the -th row of H then, is called a translate of for some .
We use the definitions given in [11, Definition 4.32] and we take the Hamming weight for the codes obtained from BH matrices in the following theorem.
Theorem 4.1
Let be positive integers, be a primitive -th root of unity, be a normalized matrix and be the set of all -th roots of unity. Let and .
-
i.
the -ary code consisting of the rows of with the first column deleted. Here .
-
ii.
the -ary code consisting of the rows of exponent matrix of the translates , with first column deleted. Here
-
iii.
the -ary code consisting of the rows of exponent matrix of the translates , . Here
-
iv.
, , the -ary code consisting of the rows of exponent matrix of for all and any fixed noninitial column of . Here .
Proof
-
i.
We first note that is a prime number. If is a primitive -th root of unity then is -th root of unity. Then . This implies that we must have at least elements in order to get vanishing sum. On the other hand, since the rows of BH matrices are orthogonal, the number of same elements in two rows of must be smaller than . That is . So we have .
-
ii.
Let be an element of . Then it is clear that the codes and shifting of with have same minimum distance. Now let and be the -th row of and , respectively, with the first column deleted for . So if . On the other hand, as we have for . If we use the same argument in the proof of (i), we can say that . Therefore .
-
iii.
has codewords of length . Similar to the proof of (ii), we have
-
iv.
and are only one column different from each other. Therefore .
Example 5
Let be a primitive -th root of unity and
be a matrix. Here the minimum distance between the rows of is equal to by using SageMath [19], therefore is satisfied, where and . Similarly, for a primitive -th root of unity, , let
be a matrix. It can be verified that the minimum distance between the rows of is equal to and satisfies , where and . Now consider . In this case, we have and its translates as codewords. If we calculate the minimum distance by SageMath, we get and so . Again, by using SageMath, we can get that the minimum distance for is , which satisfies .
Let be a primitive -th root of unity. Then
is a matrix. If we calculate the minimum distance for by SageMath, we get , so holds.
Remark 1
We note that it is easy to get a code with larger alphabet size without decreasing the minimum distance by combining two BH matrices under Chinese Remainder Theorem. Let be distinct prime numbers, , and be primitive -th, -th and -th roots of unities, respectively. Also and be normalized and matrices, respectively. Let and be the minimum distance between the rows of and , respectively. Let be the normalized matrix obtained from and such that and . Then the minimum distance of rows of satisfies .
Proposition 1
Let be a Frobenius ring and let be a matrix over . Suppose that for any with , the set
(21) |
is a disjoint union of the cosets of right or left ideals of . Here and are the -th and -th rows of , respectively. Then for any generating character of , the matrix is a Butson-Hadamard matrix.
Proof
Suppose that for with , and be the distinct rows of . Then and . Therefore . We know that the sum of the images under over a right (or left) ideal of is equal to . Then for a fixed element and a right (or left) ideal of , we have ; so we can say that
If then . Therefore is a Butson-Hadamard matrix.
Definition 5
Let be a Frobenius ring and be an matrix over . Also suppose that satisfies (21). Then for any generating character of , the Butson-Hadamard matrix is called an amenable Butson-Hadamard matrix.
Example 6
Suppose that is a finite Frobenius ring of characteristic and is a generating character for , be a nondegenerate bilinear pairing for the finite left -module and finite right -module . Then is a BH(t,m) Butson-Hadamard matrix, where by [15, Theorem 10]. All matrices created in this way are amenable Butson-Hadamard matrices since the elements in the row differences in form left ideals of .
Bilinear pairings give us amenable Butson-Hadamard matrices, but not all amenable matrices have to be of this type. The matrix below is a counterexample.
Example 7
Let and be a matrix over given as below.
It is readily checked that all pairwise row differences of are the unions of the cosets of and . Thus, if , where is a primitive -th root of unity, then is an amenable matrix.
Example 8
All matrices of type are amenable matrices where is a prime number and , because every row difference in the additive representation of a forms up a union of cosets of ideals for some , see [13, Theorem 3.3].
Remark 2
The authors of this article do not know the existence of a Butson-Hadamard matrix which is not amenable.
In Theorem 4.1 we have given lower bounds for the minimum distances of codes defined via rows of BH matrices. But in the following theorem we have obtained equality for these minimum distances by taking BH matrices as amenable.
Now suppose that is a homogeneous weight, , and is the average value of .
Theorem 4.2
Let and be positive integers, be a normalized amenable matrix, and be the set of all -th roots of unity. Also suppose that and are defined as in Theorem 4.1. Then and .
Proof
We know that by Theorem 2.1. Now consider . Let be the -th and -th rows of , respectively. Also suppose that is the -th row of such that and . So . If we use the same argument in the proof of 2.1 we can say that for all . Here is the -th coordinate of Therefore the proof of the Theorem 1 is also provided here as well. So . But here since the first coordinates of and will always be different if we delete the first coordinate, the minimum distance decrease by . After all this we get .
The code differs from only in the first coordinate. Therefore, from the results we obtained above we get
Finally we consider code. Since is obtained by adding a column to we can say that .
As noted Example 8, all matrices in the following corollary are amenable.
Corollary 1
Let be a prime number, such that and be a primitive -th root of unity, be an normalized Butson-Hadamard matrix and be the set of all -th roots of unity. Also let and define codes as in Theorem 4.1. Then, , , , .
Proof
Now we will give an example of Theorem 4.2.
Example 9
If is a homogeneous weight with the average value over a Frobenius ring , then for every nonzero ideal of , see [7, Proposition 2.6], a property which plays a crucial role in proving that some linear codes produced from a bimodule over by using a non-degenerated bilinear form meet the Plotkin bound [7, Theorem 4.3]. Note that this important property of a homogeneous weight is shared also by the non-homogeneous weight induced by the Gray map with , see Corollary 2 below. In the following definition we formalize such a weight.
Definition 6
A weight on the finite ring is called quasi-homogeneous if and there exists a real number such that
for each nonzero ideal of . The number is called the average value of .
Proposition 2
Let be a positive integer and be a positive real number. Define a mapping by
for all with the -ary expansion . Then is a quasi-homogeneous weight on with the average value .
Proof
Fix . We show that for any ,
which completes the proof. Note that it is enough to assume . Note also that for any , there exists a unique such that and . Write and , where for each and . Hence, a typical element of can be written uniquely as
where the ’s and ’s all lie in . We separate the sum of ’s, where ranges over , into three sums as follows:
(I) The sum of the ’s for with , i.e.,
(II) the sum of the ’s for with , i.e.,
(III) the sum of the ’s for with , i.e.,
It is now easy to see that the numbers in (I)–(III) sum up to .
Corollary 2
The weight on , where is a prime number and , is a quasi-homogeneous weight with the average value .
Proof
Notice that coincides with the weight defined in Proposition 2 with .
Remark 3
In view of the proof of Proposition 1, we see that both weights and share the same average value . In fact, is the only homogeneous weight on with the average value , see Theorem 2.2 in [7]. It follows that our consideration of quasi-homogeneous weights enables us to work with more useful weights with the same common average value and flourishes our repository of weights in this manner.
Corollary 3
Let be a prime number, be a positive integer, and . Given any , the total number of ’s in the elements of the set is independent of and equals .
Proof
By Corollary 2, the total number of ’s in the elements of the set is
Example 10
Choose , , and . The total number of ’s in is . On the other hand, the total number of ’s in is . Hence, the total number of ’s in both sets is the same.
Proposition 3
Let be a prime number, such that and be a primitive -th root of unity, be an normalized Butson-Hadamard matrix, and be a quasi-homogeneous weight with the average value . Then the minimum distance of the code consisting the rows of with the first column deleted is equal to .
Proof
Since is a Butson-Hadamard matrix we know that there exists such that . We will the proof by induction on .
For we have a matrix.Let be the -th and -th rows of , respectively. Hence the elements of consists of the elements of or the cosets of this ideal. More clearly or for all . So for we can say that . Now let be given and suppose that the theorem is true for all with . Let us show the theorem is true for . Suppose that . We know that for . If we take this differs from the case only elements.The elements again only come from the ideal or the cosets of this ideal. Therefore . This ends the proof.
Theorem 4.3
Let be a prime number, such that and be a primitive -th root of unity, be an normalized Butson-Hadamard matrix and be the set of all -th roots of unity. Also let and define codes as in Theorem 4.1. Then,
, , , .
Proof
Now consider . Let and be the -th row of the exponent matrix of and with deleted first column, respectively. Then , so we get for by Lemma 2. Therefore the distance between and is equal to Now suppose that be the -th row of the exponent matrix of for an arbitrary . By Corollary 3 and Lemma 3, we can say
for . Since , the minimum distance of is .
We next consider . Its codewords are constructed from the rows of the exponent matrix of for . Similar to (ii), by considering -th rows and of and respectively, we have . And so, .
Finally the code is the Gray image of the rows of concatenated with a non-initial column of . So, by using (iii), we can say that is either or .
Now we can directly obtain a Plotkin optimal code form image of in the following corollary.
Corollary 4
The code is a Plotkin-optimal -ary nonlinear code under the non-homogeneous weight. Similarly and are Plotkin-optimal -ary nonlinear codes under the non-homogeneous weight where is in .
Remark 4
5 Conclusion
In this paper we studied modified Butson-Hadamard(BH) matrices and their applications to coding theory. First we obtained new results about non-homogeneous Gray map. Then we used these results to prove some results. We give a lower bound for the minimum distance of the codes which consist of the rows of BH matrices. Then we determine the parameters of the codes which occur as the images of rows of BH matrices and their translates under the homogeneous and non-homogeneous Gray maps. Here we achieve equidistant and nonlinear codes. Also we conclude that the codes obtained the images of the rows of BH matrices under a non-homogeneous Gray map are Plotkin optimal codes.
Acknowledgement
Oğuz Yayla has been supported by Middle East Technical University - Scientific Research Projects Coordination Unit under grant number 10795. Damla Acar has been supported by YÖK 100/2000 program and TÜBİTAK-BİDEB-2213-A Scholarship.
References
- [1] Armario, J.A., Bailera, I., Borges, J., Rifà, J.: Quasi-Hadamard full propelinear codes. Mathematics in Computer Science 12(4), 419–428 (2018)
- [2] Armario, J.A., Bailera, I., Egan, R.: Generalized Hadamard full propelinear codes. arXiv preprint arXiv:1906.06220 (2019)
- [3] Butson, A.: Generalized Hadamard matrices. Proceedings of the American Mathematical Society 13(6), 894–898 (1962)
- [4] Dougherty, S.T., Rifà, J., Villanueva, M.: Ranks and kernels of codes from generalized Hadamard matrices. IEEE Transactions on Information Theory 62(2), 687–694 (2015)
- [5] Dougherty, S.T., Rifà, J., Villanueva, M.: Rank and kernel of -additive generalised Hadamard codes. arXiv preprint arXiv:2001.11609 (2020)
- [6] Drake, A.D.: Partial -geometries and generalized Hadamard matrices over groups. Can. J. Math. XXXI, No. 3, 617–627 (1979)
- [7] Greferath, M., McGuire, G., O’Sullivan, M.E.: On Plotkin-optimal codes over finite frobenius rings. Journal of Algebra and its Applications 5(06), 799–815 (2006)
- [8] Hadamard, J.: Resolution d’une question relative aux determinants. Bull. des sciences math. 2, 240–246 (1893)
- [9] Hedayat, A., Wallis, W.D.: Hadamard matrices and their applications. The Annals of Statistics 6(6), 1184–1238 (1978)
- [10] Heng, Z., Yue, Q.: Generalized Gray map and a class of p-ary nonlinear codes. Finite Fields and Their Applications 36, 81–97 (2015)
- [11] Horadam, K.J.: Hadamard Matrices and Their Applications. Princeton University Press (2007)
- [12] Jungnickel, D.: On difference matrices, resolvable transversal designs and generalized Hadamard matrices. Mathematische Zeitschrift 167(1), 49–60 (1979)
- [13] Lam, T.Y., Leung, K.H.: On vanishing sums of roots of unity. Journal of algebra 224(1), 91–109 (2000)
- [14] Lee, M., Jiang, X., Hwang, G., Pokhrel, S.S.: Error correcting codes from modified butson-hadamard matrices. In: 2006 International Conference on Systems and Networks Communications, pp. 65–65. IEEE Computer Society (2006)
- [15] McGuire, G., Ward, H.N.: Cocyclic hadamard matrices from forms over finite frobenius rings. Linear algebra and its applications 430(7), 1730–1738 (2009)
- [16] Seberry, J.: Orthogonal designs. Springer, Cham (2017)
- [17] Stepanov, S.A.: A new class of quaternary codes. Problems of Information Transmission 42(1), 1–9 (2006)
- [18] Stepanov, S.A.: Nonlinear q-ary codes with large code distance. Problems of Information Transmission 53(3), 242–250 (2017)
- [19] The Sage Developers: SageMath, the Sage Mathematics Software System (Version 8.2.0) (2020). https://www.sagemath.org
- [20] Yildiz, B., Ozger, Z.O.: Generalization of the Lee weight to . TWMS Journal of Applied and Engineering Mathematics 2(2), 145 (2012)