On the non-existence of perfect codes in the sum-rank metric
Giuseppe Del Prete, Antonio Roccolano, Ferdinando Zullo

TL;DR
This paper investigates the existence of perfect codes in the sum-rank metric, establishing non-existence results for multiple-block spaces and providing bounds and conditions for their potential existence.
Contribution
It extends the understanding of perfect codes in the sum-rank metric by analyzing geometry, deriving bounds, and proving non-existence in various cases.
Findings
Non-existence of perfect codes in multiple-block sum-rank spaces for certain parameters
Explicit bounds and constraints for perfect codes in two-block spaces
Computational evidence supporting non-existence based on volume and divisibility conditions
Abstract
We study perfect codes in the sum-rank metric, a generalization of both the Hamming and rank metrics relevant in multishot network coding and space-time coding. A perfect code attains equality in the sphere-packing bound, corresponding to a partition of the ambient space into disjoint metric balls. While perfect codes in the Hamming and rank metrics are completely classified, the existence of nontrivial perfect codes in the sum-rank metric remains largely open. In this paper, we investigate linear perfect codes in the sum-rank metric. We analyze the geometry of balls and derive bounds on their volumes, showing how the sphere-packing bound applies. For two-block spaces, we determine explicit parameter constraints for the existence of perfect codes. For multiple-block spaces, we establish non-existence results for various ranges of minimum distance, divisibility conditions, and code…
| 3 | 4, 5, 6, 7, 12, 14, 16, 17, 18 |
|---|---|
| 4 | 6, 8, 9, 10, 11, 12, 13, 15, 16, 17, 19 |
| 5 | 8, 9, 10, 11, 12, 15, 16, 17, 19, 20 |
| 6 | 8, 9, 10, 11, 12, 16, 17, 19 |
| 7 | 8, 9, 10, 11, 12, 15, 16, 17, 18, 20, 22 |
| 8 | 10, 12, 13, 14, 15, 18, 21, 23 |
| 9 | 12, 14, 18, 20, 22, 24 |
| 10 | 12, 14, 16, 17, 18, 21, 23 |
| 3 | 4, 5, 7, 8, 13, 14, 15, 17, 18 |
|---|---|
| 4 | 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 18 |
| 5 | 6, 7, 8, 13, 14, 15, 16, 18, 19 |
| 6 | 7, 8, 13, 14, 16, 18, 19, 20 |
| 7 | 8, 13, 14, 17, 18, 20, 21, 22 |
| 8 | 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22 |
| 9 | 10, 11, 13, 14, 17, 18, 20, 21, 22 |
| 10 | 11, 14, 15, 17, 18, 20, 21, 23, 24 |
| 3 | 4, 9, 13, 15, 16 |
|---|---|
| 4 | 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 |
| 5 | 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 |
| 6 | 7, 8, 9, 10, 11, 13, 14, 17, 18, 19, 21 |
| 7 | 8, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22 |
| 8 | 10, 11, 12, 13, 14, 17, 18, 19, 20, 21, 23 |
| 9 | 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24 |
| 10 | 11, 12, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25 |
| 3 | 4, 5, 6, 11, 12, 13, 14, 15, 17, 18 |
|---|---|
| 4 | 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 19 |
| 5 | 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20 |
| 6 | 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20 |
| 7 | 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22 |
| 8 | 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 22, 23 |
| 9 | 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 |
| 10 | 11, 12, 13, 14, 17, 18, 19, 20, 21, 22, 23, 24, 25 |
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
On the non-existence of perfect codes in the sum-rank metric
Giuseppe Del Prete
Giuseppe Del Prete, Dipartimento di Matematica e Fisica, Università degli Studi della Campania “Luigi Vanvitelli”, Viale Lincoln, 5, I– 81100 Caserta, Italy
,
Antonio Roccolano
Antonio Roccolano, Dipartimento di Matematica e Fisica, Università degli Studi della Campania “Luigi Vanvitelli”, Viale Lincoln, 5, I– 81100 Caserta, Italy
and
Ferdinando Zullo
Ferdinando Zullo, Dipartimento di Matematica e Fisica, Università degli Studi della Campania “Luigi Vanvitelli”, Viale Lincoln, 5, I– 81100 Caserta, Italy
Abstract.
We study perfect codes in the sum-rank metric, a generalization of both the Hamming and rank metrics relevant in multishot network coding and space-time coding. A perfect code attains equality in the sphere-packing bound, corresponding to a partition of the ambient space into disjoint metric balls. While perfect codes in the Hamming and rank metrics are completely classified, the existence of nontrivial perfect codes in the sum-rank metric remains largely open. In this paper, we investigate linear perfect codes in the sum-rank metric. We analyze the geometry of balls and derive bounds on their volumes, showing how the sphere-packing bound applies. For two-block spaces, we determine explicit parameter constraints for the existence of perfect codes. For multiple-block spaces, we establish non-existence results for various ranges of minimum distance, divisibility conditions, and code dimensions. We further provide computational evidence based on congruence conditions imposed by the volume of metric balls.
Key words and phrases:
Sum-rank metric; perfect code; Sphere-packing bound
2020 Mathematics Subject Classification:
11T71; 51E20; 94B05
1. Introduction
Consider a finite metric space . An -code in is a subset of with at least two elements such that for every with , we have .
For and an integer , we define the ball of radius centered at as
[TABLE]
Since is a metric, one immediately observes that the balls of radius
[TABLE]
centered at the elements of an -code are pairwise disjoint, and their union is contained in . This yields the bound
[TABLE]
If, in addition, the metric is translation-invariant, then all balls of radius have the same size, so
[TABLE]
When is the Hamming metric and , where is a finite field of order , the bound (1) is known as the sphere-packing bound (or Hamming bound), and codes achieving equality in (1) are called perfect codes.
By analogy, we will refer to (1) as the sphere-packing bound in the general setting, and to codes attaining equality as perfect codes.
Examples of linear perfect codes in the Hamming metric are:
- •
trivial codes (i.e., and the repetition code);
- •
Hamming codes;
- •
the binary and ternary Golay codes of length and , respectively.
After a series of works (see [11, 3, 2, 28, 27, 26, 23, 25]), Tietäväinen [24] completely classified the linear perfect codes in the Hamming metric as precisely those listed above (up to equivalence).
Another well-studied case is the rank metric. Taking with the rank metric, Loidreau [13] proved that the only linear perfect codes in this setting are the trivial ones. More recently, the situation in which is a restricted matrix space (i.e., when is the space of symmetric, Hermitian, or alternating matrices over ) has also been studied; see [18, 17, 1].
This paper is dedicated to the study of perfect codes in the sum-rank metric. Let be a finite field, and consider a vector partitioned into several blocks, where each block is a matrix over . The sum-rank weight of such a vector is defined as the sum of the ranks of all its blocks. Similarly, the sum-rank distance between two vectors is defined as the sum of the ranks of the differences between corresponding blocks.
The sum-rank metric generalizes both the Hamming and the rank metrics. If each block consists of a single element, it coincides with the Hamming metric; if there is only one block, it reduces to the rank metric. This metric is particularly useful in coding theory, as it captures both block-wise and rank-based error structures. Applications include multishot network coding, where errors can affect multiple transmissions, and space-time coding in wireless communications, where blocks correspond to different antennas or time slots. For further details, we refer to [7, 15, 14].
Covering properties have been widely studied in both the rank-metric and the sum-rank metric (see [4, 5, 6, 29]), and a detailed study of the geometry of balls in the sum-rank metric has been carried out in [22, 20, 7, 19].
The first study of perfect codes in the sum-rank metric was conducted by Martinez-Peñas in [16], where he observed that perfect codes in the Hamming metric can also be viewed as perfect codes in the sum-rank metric. He left as an open question the existence of perfect codes in the sum-rank metric that do not arise from the Hamming metric. To the best of our knowledge, no other perfect codes are known, though a construction of quasi-perfect sum-rank metric codes was recently provided by Chen in [10].
In this paper, we focus on detecting parameter sets for which linear perfect codes in the sum-rank metric do not exist. After recalling some preliminaries and notation for sum-rank metric codes in Section 2, in Section 3 we study spheres and balls in the sum-rank metric and describe how the sphere-packing bound appears in this context. We also derive some bounds on the volumes of spheres and balls.
In Section 4, we study perfect codes in . Following the approach of Loidreau in [13], which combines the bounds we have on the volumes of the balls with the Singleton-like bound, we prove that perfect codes in can exist only for specific parameters.
Section 5 addresses the case of perfect codes in . The situation here is more complicated, but we are able to provide non-existence conditions when:
- •
the minimum distance is or and is sufficiently large (see Proposition 5.1);
- •
the minimum distance is or and satisfies certain divisibility conditions (see Proposition 5.2);
- •
the minimum distance is or and the dimension of the code is not a multiple of (see Proposition 5.4);
- •
the minimum distance is large enough with respect to (see Theorems 5.5 and 5.6);
- •
, , and the minimum distance satisfy certain divisibility conditions (see Theorem 5.8 and Proposition 5.10).
In Section 6, since the existence of perfect codes in requires that the volume of a ball of radius (where is the minimum distance of the code) satisfies a congruential relation modulo the characteristic of the field, we provide some computational results based on this observation.
2. Sum-rank metric codes
We fix now the notation that we will use for the whole paper. For us is a prime power and is the finite field with elements. We will often consider the degree extension field of . Let be a positive integer. From now on will always be ordered tuples with and . We use the following compact notations for the direct sum of vector spaces of matrices
[TABLE]
In this section we recall the basic notions of sum-rank-metric codes seen as elements in , that will be useful for the rest of the paper.
Definition 2.1**.**
Let . The sum-rank weight of is the quantity
[TABLE]
With these definition in mind, we can endow the space with a distance function, called the sum-rank distance,
[TABLE]
defined by
[TABLE]
In particular, if the sum-rank distance corresponds to the rank distance, and if all the ’s or all the ’s are equal to one, then the sum-rank distance coincides with the Hamming distance.
We can now give the definition of sum-rank metric codes.
Definition 2.2**.**
A sum-rank metric code is an -linear subspace of endowed with the sum-rank distance. The minimum sum-rank distance of a sum-rank code is defined as usual via
[TABLE]
The parameters of a sum-rank metric code are related via a Singleton-like bound, as proved in [7, Theorem 3.2].
Theorem 2.3**.**
(Singleton-like bound)
Let be a sum-rank metric code in with for any and . Let and be the unique integers satisfying and . Then
[TABLE]
The sum-rank metric codes whose parameters satisfy the equality in the above bound are called Maximum Sum-Rank Distance (or shortly MSRD) codes.
The interested reader is referred to [7, 8, 12, 9] for a more details about sum-rank metric codes and their connections.
3. Spheres, balls and sphere-packing bound in the sum-rank metric
In the following, we assume that the integers are such that
[TABLE]
This is motivated by the fact that in the following sections we will deal with tha case in which all the ’s and the ’s are equal.
Definition 3.1**.**
Let be a non-negative integer. For every vector , the sphere centered at and of radius in the sum-rank metric is defined as the following set:
[TABLE]
Definition 3.2**.**
Let be a non-negative integer. For every vector , the ball centered at and of radius in the sum-rank metric is defined as the following set:
[TABLE]
Note that the sphere centered at any vector in and of radius corresponds to the union of all spheres of radius between [math] and centered in :
[TABLE]
Let us denote , and we will refer to the cardinality of a ball as its volume. Clearly, the size of the spheres and balls in the sum-rank metric are independent of the chosen center. Therefore, the quantity represents the volume of any ball with a given center and radius .
Thus, it is legitimate to consider the volume of a ball of radius in as the volume of the ball centered at the origin. To refer to this quantity, we will use the notation , emphasizing that the ball lies in the space .
The same considerations apply to spheres. For this reason, the spherical surface centered at the origin and of radius is given by the set:
[TABLE]
so that we can define its volume as
[TABLE]
Recalling (2), we obtain:
[TABLE]
By counting the number of the elements in having having a fixed sum-rank weight, in [7, Section III] the authors proved the following (see also [22, Section 4]).
Proposition 3.3**.**
Let and be two non-negative integers. Then
[TABLE]
and
[TABLE]
The above formula is not very practical and difficult to compute, especially when studying covering properties; see also [20] for a dynamic program to compute it. We explicitly provide it for a very special cases in the following proposition, which is useful for the next results and is also expository for showing how this formula is intricate.
Proposition 3.4**.**
Suppose that and . In the following hold
[TABLE]
and
[TABLE]
Proof.
From Proposition 3.3, we derive that
[TABLE]
Clearly, implies that all the ’s are zero and implies that all but one of the ’s are zero and the remaining one is one. Using this, one can immediately observe that .
Again, using Proposition 3.3, we derive that
[TABLE]
Clearly, we have that
[TABLE]
Note that we have that
[TABLE]
if and only if one of the following cases hold
- (1)
there exists such that , for every ; 2. (2)
there exist such that , for every .
**Case (1)
**Suppose that there exists such that , for every . Note that
[TABLE]
as for any .
**Case (2)
**Assume that there exist such that , for every . Thus, we have that
[TABLE]
For the Case (1) there are exactly choices for , so that
[TABLE]
For Case (2), there are choices for and , therefore we get
[TABLE]
By summing (7) and (8) together with (6), we obtain the value of . ∎
Later, we will see some bounds that will allow us to prove some non-existence results for perfect codes in the sum-rank metric. In this context the sphere-like bound reads as follows, see [7, Theorem III.6].
Theorem 3.5**.**
(Sphere-packing bound)
Let be a sum-rank code in , and let be its minimum distance. Then
[TABLE]
where .
Codes for which equality holds in the previous bound are called perfect codes. We know that such codes exist when , or , that is, in the Hamming metric. For , i.e., when considering the rank metric, it is known that there are no non-trivial perfect codes, as proved by Loidreau in [13]. As Martinez-Peñas pointed out in [16], it seems very challenging to find examples of perfect codes that do not originate from the Hamming metric. As far as we know, at the moment only examples of quasi-perfect codes have been found by Chen in [10].
Our aim is to exclude the existence of perfect codes in the sum-rank metric for several values of the parameters, by following the approach of Loidreau in [13], which combines bounds on the volumes of the balls and the Singleton-like bound.
In the rank metric, the following bounds have been derived.
Proposition 3.6**.**
(see [13, Proposition 1]) Let and , and let be a positive integer such that . Then:
[TABLE]
[TABLE]
The lower bounds on the volume of spheres and balls in the rank metric given in Proposition 3.6 can also be extended to the sum-rank metric. In this case, we assume that and , so that is the direct sum of matrix spaces of size , that is,
[TABLE]
The following inequalities on the volumes of balls and spheres in the sum-rank metric can also be derived from those in [22, 20, 19], and note that the bounds we derive are even less precise. For our purposes, we need lower and upper bounds that approximate the volumes of balls and spheres as -power expressions as closely as possible. Therefore, for the sake of completeness, by using a similar argument to [19] we prove the following bounds and present them in the form we have established.
Proposition 3.7**.**
Let be a positive integer, and . In the following inequalities hold
[TABLE]
Proof.
In this case, the volume of a sphere can be written as follows
[TABLE]
and therefore, by Proposition 3.6, we have
[TABLE]
[TABLE]
[TABLE]
The integer can be written as
[TABLE]
with ; hence we can consider the tuple , with and , and observe that
[TABLE]
One can check that this tuple minimizes the quantity with the restriction that . Therefore,
[TABLE]
Since , (9) becomes
[TABLE]
[TABLE]
Hence,
[TABLE]
Also, we have that
[TABLE]
Therefore,
[TABLE]
[TABLE]
The assertion then follows from the fact that .
∎
The integers involved in the -tuple of partitions , with , where denotes the radius of the sphere considered in the sum-rank metric, are known to satisfy
[TABLE]
for every . Setting , it is possible to define the set of all such ordered partitions with respect to the above constraint:
[TABLE]
where the notation indicates the integers involved in the partition.
The cardinality of this set corresponds to the number of ways the radius can be decomposed into a -tuple in which each component is at most . For this, one has the bound:
[TABLE]
see [21] for further details. These considerations, together with Proposition 3.6, allow us to derive an upper bound for the volume of spheres and balls in the sum-rank metric.
Proposition 3.8**.**
Let be a positive integer, and . In the following inequalities hold
[TABLE]
Proof.
By Propositions 3.6 and 3.7 we have that
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
By making use of (10) we derive that
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
∎
We underline that the above bounds are not tight and improvements to them have been provided in [22, 20, 19].
4. Perfect codes in
As previously stated, Loidreau demonstrated in [13] that when (i.e., when the sum-rank metric corresponds to the rank metric), non-trivial perfect codes do not exist. Consequently, the first open case in the sum-rank metric pertains to the situation where is the direct sum of two square matrix spaces. This section focuses on studying this particular case, in which we manage to rule out a large set of parameters concerning their existence. We divide the analysis into two main cases according to the large or small values of the minimum distance.
Theorem 4.1**.**
Let , and be positive integers and . If , then there do not exist perfect codes in with minimum distance .
Proof.
Suppose is a perfect code in with minimum distance . If is odd, then and . The Singleton-like bound (cfr. Theorem 2.3) reads as follows
[TABLE]
If is even, then and . The Singleton-like bound now reads as
[TABLE]
implying that in both the cases the inequality holds and so we will use it to consider both the cases simultaneously. Since is perfect, we have
[TABLE]
and by (11) we have
[TABLE]
that is . Proposition 3.8, with and , implies that
[TABLE]
from which it follows
[TABLE]
i.e.
[TABLE]
By taking the base logarithm in the above inequality we get
[TABLE]
Applying the following well-known inequalities
[TABLE]
[TABLE]
we obtain
[TABLE]
and so (14) becomes
[TABLE]
i.e.
[TABLE]
that is
[TABLE]
where
[TABLE]
Since we also have that and
[TABLE]
implying that . Observe that
[TABLE]
Since we have , from which it follows that
[TABLE]
Therefore, for the function increases. Finally, by taking the limit as we obtain
[TABLE]
We then conclude that
[TABLE]
Therefore, we have a contradiction to (15). ∎
We now consider the case where the minimum distance is at most .
Theorem 4.2**.**
Let , and be positive integers and . If and , then there do not exist perfect codes in with minimum distance .
Proof.
Suppose is a perfect code in with minimum distance . We can again assume that (from the Singleton-like bound) and (from (13)). The latter inequality implies that
[TABLE]
By considering the base logarithm in the above inequality, we obtain
[TABLE]
i.e.
[TABLE]
This condition does not hold for since
[TABLE]
and
[TABLE]
a contradiction to the assumption that .
∎
Therefore, as a consequence, we restrict the existence of perfect codes in the sum-rank metric in the following cases.
Corollary 4.3**.**
Let , and be positive integers and . If a perfect code with minimum distance exists, then one of the following hold:
- •
and ;
- •
.
We are able to exclude the case in which , and for large values of the minimum distance.
Proposition 4.4**.**
Let , , and be positive integers and . If one of the following conditions hold ,
- •
, and ;
- •
and ,
then there do not exist perfect codes in with minimum distance .
Proof.
Suppose is a perfect code in with minimum distance .
Case 1: .
Arguing as in the proof of Theorem 4.1, from (13) we have that
[TABLE]
and for it reads as
[TABLE]
Simple computations show that the above inequality yields a contradiction when . For the cases , see the Appendix 8.
Case 2: .
Again from (13) we have that
[TABLE]
which yields a contradiction when . For , see Appendix 9. ∎
5. Larger number of blocks
In this section we derive some non-existence results for perfect codes in when and . Clearly, if (i.e. when or ), then we have that a perfect code with minimum distance needs to be the entire space . Therefore, we start with the case where and , where we are going to use the explicit value of the and from Proposition 3.4. Then we will move some general results, where we prove some non-existence result on perfect codes in when the required minimum distance is large enough with respect to the number of blocks and finally we prove some non-existence results by finding some congruences involving , and the minimum distance.
Proposition 5.1**.**
Let , and be positive integers and . If , there do not exist perfect codes in having minimum distance with .
Proof.
Suppose that there exists a perfect code in with minimum distance . By Proposition 3.4, we have that
[TABLE]
Since is a perfect code, we have
[TABLE]
By Singleton-like bound, we have
[TABLE]
implying that
[TABLE]
By plugging together the above inequalities, we obtain
[TABLE]
i.e.
[TABLE]
from which we derive
[TABLE]
that is
[TABLE]
Now, since
[TABLE]
we have that
[TABLE]
which gives a contradiction since . ∎
Now, we consider the case when .
Proposition 5.2**.**
Let , and be positive integers and . If one of the following conditions:
- •
is odd, neither nor ;
- •
, and ;
then there do not exist perfect codes in with minimum distance .
Proof.
Suppose there exists a perfect code in with minimum distance . Since is perfect we have that
[TABLE]
Since , we have that divides , and so . From (5) we have that
[TABLE]
Let analyze the congruence modulo of each summand:
- (1)
We have that
[TABLE]
implying that
[TABLE] 2. (2)
Observe that
[TABLE]
that is
[TABLE] 3. 3
Finally, we have
[TABLE]
as it is a multiple of since divides either or and divides both of them.
Combining the previous items, we have that
[TABLE]
i.e.
[TABLE]
If is odd then is invertible in and we obtain
[TABLE]
Since is a power of a prime and and are coprime, we have that either or .
If , then (16) reads as follows
[TABLE]
Suppose that , for some . Then we have that
[TABLE]
i.e. , that is is odd and . Similarly, if , for some , then
[TABLE]
∎
Remark 5.3**.**
In particular, if is odd then there does not exist perfect code in with minimum distance when .
Another condition that needs to be satisfied by perfect codes in with minimum distance regards their dimension.
Proposition 5.4**.**
Let , and be positive integers and . If there exists a perfect code in with minimum distance , then divides .
Proof.
Since is perfect and , we have that
[TABLE]
and since , we have
[TABLE]
From (5), we know that
[TABLE]
which can be rewritten as follows
[TABLE]
where
[TABLE]
Let us observe that . Indeed,
[TABLE]
is clearly a positive integer,
[TABLE]
is again clearly a positive integer, and finally
[TABLE]
is a positive integer since as it counts the number of subspaces of dimension two in an -vector space of dimension . Therefore, . We can rewrite (17) as follows
[TABLE]
which implies that divides . This happens if and only if divides , which holds if and only if . ∎
We now provide some general results for large values of the minimum distance. We divide the cases odd and even as the conditions on the parameters are slightly different.
Theorem 5.5**.**
Let , and be positive integers and . If
- •
;
- •
;
- •
is odd;
- •
,
then there do not exist perfect codes in with minimum distance .
Proof.
Suppose that there exists a perfect code in with minimum distance . Since is odd, we can write for some . From Theorem 2.3, we have
[TABLE]
Since is perfect we also have
[TABLE]
Combining the two inequalities together, we also have that
[TABLE]
that is
[TABLE]
By Proposition 3.8 we derive that
[TABLE]
so that
[TABLE]
implying that
[TABLE]
Using that
[TABLE]
we derive
[TABLE]
Passing to the logarithm with base and changing the basis of the logarithm we have
[TABLE]
where the last inequality follows from the fact that . Using again the well-known inequalities
[TABLE]
and
[TABLE]
we obtain again
[TABLE]
Observing that
[TABLE]
we obtain that
[TABLE]
Therefore,
[TABLE]
i.e.
[TABLE]
Observe that the derivative of the function is and
[TABLE]
Moreover,
[TABLE]
and
[TABLE]
Therefore is positive in , it increases when and
[TABLE]
This contradicts (18). ∎
With a very similar argument one can show the following.
Theorem 5.6**.**
Let , and be positive integers and . If
- •
;
- •
;
- •
;
- •
is even;
- •
,
then there do not exist perfect codes in with minimum distance .
We are going to give some more conditions on the parameters in order to exclude the existence of perfect codes in . To do so, we need the following auxiliary lemma on the volume of balls in the sum-rank metric.
Lemma 5.7**.**
Let , and be positive integers and . For every we have that
[TABLE]
Proof.
From (3), we have that
[TABLE]
Clearly, and so let us consider with . By Proposition 3.3,
[TABLE]
If at least one of the ’s is greater than , then the product
[TABLE]
is a multiple of . Therefore, it is enough to consider the case in which all ’s are less than or equal to one. Taking into account that we also need that
[TABLE]
the only possibility is that of the ’s are equal to one and the remaining ones are equal to zero. Hence, we have
[TABLE]
as only the factors that correspond to one contribute to the product. So, we have
[TABLE]
The number of these summands in is and so
[TABLE]
In conclusion, we have
[TABLE]
∎
As a consequence, we can derive the following necessary conditions that a perfect code in needs to satisfy.
Theorem 5.8**.**
Let , and be positive integers and . Let be a perfect code in with minimum distance . If , where , then .
Proof.
Since is perfect, then
[TABLE]
and divides . By the above proposition, we have
[TABLE]
so that
[TABLE]
from which we derive
[TABLE]
for some . Since , is invertible in and let be its inverse. So, we have that
[TABLE]
Let , then
[TABLE]
therefore is invertible in , which is possible if and only if . ∎
As a consequence we derive the following non-existence results for perfect codes in .
Corollary 5.9**.**
Let , and be positive integers and . If and , then there do not exist perfect codes in with minimum distance , where .
Using the previous lemma, we are also able to derive further non-existence results for perfect codes in .
Proposition 5.10**.**
Let , and be positive integers and . If and , then there do not exist perfect codes in with minimum distance , where .
Proof.
Since is perfect, arguing as in the proof of the previous result we obtain that
[TABLE]
Consider the following polynomial,
[TABLE]
One can check that , as the degree of is and has as roots. Let . This implies that (19) reads
[TABLE]
from which we derive the assertion. ∎
6. Computational results
Let , for some prime and . Assume also that , and are positive integers and . As we observed in several proofs of the previous section, see e.g. (19), if there exists a perfect code in with minimum distance and let , we need that
[TABLE]
In particular, it follows that if , then . This observation leads to the following general non-existence criterion.
Proposition 6.1**.**
Let , for some prime and . Let , and be positive integers and . If , then there does not exist a perfect code in with minimum distance such that .
In particular, if , perfect codes in cannot exist in any extension over . Therefore, equivalently, for fixed and , if , then no perfect code exists in for any extension field with , independently of the value of .
Theorem 6.2**.**
For all , there do not exist perfect codes in with minimum distance and for the following parameters:
We have used the same approach for the characteristic and , obtaining the following.
Theorem 6.3**.**
For all , there do not exist perfect codes in with minimum distance and
- •
for the parameters in Table 2;
- •
for the parameters in Table 3;
- •
for the parameters in Table 4.
7. Conclusions
In this work, we studied the existence of perfect codes in the sum-rank metric. Building on the classical sphere-packing framework and combining it with the Singleton-like bound, we derived several non-existence results for different parameter regimes. In particular, we extended Loidreau’s arguments from the rank metric to the sum-rank setting, showing that large families of parameters cannot admit perfect codes. For the case of two square blocks, we excluded existence both for sufficiently large and sufficiently small minimum distances, depending on the field size. We then generalized our analysis to a larger number of blocks, where explicit computations of the volumes of small-radius balls allowed us to rule out perfect codes for certain congruence conditions and divisibility constraints. Finally, computational results provided further evidence of the scarcity of perfect codes in this metric, confirming the absence of solutions for a wide range of values of , and .
Overall, our results strongly suggest that perfect codes in the sum-rank metric are extremely rare, and that the only natural families arise from the Hamming setting. This aligns with the intuition that the rigid combinatorial structure required by perfect codes is incompatible with the complexity of the sum-rank geometry. An interesting direction for future research is to investigate the existence and characterization of quasi-perfect codes in this metric, following the recent constructions of Chen, and to explore whether weaker notions of covering optimality might yield richer families of codes with practical applications in network coding and distributed storage.
8. The case
In this appendix, we present computations to completely exclude the existence of perfect codes in . We begin by explicitly calculating the volumes of spheres with radii , , and using Proposition 3.3.
Proposition 8.1**.**
Let , , , be integers and Mat(n,m,. Then
[TABLE]
[TABLE]
[TABLE]
We use the above proposition and the Singleton-like bound for completing the proof of Proposition 4.4 for the case .
Theorem 8.2**.**
Let , , , be integers and Mat(n,m,)=. If and , then there do not exist perfect codes in Mat(n,m,) with minimum distance .
Proof.
Suppose is a perfect code in Mat(n,m,) with minimum distance . Denote by , then
[TABLE]
i.e.
[TABLE]
We split the proof according to the values of .
Case 1: .
Using (5) we have that
[TABLE]
Since the code is perfect then
[TABLE]
i.e.
[TABLE]
which turns out to be not an integer, a contradiction.
Case 2: .
From (5) we have that
[TABLE]
From
[TABLE]
it follows that
[TABLE]
Using this inequality, together with (23) and (20), we can derive the following conditions
[TABLE]
and so
[TABLE]
i.e.
[TABLE]
which yields a contradiction when .
Case 3: .
Equation (23) becomes
[TABLE]
Using equation (21), we obtain the following condition
[TABLE]
Combining (21) and (24), we obtain an upper bound on :
[TABLE]
Therefore,
[TABLE]
This condition does not hold for .
Case 4: .
(23) reads as
[TABLE]
[TABLE]
[TABLE]
Hence, we obtain the following condition
[TABLE]
This condition fails for . ∎
9. The case
As before, we can derive the following.
Proposition 9.1**.**
Let , , , be integers and Mat(n,m,)=. Then
[TABLE]
[TABLE]
[TABLE]
As for the case , we use the above proposition and the Singleton-like bound for completing the proof of Proposition 4.4 for the case .
Theorem 9.2**.**
Let , , , be integers and Mat(n,m,)=. If and , then there do not exist perfect codes in Mat(n,m,) with minimum distance .
Proof.
Suppose is a perfect code in Mat(n,m,) with minimum distance , then
[TABLE]
where .
Case 1: .
By using (5) we have that
[TABLE]
Since the code is perfect then
[TABLE]
i.e.
[TABLE]
which turns out to be not an integer, as the denominator is not a multiple of three, a contradiction.
Case 2: .
(28) reads as
[TABLE]
this condition fails for .
Case 3: .
From
[TABLE]
it follows that
[TABLE]
and
[TABLE]
Using (28), we obtain the following condition
[TABLE]
i.e.
[TABLE]
which yields a contradiction when .
Case 4: .
Combining (29) and (27), we obtain an upper bound on :
[TABLE]
(28) becomes
[TABLE]
This condition fails for . ∎
Acknowledgments
This research was partially supported by the Italian National Group for Algebraic and Geometric Structures and their Applications (GNSAGA - INdAM).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] A. Abiad, G. N. Alfarano, and A. Ravagnani. Eigenvalue bounds and alternating rank-metric codes. Journal of Algebra and Its Applications , page 2541011, 2025.
- 2[2] R. Alter. On the non-existence of perfect double Hamming-error-correcting codes on q = 8 q=8 and q = 9 q=9 symbols. Information and Control , 13(6):619–627, 1968.
- 3[3] R. Alter. On the nonexistence of close-packed double Hamming-error-correcting codes on q = 7 q=7 symbols. Journal of Computer and System Sciences , 2(2):169–176, 1968.
- 4[4] D. Bartoli, M. Borello, and G. Marino. Saturating linear sets of minimal rank. Finite Fields and Their Applications , 95:102390, 2024.
- 5[5] M. Bonini, M. Borello, and E. Byrne. Saturating systems and the rank-metric covering radius. Journal of Algebraic Combinatorics , 58(4):1173–1202, 2023.
- 6[6] M. Bonini, M. Borello, and E. Byrne. The geometry of covering codes in the sum–rank metric. Designs, Codes and Cryptography , pages 1–17, 2025.
- 7[7] E. Byrne, H. Gluesing-Luerssen, and A. Ravagnani. Fundamental properties of sum-rank-metric codes. IEEE Transactions on Information Theory , 67(10):6456–6475, 2021.
- 8[8] E. Byrne, H. Gluesing-Luerssen, and A. Ravagnani. Anticodes in the sum-rank metric. Linear Algebra and its Applications , 643:80–98, 2022.
