Completely regular codes by concatenating Hamming codes
J. Borges, J. Rif\`a, V. Zinoviev

TL;DR
This paper introduces new families of completely regular codes created through concatenation of cyclic Hamming codes, analyzing their intersection arrays and conditions for complete regularity and transitivity.
Contribution
It presents novel constructions of completely regular codes using concatenation of Hamming codes and studies their properties and extensions.
Findings
Constructed new families of completely regular codes
Computed intersection arrays for these codes
Identified conditions for code extensions to remain completely regular
Abstract
We construct new families of completely regular codes by concatenation methods. By combining parity check matrices of cyclic Hamming codes, we obtain families of completely regular codes. In all cases, we compute the intersection array of these codes. We also study when the extension of these codes gives completely regular codes. Some of these new codes are completely transitive.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCoding theory and cryptography · graph theory and CDMA systems · Cooperative Communication and Network Coding
Completely regular codes by concatenating Hamming codes
J. Borges, J. Rifà111email: [email protected], [email protected]
Department of Information and Communications Engineering,
Universitat Autònoma de Barcelona,
V. A. Zinoviev222e-mail: [email protected]
A.A. Kharkevich Institute for Problems of Information Transmission,
Russian Academy of Sciences
Abstract
We construct new families of completely regular codes by concatenation methods. By combining parity check matrices of cyclic Hamming codes, we obtain families of completely regular codes. In all cases, we compute the intersection array of these codes. We also study when the extension of these codes gives completely regular codes. Some of these new codes are completely transitive.
1 Introduction
Let be a finite field of the order . A -ary linear -code is a -dimensional subspace of , where is the length, is the minimum distance, is the cardinality of , and is the covering radius. For , we omit the subscript . The packing radius of is . Given any vector , its distance to the code is and the covering radius of the code is . Note that . We denote by a coset of , where means the component-wise addition in .
For a given -ary code of length and covering radius , define
[TABLE]
The sets are called the subconstituents of .
Say that two vectors and are neighbors if . Denote by the all-zero vector.
Definition 1.1** ([15]).**
A -ary code of length and covering radius is completely regular, if for all every vector has the same number of neighbors in and the same number of neighbors in . Define and set . The parameters , and () are called intersection numbers and the sequence is called the intersection array (shortly ) of .
Let be a monomial matrix, i.e. a matrix with exactly one nonzero entry in each row and column. If is prime, then the automorphism group of , , consists of all monomial ()-matrices over such that for all . If is a power of a prime number, then also contains any field automorphism of which preserves . The group acts on the set of cosets of in the following way: for all and for every vector we have .
Definition 1.2** ([9, 17]).**
Let be a linear code over with covering radius . Then is completely transitive if has orbits when acts on the cosets of .
Since two cosets in the same orbit have the same weight distribution, it is clear that any completely transitive code is completely regular.
Completely regular and completely transitive codes are classical subjects in algebraic coding theory, which are closely connected with graph theory, combinatorial designs and algebraic combinatorics. Existence, construction and enumeration of all such codes are open hard problems (see [6, 18, 12, 15] and references there).
It is well known that new completely regular codes can be obtained by direct sum of perfect codes or, more general, by direct sum of completely regular codes with covering radius [2, 17]. In the current paper, we extend these constructions, giving several explicit constructions of new completely regular and completely transitive codes, based on concatenation methods.
2 Preliminary results
In this section we see several results we will need in the next sections.
Lemma 2.1** ([15]).**
Let be a completely regular code with covering radius and intersection array . If and , , are two subconstituents of , then
[TABLE]
Definition 2.2** ([10]).**
A quasi-perfect -error-correcting -ary code is called uniformly packed if there exist natural numbers and such that for any vector :
[TABLE]
Van Tilborg [19] (see also [13, 16]) showed that no nontrivial codes of this kind exist for .
Proposition 1** ([10], see also [16]).**
A uniformly packed code is completely regular.
Definition 2.3**.**
A --design is an incidence structure , where is a -set of elements (called points) and is a collection of -subsets of points (called blocks) such that every -subset of points is contained in exactly blocks ().
In terms of incident matrix a --design is a binary code of length with codewords of weight such that any binary vector of length and weight is covered by exactly codewords. A -design with is called a Steiner system and also denoted by . The following properties are well known (e.g., [3, 4, 11]).
Proposition 2**.**
Given a --design, every -subset of points () is contained in exactly blocks, where
[TABLE]
Corollary 1**.**
Given a --design :
- (i)
* is an -design, for all .*
- (ii)
.
- (iii)
The number of blocks of is .
- (iv)
Each point is contained in the same number of blocks, namely (* is called the replication number).*
There is a natural -ary generalization of such -designs (see [1, 8, 10, 20]). Let . A collection of vectors of length and weight over is called a -ary -design and denoted -, if for every vector over of length and weight there are exactly vectors from such that for all . If , then we obtain a -ary Steiner system, denoted .
For a code denote by the set of all codewords of of weight . Regularity of a code implies that the sets determine -designs.
Directly from the definition of completely regular codes (see also [10, 16]) we have the following
Theorem 2.4**.**
Let be a -ary completely regular code of length with minimum distance .
- (i)
If then any nonempty set is an --design.
- (ii)
If then any nonempty set is an --design.
For a code , we denote by the number of nonzero terms in the dual distance distribution of , obtained by the MacWilliams transform. The parameter was called external distance by Delsarte [8], and is equal to the number of nonzero weights of if is linear. The following properties show the importance of this parameter.
Theorem 2.5**.**
If is any code with covering radius and external distance , then
- (i)
[8]** .
- (ii)
[8]** A code is perfect () if and only if .
- (iii)
[10]** A code is quasi-perfect uniformly packed if and only if .
- (iv)
[17]** If is completely regular, then .
- (v)
[8]** If , then is completely regular.
- (vi)
[6]** If has only even weights and , then is completely regular.
Given a code , we define the extended code by adding an extra coordinate to each codeword of such that the sum of the coordinates of the extended vector is zero.
Proposition 3**.**
If a binary extended code , of length , is a completely regular code with minimum distance , then for all odd
[TABLE]
Proof.
Let be odd and assume that is not empty. By Theorem 2.4, the set of codewords of weight form a --design which, in particular, is a --design, by Corollary 1. The number of codewords in with nonzero value at position is , the replication number, and clearly . Therefore,
[TABLE]
Combining (1) with , the result follows. ∎
For any vector , denote by the right cyclic shift of , i.e. . Define recursively , for and . For , we define , where .
Finally, we will also make use of the following technical lemma.
Lemma 2.6**.**
Let be a vector of weight . If , then , for all .
Proof.
Assume that for some . Then, divides and has the form:
[TABLE]
where is a vector of length . Thus, is a multiple of . As a consequence, is a common divisor of and . For the case, , note that should be either the all-one or the all-zero vector. ∎
3 Infinite families of CR codes
The next construction is new, although the dual codes of the resulting family of -ary completely regular codes are known as the family SU2 in [7]. In the current paper, we also study when these codes are completely transitive and when the extended codes are completely regular.
Construction I
Let be the parity check matrix of a -ary cyclic Hamming code of length , (hence ). Thus, the simplex code generated by is also a cyclic code. Denote by the rows of . For any , consider the code with parity check matrix
[TABLE]
where is the matrix after cyclically shifting times its columns to the right. In other words, the rows of are . Note that, for , we have
[TABLE]
which generates the simplex code as . Therefore, in this case, is a Hamming code.
Proposition 4**.**
The code has nonzero weights
[TABLE]
Proof.
Let be a nonzero codeword such that each is an vector of length generated by
[TABLE]
Since and generate the same simplex code, has weight [math] or . Assume that is the zero vector. Then, is generated by a linear combination of the rows of (giving some vector ), together with a linear combination of the rows of (giving the vector ). The same linear combination of the rows of gives the vector . Since the weight of is and , we have, by Lemma 2.6, and hence is not the zero vector.
The conclusion is that has weight or . ∎
Remark 1**.**
In the proof of Proposition 4, the number of ways to get equal to the zero vector (being a nonzero codeword) is equal to the number of nonzero vectors generated by . Therefore, has codewords of weight and codewords of weight . By using this weight distribution of and the MacWilliams transform [14], it is possible to compute , the number of codewords in of weight . Here we use a combinatorial argument to compute .
Let be the -sets, which we call blocks, of coordinate positions corresponding to , that is , for .
Proposition 5**.**
The number of codewords in of weight is:
[TABLE]
provided that , for .
Proof.
For , the result is trivial since
[TABLE]
is the number of triples in a -ary --design. Note that any codeword of weight cannot have exactly nonzero coordinates in the same block because there exists a codeword in such block covering these two coordinates and, hence, we would have . Thus, the result is also trivial for .
If , then the codewords of weight are divided into two classes: a) those with the three nonzero coordinates in the same block, and b) those with the three nonzero coordinates in three different blocks.
Clearly, the number of codewords in the case a) is
[TABLE]
For the case b), consider any three distinct blocks , , and (we can choose these three blocks in ways). In the block , we fix a vector of weight one (we have such vectors). Now, we claim that there exists exactly one codeword of weight covering with the other two nonzero coordinates in and .
If there are two such codewords, say and ( and are one-weight vectors with the nonzero coordinate in , for ), then we know that there are -weight codewords and with nonzero coordinates in and , respectively, and covering and , respectively. Therefore, has weight leading to a contradiction.
If there are not any codeword covering with nonzero coordinates in and , then any vector is at distance two from . Thus, we can get vectors , such that . We know that , since the covering radius of is , and clearly . Therefore, the number of vectors in at distance from the zero codeword is . As a consequence, we should have
[TABLE]
which gives , and hence , which contradicts the assumption .
The statement is proved. ∎
Corollary 2**.**
The code with parity check matrix given in (2) is a quasi-perfect uniformly packed code (hence completely regular) with parameters and intersection array
[TABLE]
Proof.
The length, dimension and minimum distance of are clear. By Proposition 4, has external distance . Since is not perfect, . Thus, by Theorem 2.5 (i), the covering radius is , and by Theorem 2.5 (iii), is a quasi-perfect uniformly packed code.
The values of the intersection numbers and are straightforward since has minimum distance .
Now, we compute the intersection number , that is, the number of neighbors in of any vector . Without loss of generality, assume that is a one-weight vector. Then, is the addition of the number of two-weight vectors covering and covered by some codeword of weight , and the vectors of weight at distance from . Since the set of codewords of weight defines a -ary 1-design (Theorem 2.4), we have that
[TABLE]
where is the replication number, i.e. the number of codewords in covering (note that (3) is a generalization to the -ary case of Corollary 1 (iv)). Of course, any such codeword covers two vectors of weight that, also, cover . Thus, we have that . Combining with (3), we obtain
[TABLE]
and substituting from Proposition 5, we get
[TABLE]
Since , we obtain
[TABLE]
By Lemma 2.1, we have that . Since has minimum distance , we have . Also, because the covering radius of is . Therefore, we can compute :
[TABLE]
Substituting , the expression simplifies to . This completes the proof. ∎
Remark 2**.**
Almost all codes in the family described in Construction I are not completely transitive codes. However, software computations suggest that in the binary case and for any value of (so ), the completely transitive codes of that family are those with . In general, in the -ary case when is a power of two, the completely transitive codes are those with and if , for , then the completely transitive codes are those with .
Remark 3**.**
By extending the codes in the family given in Construction I we do not obtain completely regular codes, except for the binary case when the parameter equals . In this case, the family of extended codes we obtain coincides with the family described in Theorem 3.1.
Construction II
The next construction works again for -ary cyclic Hamming codes, where and . For a given such code of length with parity check matrix , the matrices , are defined as in Construction I. Let be any integer from the range: and let be the code with parity check matrix
[TABLE]
where [math] denotes the zero matrix (of the same size as ).
Proposition 6**.**
The code has nonzero weights
[TABLE]
except if and . In this case, has only the nonzero weight and is a Hamming code of length .
Proof.
Assume that or . As in Construction I, let be the sets (blocks) of consecutive coordinate positions. Note that any linear combination of the first (respectively, second) rows of gives a codeword in with the zero vector in, and only in, the block (respectively, ). For a linear combination which gives nonzero vectors in and , we have that the obtained codeword in can have the zero vector in at most one block , for . This is true by the same argument used in the proof of Proposition 4.
In the binary case, if , we have that any nonzero codeword in has the zero vector in exactly one block. Indeed, any linear combination which gives nonzero vectors in and , gives some vector , where is generated by the first rows of , and is generated by the second rows of . Clearly, and have the forms:
[TABLE]
for some . Since are all different by Lemma 2.6, and a simplex code of length contains nonzero codewords, we conclude that
[TABLE]
Therefore, has only the weight . In this case, has length . Since the minimum distance is and the dimension is , is a Hamming code. ∎
Proposition 7**.**
The number of codewords in of weight is:
[TABLE]
Proof.
We compute separately the number of codewords in for the different possible cases.
- a)
Codewords in with the three nonzero coordinates in . We can apply here the arguments of Proposition 5 for instead of . The result is:
[TABLE]
- b)
Codewords in with the three nonzero coordinates in . Clearly, all the nonzero coordinates must be in or in . Since the triples in (or ) form a Steiner system (Theorem 2.4), we have that this number of codewords is:
[TABLE]
- c)
Codewords in with exactly one nonzero coordinate in . Consider any column of in . It is clear that there is exactly one column in and one column in , such that , and are linearly dependent. Hence, in this case we have exactly one codeword for each coordinate (and its multiples) in . Thus, the result is:
[TABLE]
- d)
Codewords in with exactly one nonzero coordinate in . The remaining pair of nonzero coordinates cannot be in the same block. Indeed, one such pair of coordinates is already covered by a triple in the same block. The corresponding columns of must have equal (up to multiples) the first coordinates or the second coordinates (depending on the given nonzero coordinate is either in or in , respectively). Hence, for any pair of blocks in we can choose columns (and their multiples) of one of these two blocks and we have two possibilities for the other block. The result is:
[TABLE]
Adding (4), (5), (6), and (7), we obtain the statement. ∎
Corollary 3**.**
- (i)
For and , is a binary Hamming code of length . 2. (ii)
For or , is a linear completely regular code with intersection array
[TABLE]
Proof.
(i) It is already proved in Proposition 6.
(ii) The length, dimension and minimum distance of are clear. By Proposition 6, has external distance . Since is not perfect, we have that and, by Theorem 2.5 (i), the covering radius is . Hence, by Theorem 2.5 (iii), is a quasi-perfect uniformly packed code.
The values of the intersection numbers and are straightforward since has minimum distance .
Now, we compute the intersection number , that is, the number of neighbors in of any vector . Without loss of generality, assume that is a one-weight vector. Then, is the addition of the number of two-weight vectors covering and covered by some codeword of weight , and the vectors of weight at distance from . Since the set of codewords of weight defines a -ary 1-design (Theorem 2.4), we have that
[TABLE]
where is the replication number, i.e. the number of codewords in covering . Of course, any such codeword covers two vectors of weight that, also, cover . Thus, we have that . Combining with (8), we obtain
[TABLE]
and substituting from Proposition 7, we get
[TABLE]
Since , we obtain
[TABLE]
By Lemma 2.1, . Since has minimum distance , we have . Also, because the covering radius of is . Therefore, we can compute :
[TABLE]
Substituting , the expression simplifies to . ∎
Remark 4**.**
Almost all codes in the family given in Corollary 3 are not completely transitive. However, in the binary case, using computer calculations, we conjecture that for any value of , the codes of Corollary 3, are completely transitive for .
Remark 5**.**
In the binary case, the extension of the codes given in Corollary 3 are not completely regular in almost all cases. However, for each value of , there are exactly two values of such that the obtained binary extended code is completely regular as we show in the next theorem.
Of course, for and , the extended code is an extended Hamming code. Therefore, we consider the binary cases where .
Theorem 3.1**.**
For and , the extended code is a completely regular code if and only if . In this case, is a code with
[TABLE]
Proof.
As can be seen in [5, Prop. 1.1], has covering radius . Hence, if is completely regular, it must have external distance . In other words, must have exactly nonzero weights (Theorem 2.5 (iv)). A generator matrix for is obtained adding, first the zero column, and second the all-one row to the matrix . Therefore, has at least the nonzero weights , and (see Proposition 6). If has exactly these weights, then it is clear that . This condition is equivalent to
[TABLE]
which implies .
In that case, is a code and, by Theorem 2.5 (vi), we have that is a completely regular code.
Now, we compute the intersection numbers. Let be the length of . Since the minimum distance in is , it is clear that and . Moreover, giving a one-weight vector , all its neighbors, except the zero codeword, are vectors in . Thus, . For a vector , we have that all its neighbors are in . Hence, .
By Proposition 3, we have that . From this and Proposition 7, we obtain:
[TABLE]
By Theorem 2.4, the set defines a --design. Using Proposition 2 and (9), we can compute the parameter :
[TABLE]
Let , without loss of generality, we can assume that has weight . Then, is at distance two of exactly codewords in . Since any codeword has vectors at distance , and all such vectors are in , we have the relation:
[TABLE]
Alternatively, (11) can be obtained counting in two ways the number of edges of the bipartite graph that has as set of vertices, and a vertex in is adjacent to a vertex in if the corresponding vectors are at distance two. Now, using (10) and (11), we can compute :
[TABLE]
Next, we compute . Clearly, . Therefore, using (12), we obtain:
[TABLE]
By Lemma 2.1, we have that and . Using these relations, (12), and (13), we obtain:
[TABLE]
The statement is proved. ∎
4 Sporadic completely regular codes by concatenation
We have computationally checked that the following codes are completely regular with the specified parameters.
Let be the binary -code with parity check matrix
[TABLE]
and (respectively, ) is obtained by one cyclic shift of the columns of in one position (respectively, by two cyclic shifts). Then, is a completely regular code with The binary -code, obtained by extension of , is completely regular with
[TABLE] 2. 2.
Denote by a difference matrix [3], i.e. a square matrix of the order over an additive group of order , such that the component-wise difference of any two rows contains any element of the group exactly times.
Take the difference matrix
[TABLE]
Let be a binary matrix obtained from by changing any element by the matrix . Then, the code with parity check matrix is a completely regular code with 3. 3.
Do the same construction as in item 2 for the matrix , which is the difference matrix without the trivial column. The resulting code is CR with . This code coincides with the code described in item 1.
Acknowledgements
This work has been partially supported by the Spanish grants TIN2016-77918-P, AEI/FEDER, UE., MTM2015-69138-REDT; the Catalan AGAUR grant 2014SGR-691 and also by Russian fund of fundamental researches (15-01-08051).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] E. Assmus, J.M. Goethals and H. Mattson, Generalized t-designs and majority decoding of linear codes, Information and Control , 32 (1976), 43–60.
- 2[2] L.A. Bassalygo, G.V. Zaitsev, V.A. Zinoviev, Uniformly packed codes. Problems Inform. Transmiss , 10 , (1974), 9–14.
- 3[3] T. Beth, D. Jungnickel and H. Lenz, Design theory , vol. 69, Cambridge University Press, 1999.
- 4[4] I. F. Blake and R. C. Mullin, The mathematical theory of coding , Academic Press, 2014.
- 5[5] A. E. Brouwer, On complete regularity of extended codes, Discrete mathematics , 117 (1993), 271–273.
- 6[6] A. E. Brouwer, A. M. Cohen and A. Neumaier, Distance-Regular Graphs , Springer, 1989.
- 7[7] R. Calderbank and W. Kantor, The geometry of two-weight codes, Bulletin of the London Mathematical Society , 18 (1986), 97–122.
- 8[8] P. Delsarte, An algebraic approach to the association schemes of coding theory , Thesis, 1973.
