Tensor Representation of Rank-Metric Codes
Eimear Byrne, Alessandro Neri, Alberto Ravagnani, John Sheekey

TL;DR
This paper develops a tensor-based framework for rank-metric codes, introducing generator and parity check tensors, defining tensor rank as a key parameter, and exploring the existence and construction of minimal tensor rank codes related to MDS codes.
Contribution
It introduces the tensor representation of rank-metric codes, defines tensor rank as a new invariant, and establishes connections with MDS codes, including explicit constructions of minimal tensor rank codes.
Findings
Tensor rank of a code is at least k+d-1.
Minimal tensor rank (MTR) codes meet this bound.
Explicit constructions of MTR codes from MDS codes.
Abstract
We present the theory of rank-metric codes with respect to the 3-tensors that generate them. We define the generator tensor and the parity check tensor of a matrix code, and describe the properties of a code through these objects. We define the tensor rank of a code to be the tensor rank of its generating tensors, and propose that this quantity is a significant coding theoretic parameter. By a result on the tensor rank of Kruskal from the 1970s, the tensor rank of a rank-metric code of dimension and minimum rank distance is at least . We call codes that meet this bound minimal tensor rank (MTR) codes. It is known from results in algebraic complexity theory that an MTR code implies the existence of an MDS code. In this paper, we also address the converse problem, that of the existence of an MTR code, given an MDS code. We identify several parameters for which the converse…
| Generator Matrix | Generator Tensor | |
|---|---|---|
| Storage | ||
| Encoding Additions | ||
| Encoding Multiplications |
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.
Tensor Representation of Rank-Metric Codes
Eimear Byrne
School of Mathematics and Statistics, University College Dublin, Belfield, Ireland
,
Alessandro Neri∗
Institute of Mathematics, University of Zurich, Switzerland
,
Alberto Ravagnani∗
School of Mathematics and Statistics, University College Dublin, Belfield, Ireland
and
John Sheekey
School of Mathematics and Statistics, University College Dublin, Belfield, Ireland
Abstract.
We present the theory of rank-metric codes with respect to the 3-tensors that generate them. We define the generator tensor and the parity check tensor of a matrix code, and describe the properties of a code through these objects. We define the tensor rank of a code to be the tensor rank of its generating tensors, and propose that this quantity is a significant coding theoretic parameter. By a result on the tensor rank of Kruskal from the 1970s, the tensor rank of a rank-metric code of dimension and minimum rank distance is at least . We call codes that meet this bound minimal tensor rank (MTR) codes. It is known from results in algebraic complexity theory that an MTR code implies the existence of an MDS code. In this paper, we also address the converse problem, that of the existence of an MTR code, given an MDS code. We identify several parameters for which the converse holds and give explicit constructions of MTR codes using MDS codes. We furthermore define generalized tensor ranks, which give a refinement of the tensor rank as a code invariant. Moreover, we use these to distinguish inequivalent rank-metric codes.
Key words and phrases:
rank metric, tensor, tensor rank, tensor extremal code, minimal tensor rank, MTR code, MRD code, Delsarte-Gabidulin code, generator tensor
∗Alessandro Neri was supported by the Swiss National Science Foundation through grant no. 169510. Alberto Ravagnani was supported by the Swiss National Science Foundation through grant no. P2NEP2_168527 and by the Marie Curie Research Grants Scheme, grant no. 740880.
1. Introduction
The theory of rank-metric codes is an important topic in coding theory, which has seen a resurgence of interest in the last decade. Any linear space of matrices can be viewed as a rank-metric code, where the rank distance between a pair of matrices is the rank of their difference and indeed the most general class of (linear) rank-metric codes are the -subspaces of , which we refer to as matrix codes. Much of the initial focus of the theory was on subspaces of , the so-called -linear vector rank-metric codes, where the rank of a vector in is the dimension of the span of its coordinates as an -linear space. Given a basis of over , any vector rank-metric code can be represented as a linear space of matrices in . The most prominent family in this class of codes are the Delsarte-Gabidulin codes [6, 8, 21], which can be conveniently described in terms of generator and parity check matrices that are -analogues of those for the well-studied Reed-Solomon codes of classical coding theory.
The role of matrices in classical (Hamming metric) coding theory is crucial. Efficient encoding and decoding rely on generator and parity check matrices. Several properties of a code are characterized by such matrices, including duality, equivalence, and minimum distance. These matrices also yield connections between coding theory and finite geometry, from which optimal codes have been constructed from sets of points in projective space.
In this paper, we present rank-metric codes in the framework of 3-tensors. More precisely, we define the generator tensor and parity check tensor of an -linear space of matrices and describe the properties of such codes in relation to these objects.
An important and well-studied parameter of a tensor is given by its tensor rank. This aspect of bilinear forms is central to algebraic complexity theory [3, 4, 15]. The definition of tensor rank considered here is the minimum number of simple tensors that appear in the expression of a tensor as a sum of simple tensors. It extends the notion of matrix rank and gives a measure of the complexity of tensor multiplication. Precise computation of tensor rank is elusive for an arbitrary tensor; indeed computing the rank of a 3-tensor over a finite field is NP-complete [12]. We propose that tensor rank is a significant parameter in the theory of rank-metric codes. This extends the notion of the tensor rank of a rank-metric code corresponding to a finite semifield [16]. A rank-metric code in is a slice space of an associated generator tensor, just as a code in is the row-space of a generator matrix. The smaller the tensor rank of the generating tensor, the more efficient the encoding. It is therefore of interest to obtain codes whose generating tensors have minimum tensor rank.
Lower bounds on tensor rank have been known for some time [15]. If is a generating tensor for an -linear code in of dimension and minimum rank distance then this lower bound on , the tensor rank of , can be expressed as:
[TABLE]
Coding theorists will immediately notice the similarity of this inequality to the Singleton bound. We will refer to a code having a generating tensor meeting this bound as a minimum tensor rank (MTR) code. It is known that any (nondegenerate) tensor of rank gives rise to a linear block code of length , and in particular that any lower bound on the length of a linear block code provides an immediate lower bound on the tensor rank [3, 4]. It can therefore be deduced that any MTR code gives a construction of an MDS block code. A central problem posed in this paper is to address the inverse problem: given an MDS block code of length , find a construction of an MTR code with tensor rank . We solve this problem for a range of parameter sets.
We introduce the generalized ranks of a matrix code, which turn out to be an invariant of code equivalence. In particular, such values can be used to distinguish between inequivalent codes and, remarkably, even between MRD codes that otherwise share many invariants. Moreover, generalized tensor ranks lead to a refinement of the tensor rank bound, from which the existing tensor rank bound (1) can be deduced. The coding theoretic arguments used in these proofs are very simple and compact.
A further aspect of the tensor description of a matrix code is that many of its coding theoretic parameters are encoded in its generating and parity check tensors. For example, the minimum rank distance of a matrix code can be characterized by the dimensions of its slice spaces, in direct analogy with relation of the minimum Hamming distance of a block code in relation to its parity check matrix.
Outline.
In Section 2 we cover preliminary results on rank-metric codes and in Section 3 we recall basic results on 3-tensors and characterize tensor rank. In Section 4 we relate matrix codes and tensors and introduce the generator tensor of a code. We define optimality of a code with respect to tensor rank and describe a connection between matrix codes of a fixed tensor rank and linear block codes, which allows the construction of one code, given the other. In Section 5 we define the notion of an extremal triple . It consists of an optimal -code , which is a code with smallest possible length for given dimension and minimum distance, and full-rank matrices ; such a triple yields a tensor rank extremal code. In the special case where is an MDS code, the extremal triple yields an MTR code. We identify parameters for which is always an extremal triple via a characterization theorem. For some values outside these parameter sets, we give an explicit construction of an extremal triple using Cauchy codes. We furthermore consider the Delsarte-Gabidulin codes and obtain an upper bound on their tensor rank. We apply these results to give constructions of matrix codes with upper-bounded tensor rank. In Section 6 we define the -th generalized tensor rank of a matrix code and establish their main properties. We show that the -th generalized tensor rank is an invariant of equivalent matrix codes and use this to distinguish between codes. We also show that these ranks are not an invariant of duality. Finally, in Section 7, we define the parity check tensor of a matrix code. We consider the standard coding theoretic operations of shortening and puncturing of matrix codes, and use these as a tool to relate the parameters of a code to its generator and parity check tensors.
2. Rank-Metric Codes
Throughout this paper, is a prime power and are positive integers. In this section, we assume to simplify the presentation. Analogous results hold for . We denote by the -linear space of matrices with entries in . For an integer , we let . All dimensions are computed over , unless otherwise stated.
The main objects studied in this paper are rank-metric codes. They were introduced in by Delsarte [6] for combinatorial interest.
Definition 2.1**.**
The rank distance between is . A (rank-metric) code is an -linear subspace . If , then the minimum distance of is the integer
[TABLE]
From now on, we will refer to a rank-metric code of dimension as an code. When the minimum distance is known, we will call it an code.
In this paper we adopt the following definition of code equivalence.
Definition 2.2**.**
Codes are equivalent if there exists an -linear isometry such that .
As a linear isometry of is necessarily bijective, equivalent codes have the same dimension and minimum distance. According to [13, 23], in which all the -linear isometries are classified, codes are equivalent if and only if there exist invertible matrices , such that
[TABLE]
or, when ,
[TABLE]
The following result is the rank-metric analogue of the Singleton bound for codes with the Hamming metric.
Theorem 2.3** (Theorem 5.4 of [6]).**
Let be a non-zero code. Then
[TABLE]
Definition 2.4**.**
A code is maximum rank distance (MRD) if it meets the bound of Theorem 2.3, or if it is the zero code.
Recall that the trace-product of is . It is well-known and easy to see that the map defines a bilinear, symmetric and nondegenerate form on .
Definition 2.5**.**
The dual of an code is
[TABLE]
Note that is an code.
In [8], Gabidulin introduces a class of rank-metric codes that are linear over the extension field . They are defined as follows.
Definition 2.6**.**
A vector rank-metric code is an -subspace .
To obtain a matrix code from a vector code, it suffices to use that fact that and are isomorphic as -linear spaces. An isomorphism can be constructed as follows. Let be a basis of . For , denote by the matrix whose entry is the -th coordinate of over the basis . Then the map is an -isomorphism. We denote by the image of a vector rank-metric code under , i.e., we let .
Lemma 2.7** (see e.g. [11]).**
Let be a non-zero vector code. The minimum distance of does not depend on the choice of the basis for . Moreover, for any such basis we have
[TABLE]
Definition 2.8**.**
The minimum distance of a non-zero vector code is the minimum distance of , where is any basis of . It is denoted by .
With these definitions, it is easy to see that a vector code is MRD if and only if
[TABLE]
MRD vector codes (and therefore MRD matrix codes) exist for every set of parameters. The first construction was found by Delsarte [6] and independently by Gabidulin [8] and Roth [21]. It was then generalized in [9].
Let be positive integers such that and . Define the set of linearized polynomials as
[TABLE]
Definition 2.9**.**
Let be a vector such that are linearly independent over . Let moreover be positive integers such that , and . The generalized Delsarte-Gabidulin code is defined as
[TABLE]
When , we will simply refer to as a Delsarte-Gabidulin code.
Another property on vector codes that we will need is the following, that is different matrix representations of the same vector code lead to equivalent rank-metric codes.
Remark 2.10**.**
Let be a vector code, and let , be bases of . Note that the matrix codes and are equivalent.
We also define the column support and row support of a rank-metric code. See [10] for a detailed analysis of the various definitions of rank-support proposed in the literature.
Definition 2.11**.**
Let be a rank-metric code. The column support and the row support of are defined to be the -subspaces of and , respectively, defined by
[TABLE]
where the sums are sums of vector subspaces. The code is said to be nondegenerate if and .
3. 3-Tensors
We recall some definitions and results from tensor algebra. The interested reader is referred to [4, 5] for more details. In this section, denotes an arbitrary field.
Recall that a tensor product of -spaces and , denote by , is defined as a pair , where is a bilinear map to the -space such that for any bilinear map to an -space , there exists a unique -linear map satisfying . We say that satisfies the universal mapping property. The existence and uniqueness of , and hence the well-definedness of , can be shown by its construction as a quotient space of the free -linear space on (see, for example, [5, Chapter 10]). Tensors of the form are called simple tensors (also called fundamental or pure tensors in the literature). Arbitrary elements of are expressed as sums of simple tensors: , with and . Since the tensor product of a pair of spaces is itself a vector space, we may construct the tensor product , for -spaces , which we therefore express as . The corresponding map associated with such a tensor product is a trilinear map .
If , and are bases of , and , respectively, then a basis of is given by
[TABLE]
In particular,
In this paper we shall be mainly interested in tensor products of the form
[TABLE]
whose elements are called -tensors, 3rd-order tensors, or triads. The elements of this space can be represented as 3-dimensional arrays. As with matrices (2nd-order tensors), one can define a 3-dimensional array of size as a function
[TABLE]
which we represent as
[TABLE]
These representations of the tensor are related by
[TABLE]
where , , and . We hence identify with the space . The representation of as an element of is called its coordinate tensor.
For the remainder of the paper, given vectors , we will write to denote the th coefficient of for each . That is, .
We introduce the following maps, which defines multiplication of 3-tensors with vectors (corresponding to ) and matrices ().
[TABLE]
[TABLE]
[TABLE]
for any .
Let . For each and for any it is easy to see that
[TABLE]
Indeed, acts on the set of tensors .
Remark 3.1**.**
Notice that, in the case that , the operation yields a 3-tensor of the form for some scalars , which can be identified with the 2-tensor ( and are isomorphic). Similarly, and yield 2-tensors for the case . With abuse of notation, in this case we will consider the images of the to be in the space of matrices over .
Definition 3.2**.**
Let . For each , we define the -th slice space of to be the -span of , that is,
[TABLE]
We write to denote the dimension of as an -vector space. We say that is nondegenerate if , in which case we say that is -nondegenerate.
If , then clearly
[TABLE]
where for each , . In particular, is the -span of matrices
[TABLE]
of rank at most , which form a basis of if is -nondegenerate.
We also point out the simple fact that for every basis of we have
[TABLE]
In particular, for every we have
[TABLE]
Of particular interest in this paper, is the 1st slice space of a nondegenerate -tensor , which will be a -dimensional subspace of matrices in .
A notable parameter of a tensor that relates to algebraic complexity is its tensor rank, which we now define.
Definition 3.3**.**
Let . The tensor rank of is the minimum integer such that there exists such that
[TABLE]
We write to denote the tensor rank of . A representation of the as sum of simple tensors is called a minimal rank form of .
The reader will easily verify that
[TABLE]
for any (with analogous statements for elements in the image of and ). Moreover, it is straightforward to check that the tensor rank is invariant under any permutation of the spaces .
The following result gives various characterizations of the tensor rank; see for example [4, Proposition 14.45]. As we will use the construction of these characterizations in Lemma 4.13, we include a proof.
Proposition 3.4**.**
Let and let be an integer. The following are equivalent.
- (1)
. 2. (2)
There exist of rank 1 such that . 3. (3)
There exist diagonal matrices , and matrices , such that
[TABLE]
Proof.
Suppose that . Then for some vectors , , and
[TABLE]
Conversely, if is contained in the span of rank 1 matrices , then for all there exist satisfying . Therefore and .
Again suppose that for some . Let
[TABLE]
So the diagonal elements of are the th coefficents of the . Set
[TABLE]
Then for each and hence . Conversely, given the existence of matrices satisfying (3), the tensor can be constructed as , where is the th column of , is the th column of and is the th element of the main diagonal of for each . ∎
Example 3.5**.**
The following example, adapted from [18], illustrates the preceding definitions and propositions. Consider the tensor in , where is any field of characteristic not two. Then
[TABLE]
Then can be written as the sum of the three rank one tensors
[TABLE]
which corresponds to the fact that is contained in
[TABLE]
The matrices are given by
[TABLE]
and , .
It was shown in [12] that computing the tensor rank of a -tensor over a finite field is NP-complete. However we have the following bound on the tensor rank, which was proved by Kruskal; see [15, Corollary 1].
Theorem 3.6**.**
Let be -nondegenerate. Then
[TABLE]
In the language of rank-metric codes, for satisfying dim, this inequality is equivalently expressed as
[TABLE]
Another operation that is important in the context of tensors, is the so-called contraction with respect to some indices. Since in this work we will only need one particular contraction, we will not define this concept in general, but only for the following case.
Definition 3.7**.**
Let , and let
[TABLE]
be tensors. We define the double-dot product between and , as the -tensor (i.e., the matrix) given by
[TABLE]
In terms of their coordinate tensor representations, if we write and , then it is straightforward to see that the double-dot product will have coordinate representation defined by
[TABLE]
The definition also extends when one (or even both) of the tensors is a -tensor, i.e. a matrix, considering as an element in . In particular, for two matrices , we have
[TABLE]
that is, the double-dot product between two matrices corresponds to their trace-product. Moreover, it is straightforward to prove that, for , , , and we have
[TABLE]
We now turn to the connection between tensors and rank-metric codes.
4. Codes and Tensors
In the theory of rank-metric codes, a natural representation of the code is with respect to a generating tensor for it. It will become evident that this representation offers greater efficiency in terms of complexity of encoding and storage of the encoder.
The generator tensor essentially determines an encoding from the information space to the ambient matrix space . More specifically, for a given code , an encoder is a an -monomorphism
[TABLE]
The space of all such encoding maps is contained in the space , which is an -vector space of dimension . Moreover, we have that
[TABLE]
as -vector spaces. The isomorphism is explicitly given by:
[TABLE]
where
[TABLE]
This yields an analogue of the notion of a generator matrix for rank-metric codes, in the form of a 3-tensor.
Definition 4.1**.**
Let be an code. A generator tensor for code is an element such that .
Clearly, with respect to this definition, any generator tensor for a code is necessarily -nondegenerate. The complexity of realizing a code as the slice space of a tensor depends on the tensor rank of and hence it is of interest to give expressions of generating tensors as minimal sums of simple tensors, and moreover to obtain constructions of codes whose generating tensors have least possible tensor rank.
Let be a non-zero code, and let be generating tensors for . By Proposition 3.4 we have
[TABLE]
Therefore the following hold.
Proposition 4.2**.**
Let and be two generator tensors for the same rank-metric code . Then
[TABLE]
Furthermore, if is not the zero code, then this numbers equals the minimum such that is contained in the span of rank 1 matrices.
Definition 4.3**.**
Let be an code. The tensor rank of , denoted by , is defined to be the tensor rank of any generator tensor of . We say that is minimum tensor rank, or MTR in short, if it meets the bound of Theorem 3.6, that is, if
[TABLE]
If and are a pair of codes satisfying for an isometry , then any -base for yields the -base for . Therefore, Proposition 4.2 also implies that the tensor rank is invariant under code equivalence.
Proposition 4.4**.**
Let be equivalent codes. Then .
Let be an code with generator tensor . By the definition of a generator tensor, we have that . However, and also have an important role, as explained by the following result.
Proposition 4.5**.**
Let be an code with generator tensor . Then
[TABLE]
Proof.
Let be a basis of . Then is a generator tensor for . For any , we have that if and only if for each . This is true if and only if
[TABLE]
In particular is the kernel of the map
[TABLE]
hence . ∎
Remark 4.6**.**
As a consequence, the property of a rank-metric code of being nondegenerate can be read from its generator tensor. Indeed, is nondegenerate if and only if any of its generator tensors is both -nondegenerate and -nondegenerate.
Remark 4.7**.**
We note that some of the results of this section have been previously considered in the case of , due to the fact that MRD codes in this situation are in one-to-one correspondence with finite semifields; that is, nonassociative division algebras. Indeed, tensors and rank-metric codes in this case correspond to algebras which are not necessarily associative. Knuth [14] considered the cubical array of a semifield, which is precisely the co-ordinate tensor introduced in Section 3. The explicit tensor correspondence was outlined in [19] and developed in [16], where the tensor rank was proposed as an interesting invariant of a finite semifield, or equivalently its corresponding slice space.
4.1. A Connection with Linear Block Codes
In [3], the authors draw a connection between tensor rank and linear block codes. See also [4, Chapter 18] for an exposition. This connection provides a lower bound on the tensor rank in terms of the length of a block code hence one can apply coding theoretic bounds to get an estimate for . First, we define the following number from coding theory.
Definition 4.8**.**
For positive integers we define
[TABLE]
We will associate a linear block code with a rank-metric codes as follows. Let be an code with tensor rank . By Proposition 3.4, we can define the following.
Definition 4.9**.**
Let be an code with and tensor rank . A set of rank 1 matrices such that is called an -basis for .
Let be a linearly independent set of matrices of rank 1. We define an -linear isomorphism (c.f. [4, Theorem 18.4]):
[TABLE]
Definition 4.10**.**
Let be an code with tensor rank and let be an -basis for . We define the linear block code to be the image of under :
[TABLE]
For a generator tensor of an code , any element of can be expressed as
[TABLE]
for some . For , the image of element under is . In other words, we have that is simply the - block code with generator matrix .
Theorem 4.11** ([3]).**
Let be an - code with tensor rank . Let be an -basis for . Then the following hold.
- (1)
For every , . 2. (2)
* is an - code.* 3. (3)
* *
Proof.
Let , and let . Then any expression of as sum of rank one matrices requires at least such matrices in the sum. In particular, for some with at least of the values non-zero. Then clearly , proving the first statement. The next two statements follow immediately. ∎
Definition 4.12**.**
Let be an - code. We say that is tensor rank extremal if .
Indeed any lower bound on provides a lower bound on the tensor rank so the connection to linear block codes can be exploited. In particular, if meets the tensor-rank bound, that is, if , then code is an - code and is thus MDS.
For any pair of full-rank matrices and , define the -linear map
[TABLE]
Let , denote the th columns of and , respectively and let , with for each . Then
[TABLE]
for each in the span of . This is easy to see, for if for some , then we have
[TABLE]
This yields the following result.
Lemma 4.13**.**
Let be an code. Suppose that for some set of diagonal matrices and matrices and of ranks respectively. Let , denote the th columns of and , respectively, and define such that for each . Then .
In the next section, we shall be concerned with tensor rank extremal codes (those meeting the bound of Theorem 4.11) and in particular with constructions of codes meeting Kruskal’s tensor rank bound of (Theorem 3.6). One approach will be to view a rank-metric code in as the image of an -linear block code under . Then
[TABLE]
is an - code and in fact we have where such that for each .
We therefore have, using (6) and/or Lemma 4.13, the following rewriting of Theorem 4.11.
Corollary 4.14**.**
Let be a rank-metric code of dimension , minimum distance and tensor rank . Let be a -set of diagonal matrices and let for matrices of ranks respectively. The following hold
- (1)
For every , . 2. (2)
* is an code.* 3. (3)
If is tensor rank extremal, then the code is an -* code of length . In particular, if is MTR then the code is an MDS code.*
We have also obtained a new proof of the tensor-rank bound.
Corollary 4.15** (Tensor-rank bound).**
Let be a rank-metric code. Then
[TABLE]
4.2. Complexity
We have demonstrated how the encoding map from to the ambient space is represented for a rank metric code by a 3-tensor, namely its generator tensor. Let be a generator tensor for an - code of tensor rank . The message is encoded via
[TABLE]
where , and . We say that is in standard form if , and for matrices of the required sizes.
has storage complexity in the general case and requires storing up to symbols in if is in standard from. Note that the expression of the codeword as an -linear combination of rank one matrices is unique and as we outlined before, and are isomorphic. Thus is is sufficient to compute in order to represent elements of , once the generator tensor is known. The tensor encoding therefore requires multiplications and additions over for arbitrary of rank and multiplications and additions if is in standard form.
Of course, being an -space, we could also choose to use a generator matrix to represent the encoding map. This can be achieved by representing each element of as a vector of length by the obvious -isomorphism
[TABLE]
Then choose a generator matrix as the encoder. The storage complexity of is and if is in systematic form it requires symbols in . The encoding complexity of the computation for in standard form then requires multiplications and additions. We remark that the matrix can simply be obtained from the coordinate tensor representation of via where for , .
We summarize these observations in Table 1.
Since , the generator tensor approach in most cases offers complexity lower than that required by the generator matrix encoder. The number of symbols in required to store the standard form generator matrix exceeds that of the standard generator tensor if and only if
[TABLE]
We now study codes that meet the tensor-rank bound.
5. Tensor Rank Extremal Codes
In this section we consider existence questions on tensor rank extremal and MTR codes. Let , , be positive integers. We wish to determine for which , there exists an code of tensor rank and in particular, those for which .
Our approach to this problem is relies on Lemma 4.14, which gives a way to obtain tensor rank extremal codes from block codes of minimal length and hence MDS codes from MTR codes. A natural problem is to determine in which cases we can do the converse.
Problem 1**.**
Let be positive integers and let be positive integers satisfying . Find an - code and a pair of matrices such that the code is a rank-metric code of dimension , minimum distance and tensor rank (i.e., is a tensor rank extremal code).
An interesting special case is given by the following.
Problem 2**.**
Let be positive integers and let be positive integers satisfying . Find an - MDS code and a pair of matrices such that the code is a rank-metric code of dimension , minimum distance and tensor rank (i.e. is an MTR code).
The answer to these problems clearly depends on and . Indeed, one immediately observes that both and can not be smaller than . Moreover, we can use the Singleton-like bound of Theorem 2.3 to deduce that have to satisfy
[TABLE]
Definition 5.1**.**
Let be an - of length . Let and let . We say that is an extremal triple if it is a solution to Problem 1, i.e. if is a tensor rank extremal code.
With this notation, given positive integers , we wish to determine for which there exist matrices and an - code such that is an extremal triple. It is clear from the definition that this happens if and only if
[TABLE]
for every .
The following result will be useful to us in addressing this problem.
Lemma 5.2**.**
Let and let . Let and denote the row-spaces of and , respectively. Then
[TABLE]
Proof.
Suppose first that and both have full rank. For any , the rank of is the rank of the associated bilinear form on
[TABLE]
which is
[TABLE]
Now has full rank, and so and are isomorphic.
[TABLE]
Similarly, . Now consider the case and . There exist full rank matrices and such that and are full rank matrices with the same row-spaces as and , respectively. Then apply the above argument with in place of and with in place of to complete the proof. ∎
We fix some further notation. For an arbitrary matrix and element , we write to denote the row-space of and write to denote the row-space of .
It is clear that if for given parameters we have a tensor rank extremal code in , then we can construct a tensor rank extremal code in a larger ambient space for the same parameters . In terms of extremal triples, we can express this observation as follows.
Lemma 5.3**.**
Let be an - code. Let and such that is an extremal triple. Then for all integers , and for all the matrices such that and , is an extremal triple.
Proof.
Let be an extremal triple. Let such that and . Then, there exist such that
[TABLE]
Therefore, for every
[TABLE]
∎
In particular, this means that in our analysis of Problem 1 we may assume without loss of generality and are full rank matrices.
First we observe that in the case that at least one integer among and is greater or equal than , then it is easy to construct an extremal triple. Suppose that . Let be a - code and let be any full-rank matrices. By Sylvester’s inequality, we get that for every ,
[TABLE]
For the case , all columns of are linearly independent and so . For the case , . In either case the inequality of (8) is satisfied and clearly holds similarly with the assumption . It therefore only remains to consider the case .
Proposition 5.4**.**
Let be an - code. Let such that and .
- (1)
* is an extremal triple.* 2. (2)
*For every , * 3. (3)
*For every , * 4. (4)
*For every , * 5. (5)
*For every , *
Proof.
As we observed before, has tensor rank at most and dimension and so is tensor rank extremal if and only if it has minimum rank distance . Therefore, from Lemma 5.2, the equivalence of the first three statements is immediate. The equivalences between (2) and (4) and between (3) and (5) are a direct consequence of the dimension formula for the sum of two subspaces, which is .
The equivalences between (2) and (5) and between (3) and (4) follow from the fact that and that , for every subspace of . ∎
Proposition 5.5**.**
Let be positive integers satisfying and . Let be an - code and let such that and are MDS codes. If , then is an extremal triple.
Proof.
Let , with . Since and are MDS codes, we have and By the Frobenius rank inequality, we have
[TABLE]
It is easy to check that in all cases, under the assumption that , the right hand side of this inequality is at least . ∎
We conclude this section with particular construction of an extremal triple involving doubly-extended generalized Reed-Solomon codes or Cauchy codes [7, 22], which hence is a partial solution to Problem 2. Before doing this, we briefly recall some notation. For each , let denote the -space of homogeneous polynomials with degree strictly less than . Let denote the projective line over . For any
[TABLE]
we define the map
[TABLE]
Let . For any define the evaluation map
[TABLE]
and similarly for elements of
Definition 5.6** (see [7]).**
Let and let and let be pairwise distinct elements of . The Cauchy code is defined to be the set
[TABLE]
Observe that in our definition we allow the coefficients of to be zero, while the standard definition requires each . In particular, the Cauchy code as defined here is MDS if . However, for our purposes, we will sometimes require to have some zero coefficients.
Let denote the Schur product (or Hadamard product) of two vectors, which is the vector obtained after component-wise multiplication of two vectors of the same length. Then we have the expression
[TABLE]
The following result gives a construction of MTR codes of dimension and minimum rank distance , provided that . We will see later that in the case we can always find a construction of MTR codes for every . Therefore, the case analyzed here is the non-trivial one.
Theorem 5.7**.**
Let be positive integers satisfying and let be a vector such that are pairwise distinct. Let be an irreducible homogeneous polynomial of degree . Let , let be a parity check matrix of and let be a generator matrix of . Then is an extremal triple.
Proof.
In order to prove that is an extremal triple, we use the characterization given in Proposition 5.4, showing that for every we have . Let . Since is an MDS code with minimum distance , then . Moreover, the code is obtained from by multiplying the -th coordinate of every codeword by , that is, . Since is an MDS code of dimension , we have . We therefore need to show that
[TABLE]
Now for some non-zero , and so . Let . There exist , such that i.e.
[TABLE]
From the fact that and , we obtain . Therefore, since is irreducible, divides or . But and . This implies and . ∎
Example 5.8**.**
Let , , and let . Let be a generator of and let . The polynomial is irreducible in . Let be the - Reed-Solomon code . Let
[TABLE]
is a parity check matrix of , and is a generator matrix of . It can be checked that for each , we have is an extremal triple and the rank-metric code is an MTR - code of tensor rank and is in fact MRD.
Remark 5.9**.**
The storage complexity cost of the generator tensor for this class of MTR codes is at most . This bound is exceeded by the bound on the cost of encoding using a generator matrix as described in Section 4.2 (which is ) for all . The generator tensor encoding cost requires at most multiplications and additions, while the encoding costs required by a generator matrix requires up to multiplications and additions.
Remark 5.10**.**
The figure below gives a graphical description of the parameters for which Problem 2 is solved. That is, it represents the parameters for which we do have constructions of MTR codes, the parameters for which we know no MTR codes exist, and the parameters for which the problem is still open. We suppose that are fixed integers, and the axis show increasing and (the number of rows and the number of columns of the ambient matrix space). The black hyperbolae represent the Singleton-like bounds, and therefore below them there does not exist any MTR codes. The blue shading represent the construction of MTR codes described in Theorem 5.7 and its transpose. Moreover, by Lemma 5.3, the right-upper quarter-planes having those points as corner points have also a construction of MTR codes. The red line represents the solutions provided by Proposition 5.5, and again by Lemma 5.3; for each point on it, the right-upper quarter-plane starting from it has solution. As we can see, the area in between the Singleton-like bounds, the red line and the two upper-right quarter-planes starting from the blue dots is not solved yet. For this reason, in the following we will investigate codes which are not necessarily MTR, but have “small” tensor rank relative to their dimension and minimum distance.
?k$$d$$d$$k$$n$$mExistence of MTR Codes
5.1. Tensor rank of Delsarte-Gabidulin codes
In this subsection, we study the tensor rank of Delsarte-Gabidulin codes, which form the best understood family of rank-metric codes. We will give a precise computation of their tensor rank when the dimension of the code over the extension field is , and a non-trivial upper bound when this dimension is strictly greater than . In order to do this, we recall some well-known results on tensors over finite fields. In the literature, the computation of tensor rank of tensors over finite field was mainly studied for complexity purposes. Indeed, the tensor rank of some special tensors reveals the lowest complexity of some operations, such as multiplication between polynomials or between matrices. The interested reader is referred to [4] for a more complete exposition.
First, we need the following result, which ensures that the tensor rank of a vector code is well defined.
Proposition 5.11**.**
Let be a vector code, and let , be two bases of . Then .
Proof.
By Remark 2.10, we have that and are equivalent codes in , so the result follows by Proposition 4.4. ∎
Therefore, by Proposition 5.11, the notion of tensor rank of a vector code is well-defined, and we will denote by the tensor rank of any of its matrix representations.
Let be a fixed polynomial of degree . The map
[TABLE]
is clearly bilinear, and so can be represented by a tensor, which we denote by . We have the following result on the tensor rank of .
Proposition 5.12** ([4, Propositions 14.47, 14.48]).**
* over has tensor rank at least , and has tensor rank exactly if and only if .*
Lemma 5.13**.**
Let be an irreducible polynomial of degree , and let be a root of . Let and let . The tensor is the generator tensor of the -dimensional code .
Proof.
Let denote the companion matrix of the polynomial . Then the map has an associated matrix with respect to the basis . Thus,
[TABLE]
As an immediate corollary, we have a similar statement for the one-dimensional Delsarte-Gabidulin codes in .
Corollary 5.14**.**
Let be positive integers. The tensor is the generating tensor of a one-dimensional Delsarte-Gabidulin code in .
Proof.
Denote by the matrix associated to the map from to defined by
[TABLE]
with respect to the basis and . Then it is clear by definition that , where is the one-dimensional Delsarte-Gabidulin code in generated by the vector , and . Now, for every and every , . Therefore, for every , we have , which means that is equivalent to an -linear code in of dimension . All such codes are Delsarte-Gabidulin codes. ∎
Using the results above, we give an upper bound on the tensor rank of some special Delsarte-Gabidulin codes.
Proposition 5.15**.**
Let and let . For every , there exists a -dimensional Delsarte-Gabidulin code in of tensor rank at most .
Proof.
It is clear that every code in has tensor rank at most . Choose as a -dimensional Delsarte-Gabidulin code the code defined as an evaluation code on the points , where is a primitive element of over . Therefore, the code is the -span of one-dimensional Delsarte-Gabidulin codes of the form . For each , consider the basis
[TABLE]
Then, , which by Proposition 5.12, has tensor rank exactly , and the result follows. ∎
Remark 5.16**.**
The rank of the tensor for has been studied in connection with the algebraic complexity of multiplication in . This problem remains open in general. We refer to [17] for the case , and [1] for bounds in the case .
5.2. Codes with small tensor rank
In this subsection we give some constructions of codes with tensor rank bounded by above. In order to do that, we rely on the results given in the previous subsection about the tensor rank of Delsarte-Gabidulin codes. Before proceeding with these constructions, we give an auxiliary lemma.
Lemma 5.17**.**
Let be an code with tensor rank . Then there exists a subcode such that , and .
Proof.
Let be a rank-metric code with tensor rank , and let be an -basis for . Consider the code . Without loss of generality we may assume that is systematic in the first coordinates and so it has a generator matrix of the form
[TABLE]
Now let be the subcode of generated by all but the first row of . The code
[TABLE]
clearly has dimension and minimum distance . Moreover, since , we have . Therefore . ∎
Proposition 5.18**.**
Let be positive integers with and let . If then there exists an - code such that
[TABLE]
provided that .
Proof.
Let . There exists a Delsarte-Gabidulin code of dimension , minimum distance , and by Proposition 5.15, tensor rank at most . Let be a basis for . Then, the code is an - code and can be embedded in . Applying Lemma 5.17 times, we get an - code with . ∎
We now present a refinement of the previous construction, which yields a better upper bound.
Theorem 5.19**.**
Let be positive integers with , and . Then there exists an - code such that
[TABLE]
provided .
Proof.
Let . By hypothesis, . Let . There exists a Delsarte-Gabidulin code of dimension , minimum distance and, by Proposition 5.15, tensor rank at most . Let be a basis for . Then the code is an - code, which can be embedded in . Again, we iteratively apply Lemma 5.17 times to get a- code such that
[TABLE]
Remark 5.20**.**
In Proposition 5.18, the essential idea was to take a Delsarte-Gabidulin code whose elements are representable as square matrices, embed it in and iteratively obtain subcodes with decreasing tensor rank. In Theorem 5.19 we applied the same principle, but this time chose a Delsarte-Gabidulin code whose elements are representable as rectangular matrices. In the first case the initial code is a subspace of , while in the second the code is a subspace of . The fact that the latter construction gives a smaller upper bound on the tensor rank can be easily verified since and .
Remark 5.21**.**
In fact we stated this result in the most general case, even though we are more interested in the those parameters that are not covered by the constructions of MTR codes given at the beginning of this section. As a consequence of this result, we get the existence of MTR codes for the same parameters as those arising in Theorem 5.7, even though the constructions are quite different.
Corollary 5.22**.**
Let be positive integers with and . Then there exists an MTR code , provided that
Proof.
If , then by Theorem 5.19 we get an -code such that and we deduce the result by the tensor rank bound. ∎
Remark 5.23**.**
Observe in Corollary 5.22 we require , whereas the construction provided by Theorem 5.7 depends on the existence of a Cauchy code of length , which we always have for .
6. Generalized Ranks of a Code
In the sequel, we denote by the set of subspaces of that are generated by matrices of rank one.
Definition 6.1**.**
Let be an code with , and let be an integer. The -th generalized tensor rank of is
[TABLE]
It is easy to check that the set of generalized tensor ranks form a code invariant.
Proposition 6.2**.**
Equivalent codes have the same generalized tensor ranks.
The next result summarizes the main properties of the generalized ranks and explains the terminology. It also gives a new proof of the tensor rank bound (Corollary 4.15).
Theorem 6.3**.**
Let be a -dimensional code with . The following hold.
- (1)
. 2. (2)
. 3. (3)
For all we have . 4. (4)
For all we have . In particular, . 5. (5)
For all we have .
Proof.
- (1)
Let be a matrix with . Write , where each has rank one. Then attains the minimum in the definition of . 2. (2)
This follows from Proposition 4.2. 3. (3)
Let with and . Let be a hyperplane of with . Since , we have
[TABLE]
By definition, this implies that . 4. (4)
This follows combining (1), (2), and (3). 5. (5)
This follows from (2) and (3). ∎
An interesting application of generalized tensor ranks is the distinction of inequivalent codes, as the following example shows.
Example 6.4**.**
Let and . Let be the - code generated by the matrices
[TABLE]
and let be the - code generated by the matrices
[TABLE]
It can be checked that both and are MRD codes of dimension 4, and that their generalized tensor ranks are and , respectively. In particular, and are not equivalent.
A natural question is whether generalized tensor ranks satisfy a duality property analogous to that of generalized tensor rank weights [20, Corollary 38]. More generally, one may ask if the generalized tensor ranks of a code determine those of the dual code . The answer to this question is negative in general. In the following example, we exhibit two codes that have the same generalized tensor ranks, but whose duals have different generalized tensor ranks.
Example 6.5**.**
Let and . Let be the - code defined in Example 6.4, and let be the - code generated by the matrices
[TABLE]
Then and have the same dimension, the same minimum distance, and the same generalized tensor ranks, namely, . However, the tensor rank of is 14, and that of is 13.
7. Operations on Codes
As we have already seen in Section 4, the tensor representation of a rank-metric code is the analogue of the generator matrix in the linear block case. We now study the properties of the generator tensor of a code and what information can be read from it. In particular, we focus on operations on rank-metric codes and the corresponding operations on their generator tensors.
Let . For any , satisfying , , respectively, we denote by the matrix whose rows are those of indexed by and by the submatrix whose columns are those of indexed by .
Definition 7.1**.**
Let be a rank-metric code and and let . Let , satisfy , . We define the row-punctured and row-shortened codes of with respect to and by
[TABLE]
We define the column-punctured and column-shortened codes of with respect to and by
[TABLE]
Clearly,
[TABLE]
In particular every row-punctured code of has the form for some matrix of rank and every column-punctured code has the form for some matrix of rank .
Let be a generator tensor for and let . Then for unique . Let and let . Then
[TABLE]
In particular,
[TABLE]
Similarly, for any and , we have
[TABLE]
Clearly, is a generator tensor for (respectively is a generator tensor for ) if and only if it is -nondegenerate.
Proposition 7.2**.**
Let be an code, and let . The following are equivalent.
- (1)
. 2. (2)
For every and satisfying , the row-punctured code has dimension . 3. (3)
For every and satisfying , the column-punctured code has dimension .
Proof.
Let and let such that . The -linear epimorphism
[TABLE]
has non-trivial kernel if and only if for every non-zero . Since
[TABLE]
is an isomorphism if and only if . This establishes the equivalence of (1) and (2). Similarly, (1) and (3) are equivalent. ∎
Proposition 7.2, combined with (9), (10) and (11) immediately yield the following result.
Corollary 7.3**.**
Let be the generator tensor of an code , and let . The following are equivalent.
- (1)
. 2. (2)
For every and satisfying , is the generator tensor of . 3. (3)
For every and satisfying , is the generator tensor of . 4. (4)
For every of rank , . 5. (5)
For every of rank , .
7.1. The Parity Check Tensor
We define a parity check tensor of a rank-metric code.
Definition 7.4**.**
Let be an code and let . We say that is a parity check tensor for if
[TABLE]
Recall that for a pair of matrices and in ,
[TABLE]
This operation coincides with the tensor double-dot product when applied to matrices, i.e. .
Proposition 7.5**.**
Let , and let be an code. Then, is a generator tensor for if and only if it is a parity check tensor for .
Proof.
is a parity check tensor for if and only if for all . From (5), this holds if and only if
[TABLE]
for all and , which holds if and only if . ∎
Corollary 7.6**.**
Let be the generator tensor for an code . A -nondegenerate tensor is a parity check tensor for if and only if
[TABLE]
Let be a rank-metric code. We now express the shortened code of a rank-metric code in terms of its parity check tensor. It will be convenient to use the following duality result.
Theorem 7.7** (see [2, Theorem 3.5]).**
Let be a rank-metric code, , . Let with and let with .
[TABLE]
Corollary 7.8**.**
Let be the parity check tensor of an code , let and let . Let and . Then
- (1)
. 2. (2)
.
Proof.
By the duality statement of Theorem 7.7, we have
[TABLE]
By Proposition 7.5, is a generator tensor for and so by Eq. (10) we have
[TABLE]
showing that (1) holds. The proof that (2) holds is similar. ∎
Proposition 7.9**.**
Let be a rank-metric code and let . The following are equivalent.
- (1)
. 2. (2)
For every with , for every , . 3. (3)
For every with , for every , .
Proof.
From Proposition 7.2, if and only if and are isomorphic under the map The kernel of this map is , which shows the equivalence of (1) and (2). The equivalence of (1) and (3) follows similarly. ∎
As a direct consequence of Corollary 7.8 and Proposition 7.9, we get the following result that relates the minimum distance of a rank-metric code with any of its parity check tensors.
Corollary 7.10**.**
Let be the parity check tensor of an code , and let . The following are equivalent.
- (1)
. 2. (2)
for every of full rank, . 3. (3)
for every of full rank, .
Acknowledgement
Alessandro Neri would like to thank the hospitality of University College Dublin during his 6-month stay there, supported by the Swiss National Science Foundation mobility Grant n. 169510/2.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] S. Ballet, J. Pieltant, On the tensor rank of multiplication in any extension of 𝔽 2 subscript 𝔽 2 \mathbb{F}_{2} , J. Complexity 27 2 , pp. 230-245 (2011).
- 2[2] E. Byrne, A. Ravagnani, Covering Radius of Matrix Codes Endowed with the Rank Metric , SIAM Journal on Discrete Mathematics, 31 (2), pp. 927–944, 2017.
- 3[3] R. W. Brockett, D. Dobkin, On the Optimal Evaluation of a Set of Bilinear Forms , Linear Algebra and its Applications, 19 , pp. 207–235, 1978.
- 4[4] P. Bürgisser, M. Clausen, M. A. Shokrollahi, Algebraic Complexity Theory , Grundlehren der mathematischen Wissenschraften 315, Springer, 1997.
- 5[5] B. N. Cooperstein, Advanced Linear Algebra , Textbooks in Mathematics, CRC Press, 2015.
- 6[6] P. Delsarte, Bilinear Forms over a Finite Field with Applications to Coding Theory , Journal of Combinatorial Theory, Series A, 25 , 226–241, 1978.
- 7[7] A. Dür, The Decoding of Extended Reed-Solomon Codes , Discrete Mathematics 90 pp. 21–40, 1991.
- 8[8] E. Gabidulin, Theory of Codes with Maximum Rank Distance , Problems of Information Transmission, 2 , pp. 1–12, 1985.
