This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

11institutetext: 1 Hacettepe University, Department of Mathematics,
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 pkp^{k}-ary codes

Damla Acar1    Bülent Saraç1    Oğuz Yayla2
Abstract

A Butson-Hadamard matrix HH is a square matrix of dimension nn whose entries are complex roots of unity such that HH=nIHH^{*}=nI. 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 bound

1 Introduction

A Hadamard matrix of order nn is an n×nn\times n matrix whose entries are 1,1{1,-1} satisfying HHT=nInHH^{T}=nI_{n}. Here InI_{n} is the n×nn\times n identity matrix. Hadamard [8] conjectured that such matrices exist for every nn that is a multiple of 44. 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 HH is an n×nn\times n matrix whose entries are complex roots of unity such that

HH=nInHH^{*}=nI_{n}

where HH^{*} is the Hermitian transpose of HH. If all the entries of HH are kk-th roots of unity then we say that HH is a BH(n,k){\rm BH}(n,k).

Another generalization of Hadamard matrices is (group) generalized Hadamard matrices. Let G={g1,g2,,gm}G=\{g_{1},g_{2},\ldots,g_{m}\} be a finite group and let HH be an n×nn\times n matrix whose entries are elements of GG. For convenience, we identify the group GG with the naturally embedded copy of GG in the group ring [G]={i=1maigi|ai}.\mathbb{Z}[G]=\{\sum^{m}_{i=1}a_{i}g_{i}|a_{i}\in\mathbb{Z}\}. A natural involution on [G]\mathbb{Z}[G], which we shall call conjugation, is defined by

(aigi)¯:=aigi1.\overline{(\sum a_{i}g_{i})}:=\sum a_{i}g^{-1}_{i}. (1)

Then, for the matrices with entries in [G]\mathbb{Z}[G], define an adjoint, M=[mij]:=[mji¯].M^{*}=[m_{ij}]^{*}:=[\overline{m_{ji}}]. That is the adjoint is performed by first taking the transpose of the matrix and then conjugating each entry. We call that an n×nn\times n matrix HH whose entries are in GG is a (group) generalized Hadamard matrix if

HHnInmodgGg.HH^{*}\equiv nI_{n}\mod\sum_{g\in G}{g}. (2)

For brevity, we say that such a matrix HH is a GH(n,G){\rm GH}(n,G).

For example, the following is a GH(5,C5{\rm GH}(5,C_{5}), where ζ\zeta is a generator of the cyclic group C5C_{5} of order 5.

H=(1ζζ4ζ4ζζ1ζζ4ζ4ζ4ζ1ζζ4ζ4ζ4ζ1ζζζ4ζ4ζ1)H=\left(\begin{array}[]{ccccc}1&\zeta&\zeta^{4}&\zeta^{4}&\zeta\\ \zeta&1&\zeta&\zeta^{4}&\zeta^{4}\\ \zeta^{4}&\zeta&1&\zeta&\zeta^{4}\\ \zeta^{4}&\zeta^{4}&\zeta&1&\zeta\\ \zeta&\zeta^{4}&\zeta^{4}&\zeta&1\\ \end{array}\right)

Also we can say that a GH(n,G){\rm GH}(n,G) can exist only if nn is a multiple of |G||G|. 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 22 and generalized Gray map in Section 33. In Section 44 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 55.

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 ww on the finite ring RR is called a homogeneous weight if w(0)=0w(0)=0 and the following hold:
(i) Rx=RyRx=Ry implies w(x)=w(y)w(x)=w(y) for all x,yRx,y\in R.
(ii) There exists a real number γ\gamma such that

yRxw(y)=γ|Rx|,xR\{0},\sum_{y\in Rx}w(y)=\gamma|Rx|,\forall x\in R\backslash\{0\},

where the number γ\gamma is called the average value of ww on RR.

For instance, the Lee weight wLw_{L} on 4{\mathbb{Z}}_{4} defined by wL(0)=0,wL(1)=wL(3)=1w_{L}(0)=0,w_{L}(1)=w_{L}(3)=1 and wL(2)=2w_{L}(2)=2 is a homogeneous weight with the average value γ=1\gamma=1.

A qq-ary (n,M,d)(n,M,d) code is defined to be a nonempty subset of qn{\mathbb{Z}}_{q}^{n} of size MM, where d is the minimum distance of the code determined by the distance function induced by a specified homogeneous weight on qn{\mathbb{Z}}_{q}^{n}. For an (n,M,d)(n,M,d) code with d>γnd>\gamma n, the generalized Plotkin bound states that Md/(dγn)M\leq d/(d-\gamma n), and it is called Plotkin-optimal when

M>d/(dγn)1,\displaystyle M>d/(d-\gamma n)-1, (3)

where γ\gamma is the average value of the specified homogeneous weight.

Theorem 2.1

[7] Let H=[ζhaij]H=[\zeta_{h}^{a_{ij}}] be a normalized Butson-Hadamard matrix of type BH(n,h){\rm BH}(n,h) for some primitive hh-th root of unity ζh\zeta_{h}. Then the code in (h)n1({\mathbb{Z}}_{h})^{n-1} formed by taking the rows of H=[aij]H^{\prime}=[a_{ij}] and omitting the first coordinate is a code over h{\mathbb{Z}}_{h} with parameters (n1,n,γn)(n-1,n,\gamma n) 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 G1G_{1}, originated in [10] (see Definition 2 below). Note that G1G_{1} 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 G2G_{2} which yields a non-homogeneous weight w2w_{2} (see Definition 3). We also prove some lemmas on G2G_{2} in which we give the minimum distance of BH codes under the weight w2w_{2} defined by G2G_{2}.

Definition 2

Let kk be a positive integer, uu be any element of pk{\mathbb{Z}}_{p^{k}} and u=i=1kuipi1u=\sum_{i=1}^{k}u_{i}p^{i-1} its pp-ary expansion for some ui{0,1,,p1}u_{i}\in\{0,1,\ldots,p-1\}. The image of uu by a Gray map G1G_{1} is defined to be the Boolean function on GF(p)k1GF(p)^{k-1}:

G1(u):(y1,,yk1)uk+i=1k1uiyi.\displaystyle{}\begin{array}[]{lll}G_{1}(u):(y_{1},\ldots,y_{k-1})\rightarrow u_{k}+\sum_{i=1}^{k-1}u_{i}y_{i}.\end{array} (5)
Example 1

Suppose that k=3k=3 and p=2p=2. Then the Gray map for uu is defined as follows:

G1(u):(y1,y2)u3+u1y1+u2y2,\displaystyle{}\begin{array}[]{lll}G_{1}(u):(y_{1},y_{2})\rightarrow u_{3}+u_{1}y_{1}+u_{2}y_{2},\end{array} (7)

where (y1,y2)22(y_{1},y_{2})\in\mathbb{Z}^{2}_{2}, in lexicographical order, are taken as follows:

y2y_{2} y1y_{1}
0 0
0 1
1 0
1 1

If u=6u=6, then its binary representation is equal to (u3u2u1)=(110)(u_{3}u_{2}u_{1})=(110). Therefore if (y1,y2)=(0,0)(y_{1},y_{2})=(0,0) then we get G1(6)=1G_{1}(6)=1. If we continue like this we can get Boolean function G1(u)=(1100)G_{1}(u)=(1100).

Let ww be the Hamming weight and w1w_{1} be a weight on pk{\mathbb{Z}}_{p^{k}} defined by w1(u)=w(G1(u))w_{1}(u)=w(G_{1}(u)). We note that w1(0)=0w_{1}(0)=0 and for any u0u\neq 0

w1(u):={pk1pk2if upk\{pk1,2pk1,,(p1)pk1}pk1otherwise.\displaystyle{}w_{1}(u):=\left\{\begin{array}[]{cc}p^{k-1}-p^{k-2}&\mbox{if }u\in{\mathbb{Z}}_{p^{k}}\backslash\{p^{k-1},2p^{k-1},\ldots,(p-1)p^{k-1}\}\\ p^{k-1}&\mbox{otherwise.}\end{array}\right. (10)

Then one can easily deduce from Definition 1 that w1w_{1} is a homogeneous weight. In what follows, we list some properties of G1G_{1}.

  1. i.

    Let kk be a positive integer and u=i=1kui2i12ku=\sum_{i=1}^{k}u_{i}2^{i-1}\in{\mathbb{Z}}_{2^{k}} for some ui{0,1}u_{i}\in\{0,1\}. Then G1(u)G_{1}(u) is a homomorphism from 2k1{\mathbb{Z}}_{2}^{k-1} to 2{\mathbb{Z}}_{2}.

  2. ii.

    Let a,b2ka,b\in{\mathbb{Z}}_{{2}^{k}} such that aba\neq b. Then

    d(G1(a),G1(b))={2k1if ab=2k12k2otherwise.\displaystyle{}d(G_{1}(a),G_{1}(b))=\left\{\begin{array}[]{cc}2^{k-1}&\mbox{if }a-b=2^{k-1}\\ 2^{k-2}&\mbox{otherwise}.\end{array}\right. (13)

    Here d(G1(a),G1(b))d(G_{1}(a),G_{1}(b)) is the Hamming distance between G1(a)G_{1}(a) and G1(b)G_{1}(b).

In this paper we also consider another Gray map which yields a non-homogeneous weight.

Definition 3

[20] Let p>2p>2 be a prime number and kk be a positive integer. A Gray map, denoted G2G_{2}, on pk{\mathbb{Z}}_{p^{k}} is defined as follows:

  • i.

    If upk1u\leq p^{k-1}, then G2(u)ppk1G_{2}(u)\in{\mathbb{Z}}_{p}^{p^{k-1}} has 1 in the first uu location and 0’s elsewhere.

  • ii.

    If upk1+1u\geq p^{k-1}+1, then G2(u)=q¯+G2(r)G_{2}(u)=\bar{q}+G_{2}(r), where qq and r<pk1r<p^{k-1} are positive integers such that u=qpk1+ru=qp^{k-1}+r and q¯=(qqqqqq)\bar{q}=(qqq\cdots qqq).

Let w2w_{2} be the weight on pk{\mathbb{Z}}_{{p}^{k}} defined by w2(u)=w(G2(u))w_{2}(u)=w(G_{2}(u)). Then we have

w2(u):={uif upk1pk1ifpk1upkpk1pkuifpkpk1<upk1.\displaystyle{}w_{2}(u):=\left\{\begin{array}[]{ccc}u&\mbox{if }&u\leq p^{k-1}\\ p^{k-1}&\mbox{if}&p^{k-1}\leq u\leq p^{k}-p^{k-1}\\ p^{k}-u&\mbox{if}&p^{k}-p^{k-1}<u\leq p^{k}-1.\end{array}\right. (17)

As the following example shows, w2w_{2} is not homogeneous in general.

Example 2

Let p=3p=3, k=2k=2 and R=9R={\mathbb{Z}}_{9}. Now if we take x=2x=2 and y=8y=8, then Rx=RyRx=Ry; but since G2(2)=(110)G_{2}(2)=(110), G2(8)=(002)G_{2}(8)=(002), w2(x)w_{2}(x) and w2(y)w_{2}(y) are not equal. Therefore w2w_{2} 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 m,npkm,n\in{\mathbb{Z}}_{p^{k}} with m,n0m,n\neq 0. If either m,n<pk1m,n<p^{k-1} and m+n=pk1m+n=p^{k-1} or m>n>(p1)pk1m>n>(p-1)p^{k-1} and mn=(p1)pk1m-n=(p-1)p^{k-1}, then the total number of 0’s in G2(m)G_{2}(m) and G2(n)G_{2}(n) is pk1.p^{k-1}.

Proof

If m,n<pk1m,n<p^{k-1} and m+n=pk1m+n=p^{k-1} then the result is clear from the definition of G2G_{2}. Let m>nm>n and mn=(p1)pk1.m-n=(p-1)p^{k-1}. Since m>nm>n and m=n+(p1)pk1m=n+(p-1)p^{k-1} we see that n<pk1n<p^{k-1}. Therefore, the number of 0’s in G2(n)G_{2}(n) is equal to pk1np^{k-1}-n. On the other hand, G2(m)=G2((p1)pk1+n)G_{2}(m)=G_{2}((p-1)p^{k-1}+n), and by definition, the number of 0’s in G2(m)G_{2}(m) is n.n. This completes the proof.

Example 3

Let p=3p=3, k=3k=3. If we take n=8n=8 and m=n+(p1)pk1=26m=n+(p-1)p^{k-1}=26 then we can easily find that G2(n)=G2(8)=(111111110)G_{2}(n)=G_{2}(8)=(111111110) and G2(m)=G2(26)=(000000002)G_{2}(m)=G_{2}(26)=(000000002). Therefore the total number of 0’s in G2(m)G_{2}(m) and G2(n)G_{2}(n) is equal to 9=pk1.9=p^{k-1}.

Lemma 2

Let pp be a prime number, k+k\in{\mathbb{Z}}^{+}, i,jpki,j\in{\mathbb{Z}}_{p^{k}} and |ij|=n|i-j|=n. Then

d(G2(i),G2(j))={nif n<pk1pk1otherwise.\displaystyle{}d(G_{2}(i),G_{2}(j))=\left\{\begin{array}[]{cc}n&\mbox{if }n<p^{k-1}\\ p^{k-1}&otherwise.\end{array}\right. (20)
Proof

First we consider n<pk1n<p^{k-1}. Without loss of generality we take i>ji>j. If ipk1i\leq p^{k-1} then G2(i)=(1111100000)G_{2}(i)=(111\ldots 11000\ldots 00) by the definition of G2G_{2}, where it has the number 11 in the first ii coordinates and the others are 0. We also have j<pk1j<p^{k-1} and j=inj=i-n as j<i.j<i. Therefore G2(j)=(1111100000)G_{2}(j)=(111\ldots 11000\ldots 00) such that the first ini-n coordinates are 11 and the others are 0. So d(G2(i),G2(j))=nd(G_{2}(i),G_{2}(j))=n. Now if i>pk1i>p^{k-1} then we can write i=qpk1+ri=qp^{k-1}+r for some q,r+q,r\in{\mathbb{Z}}^{+} such that r<pk1.r<p^{k-1}. Then G2(i)=q¯+G2(r)G_{2}(i)=\overline{q}+G_{2}(r). Also j=inj=i-n and n<pk1n<p^{k-1}. Now, if n<rn<r then we can say that j=qpk1+rnj=qp^{k-1}+r-n and rn<pk1r-n<p^{k-1}. Therefore d(G2(i),G2(j))=nd(G_{2}(i),G_{2}(j))=n. If nrn\geq r then j=(q1)pk1+pk1(nr).j=(q-1)p^{k-1}+p^{k-1}-(n-r). Hence G2(i)=(q+1q+1q+1qqqqpk1r)G_{2}(i)=(q+1\quad q+1\ldots q+1\underbrace{qq\ldots qq}_{p^{k-1}-r}) and G2(j)=(qqqqq1q1q1nr)G_{2}(j)=(qq\ldots qq\underbrace{q-1\quad q-1\ldots q-1}_{n-r}). Also we can say that pk1r>nrp^{k-1}-r>n-r since n>r,n<pk1n>r,n<p^{k-1}. Therefore there are pk1rn+rp^{k-1}-r-n+r same coordinates in G2(i)G_{2}(i) and G2(j)G_{2}(j). So d(G2(i),G2(j))=nd(G_{2}(i),G_{2}(j))=n.

Now suppose that j=qpk1+r,n=mpk1+rj=qp^{k-1}+r,n=mp^{k-1}+r^{\prime} and r+r=lpk1+r′′r+r^{\prime}=lp^{k-1}+r^{\prime\prime} for some q,m,l,r,r,r′′+q,m,l,r,r^{\prime},r^{\prime\prime}\in{\mathbb{Z}}^{+} such that r,r,r′′<pk1r,r^{\prime},r^{\prime\prime}<p^{k-1}. Then i=(q+m+l)pk1+r′′i=(q+m+l)p^{k-1}+r^{\prime\prime} and since i<pki<p^{k} we must have q+m+l<pq+m+l<p. It follows that G(i)=q+m+l¯+G2(r′′)G(i)=\overline{q+m+l}+G_{2}(r^{\prime\prime}) and G2(j)=q¯+G2(r)G_{2}(j)=\overline{q}+G_{2}(r). Since rr′′r\neq r^{\prime\prime}, we obtain d(G2(i),G2(j))=pk1d(G_{2}(i),G_{2}(j))=p^{k-1}. Also it is clear that if jpk1j\leq p^{k-1}, then d(G2(i),G2(j))=pk1d(G_{2}(i),G_{2}(j))=p^{k-1}.

Lemma 3

Let pp be a prime number, k+k\in{\mathbb{Z}}^{+}, ζ\zeta be a primitive pkp^{k}-th root of unity and ai+a_{i}\in{\mathbb{Z}}^{+} for i=1,2,,ni=1,2,\ldots,n. If ζa1++ζan=0\zeta^{a_{1}}+\cdots+\zeta^{a_{n}}=0, then the total number of zeros in [G2(a1),G2(a2),,G2(an)][G_{2}(a_{1}),G_{2}(a_{2}),\ldots,G_{2}(a_{n})] is equal to npk2np^{k-2}.

Proof

We know that aia_{i}’s satisfying ζa1+ζa2++ζan=0\zeta^{a_{1}}+\zeta^{a_{2}}+\cdots+\zeta^{a_{n}}=0 will only be of the form ai=ipx+ja_{i}=ip^{x}+j, where x<k,j<pxx<k,j<p^{x} and i=1,2,,pkxi=1,2,\ldots,p^{k-x}, see [13, Theorem 3.3]. Here we will give a proof only for the case j=0j=0, since we will give the case where jj is nonzero in Corollary. 3 We know that obtaining 0 in the images G2(ai)G_{2}(a_{i}) for i=1,2,,ni=1,2,\ldots,n is only possible for 1ai<pk11\leq a_{i}<p^{k-1} or (p1)pk1<aipk(p-1)p^{k-1}<a_{i}\leq p^{k}. So the number of 0 in G2(a1),G2(a2),,G2(apkx)G_{2}(a_{1}),G_{2}(a_{2}),\ldots,G_{2}(a_{p^{k-x}}) are equal to pk1px,pk12px,,(pk1x1)pxp^{k-1}-p^{x},p^{k-1}-2p^{x},\ldots,(p^{k-1-x}-1)p^{x}, respectively. Here there are pk1x1p^{k-1-x}-1 elements. On the other hand, the number of zero in G2(ai)G_{2}(a_{i}) for (p1)pk1<aipk(p-1)p^{k-1}<a_{i}\leq p^{k} are px,2px,,(pk1x1)pk1,pk1p^{x},2p^{x},\ldots,(p^{k-1-x}-1)p^{k-1},p^{k-1}, in order. Therefore, the total number of zeros in G2(a1),G2(a2),,G2(apkx)G_{2}(a_{1}),G_{2}(a_{2}),\linebreak\ldots,G_{2}(a_{p^{k}-x}) is

(pk1x1)pk1+pk1=pk2pkx=npk2.(p^{k-1-x}-1)p^{k-1}+p^{k-1}=p^{k-2}p^{k-x}=np^{k-2}.
Example 4

Let p=3,k=3p=3,k=3 and ζ\zeta be the primitive 2727-th root of unity. Also we know that ζ3+ζ6+ζ9+ζ12+ζ15+ζ18+ζ21+ζ24+ζ27=0\zeta^{3}+\zeta^{6}+\zeta^{9}+\zeta^{12}+\zeta^{15}+\zeta^{18}+\zeta^{21}+\zeta^{24}+\zeta^{27}=0. Then G2(3)=(111000000),G2(6)=(111111000),G2(9)=(111111111),G2(12)=(222111111),G2(15)=(222222111),G2(18)=(222222222),G2(21)=(000111111)G_{2}(3)=(111000000),G_{2}(6)=(111111000),G_{2}(9)=(111111111),G_{2}(12)=(222111111),G_{2}(15)=(222222111),G_{2}(18)=(222222222),G_{2}(21)=(000111111), G2(24)=(000000111),G2(27)=(000000000)G_{2}(24)=(000000111),G_{2}(27)=(000000000). Total number of zeros in these images is equal to npk2=27.np^{k-2}=27.

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 ζ\zeta be a primitive kk-th root of unity, H=[ζaij]H=[\zeta^{a_{ij}}] be a normalized BH(n,k){\rm BH}(n,k) matrix and [aij][a_{ij}] be the matrix with entries taken from the exponents of corresponding entries of HH. Then codes are constructed from the rows of [aij][a_{ij}].

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 BH{\rm BH} matrices and the codes obtained from them are studied in [14].

Definition 4

Let n,kn,k be positive integers and ζ\zeta be a primitive kk-th root of unity, H=[ζaij]H=[\zeta^{a_{ij}}] be a normalized BH(n,k)BH(n,k) matrix. Suppose that NN be the set of all kk-th roots of unity. If RiR_{i} is the ii-th row of H then, uRiuR_{i} is called a translate of RiR_{i} for some uNu\in N.

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 n,kn,k be positive integers, ζ\zeta be a primitive kk-th root of unity, H=[ζaij]H=[\zeta^{a_{ij}}] be a normalized BH(n,k){\rm BH}(n,k) matrix and NN be the set of all kk-th roots of unity. Let H=[aij]H^{\prime}=[a_{ij}] and l=min{i2:i|k}l=\min\{i\geq 2:i|k\}.

  1. i.

    AkA_{k} the kk-ary (n1,n,dA)(n-1,n,d_{A}) code consisting of the rows of HH^{\prime} with the first column deleted. Here dAnnld_{A}\geq n-\dfrac{n}{l}.

  2. ii.

    BkB_{k} the kk-ary (n1,nk,dB)(n-1,nk,d_{B}) code consisting of the rows of exponent matrix of the translates uHuH, uNu\in N with first column deleted. Here dBnnl1d_{B}\geq n-\dfrac{n}{l}-1

  3. iii.

    CkC_{k} the kk-ary (n,nk,dC)(n,nk,d_{C}) code consisting of the rows of exponent matrix of the translates uHuH, uNu\in N. Here dCnnld_{C}\geq n-\dfrac{n}{l}

  4. iv.

    DkD_{k}, n=kn=k, the kk-ary (n+1,n2,dD)(n+1,n^{2},d_{D}) code consisting of the rows of exponent matrix of (uH)c(uH)c for all uNu\in N and any fixed noninitial column cc of HH. Here dDnnld_{D}\geq n-\dfrac{n}{l}.

Proof
  1. i.

    We first note that ll is a prime number. If ζ\zeta is a primitive kk-th root of unity then ζkl\zeta^{\frac{k}{l}} is ll-th root of unity. Then (ζkl)+(ζkl)2++(ζkl)l=0(\zeta^{\frac{k}{l}})+(\zeta^{\frac{k}{l}})^{2}+\ldots+(\zeta^{\frac{k}{l}})^{l}=0. This implies that we must have at least ll 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 HH must be smaller than nl\frac{n}{l}. That is ndAnln-d_{A}\leq\frac{n}{l}. So we have dAnnld_{A}\geq n-\frac{n}{l}.

  2. ii.

    Let u=ζmu=\zeta^{m} be an element of NN. Then it is clear that the codes AkA_{k} and shifting of AkA_{k} with mm have same minimum distance. Now let RiR_{i} and RiuR^{u}_{i} be the ii-th row of HH and uHuH, respectively, with the first column deleted for i=1,2,,ni=1,2,\ldots,n. So d(Ri,Rju)=n1d(R_{i},R^{u}_{j})=n-1 if i=ji=j. On the other hand, as Rju=uRjR^{u}_{j}=uR_{j} we have d(Ri,Rju)=n1#{u|uRi1Rju}d(R_{i},R^{u}_{j})=n-1-\#\{u|u\in R_{i}^{-1}R_{j}^{u}\} for iji\neq j. If we use the same argument in the proof of (i), we can say that #{u|uRi1Rju}nl\#\{u|u\in R_{i}^{-1}R_{j}^{u}\}\leq\frac{n}{l}. Therefore dBnnl1d_{B}\geq n-\frac{n}{l}-1.

  3. iii.

    CkC_{k} has codewords of length nn. Similar to the proof of (ii), we have dCnnld_{C}\geq n-\frac{n}{l}

  4. iv.

    DkD_{k} and CkC_{k} are only one column different from each other. Therefore dDnnld_{D}\geq n-\frac{n}{l}.

Example 5

Let ζ\zeta be a primitive 3636-th root of unity and

H1=(1111111111111ζ12ζ24ζ28ζ4ζ161ζ12ζ241ζ12ζ241ζ24ζ12ζ20ζ8ζ321ζ24ζ121ζ24ζ121ζ271111ζ18ζ9ζ18ζ18ζ18ζ181ζ3ζ24ζ28ζ4ζ16ζ18ζ21ζ6ζ18ζ30ζ61ζ15ζ12ζ20ζ8ζ32ζ18ζ33ζ30ζ18ζ6ζ30111ζ18ζ18ζ18ζ911ζ27ζ18ζ181ζ12ζ24ζ10ζ22ζ34ζ9ζ12ζ24ζ27ζ30ζ61ζ24ζ12ζ2ζ26ζ14ζ9ζ24ζ12ζ27ζ6ζ301ζ271ζ18ζ18ζ18ζ27ζ9ζ18ζ9111ζ3ζ24ζ10ζ22ζ34ζ27ζ21ζ6ζ9ζ12ζ241ζ15ζ12ζ2ζ26ζ14ζ27ζ33ζ30ζ9ζ24ζ12)H_{1}=\left(\begin{array}[]{cccccccccccc}1&1&1&1&1&1&1&1&1&1&1&1\\ 1&\zeta^{12}&\zeta^{24}&\zeta^{28}&\zeta^{4}&\zeta^{16}&1&\zeta^{12}&\zeta^{24}&1&\zeta^{12}&\zeta^{24}\\ 1&\zeta^{24}&\zeta^{12}&\zeta^{20}&\zeta^{8}&\zeta^{32}&1&\zeta^{24}&\zeta^{12}&1&\zeta^{24}&\zeta^{12}\\ 1&\zeta^{27}&1&1&1&1&\zeta^{18}&\zeta^{9}&\zeta^{18}&\zeta^{18}&\zeta^{18}&\zeta^{18}\\ 1&\zeta^{3}&\zeta^{24}&\zeta^{28}&\zeta^{4}&\zeta^{16}&\zeta^{18}&\zeta^{21}&\zeta^{6}&\zeta^{18}&\zeta^{30}&\zeta^{6}\\ 1&\zeta^{15}&\zeta^{12}&\zeta^{20}&\zeta^{8}&\zeta^{32}&\zeta^{18}&\zeta^{33}&\zeta^{30}&\zeta^{18}&\zeta^{6}&\zeta^{30}\\ 1&1&1&\zeta^{18}&\zeta^{18}&\zeta^{18}&\zeta^{9}&1&1&\zeta^{27}&\zeta^{18}&\zeta^{18}\\ 1&\zeta^{12}&\zeta^{24}&\zeta^{10}&\zeta^{22}&\zeta^{34}&\zeta^{9}&\zeta^{12}&\zeta^{24}&\zeta^{27}&\zeta^{30}&\zeta^{6}\\ 1&\zeta^{24}&\zeta^{12}&\zeta^{2}&\zeta^{26}&\zeta^{14}&\zeta^{9}&\zeta^{24}&\zeta^{12}&\zeta^{27}&\zeta^{6}&\zeta^{30}\\ 1&\zeta^{27}&1&\zeta^{18}&\zeta^{18}&\zeta^{18}&\zeta^{27}&\zeta^{9}&\zeta^{18}&\zeta^{9}&1&1\\ 1&\zeta^{3}&\zeta^{24}&\zeta^{10}&\zeta^{22}&\zeta^{34}&\zeta^{27}&\zeta^{21}&\zeta^{6}&\zeta^{9}&\zeta^{12}&\zeta^{24}\\ 1&\zeta^{15}&\zeta^{12}&\zeta^{2}&\zeta^{26}&\zeta^{14}&\zeta^{27}&\zeta^{33}&\zeta^{30}&\zeta^{9}&\zeta^{24}&\zeta^{12}\end{array}\right)

be a BH(12,36){\rm BH}(12,36) matrix. Here the minimum distance between the rows of H1H_{1} is equal to dA=7d_{A}=7 by using SageMath [19], therefore dAnnld_{A}\geq n-\frac{n}{l} is satisfied, where n=12n=12 and l=min{i2:i|36}=2l=min\{i\geq 2:i|36\}=2. Similarly, for a primitive 1010-th root of unity, ζ\zeta, let

H2=(1111111111ζ5ζ3ζ3ζ5ζ9ζ8ζ7ζ1ζ4ζ5ζ7ζζ3ζ5ζ9ζ91ζ3ζ7ζ5ζζ8ζ9ζ3ζ51ζ9ζζ5ζ5ζ3ζ7ζ2ζ71ζ9ζ5ζζ3ζ5ζζ7ζ61ζζ7ζ9ζ6ζζ5ζ5ζ31ζ7ζ9ζ4ζ9ζ5ζ3ζ5ζ1ζ5ζ2ζ9ζ7ζ7ζ3ζζ5)H_{2}=\left(\begin{array}[]{ccccccccc}1&1&1&1&1&1&1&1&1\\ 1&\zeta^{5}&\zeta^{3}&\zeta^{3}&\zeta^{5}&\zeta^{9}&\zeta^{8}&\zeta^{7}&\zeta\\ 1&\zeta^{4}&\zeta^{5}&\zeta^{7}&\zeta&\zeta^{3}&\zeta^{5}&\zeta^{9}&\zeta^{9}\\ 1&\zeta^{3}&\zeta^{7}&\zeta^{5}&\zeta&\zeta^{8}&\zeta^{9}&\zeta^{3}&\zeta^{5}\\ 1&\zeta^{9}&\zeta&\zeta^{5}&\zeta^{5}&\zeta^{3}&\zeta^{7}&\zeta^{2}&\zeta^{7}\\ 1&\zeta^{9}&\zeta^{5}&\zeta&\zeta^{3}&\zeta^{5}&\zeta&\zeta^{7}&\zeta^{6}\\ 1&\zeta&\zeta^{7}&\zeta^{9}&\zeta^{6}&\zeta&\zeta^{5}&\zeta^{5}&\zeta^{3}\\ 1&\zeta^{7}&\zeta^{9}&\zeta^{4}&\zeta^{9}&\zeta^{5}&\zeta^{3}&\zeta^{5}&\zeta\\ 1&\zeta^{5}&\zeta^{2}&\zeta^{9}&\zeta^{7}&\zeta^{7}&\zeta^{3}&\zeta&\zeta^{5}\end{array}\right)

be a BH(9,10){\rm BH}(9,10) matrix. It can be verified that the minimum distance between the rows of H2H_{2} is equal to dA=7d_{A}=7 and satisfies dAnnld_{A}\geq n-\frac{n}{l}, where n=9n=9 and l=2l=2. Now consider BkB_{k}. In this case, we have AkA_{k} and its translates as codewords. If we calculate the minimum distance by SageMath, we get dB=5d_{B}=5 and so dBn(11l)1d_{B}\geq n(1-\frac{1}{l})-1. Again, by using SageMath, we can get that the minimum distance for CkC_{k} is dC=6d_{C}=6, which satisfies dCnnld_{C}\geq n-\frac{n}{l}.

Let ζ\zeta be a primitive 66-th root of unity. Then

H2=(1111111ζζ2ζ3ζ4ζ51ζ2ζ41ζ2ζ41ζ31ζ31ζ31ζ4ζ21ζ4ζ21ζ5ζ4ζ3ζ2ζ)H_{2}=\left(\begin{array}[]{cccccc}1&1&1&1&1&1\\ 1&\zeta&\zeta^{2}&\zeta^{3}&\zeta^{4}&\zeta^{5}\\ 1&\zeta^{2}&\zeta^{4}&1&\zeta^{2}&\zeta^{4}\\ 1&\zeta^{3}&1&\zeta^{3}&1&\zeta^{3}\\ 1&\zeta^{4}&\zeta^{2}&1&\zeta^{4}&\zeta^{2}\\ 1&\zeta^{5}&\zeta^{4}&\zeta^{3}&\zeta^{2}&\zeta\\ \end{array}\right)

is a BH(6,6){\rm BH}(6,6) matrix. If we calculate the minimum distance for DkD_{k} by SageMath, we get dD=3d_{D}=3, so dDn(11l)d_{D}\geq n(1-\frac{1}{l}) 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 h,kh,k be distinct prime numbers, ζ\zeta, α\alpha and β\beta be primitive hh-th, kk-th and hkhk-th roots of unities, respectively. Also H1=[ζaij]H_{1}=[\zeta^{a_{ij}}] and H2=[αbij]H_{2}=[\alpha^{b_{ij}}] be normalized BH(n,h){\rm BH}(n,h) and BH(n,k){\rm BH}(n,k) matrices, respectively. Let d1d_{1} and d2d_{2} be the minimum distance between the rows of [aij][a_{ij}] and [bij][b_{ij}], respectively. Let H=[βcij]H=[\beta^{c_{ij}}] be the normalized matrix obtained from H1H_{1} and H2H_{2} such that cijaijmodhc_{ij}\equiv a_{ij}\mod h and cijbijmodkc_{ij}\equiv b_{ij}\mod k. Then the minimum distance of rows of [cij][c_{ij}] satisfies dmax{d1,d2}d\geq\max\{d_{1},d_{2}\}.

Proposition 1

Let RR be a Frobenius ring and let A=[aij]A=[a_{ij}] be a n×nn\times n matrix over RR. Suppose that for any 1k,ln1\leq k,l\leq n with klk\neq l, the set

RkRl:={ak1al1,ak2al2,,aknaln},\displaystyle R_{k}-R_{l}:=\{a_{k1}-a_{l1},a_{k2}-a_{l2},\ldots,a_{kn}-a_{ln}\}, (21)

is a disjoint union of the cosets of right or left ideals of RR. Here RkR_{k} and RlR_{l} are the kk-th and ll-th rows of AA, respectively. Then for any generating character χ\chi of RR, the matrix H=[χ(aij)]H=[\chi(a_{ij})] is a Butson-Hadamard matrix.

Proof

Suppose that for 1i,jn1\leq i,j\leq n with iji\neq j, SiS_{i} and SjS_{j} be the distinct rows of HH. Then Si=(χ(ai1),χ(ai2),,χ(ain))S_{i}=(\chi(a_{i1}),\chi(a_{i2}),\ldots,\chi(a_{in})) and Sj=(χ(aj1),χ(aj2),,χ(ajn))S_{j}=(\chi(a_{j1}),\chi(a_{j2}),\ldots,\chi(a_{jn})). Therefore SiSj=k=1nχ(aikajk)S_{i}S_{j}^{*}=\displaystyle\sum_{k=1}^{n}\chi(a_{ik}-a_{jk}). We know that the sum of the images under χ\chi over a right (or left) ideal of RR is equal to 0. Then for a fixed element aRa\in R and a right (or left) ideal II of RR, we have iIχ(a+i)=iIχ(a)χ(i)=χ(a)iIχ(i)=0\displaystyle\sum_{i\in I}\chi(a+i)=\displaystyle\sum_{i\in I}\chi(a)\chi(i)=\chi(a)\sum_{i\in I}\chi(i)=0; so we can say that SiSj=k=1nχ(aikajk)=0.S_{i}S_{j}^{*}=\displaystyle\sum_{k=1}^{n}\chi(a_{ik}-a_{jk})=0.

If i=ji=j then k=1nχ(aikajk)=k=1nχ(aikajk)=n\displaystyle\sum_{k=1}^{n}\chi(a_{ik}-a_{jk})=\displaystyle\sum_{k=1}^{n}\chi(a_{ik}-a_{jk})=n. Therefore HH is a Butson-Hadamard matrix.

Definition 5

Let RR be a Frobenius ring and A=[aij]A=[a_{ij}] be an n×nn\times n matrix over RR. Also suppose that AA satisfies (21). Then for any generating character χ\chi of RR, the Butson-Hadamard matrix H=[χ(aij)]H=[\chi(a_{ij})] is called an amenable Butson-Hadamard matrix.

Example 6

Suppose that RR is a finite Frobenius ring of characteristic tt and χ\chi is a generating character for RR, B:L×MRB:L\times M\rightarrow R be a nondegenerate bilinear pairing for the finite left RR-module LL and finite right RR-module MM. Then H=[χ(B(x,y))]L×MH=[\chi(B(x,y))]_{L\times M} is a BH(t,m) Butson-Hadamard matrix, where m=|L|=|M|m=|L|=|M| by [15, Theorem 10]. All matrices created in this way are amenable Butson-Hadamard matrices since the elements in the row differences in [B(x,y)]L×M[B(x,y)]_{L\times M} form left ideals of RR.

Bilinear pairings give us amenable Butson-Hadamard matrices, but not all amenable BHBH matrices have to be of this type. The matrix below is a counterexample.

Example 7

Let R=6R={\mathbb{Z}}_{6} and AA be a 6×66\times 6 matrix over RR given as below.

A=(0000000000233401350330254302034252004203410423104)A=\left(\begin{array}[]{ccccccc}0&0&0&0&0&0&0\\ 0&0&0&2&3&3&4\\ 0&1&3&5&0&3&3\\ 0&2&5&4&3&0&2\\ 0&3&4&2&5&2&0\\ 0&4&2&0&3&4&1\\ 0&4&2&3&1&0&4\end{array}\right)

It is readily checked that all pairwise row differences of AA are the unions of the cosets of 363{\mathbb{Z}}_{6} and 262{\mathbb{Z}}_{6}. Thus, if χ:R,χ(a)=ζa\chi:R\longrightarrow\mathbb{C},\chi(a)=\zeta^{a}, where ζ\zeta is a primitive 66-th root of unity, then H=[χ(aij)]H=[\chi(a_{ij})] is an amenable BH(7,6)BH(7,6) matrix.

Example 8

All matrices of type BH(n,pk)BH(n,p^{k}) are amenable BHBH matrices where pp is a prime number and k,n+k,n\in{\mathbb{Z}}^{+}, because every row difference in the additive representation of a BH(n,pk)BH(n,p^{k}) forms up a union of cosets of ideals piZpkp^{i}Z_{p^{k}} for some 1ik11\leq i\leq k-1, 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 ww is a homogeneous weight, l=max{w(a):ak}l=\max\{w(a):a\in{\mathbb{Z}}_{k}\}, l=min{w(a):ak\{0}}l^{\prime}=\min\{w(a):a\in{\mathbb{Z}}_{k}\backslash\{0\}\} and γ\gamma is the average value of ww.

Theorem 4.2

Let nn and kk be positive integers, H=[ζaij]H=[\zeta^{a_{ij}}] be a normalized amenable BH(n,k){\rm BH}(n,k) matrix, H=[aij]H^{\prime}=[a_{ij}] and NN be the set of all kk-th roots of unity. Also suppose that Ak,Bk,CkA_{k},B_{k},C_{k} and DkD_{k} are defined as in Theorem 4.1. Then dAk=γn,dBk=γnl,dCk=γnd_{A_{k}}=\gamma n,d_{B_{k}}=\gamma n-l,d_{C_{k}}=\gamma n and dDk{γn,γn+l}d_{D_{k}}\in\{\gamma n,\gamma n+l^{\prime}\}.

Proof

We know that dH=γnd_{H}=\gamma n by Theorem 2.1. Now consider BkB_{k}. Let Ri,RjR_{i},R_{j} be the ii-th and jj-th rows of HH, respectively. Also suppose that RjR^{\prime}_{j} is the jj-th row of ζuH\zeta^{u}H such that 1i,jn1\leq i,j\leq n and ij,uZti\neq j,u\in Z_{t}. So Rj=ζuRjR^{\prime}_{j}=\zeta^{u}R_{j}. If we use the same argument in the proof of 2.1 we can say that fr+u=|{k{1,,n}:logζ(RikRjk1)=r+u}|/n=frf_{r+u}=|\{k\in\{1,\ldots,n\}:\log_{\zeta}(R_{ik}R^{-1}_{jk})=r+u\}|/n=f_{r} for all r,utr,u\in{\mathbb{Z}}_{t}. Here logζ(RikRjk1)\log_{\zeta}(R_{ik}R^{-1}_{jk}) is the kk-th coordinate of RiRj1.R_{i}R_{j}^{-1}. Therefore the proof of the Theorem 1 is also provided here as well. So k=1k=n(w(RikRjk1))=γn\sum_{k=1}^{k=n}(w(R_{ik}R^{-1}_{jk}))=\gamma n. But here since the first coordinates of RiR_{i} and Rj=uRjR^{\prime}_{j}=uR_{j} will always be different if we delete the first coordinate, the minimum distance decrease by ll . After all this we get dBk=γnld_{B_{k}}=\gamma n-l.

The CkC_{k} code differs from BkB_{k} only in the first coordinate. Therefore, from the results we obtained above we get dCk=γn.d_{C_{k}}=\gamma n.

Finally we consider DkD_{k} code. Since DkD_{k} is obtained by adding a column to CkC_{k} we can say that dDk{γn,γn+l}d_{D_{k}}\in\{\gamma n,\gamma n+l^{\prime}\}.

As noted Example 8, all BHBH matrices in the following corollary are amenable.

Corollary 1

Let p>2p>2 be a prime number, k+k\in{\mathbb{Z}}^{+} such that k2k\geq 2 and ζ\zeta be a primitive pkp^{k}-th root of unity, H=[ζaij]H=[\zeta^{a_{ij}}] be an n×nn\times n normalized Butson-Hadamard matrix and NN be the set of all pkp^{k}-th roots of unity. Also let H=[aij]H^{\prime}=[a_{ij}] and define Ak,Bk,Ck,DkA_{k},B_{k},C_{k},D_{k} codes as in Theorem 4.1. Then, dG1(Ak)=n(p1)pk2d_{G_{1}(A_{k})}=n(p-1)p^{k-2}, dG1(Bk)=n(p1)pk2pk1d_{G_{1}(B_{k})}=n(p-1)p^{k-2}-p^{k-1}, dG1(Ck)=n(p1)pk2d_{G_{1}(C_{k})}=n(p-1)p^{k-2}, dG1(Dk){p2k2(p1),pk2(pk+1pk+p1)}d_{G_{1}(D_{k})}\in\{p^{2k-2}(p-1),p^{k-2}(p^{k+1}-p^{k}+p-1)\}.

Proof

dG1(Ak)d_{G_{1}(A_{k})} is a consequence of Theorem 2.1. We need to find the γ\gamma average value of ww. Now since G1G_{1} is balanced except for the elements of L={pk1,2pk1,,pk}L=\{p^{k-1},2p^{k-1},\ldots,p^{k}\}. Namely for every 1αpk1\leq\alpha\leq p^{k} such that αL\alpha\notin L there are equal number of 0,1,,p10,1,\ldots,p-1 in G1(α)G_{1}(\alpha). For any βL\{0},w(β)=pk1\beta\in L\backslash\{0\},w(\beta)=p^{k-1}. Therefore l=pk1pk2,l=pk1l=p^{k-1}-p^{k-2},l^{\prime}=p^{k-1} and

γ=(p1)pk1+(pkp)(pk1pk2)pk=pk1pk2=(p1)pk2.\gamma=\frac{(p-1)p^{k-1}+(p^{k}-p)(p^{k-1}-p^{k-2})}{p^{k}}=p^{k-1}-p^{k-2}=(p-1)p^{k-2}.

So the result is obtained when the γ\gamma is written instead of the Theorem 4.2.

Now we will give an example of Theorem 4.2.

Example 9

Let p=3p=3, k=2k=2 and ζ\zeta be the primitive 99-th root of unity. Then

H=(1111111111ζζ2ζ3ζ4ζ5ζ6ζ7ζ81ζ2ζ4ζ6ζ8ζζ3ζ5ζ71ζ3ζ61ζ3ζ61ζ3ζ61ζ4ζ8ζ3ζ7ζ2ζ6ζζ51ζ5ζζ6ζ2ζ7ζ3ζ8ζ41ζ6ζ31ζ6ζ31ζ6ζ31ζ7ζ5ζ3ζζ8ζ6ζ4ζ21ζ8ζ7ζ6ζ5ζ4ζ3ζ2ζ)H=\left(\begin{array}[]{ccccccccc}1&1&1&1&1&1&1&1&1\\ 1&\zeta&\zeta^{2}&\zeta^{3}&\zeta^{4}&\zeta^{5}&\zeta^{6}&\zeta^{7}&\zeta^{8}\\ 1&\zeta^{2}&\zeta^{4}&\zeta^{6}&\zeta^{8}&\zeta&\zeta^{3}&\zeta^{5}&\zeta^{7}\\ 1&\zeta^{3}&\zeta^{6}&1&\zeta^{3}&\zeta^{6}&1&\zeta^{3}&\zeta^{6}\\ 1&\zeta^{4}&\zeta^{8}&\zeta^{3}&\zeta^{7}&\zeta^{2}&\zeta^{6}&\zeta&\zeta^{5}\\ 1&\zeta^{5}&\zeta&\zeta^{6}&\zeta^{2}&\zeta^{7}&\zeta^{3}&\zeta^{8}&\zeta^{4}\\ 1&\zeta^{6}&\zeta^{3}&1&\zeta^{6}&\zeta^{3}&1&\zeta^{6}&\zeta^{3}\\ 1&\zeta^{7}&\zeta^{5}&\zeta^{3}&\zeta&\zeta^{8}&\zeta^{6}&\zeta^{4}&\zeta^{2}\\ 1&\zeta^{8}&\zeta^{7}&\zeta^{6}&\zeta^{5}&\zeta^{4}&\zeta^{3}&\zeta^{2}&\zeta\end{array}\right)

is an amenable BH(9,9){\rm BH}(9,9) matrix. Then

G1(H)=(000000000000000000000000000000012021111120102222201210000021120222210012111102201000111222000111222000111222000120210111201021222012102000102012222021201111210120000222111000222111000222111000201102111012210222120021000210201222102120111021012).G_{1}(H^{\prime})=\left(\begin{array}[]{ccccccccccccccccccccccccccc}0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0\\ 0&0&0&0&1&2&0&2&1&1&1&1&1&2&0&1&0&2&2&2&2&2&0&1&2&1&0\\ 0&0&0&0&2&1&1&2&0&2&2&2&2&1&0&0&1&2&1&1&1&1&0&2&2&0&1\\ 0&0&0&1&1&1&2&2&2&0&0&0&1&1&1&2&2&2&0&0&0&1&1&1&2&2&2\\ 0&0&0&1&2&0&2&1&0&1&1&1&2&0&1&0&2&1&2&2&2&0&1&2&1&0&2\\ 0&0&0&1&0&2&0&1&2&2&2&2&0&2&1&2&0&1&1&1&1&2&1&0&1&2&0\\ 0&0&0&2&2&2&1&1&1&0&0&0&2&2&2&1&1&1&0&0&0&2&2&2&1&1&1\\ 0&0&0&2&0&1&1&0&2&1&1&1&0&1&2&2&1&0&2&2&2&1&2&0&0&2&1\\ 0&0&0&2&1&0&2&0&1&2&2&2&1&0&2&1&2&0&1&1&1&0&2&1&0&1&2\end{array}\right).

If we calculate the average weight we get γ=2\gamma=2. By using SageMath [19], we obtain that dG1(Ak)=18=γnd_{G_{1}(A_{k})}=18=\gamma n, dG1(Bk)=15=γnl,dG1(Ck)=18=γnd_{G_{1}(B_{k})}=15=\gamma n-l,d_{G_{1}(C_{k})}=18=\gamma n. Here l=max{w(a):ak{0}}=3l=\max\{w(a):a\in{\mathbb{Z}}_{k}\setminus\{0\}\}=3. Let cc be the 44-th column of HH^{\prime}. Then we get dG1(Dk)=18d_{G_{1}(D_{k})}=18. These minimum distances comply with the results in Theorem 4.2.

If ww is a homogeneous weight with the average value γ\gamma over a Frobenius ring RR, then ry+Iw(r)=γ|I|\sum_{r\in y+I}w(r)=\gamma|I| for every nonzero ideal II of RR, see [7, Proposition 2.6], a property which plays a crucial role in proving that some linear codes produced from a bimodule over RR 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 w2w_{2} induced by the Gray map G2G_{2} with γ=(p1)pk2\gamma=(p-1)p^{k-2}, see Corollary 2 below. In the following definition we formalize such a weight.

Definition 6

A weight ww on the finite ring RR is called quasi-homogeneous if w(0)=0w(0)=0 and there exists a real number γ\gamma such that

ra+Iw(r)=γ|I|,\sum_{r\in a+I}w(r)=\gamma|I|,

for each nonzero ideal II of RR. The number γ\gamma is called the average value of ww.

Proposition 2

Let kk be a positive integer and γ\gamma be a positive real number. Define a mapping w:pkw:\mathbb{Z}_{p^{k}}\rightarrow\mathbb{R} by

w(u)={γpk2(p1)u,if uk1=0γpp1,if 0<uk1p2γp2p1γpk2(p1)u,if uk1=p1w(u)=\begin{cases}\frac{\gamma}{p^{k-2}(p-1)}u,&\quad\text{if }u_{k-1}=0\\ \frac{\gamma p}{p-1},&\quad\text{if }0<u_{k-1}\leq p-2\\ \frac{\gamma p^{2}}{p-1}-\frac{\gamma}{p^{k-2}(p-1)}u,&\quad\text{if }u_{k-1}=p-1\end{cases}

for all upku\in\mathbb{Z}_{p^{k}} with the pp-ary expansion u=u0+u1p++uk1pk1u=u_{0}+u_{1}p+\cdots+u_{k-1}p^{k-1}. Then ww is a quasi-homogeneous weight on pk\mathbb{Z}_{p^{k}} with the average value γ\gamma.

Proof

Fix 0sk10\leq s\leq k-1. We show that for any apka\in\mathbb{Z}_{p^{k}},

ua+psw(u)=γpks,\sum_{u\in a+\langle p^{s}\rangle}w(u)=\gamma p^{k-s},

which completes the proof. Note that it is enough to assume 0aps10\leq a\leq p^{s}-1. Note also that for any ua+psu\in a+\langle p^{s}\rangle, there exists a unique npkn\in\mathbb{Z}_{p^{k}} such that 0npks10\leq n\leq p^{k-s}-1 and u=a+npsu=a+np^{s}. Write a=a0+a1p++as1ps1a=a_{0}+a_{1}p+\cdots+a_{s-1}p^{s-1} and n=n0+n1p++nks1pks1n=n_{0}+n_{1}p+\cdots+n_{k-s-1}p^{k-s-1}, where 0ai,njp10\leq a_{i},n_{j}\leq p-1 for each i=0,,s1i=0,\ldots,s-1 and j=0,,ks1j=0,\ldots,k-s-1. Hence, a typical element uu of a+psa+\langle p^{s}\rangle can be written uniquely as

u=a0+a1p++as1ps1+n0ps+n1ps+1++nks2pk2+nks1pk1,u=a_{0}+a_{1}p+\cdots+a_{s-1}p^{s-1}+n_{0}p^{s}+n_{1}p^{s+1}+\cdots+n_{k-s-2}p^{k-2}+n_{k-s-1}p^{k-1},

where the aia_{i}’s and njn_{j}’s all lie in {0,p1}\{0,\ldots p-1\}. We separate the sum of w(u)w(u)’s, where uu ranges over a+psa+\langle p^{s}\rangle, into three sums as follows:

(I) The sum of the w(u)w(u)’s for ua+psu\in a+\langle p^{s}\rangle with nks1=0n_{k-s-1}=0, i.e.,

γpk2(p1)[pks1a+pspks1(pks11)2];\frac{\gamma}{p^{k-2}(p-1)}\left[p^{k-s-1}a+p^{s}\frac{p^{k-s-1}(p^{k-s-1}-1)}{2}\right];

(II) the sum of the w(u)w(u)’s for ua+psu\in a+\langle p^{s}\rangle with 0nks1p20\leq n_{k-s-1}\leq p-2, i.e.,

γp(p2)pks1p1;\frac{\gamma p(p-2)p^{k-s-1}}{p-1};

(III) the sum of the w(u)w(u)’s for ua+psu\in a+\langle p^{s}\rangle with nks1=p1n_{k-s-1}=p-1, i.e.,

γp2pks1p1γpk2(p1)[pks1a+pspks1(pks11)2+pks1(p1)pk1].\frac{\gamma p^{2}p^{k-s-1}}{p-1}-\frac{\gamma}{p^{k-2}(p-1)}\left[p^{k-s-1}a+\frac{p^{s}p^{k-s-1}(p^{k-s-1}-1)}{2}+p^{k-s-1}(p-1)p^{k-1}\right].

It is now easy to see that the numbers in (I)–(III) sum up to γpks\gamma p^{k-s}.

Corollary 2

The weight w2w_{2} on pk\mathbb{Z}_{p^{k}}, where p>2p>2 is a prime number and k+k\in\mathbb{Z}^{+}, is a quasi-homogeneous weight with the average value γ=pk2(p1)\gamma=p^{k-2}(p-1).

Proof

Notice that w2w_{2} coincides with the weight defined in Proposition 2 with γ=pk2(p1)\gamma=p^{k-2}(p-1).

Remark 3

In view of the proof of Proposition 1, we see that both weights w1w_{1} and w2w_{2} share the same average value γ=(p1)pk2\gamma=(p-1)p^{k-2}. In fact, w1w_{1} is the only homogeneous weight on pk\mathbb{Z}_{p^{k}} with the average value γ=(p1)pk2\gamma=(p-1)p^{k-2}, 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 p>2p>2 be a prime number, kk be a positive integer, and i{1,2,,k1}i\in\{1,2,\ldots,k-1\}. Given any jpkj\in\mathbb{Z}_{p^{k}}, the total number of 0’s in the elements of the set {G2(u):uj+pi}\{G_{2}(u):u\in j+\langle p^{i}\rangle\} is independent of jj and equals p2ki2p^{2k-i-2}.

Proof

By Corollary 2, the total number of 0’s in the elements of the set {G2(u):uj+pi}\{G_{2}(u):u\in j+\langle p^{i}\rangle\} is

pk1pkiuj+piw2(u)\displaystyle p^{k-1}p^{k-i}-\sum_{u\in j+\langle p^{i}\rangle}w_{2}(u) =p2ki1pk2(p1)pki\displaystyle=p^{2k-i-1}-p^{k-2}(p-1)p^{k-i}
=p2ki2\displaystyle=p^{2k-i-2}
Example 10

Choose p=5p=5, k=2k=2, i=1i=1 and j=3j=3. The total number of 0’s in G2(5)=(11111),G2(10)=(22222),G2(15)=(33333),G2(20)=(44444),G2(25)=(00000)G_{2}(5)=(11111),G_{2}(10)=(22222),G_{2}(15)=(33333),G_{2}(20)=(44444),G_{2}(25)=(00000) is p2ki2=5p^{2k-i-2}=5. On the other hand, the total number of 0’s in G2(8)=(22211),G2(13)=(33322),G2(18)=(44433),G2(23)=(00044),G2(3)=(11100)G_{2}(8)=(22211),G_{2}(13)=(33322),G_{2}(18)=(44433),G_{2}(23)=(00044),G_{2}(3)=(11100) is p2ki2=5p^{2k-i-2}=5. Hence, the total number of 0’s in both sets is the same.

Proposition 3

Let p>2p>2 be a prime number, k+k\in{\mathbb{Z}}^{+} such that k2k\geq 2 and ζ\zeta be a primitive pkp^{k}-th root of unity, H=[ζaij]H=[\zeta^{a_{ij}}] be an n×nn\times n normalized Butson-Hadamard matrix, H=[aij]H^{\prime}=[a_{ij}] and ww^{\prime} be a quasi-homogeneous weight with the average value γ\gamma. Then the minimum distance of the code consisting the rows of HH^{\prime} with the first column deleted is equal to γn\gamma n.

Proof

Since HH is a Butson-Hadamard matrix we know that there exists m+m\in{\mathbb{Z}}^{+} such that n=mpn=mp. We will the proof by induction on mm.

For m=1m=1 we have a BH(p,p)BH(p,p) matrix.Let Ri,RjR_{i},R_{j} be the ii-th and jj-th rows of HH^{\prime}, respectively. Hence the elements of RiRjR_{i}-R_{j} consists of the elements of pk1pkp^{k-1}{\mathbb{Z}}_{p^{k}} or the cosets of this ideal. More clearly RiRj={pk1,2pk1,,pk}R_{i}-R_{j}=\{p^{k-1},2p^{k-1},\ldots,p^{k}\} or {pk1+i,2pk1+i,,pk+i}\{p^{k-1}+i,2p^{k-1}+i,\ldots,p^{k}+i\} for all 1ipk111\leq i\leq p^{k-1}-1. So for I=pk1pkI=p^{k-1}{\mathbb{Z}}_{p^{k}} we can say that rI+yw(r)=γp=γn\displaystyle\sum_{r\in I+y}w^{\prime}(r)=\gamma p=\gamma n. Now let m>1m>1 be given and suppose that the theorem is true for all m=lm=l with l+l\in{\mathbb{Z}}^{+}. Let us show the theorem is true for m=l+1m=l+1. Suppose that m=l+1m=l+1. We know that d=γnd=\gamma n for n=ln=l. If we take n=l+1n=l+1 this differs from the case n=ln=l only pp elements.The pp elements again only come from the pk1pkp^{k-1}{\mathbb{Z}}_{p^{k}} ideal or the cosets of this ideal. Therefore d=γlp+γp=γp(l+1)=γnd=\gamma lp+\gamma p=\gamma p(l+1)=\gamma n. This ends the proof.

Theorem 4.3

Let p>2p>2 be a prime number, k+k\in{\mathbb{Z}}^{+} such that k2k\geq 2 and ζ\zeta be a primitive pkp^{k}-th root of unity, H=[ζaij]H=[\zeta^{a_{ij}}] be an n×nn\times n normalized Butson-Hadamard matrix and NN be the set of all pkp^{k}-th roots of unity. Also let H=[aij]H^{\prime}=[a_{ij}] and define Ak,Bk,Ck,DkA_{k},B_{k},C_{k},D_{k} codes as in Theorem 4.1. Then,

dG2(Ak)=n(p1)pk2d_{G_{2}(A_{k})}=n(p-1)p^{k-2}, dG2(Bk)=n1d_{G_{2}(B_{k})}=n-1, dG2(Ck)=nd_{G_{2}(C_{k})}=n, dG2(Dk){n,n+1}d_{G_{2}(D_{k})}\in\{n,n+1\}.

Proof

We can say that dG2(Ak)=γnd_{G_{2}(A_{k})}=\gamma n by Proposition 3 and Corollary 2 we get dG2(Ak)=n(p1)pk2d_{G_{2}(A_{k})}=n(p-1)p^{k-2}.

Now consider G2(Bk)G_{2}(B_{k}). Let Ri=[ai2ain]R_{i}=[a_{i2}\ldots a_{in}] and Ri=[ai2ain]R^{\prime}_{i}=[a^{\prime}_{i2}\ldots a^{\prime}_{in}] be the ii-th row of the exponent matrix of HH and ζH\zeta H with deleted first column, respectively. Then |aijaij|=1|a_{ij}-a^{\prime}_{ij}|=1, so we get d(G2(aij),G2(aij))=1d(G_{2}(a_{ij}),G_{2}(a^{\prime}_{ij}))=1 for j=2,3,,nj=2,3,\ldots,n by Lemma 2. Therefore the distance between G2(Ri)G_{2}(R_{i}) and G2(Ri)G_{2}(R^{\prime}_{i}) is equal to n1.n-1. Now suppose that RjR^{\prime}_{j} be the jj-th row of the exponent matrix of uHuH for an arbitrary uNu\in N. By Corollary 3 and Lemma 3, we can say

d(G2(Ri),G2(Rj))=(n1)pk1npk2=pk2(n(p1)1)d(G_{2}(R_{i}),G_{2}(R^{\prime}_{j}))=(n-1)p^{k-1}-np^{k-2}=p^{k-2}(n(p-1)-1)

for iji\neq j. Since n1<pk2(n(p1)1)n-1<p^{k-2}(n(p-1)-1), the minimum distance of G2(Bk)G_{2}(B_{k}) is dG2(Bk)=n1d_{G_{2}(B_{k})}=n-1.

We next consider G2(Ck)G_{2}(C_{k}). Its codewords are constructed from the rows of the exponent matrix of uHuH for uNu\in N. Similar to (ii), by considering ii-th rows RiR_{i} and RiR^{\prime}_{i} of HH and ζH\zeta H respectively, we have d(G2(Ri),G2(Ri))=nd(G_{2}(R_{i}),G_{2}(R^{\prime}_{i}))=n. And so, dG2(Ck)=nd_{G_{2}(C_{k})}=n.

Finally the code G2(Dk)G_{2}({D_{k}}) is the Gray image of the rows of uHuH concatenated with a non-initial column cc of HH. So, by using (iii), we can say that dG2(Dk)d_{G_{2}({D_{k}})} is either nn or n+1n+1.

Now we can directly obtain a Plotkin optimal code form G2G_{2} image of AkA_{k} in the following corollary.

Corollary 4

The code G2(Ak)G_{2}(A_{k}) is a Plotkin-optimal pp-ary nonlinear ((n1)pk1,n,n(p1)pk2)((n-1)p^{k-1},n,n(p-1)p^{k-2}) code under the non-homogeneous w2w_{2} weight. Similarly G2(Bk),G2(Ck)G_{2}(B_{k}),G_{2}(C_{k}) and G2(Dk)G_{2}(D_{k}) are Plotkin-optimal pp-ary nonlinear ((n1)pk1,npk,n1),(npk1,npk,n),((n+1)pk1,npk,dG2(Dk))((n-1)p^{k-1},np^{k},n-1),(np^{k-1},np^{k},n),((n+1)p^{k-1},np^{k},d_{G_{2}(D_{k})}) codes under the non-homogeneous w2w_{2} weight where dG2(Dk)d_{G_{2}(D_{k})} is in {n,n+1}\{n,n+1\}.

Remark 4

Theorem 4.3 is not a special case of Proposition 1. Because the weight we use in Theorem 4.3 is non-homogeneous. We know that the sum of elements of a row in any normalized Butson-Hadamard matrix is equal to 0. Therefore, the code G2(Ak)G_{2}(A_{k}) is constant weight and equidistant code.

Example 11

Let H=[ζaij]H=[\zeta^{a_{ij}}] be a BH(9,9){\rm BH}(9,9) matrix defined as in Example 9. Then

H=[G2(aij)]=(000000000000000000000000000000100110111211221222022002000110211222002100111221022000111222000111222000111222000211002111022110222100221000221100222110022111002211000222111000222111000222111000022221111100002222211110000002022222221211111110100).H^{\prime}=[G_{2}(a_{ij})]=\left(\begin{array}[]{ccccccccccccccccccccccccccc}0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0\\ 0&0&0&1&0&0&1&1&0&1&1&1&2&1&1&2&2&1&2&2&2&0&2&2&0&0&2\\ 0&0&0&1&1&0&2&1&1&2&2&2&0&0&2&1&0&0&1&1&1&2&2&1&0&2&2\\ 0&0&0&1&1&1&2&2&2&0&0&0&1&1&1&2&2&2&0&0&0&1&1&1&2&2&2\\ 0&0&0&2&1&1&0&0&2&1&1&1&0&2&2&1&1&0&2&2&2&1&0&0&2&2&1\\ 0&0&0&2&2&1&1&0&0&2&2&2&1&1&0&0&2&2&1&1&1&0&0&2&2&1&1\\ 0&0&0&2&2&2&1&1&1&0&0&0&2&2&2&1&1&1&0&0&0&2&2&2&1&1&1\\ 0&0&0&0&2&2&2&2&1&1&1&1&1&0&0&0&0&2&2&2&2&2&1&1&1&1&0\\ 0&0&0&0&0&2&0&2&2&2&2&2&2&2&1&2&1&1&1&1&1&1&1&0&1&0&0\end{array}\right).

G2(Ak)G_{2}(A_{k}) is consisting of the rows of HH^{\prime} with deleted first 3 columns as codewords. By SageMath [19], we have dAk=18d_{A_{k}}=18 which satisfies dAk=n(p1)pk2d_{A_{k}}=n(p-1)p^{k-2}. Similarly, by using SageMath, we get that dG2(Bk)=8=n1d_{G_{2}(B_{k})}=8=n-1, dG2(Ck)=9=nd_{G_{2}(C_{k})}=9=n and dG2(Dk)=9=nd_{G_{2}(D_{k})}=9=n, where DkD_{k} is obtained by concatenating the 44-th column of HH to CkC_{k}.

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 𝔽p\mathbb{F}_{p}-additive generalised Hadamard codes. arXiv preprint arXiv:2001.11609 (2020)
  • [6] Drake, A.D.: Partial λ\lambda-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 pk\mathbb{Z}_{p^{k}}. TWMS Journal of Applied and Engineering Mathematics 2(2), 145 (2012)