arXiv:2609.09969cs.ITSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.09969

The kernel-block rank profile and a complete classification of Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-linear Hadamard codes

Dipak K. Bhunia

Abstract

The Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-additive codes are subgroups of Z2α1×Z4α2×Z8α3\mathbb{Z}_2^{\alpha_1} \times \mathbb{Z}_4^{\alpha_2} \times \mathbb{Z}_8^{\alpha_3}, and a Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-linear Hadamard code is a Hadamard code which is the Gray map image of such a code. A recursive construction of Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-additive Hadamard codes Ht1,t2,t3\mathcal{H}^{t_1,t_2,t_3} of type (α1,α2,α3;t1,t2,t3)(\alpha_1, \alpha_2, \alpha_3; t_1, t_2, t_3), with α1≠0,α2≠0,α3≠0,t1≥1,t2≥0\alpha_1 \neq 0, \alpha_2 \neq 0, \alpha_3 \neq 0, t_1 \geq 1, t_2 \geq 0, and t3≥1t_3 \geq 1, is known, as are the linearity, the dimension of the kernel, and the rank of the corresponding Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-linear Hadamard codes Ht1,t2,t3H^{t_1,t_2,t_3} of length 2t2^t, where t+1=3t1+2t2+t3t+1=3t_1+2t_2+t_3. Yet these invariants do not completely classify the family. Two infinite families of pairs of codes of distinct types share the length, the rank and the dimension of the kernel, and for the previously classified lengths 2t2^t, with 3≤t≤113 \leq t \leq 11, members of such pairs were separated only by computer equivalence tests.

In this paper, we introduce an equivalence invariant that resolves these cases. The kernel of a binary code containing the zero word partitions the set of binary coordinates into blocks, two coordinates lying in the same block when every kernel word takes the same value in both of them; the kernel-block rank profile is then the multiset of the dimensions of the linear span punctured on those blocks. Unlike the rank and the dimension of the kernel, which are global, this invariant records how much of the span survives on each of the canonical blocks into which the kernel divides the coordinate set. We compute it for the whole family: the kernel partition has 2t1+t2+t3−12^{t_1+t_2+t_3-1} blocks, all of size 22t1+t22^{2t_1+t_2}, and the profile takes at most the two values t2+(t1+22)t_2+\binom{t_1+2}{2} and t2+2+(t1+12)t_2+2+\binom{t_1+1}{2}, whose difference is exactly t1−1t_1-1; it is constant precisely when t1=1t_1=1. Hence, the profile recovers t1t_1, and the length together with the dimension of the kernel then recovers t2t_2 and t3t_3. Two codes of the family with the same length are therefore equivalent if and only if their types coincide, and the number of pairwise nonequivalent such codes of length 2t2^t is ⌊(t2+6)/12⌋\lfloor (t^2+6)/12 \rfloor for every t≥3t \geq 3.

Keywords: Hadamard code, Gray map, Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-linear code, Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-additive code, rank, kernel, kernel-block rank profile, classification.

2020 Mathematics Subject Classification: 94B25, 94B60.

1 Introduction

Let Z2s\mathbb{Z}_{2^s} be the ring of integers modulo 2s2^s with s≥1s \geq 1. The set of nn-tuples over Z2s\mathbb{Z}_{2^s} is denoted by Z2sn\mathbb{Z}_{2^s}^n, and in this paper the elements of Z2sn\mathbb{Z}_{2^s}^n are also called vectors. A code over Z2\mathbb{Z}_2 of length NN is a nonempty subset of Z2N\mathbb{Z}_2^N, and it is linear if it is a subspace of Z2N\mathbb{Z}_2^N. Similarly, a nonempty subset of Z2sn\mathbb{Z}_{2^s}^n is a Z2s\mathbb{Z}_{2^s}-additive code if it is a subgroup of the additive group of Z2sn\mathbb{Z}_{2^s}^n. A Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-additive code is a subgroup of Z2α1×Z4α2×Z8α3\mathbb{Z}_2^{\alpha_1} \times \mathbb{Z}_4^{\alpha_2} \times \mathbb{Z}_8^{\alpha_3}. Note that a Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-additive code is a linear code over Z2\mathbb{Z}_2 when α2=α3=0\alpha_2 = \alpha_3 = 0, a Z4\mathbb{Z}_4-additive or Z8\mathbb{Z}_8-additive code when α1=α3=0\alpha_1 = \alpha_3 = 0 or α1=α2=0\alpha_1 = \alpha_2 = 0,

*This work has been granted by the Juan de la Cierva 2024 grant (JDC2024-053082-I), funded by Ministerio de Ciencia, Innovación y Universidades (MICIU/AEI/10.13039/501100011033) and co-funded by the European Social Fund Plus (FSE+).

respectively, and a Z2Z4\mathbb{Z}_2\mathbb{Z}_4-additive code when α3=0\alpha_3 = 0. The order of a vector u∈Z2n\mathbf{u} \in \mathbb{Z}_2^n, denoted by o(u)\mathrm{o}(\mathbf{u}), is the smallest positive integer mm such that mu=(0,…,0)m\mathbf{u} = (0, \ldots, 0). Also, the order of a vector u∈Z2α2×Z4α2×Z8α3\mathbf{u} \in \mathbb{Z}_2^{\alpha_2} \times \mathbb{Z}_4^{\alpha_2} \times \mathbb{Z}_8^{\alpha_3}, denoted by o(u)\mathrm{o}(\mathbf{u}), is the smallest positive integer mm such that mu=(0,…,0∣0,…,0∣0,…,0)m\mathbf{u} = (0, \ldots, 0 \mid 0, \ldots, 0 \mid 0, \ldots, 0). Throughout the paper, vectors are written in boldface, and 0\mathbf{0} and 1\mathbf{1} denote the all-zero and the all-one vector, the length being always clear from the context.

Two binary codes C1C_1 and C2C_2 of length NN are said to be equivalent if there are a vector u∈Z2N\mathbf{u} \in \mathbb{Z}_2^N and a permutation of coordinates π\pi such that C2={u+π(x):x∈C1}C_2 = \{\mathbf{u} + \pi(\mathbf{x}) : \mathbf{x} \in C_1\}. The Hamming weight of a vector u∈Z2N\mathbf{u} \in \mathbb{Z}_2^N, denoted by wtH(u)\mathrm{wt}_H(\mathbf{u}), is the number of its nonzero coordinates, and the Hamming distance dH(u,v)d_H(\mathbf{u}, \mathbf{v}) of two vectors is the number of coordinates in which they differ; hence, dH(u,v)=wtH(u−v)d_H(\mathbf{u}, \mathbf{v}) = \mathrm{wt}_H(\mathbf{u} - \mathbf{v}). The minimum distance of a code CC over Z2\mathbb{Z}_2 is d(C)=min⁡{dH(u,v):u,v∈C,u≠v}d(C) = \min\{d_H(\mathbf{u}, \mathbf{v}) : \mathbf{u}, \mathbf{v} \in C, \mathbf{u} \neq \mathbf{v}\}.

In [1], a Gray map from Z4\mathbb{Z}_4 to Z22\mathbb{Z}_2^2 is defined as ϕ(0)=(0,0)\phi(0) = (0,0), ϕ(1)=(0,1)\phi(1) = (0,1), ϕ(2)=(1,1)\phi(2) = (1,1) and ϕ(3)=(1,0)\phi(3) = (1,0). There exist different generalizations of this Gray map, which go from Z2s\mathbb{Z}_{2^s} to Z22s−1\mathbb{Z}_2^{2^{s-1}} [2, 3, 4, 5, 6]. In this paper, we focus on Carlet's Gray map [2], from Z2s\mathbb{Z}_{2^s} to Z22s−1\mathbb{Z}_2^{2^{s-1}}, which is a particular case of the one given in [6, 7] satisfying ∑λiϕs(2i)=ϕs(∑λi2i)\sum \lambda_i \phi_s(2^i) = \phi_s(\sum \lambda_i 2^i) [8]. Specifically,

ϕs(u)=(us−1,us−1,…,us−1)+(u0,…,us−2)Ys−1,(1)\phi_{s}(u)=(u_{s-1},u_{s-1},\ldots,u_{s-1})+(u_{0},\ldots,u_{s-2})Y_{s-1}, \tag{1}

where u∈Z2su \in \mathbb{Z}_{2^s}; [u0,u1,…,us−1]2[u_0, u_1, \ldots, u_{s-1}]_2 is the binary expansion of uu, that is, u=∑i=0s−1ui2iu = \sum_{i=0}^{s-1} u_i 2^i with ui∈{0,1}u_i \in \{0,1\}; and Ys−1Y_{s-1} is a matrix of size (s−1)×2s−1(s-1) \times 2^{s-1} whose columns are all the vectors of Z2s−1\mathbb{Z}_2^{s-1}, ordered in ascending order by reading them as binary expansions of the elements of Z2s−1\mathbb{Z}_{2^{s-1}}. Note that ϕ1\phi_1 is the identity map and that ϕ2\phi_2 is the Gray map ϕ\phi given above. We define Φs:Z2sn→Z2n2s−1\Phi_s : \mathbb{Z}_{2^s}^n \to \mathbb{Z}_2^{n2^{s-1}} as the component-wise extended map of ϕs\phi_s, and a Gray map Φ\Phi from Z2α1×Z4α2×Z8α3\mathbb{Z}_2^{\alpha_1} \times \mathbb{Z}_4^{\alpha_2} \times \mathbb{Z}_8^{\alpha_3} to Z2N\mathbb{Z}_2^N, where N=α1+2α2+4α3N = \alpha_1 + 2\alpha_2 + 4\alpha_3, by

Φ(u1∣u2∣u3)=(u1,Φ2(u2),Φ3(u3)),\Phi(\mathbf{u}_{1}\mid\mathbf{u}_{2}\mid\mathbf{u}_{3})=(\mathbf{u}_{1},\Phi_{2}(\mathbf{u}_{2}),\Phi_{3}(\mathbf{u}_{3})),

for any ui∈Z21αi\mathbf{u}_i \in \mathbb{Z}_{2^1}^{\alpha_i}, where 1≤i≤31 \leq i \leq 3.

Let C⊆Z2n\mathcal{C} \subseteq \mathbb{Z}_2^n be a Z2s\mathbb{Z}_{2^s}-additive code of length nn. We say that the Gray map image of C\mathcal{C}, say C=Φs(C)C = \Phi_s(\mathcal{C}), is a Z2s\mathbb{Z}_{2^s}-linear code of length n2s−1n2^{s-1}. Since C\mathcal{C} is a subgroup of Z2n\mathbb{Z}_2^n, it is isomorphic to Z2t1×Z2t2×⋯×Z2ts\mathbb{Z}_2^{t_1} \times \mathbb{Z}_2^{t_2} \times \cdots \times \mathbb{Z}_2^{t_s}, and we say that C\mathcal{C}, or equivalently C=Φs(C)C = \Phi_s(\mathcal{C}), is of type (n;t1,…,ts)(n;t_1,\ldots,t_s). Similarly, if C⊆Z2α1×Z4α2×Z8α3\mathcal{C} \subseteq \mathbb{Z}_2^{\alpha_1} \times \mathbb{Z}_4^{\alpha_2} \times \mathbb{Z}_8^{\alpha_3} is a Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-additive code, we say that its Gray map image C=Φ(C)C = \Phi(\mathcal{C}) is a Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-linear code of length α1+2α2+4α3\alpha_1 + 2\alpha_2 + 4\alpha_3. Since C\mathcal{C} can be seen as a subgroup of Z8α1+α2+α3\mathbb{Z}_8^{\alpha_1 + \alpha_2 + \alpha_3}, it is isomorphic to Z4t1×Z2t2×Z2t3\mathbb{Z}_4^{t_1} \times \mathbb{Z}_2^{t_2} \times \mathbb{Z}_2^{t_3}, and we say that C\mathcal{C}, or equivalently C=Φ(C)C = \Phi(\mathcal{C}), is of type (α1,α2,α3;t1,t2,t3)(\alpha_1,\alpha_2,\alpha_3;t_1,t_2,t_3). Note that a Z2Z4\mathbb{Z}_2\mathbb{Z}_4-linear code C\mathcal{C} [9, 10] can be seen as a Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-linear code of type (α1,α2,0;0,t2,t3)(\alpha_1,\alpha_2,0;0,t_2,t_3). In this case, we also say that the type of C\mathcal{C} is directly (α1,α2;t2,t3)(\alpha_1,\alpha_2;t_2,t_3). Unlike linear codes over finite fields, linear codes over rings do not have a basis, but there exists a generator matrix for these codes having minimum number of rows. If C\mathcal{C} is a Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-additive code of type (α1,α2,α3;t1,t2,t3)(\alpha_1,\alpha_2,\alpha_3;t_1,t_2,t_3), then ∣C∣=8t14t22t3|\mathcal{C}| = 8^{t_1}4^{t_2}2^{t_3} and there exists a generator matrix with t1+t2+t3t_1 + t_2 + t_3 rows.

A binary code of length NN, 2N2N codewords and minimum distance N/2N/2 is called a Hadamard code. Hadamard codes can be constructed from Hadamard matrices [11, 12]. Note that linear Hadamard codes are in fact first order Reed–Muller codes, or equivalently, the dual of extended Hamming codes [12]. It is also important to note that Hadamard codes are two weight codes, which have been widely studied in [13, 14]. Most Hadamard codes are, however, nonlinear, and their classification is still an open problem. One fruitful way of attacking it is to realise some of them as Gray map images of additive codes over rings or over mixed alphabets and then to decide which of the resulting codes are equivalent, each such result giving a partial classification of nonlinear Hadamard codes. The Z4\mathbb{Z}_4 representation of the Kerdock, Preparata and Goethals codes [1] was the starting point of this point of view, and codes over Zps\mathbb{Z}_{p^s} go back to Blake [15] and Shankar [16].

From a more practical point of view, since Hadamard codes are optimal and have a high correction capability, they appear in different aspects related to the transmission of information, such as in digital communication with satellites [17], in CDMA phones to modulate the transmission of information and minimize interference with other transmissions [18] and, in general, in different OCDMA multiple access systems to allow access to multiple users asynchronously and simultaneously [19]. Other applications are found in cryptography [20] or in information hiding (steganography and watermarking) [21]. See [17] for more applications in other fields.

Two structural properties of codes over Z2\mathbb{Z}_2 are the rank and the dimension of the kernel. The rank of a code CC over Z2\mathbb{Z}_2 is simply the dimension of the linear span, ⟨C⟩\langle C \rangle, of CC. The kernel of a code CC over Z2\mathbb{Z}_2 is defined as K(C)={x∈Z2N:x+C=C}\mathrm{K}(C) = \{\mathbf{x} \in \mathbb{Z}_2^N : \mathbf{x} + C = C\} [22]. If the all-zero vector belongs to CC, then K(C)\mathrm{K}(C) is a linear subcode of CC. Note also that if CC is linear, then K(C)=C=⟨C⟩\mathrm{K}(C) = C = \langle C \rangle. We denote the rank of CC as rank(C)\mathrm{rank}(C) and the dimension of the kernel as ker(C)\mathrm{ker}(C). Both are equivalence invariants, so two codes with different pairs (r,k)=(rank(C),ker(C))(r, k) = (\mathrm{rank}(C), \mathrm{ker}(C)) are nonequivalent. The converse is false in general, and it is precisely the failure of the converse that makes classification results difficult. The purpose of the present paper is to repair that failure, for one concrete family of Hadamard codes, by means of a new invariant.

The Z2s\mathbb{Z}_{2^s}-additive codes such that after the Gray map Φs\Phi_s give Hadamard codes are called Z2s\mathbb{Z}_{2^s}-additive Hadamard codes and the corresponding images are called Z2s\mathbb{Z}_{2^s}-linear Hadamard codes. Similarly, the Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-additive codes such that after the Gray map Φ\Phi give Hadamard codes are called Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-additive Hadamard codes and the corresponding images are called Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-linear Hadamard codes. It is known that Z4\mathbb{Z}_4-linear Hadamard codes, that is, Z2Z4\mathbb{Z}_2\mathbb{Z}_4-linear Hadamard codes with α1=0\alpha_1 = 0, and Z2Z4\mathbb{Z}_2\mathbb{Z}_4-linear Hadamard codes with α1≠0\alpha_1 \neq 0 can be classified by using either the rank or the dimension of the kernel [23, 24]. Moreover, in [25], it is shown that each Z4\mathbb{Z}_4-linear Hadamard code is equivalent to a Z2Z4\mathbb{Z}_2\mathbb{Z}_4-linear Hadamard code with α1≠0\alpha_1 \neq 0. Later, in [8, 26, 27, 28], a recursive construction for Zps\mathbb{Z}_{p^s}-linear Hadamard codes, with pp prime, is described, the linearity is established, and a partial classification by using the dimension of the kernel is obtained, giving the exact amount of nonequivalent such codes for some parameters. In [29], a complete classification of Z8\mathbb{Z}_8-linear Hadamard codes by using the rank and dimension of the kernel is provided, giving the exact amount of nonequivalent such codes. For s≥4s \geq 4, however, no formula for the rank is known, and therefore that invariant is not even available there. Finally, a recursive construction of Z2Z4Z8\mathbb{Z}_2\mathbb{Z}_4\mathbb{Z}_8-additive Hadamard codes Ht1,t2,t3\mathcal{H}^{t_1,t_2,t_3}, with all the αi\alpha_i nonzero, was given in [30], their linearity and kernel were determined in [31] and their rank in [32]. We write Ht1,t2,t3=Φ(Ht1,t2,t3)H^{t_1,t_2,t_3} = \Phi(\mathcal{H}^{t_1,t_2,t_3}) for the corresponding binary codes. For any t≥2t \geq 2, the full classification of ZpZp2\mathbb{Z}_p\mathbb{Z}_{p^2}-linear generalized Hadamard codes of length ptp^t, with α1≠0\alpha_1 \neq 0, α2≠0\alpha_2 \neq 0, and p≥3p \geq 3 prime, is given in [33, 34], by using just the dimension of the kernel.

That last family is the subject of the present paper. The pair (r,k)(r, k) does not classify it: two infinite families of pairs of distinct types share the length, the rank and the dimension of the kernel, namely

(H1,2,t−6,H2,0,t−5), t≥7,and(H2,2,t−9,H3,0,t−8), t≥10.\left(H^{1,2,t-6},H^{2,0,t-5}\right),\ t\geq 7,\qquad\mathrm{a n d}\qquad\left(H^{2,2,t-9},H^{3,0,t-8}\right),\ t\geq 10.

Until now, each individual pair had to be separated by a computer equivalence test, and this had been carried out only for the lengths 2t2^t with 3≤t≤113 \leq t \leq 11 [31]. Proving the nonequivalences for every length was stated as further research in [31, §6].

The rank and the dimension of the kernel are global invariants, and neither of them records where in the coordinate set the corresponding vectors live. The kernel, by contrast, carries positional information intrinsically. Two binary coordinates are declared equivalent when every kernel word takes the same value in both of them, and the resulting partition of the coordinate set into kernel blocks is canonically attached to the code. On each block, we puncture the linear span and record the dimension that survives, and the multiset

R(C)={{dim⁡⟨C⟩∣B: B a kernel block of C}}\mathcal{R}(C)=\{\{\dim\langle C\rangle|_{B}:~B~\mathrm{a~k e r n e l~b l o c k~o f}~C\}\}

is then an equivalence invariant, which we call the kernel-block rank profile.

Our main result is the explicit computation of R(Ht1,t2,t3)\mathcal{R}(H^{t_1,t_2,t_3}), in Theorem 3.13. The kernel partition has 2t1+t2+t3−12^{t_1+t_2+t_3-1} blocks, all of the same size 22t1+t22^{2t_1+t_2}, and the profile takes at most the two values

ρ0=t2+(t1+22)andρ1=t2+2+(t1+12),\rho_{0}=t_{2}+\binom{t_{1}+2}{2}\qquad\text{and}\qquad\rho_{1}=t_{2}+2+\binom{t_{1}+1}{2},

whose difference is exactly t1−1t_1-1. The profile therefore determines t1t_1, and the length together with the dimension of the kernel then determines t2t_2 and t3t_3. This gives the complete classification inside the family, Theorem 4.2: two codes of the family with the same length are equivalent if and only if their types coincide. Counting the admissible types, the number of pairwise nonequivalent such codes of length 2t2^t is ⌊(t2+6)/12⌋\lfloor(t^2+6)/12\rfloor for every t≥3t\geq 3, and both families of collisions are separated uniformly, at every length and without any computer computation.

The classification obtained here is internal: it compares the codes Ht1,t2,t3H^{t_1,t_2,t_3} with one another. Whether such a code can be equivalent to a Z4\mathbb{Z}_4-linear, a Z2Z4\mathbb{Z}_2\mathbb{Z}_4-linear or a Z2s\mathbb{Z}_{2^s}-linear Hadamard code of the same length is not addressed here; it requires the profiles of those families, and will be taken up separately.

The paper is organised as follows. Section 2 fixes the vocabulary of generator rows, additive coordinates and binary coordinates, and recalls what we use from [30, 31, 32]. Section 3 introduces the kernel-block rank profile, proves its invariance under code equivalence, and computes it for the whole family. Section 4 draws the classification inside the family and counts the equivalence classes, and Section 5 summarises the results and indicates further research.