Manuscript Offprint
arXiv:2610.34404Maximum-Likelihood Decoding of Gabidulin Codes Is NP-Hard Even in Dimension One
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Philippe Gaborit
XLIM, Université de Limoges, France
Abstract. Fix a prime power . We prove that deciding whether a received word lies at rank distance at most from the one-dimensional Gabidulin code is NP-complete. Thus maximum-likelihood decoding of Gabidulin codes is NP-hard even for , an analogue of the Guruswami–Vardy theorem for Reed–Solomon codes. In the Hamming metric, by contrast, hardness at this radius requires the dimension to grow with the length, as in the Guruswami–Vardy theorem. The reduction is deterministic; consequently Rank Syndrome Decoding (RSD) and Rank Minimum Distance (RMD) for -linear codes are NP-complete under deterministic polynomial reductions, whereas the previously known reduction was randomized. The proof goes through a pivot problem that we introduce, Twisted Square Membership (TSM): given -subspaces , decide whether some non-zero satisfies . Quadratic systems in unknowns are encoded into TSM, then TSM into Gabidulin decoding. The last step views the received word as an -linear map and decoding at radius as the search for an -plane on which it acts as a scalar. With support in a cubic extension and map , two Frobenius twists force solution planes to encode the relation . All constructions are explicit and polynomial, with , , and .
Keywords: Rank metric · Gabidulin codes · NP-completeness · maximum-likelihood decoding · MinRank
1 Introduction
P. Gaborit
a particularly rigid case: for every fixed prime power q, decoding is NP-complete already for dimension-one Gabidulin codes at radius (Theorem 1).
This result fits into a longer line of hardness results for decoding. In the Hamming metric, Berlekamp, McEliece and van Tilborg proved that decoding a general linear code is NP-complete [5]; Vardy settled the corresponding minimum-distance problem [35], and Dumer, Micciancio and Sudan proved hardness of approximation [12]. Structured algebraic codes require separate arguments. Reed–Solomon codes admit polynomial-time decoding up to half the minimum distance, and the Guruswami–Sudan algorithm reaches the Johnson radius [23]; nevertheless, Guruswami and Vardy proved maximum-likelihood decoding NP-hard at radius over fields of exponential size [26]. Further hardness results connect bounded-distance decoding to discrete logarithms [8], cover algebraic-geometry codes under randomized reductions [7], and lower the NP-hard radius for Reed–Solomon codes to [20].
In the rank metric, a vector in is weighted by the -dimension of the space spanned by its coordinates rather than by the number of non-zero coordinates. Besides their coding-theoretic role, Gabidulin codes underlie error control in random linear network coding [27, 34] and have found applications in theoretical computer science, from explicit hitting sets for low-rank matrices [14] to list decoding via subspace designs [24, 22]; random Gabidulin codes achieve list decoding capacity [25]. On the complexity side, MinRank is NP-complete [6], and decoding an -linear code is an instance of MinRank. The -linear case is substantially more rigid. Gaborit and Zémor proved hardness for such rank-metric decoding problems through a randomized reduction from Hamming decoding [19], but no hardness result was known for maximum-likelihood decoding of Gabidulin codes themselves, to the best of our knowledge.
The question also matters in rank-based cryptography. The first rank-metric encryption scheme, due to Gabidulin, Paramonov and Tretjakov [18], is a McEliece-type construction based on a disguised Gabidulin code; Overbeck's structural attacks [30] motivated repaired variants, including Loidreau's scheme [29] and its subsequent cryptanalysis [9]. More directly related to this work, the Faure–Loidreau scheme [13] and its repaired version LIGA [31] rely on decoding Gabidulin codes beyond the unique-decoding radius. Our result concerns worst-case complexity only and does not address the particular parameters or instance distributions used by these cryptosystems; it places the underlying worst-case decoding problem on a firmer complexity-theoretic footing. Other rank-based constructions rely on rank syndrome decoding for random or quasi-cyclic -linear codes, including LRPC-based schemes [17, 1], the ROLLO and RQC candidates to the NIST post-quantum standardization process [3, 4], and rank-based signatures such as Durandal [2].
1.2 The idea of the method
The proof rests on three elementary observations whose combination is the key.
First, decoding becomes an eigenplane problem. For a dimension-one Gabidulin code , the received word can be viewed as an -linear map on the
-space spanned by the coordinates of , while the codeword corresponds to multiplication by . Decoding at radius is therefore equivalent to finding an -plane on which acts as a scalar, which we call an eigenplane.
Second, the eigenplane equation produces a twisted square. Because the received word is part of the constructed instance, we let act by different Frobenius twists on different parts of the support. Comparing and along an eigenplane yields . Thus the only non-linearity that must be encoded is the map . This leads to the pivot problem Twisted Square Membership (TSM): given subspaces , decide whether there exists a non-zero with . The linear membership constraints are built into the support, while the eigenplane equation supplies the non-linear relation.
Third, twisted squares encode homogeneous quadratic systems. The element is quadratic in the -coordinates of . With a suitable basis of , every homogeneous quadratic system can be represented by linear conditions on . Since such systems encode 3-SAT, TSM is NP-complete.
The complete reduction is therefore
with TSM separating the finite-field encoding of quadratic forms from the Gabidulin decoding construction.
1.3 Contributions and organization
Theorem 1 proves that, for every fixed prime power , deciding whether a received word lies at rank distance at most from a dimension-one Gabidulin code is NP-complete. Radius is always reachable, so is the first nontrivial radius. Maximum-likelihood decoding is therefore NP-hard as soon as the problem ceases to be trivial, already for . This is a rank-metric analogue of the Guruswami–Vardy theorem, with the notable difference that its Hamming-metric counterpart requires growing dimension; see Section 7.
The reduction is deterministic. As a consequence, rank syndrome decoding and rank minimum distance for general -linear codes are NP-complete under deterministic polynomial reductions, with rank minimum distance already hard for dimension-two codes (Corollaries 3 and 4). The previously known reduction for these problems was randomized [19].
A further contribution is the pivot problem TSM, a compact NP-complete problem over finite fields that may be of independent interest. The construction is fully explicit: the encoding exponents are given by a closed formula obtained by interleaving base-q expansions, and a quadratic system in unknowns leads to parameters , , and .
Organization. Section 2 recalls the necessary background and develops the eigenplane formulation and TSM. Section 3 states the main theorem and gives the complete reduction at a high level. Sections 4–6 prove its three steps. Section 7 derives the complexity consequences, and Section 8 discusses open questions and suggests some directions.
P. Gaborit
2 Background and preliminaries
This section gathers what the reduction needs. The first part recalls standard material: the rank metric, Gabidulin codes, the two decoding problems of rank-metric coding theory, and the two classical NP-complete problems, 3-SAT and homogeneous quadratic systems, from which we start. The second part contains the two ingredients specific to this paper: the reformulation of decoding in dimension one as the search for an eigenplane, and the pivot problem TSM.
2.1 Background: known problems
Throughout, is a fixed prime power. For , the rank is the dimension over of ; equivalently it is the rank of the matrix over whose -th column is the vector of coordinates of in a fixed basis of . The rank distance is . For instance, with , the vector has Hamming weight 3 but rank 2, its coordinates spanning : vanishing coordinates in the Hamming metric are replaced by -linear dependencies in the rank metric.
An -linear code of length and dimension has minimum rank distance at most ; this is the Singleton bound for the rank metric [11, 16], and codes meeting it are called maximum rank distance (MRD) codes. Let with . The Gabidulin code of dimension is where runs over the -polynomials with ; it is MRD, with minimum rank distance . For one has , so has minimum distance and unique decoding radius . At the other end, decoding at radius is easy: every received word lies at rank distance at most from the code, since for any coordinate the scalar makes the -th coordinate of vanish, so that its coordinates span a space of dimension at most . The first radius at which decoding is a non-trivial question is therefore .
We shall decode this code, but our conclusions concern the two general problems of rank-metric coding theory, which we recall now. An -linear code of length and dimension is given by a generator matrix or by a parity-check matrix . Both problems below are in NP, with or the codeword as certificate.
Definition 1 (rank syndrome decoding, RSD). Given , a syndrome and an integer , decide whether there exists with and .
Definition 2 (rank minimum distance, RMD). Given and an integer , decide whether the code generated by contains a non-zero codeword of rank at most .
RSD is equivalent to bounded-distance decoding, with input and question whether some codeword lies at rank distance at most from , since and , are computed from and in polynomial time.
Remark 1 (relation with MinRank). Identifying a vector of with its matrix of coordinates over , the codewords of an -linear code form an -space of matrices, and RSD asks for a matrix of rank at most in an affine space of matrices: this is an instance of MinRank. It is a structured one, since the matrix space is stable under multiplication by ; for the code , for instance, every non-zero matrix of the space has full rank . This gives RSD MinRank and not the converse, so the hardness of MinRank [6] does not transfer and a dedicated reduction is needed.
The source of our reduction is the satisfiability problem for formulas in 3-conjunctive normal form.
Definition 3 (3-SAT). An instance consists of Boolean variables and a formula . Each clause is a disjunction of three literals, a literal being either a variable or its negation . An assignment is a map ; it makes the literal true if , the literal true if , a clause true if at least one of its three literals is true, and true if all clauses are true. The question is whether there exists an assignment making true, in which case is satisfiable.
For instance is satisfiable, by , whatever the values of and . 3-SAT is the NP-complete problem of Cook and Levin [21]; the size of an instance is polynomial in . Its first translation is into quadratic systems, whose NP-completeness is classical as well [15, 21]; we use the homogeneous version.
Definition 4 (HomMQ). Given homogeneous quadratic forms in unknowns over , decide whether there exists , , with .
2.2 Preliminaries: the eigenplane formulation and the TSM pivot problem
We next specialize to the problem studied in this paper: decoding dimension-one Gabidulin codes at the first nontrivial radius.
Definition 5 (GabDec1). Given with , decide whether there exists such that .
This is RSD for , and ; it is in NP with as certificate. Radius is always reachable, as shown below, so is the first non-trivial radius.
The key to everything that follows is to read vectors as linear maps. Throughout the paper, has -linearly independent coordinates, and we call
the support of the code ; it is an -space of dimension , of which is a basis.
P. Gaborit
Definition 6 (the map ). For , we denote by the unique -linear map such that for , that is,
Lemma 1 (vectors as linear maps). The map is a bijection between and the set of -linear maps , whose inverse is . Under this bijection, the codeword corresponds to the multiplication by on , and corresponds to .
Proof. An -linear map on is determined by the images of the basis , and these images can be prescribed arbitrarily. The map attached to sends to , hence is by linearity; the last assertion follows since is -linear.
In particular, choosing a received word is the same as choosing an -linear map on the support; this is how received words will be constructed in Section 6.
Lemma 2.
Proof. The coordinates of are the images of a basis of , so they span ; conclude with the rank theorem.
Lemma 3 (eigenplane). There exists with if and only if there exist -linearly independent with .
Proof. If , two independent vectors of this kernel satisfy , whence . Conversely put ; the equation gives , and since is -linear the whole plane lies in its kernel.
For a single vector the condition is empty: any gives , which is why radius is trivial. In Lemma 3 the equation is written for one basis of the plane; in Section 6 we shall apply it to other pairs of vectors of the same plane, which the following lemma allows.
Lemma 4 (eigenplane equation for all pairs). Let be an -plane. The following are equivalent: (i) for one basis of ; (ii) for some ; (iii) for all .
Proof. (i) (ii) is the second half of the proof of Lemma 3, with . (ii) (iii): every satisfies , hence for , . (iii) (i) is a special case.
We call a plane satisfying these conditions a solution plane; by Lemma 2, the decoding instance is a yes-instance if and only if a solution plane exists.
The eigenplane formulation tells us what has to be encoded: a plane on which acts as a scalar. The reduction will be organized around an intermediate problem tailored to this, which we introduce now. Let . For we call the twisted square of : it is a square twisted by the Frobenius, and for it would be the norm to , but here will be odd.
Definition 7 (Twisted Square Membership, TSM). Given an integer and two -subspaces of by bases, decide whether there exists whose twisted square lies in .
The problem is in NP, with as certificate. Since is -linear, the twisted square is a quadratic form in the coordinates of , which is what allows TSM to encode HomMQ (Section 5); and it is the non-linear operation computed by an eigenplane equation, which is what allows TSM to embed into (Section 6). The condition on combines two constraints of the latter step: odd, so that , and prime to 3, so that a cubic extension of stays cubic over . We are not aware of TSM having been studied before.
3 Main result and overview of the reduction
We can now state the main result. It concerns the simplest Gabidulin codes, those of dimension one, at the first radius beyond which decoding is not trivial, ; in particular it does not depend on any special structure of the received word, which is part of the input. The field size q is fixed, while the length n and the extension degree m are part of the input and are polynomial in the size of the source formula.
Theorem 1. For every fixed prime power , is NP-complete. More precisely, a 3-SAT formula with variables and clauses is mapped in deterministic polynomial time to an instance with and , where , and .
Membership in NP was noted in Section 2. NP-hardness is proved by a reduction from 3-SAT in three steps,
each step being an equivalence between a yes-instance of one problem and a yes-instance of the next (Propositions 1, 2 and 3). Before giving the details, we describe the three steps once in a row, following the same object along the chain: a satisfying assignment of the formula becomes a non-zero solution x of a quadratic system, then a field element a, and finally a plane on which the received word acts as a scalar.
From 3-SAT to HomMQ. Given a formula with variables and clauses , we write a system of quadratic equations in unknowns over : an unknown which stands for the constant 1, one unknown per variable, which stands for its truth value, and one auxiliary unknown per clause. The equations say that and that at least one literal of each clause is true. The unknown is there to make all equations homogeneous: a satisfying assignment gives a solution with , and conversely homogeneity and the equations force any non-zero solution to have , hence to come from a satisfying assignment. This yields homogeneous quadratic forms such that is satisfiable if and only if the have a common zero .
P. Gaborit
From HomMQ to TSM. We encode the coordinates of into a single field element so that all the quadratic forms become linear conditions on its twisted square. We take with a generator , choose exponents , and encode as ; this identifies with the subspace , and with . Expanding gives with ; the exponents are chosen so that the are linearly independent, which means that "remembers" every monomial separately. Trace duality then provides, for each , an element with for all . Putting for all , the conditions become . This gives an instance of TSM that is a yes-instance if and only if the system has a non-zero solution.
From TSM to GabDec₁. From (U, W) we build a code and a received word, i.e. a support G and an -linear map on it, so that the eigenplanes of are exactly the planes with a solution of TSM. Three things must be imposed on a plane: its shape, and the two conditions of TSM. The linear conditions are placed in the support: inside a cubic extension , so that every vector of G is with , . The eigenplane equation, one equality in K, is then three equalities in E, one per coefficient on , and this is what the cubic extension is for. We take , two Frobenius twists with different exponents. Two of the three equalities force the plane to be ; the third compares the two twists and forces b to be the twisted square , up to a scalar of , so that . Conversely a solution a of TSM gives the eigenplane . Thus is a yes-instance exactly when is; the details are in Section 6.
The sizes are summarized in Table 1 at the end of Section 6. The three steps are now treated in turn, each in a self-contained section.
4 From 3-SAT to HomMQ
This first step is classical, and we include it because its two features, homogeneity and the special unknown , are used later. We start from a 3-SAT instance as in Section 2, with variables and clauses . We may assume , so that ; the trivial formula with no variable and no clause is satisfiable and is mapped to a fixed yes-instance. From such an instance we construct an instance of HomMQ: homogeneous quadratic forms in unknowns over such that the formula is satisfiable if and only if the forms have a common zero .
The translation is the natural one. A truth value becomes an element of , encoded by the equation . A literal is represented by a linear expression which vanishes exactly when the literal is true, and a clause is true when the product of the three expressions of its literals vanishes; since this product has degree three, an auxiliary unknown is introduced per clause to split it into equations of degree two. Finally, the constant 1 is replaced by an unknown , for the reason explained below.
The role of the unknown for homogenization. We recall here the standard technique of homogenization [10], and explain why it is needed. The unknown is imposed by the pivot problem TSM (Twisted Square Membership) to which the quadratic system will be reduced in Section 5. The twisted square is a homogeneous quadratic form in the coordinates of : every monomial is a product , with no constant and no linear term. Through trace duality, only homogeneous equations of degree two can therefore be encoded into TSM. The natural equations are not homogeneous: a Boolean value satisfies , which has a linear term, and a clause involves the constant 1. We therefore homogenize: the constant 1 is replaced by a new unknown and every linear term by , which turns an equation of degree at most two into the homogeneous equation ; geometrically, this passes from an affine variety to its projective closure [10, Ch. 8]. Its effect on solutions is the following. If , every equation can be divided by , and the solution divided by is a solution of the original system with . If , the equations become , so , and likewise for the auxiliary unknowns, so that the solution is zero. Thus the homogenization creates no spurious solution, provided one asks for a non-zero solution, which is exactly what HomMQ does.
For instance, consider the single clause . Without , it is encoded by the equations and , which cannot be fed to TSM. With , the equations become , , and , all homogeneous of degree two. The assignment , gives the solution . Over , the vector is also a solution; it describes the same assignment, recovered by dividing by . Setting forces .
Concretely, the unknowns are , one unknown per variable , and one auxiliary unknown per clause , so that . To a literal we associate the linear form
which, for , vanishes exactly when the literal is true. For a clause we write . The system consists of the following equations, of the first kind and of the other three, so that :
The first family says that is a truth value, the third defines as , and the last one then says , i.e. that one literal of is true; the second family only normalizes .
Before proving that this system does what we want, let us see it on a small case. As a running example, take the formula consisting of the single clause , so that , and . The unknowns are , the literal forms are , , , and the system consists of the equations
P. Gaborit
The assignment , gives the solution , and indeed . In the notation of Section 5, where the unknowns are numbered , , , , , the fifth equation reads , with coefficients , , and all others zero.
It remains to verify that satisfying assignments correspond exactly to non-zero solutions. The only point requiring care is that a non-zero solution must have .
Proposition 1. The formula is satisfiable if and only if the system has a non-zero solution in .
Proof. Given a satisfying assignment, set , its value and ; the last equation holds since one literal of is true, so . Conversely let be a non-zero solution. If the first two equations give , hence ; so , and by homogeneity we may take . Then defines an assignment, , and says that a literal of each clause is true.
The output of this step, the list of the left-hand sides above, read as forms in the unknowns , , is the input of Section 5.
5 From HomMQ to TSM
We start from an instance of HomMQ, that is, homogeneous quadratic forms in unknowns over , for instance those produced in Section 4, and we construct an instance of TSM, that is, a field with (mod 6) and two subspaces given by bases, such that the forms have a common zero if and only if some has (Proposition 2). The plan is to encode the unknown vector by a single element of a field , chosen so that every form can be read off by a linear operation. Two tools make this possible. Trace duality (Section 5.1) expresses every -linear form on as and lets us prescribe the values of such a form on independent elements. An explicit choice of exponents (Section 5.2) ensures that, when is raised to the power , each monomial comes with its own independent coefficient in , so that the forms can be prescribed freely. The encoding itself and the proof of the equivalence are in Section 5.3.
5.1 Trace duality
Let and , an -linear map which is not identically zero, being a polynomial of degree .
Lemma 5. Every -linear form on is for a unique . Consequently, if are -linearly independent and , there exists with for all , computable by linear algebra.
Proof. If , is a bijection of , so is not zero. Hence is an injective linear map between two spaces of dimension , thus bijective. For the second claim, complete the into a basis and prescribe a linear form on it.
5.2 Choice of exponents
Let us first see what is needed. The unknown will be encoded as , where generates over and are integers to be chosen. Since for , the twisted square expands as
So the twisted square is the sum, over all ordered pairs , of the monomial times the power . We want to recover each monomial from by a linear operation, and this is possible as soon as the powers are linearly independent over , which holds when the exponents are pairwise distinct and smaller than , since is a basis. The condition on the exponents is thus
(★) the integers ( ) are pairwise distinct,
the case giving ; and the size of the largest of them will dictate , hence the size of the whole construction. We therefore want integers satisfying which are as small as possible.
The idea of the construction is that should display and side by side, without interference. Write in base and dilate its expansion, placing its coefficients on the even positions; the odd positions are then free, and multiplying by shifts a number by one position. Thus occupies the even positions and the odd ones, and the sum is simply the interleaving of the two base-q expansions, from which and are read off. Formally, for an integer with base-q expansion , with coefficients , put
and set . For , gives , and the first exponents are 0, 1, 4, 5, 16.
Lemma 6. The integers are strictly increasing, satisfy , and . Hence all integers of are at most .
Proof. is strictly increasing, since it preserves the lexicographic comparison of coefficients. Let and be the base-q coefficients of and . Then : the coefficients of sit on even positions, those of on odd positions, and all are smaller than , so the two expansions interleave
P. Gaborit
and this is the base-q expansion of the sum, with coefficients By uniqueness of the expansion, the even positions give back and the odd positions , so the ordered pair is recovered and holds. For instance, for and , , whose even positions read and odd positions read . Finally gives , whence .
5.3 The encoding and the reduction
We now fix the field and encode the unknown. Let be the smallest integer with and , so ; the congruence will be used in Section 6. We build with irreducible of degree , found in deterministic polynomial time by Shoup's algorithm [33], and let be the class of . Since is the minimal polynomial of , the powers form an -basis of : a non-trivial relation would give a non-zero polynomial of degree less than vanishing at .
The quadratic-system unknown is encoded as follows. The unknown is a single vector : its coordinate is the value given to the -th unknown of the system, with the numbering , the values of and the last coordinates the values of the , as in the example of Section 4; is the value of the -th equation at this point, and we look for with for all . The aim of this step is to replace the coordinates of by one element of the field . Let , a subspace of dimension since the are distinct elements of a basis, and define
Thus the are the coordinates of in the basis of , and is an -linear bijection: looking for or looking for is the same thing, and if and only if . For and one has , and : each monomial of the system comes out with its own coefficient in , which is the point of the encoding. In general, since ,
By Lemma 6 and , the elements involve pairwise disjoint sets of basis vectors , , and are therefore linearly independent over .
Write , where is the coefficient of the monomial in the -th equation; the coordinates of are the values of , of the and of the , in this order, as in the example of Section 4. For instance the equation reads , so that , and all other coefficients vanish. Since the are independent, Lemma 5 lets us prescribe a linear form on them: we choose with for all . Since
and the trace is -linear,
Finally put , a subspace computed by linear algebra.
Proposition 2. The quadratic system has a non-zero solution if and only if is a yes-instance of TSM.
Proof. Let and . Since is a linear bijection, if and only if . By definition of , if and only if for all , and by the choice of the this reads for all . Hence if is a common zero of the , then is a non-zero element of with ; conversely, if satisfies , then is non-zero and for all .
Corollary 1. For every fixed prime power q, TSM is NP-complete under deterministic polynomial-time reductions.
Proof. TSM is in NP: a certificate is , and the conditions and are checked by linear algebra over . NP-hardness follows from Propositions 1 and 2, whose composition is a deterministic polynomial-time reduction from 3-SAT to TSM.
This completes the second step. Its output is the instance of TSM, with given by the basis and by a basis computed from the ; all the non-linearity of the quadratic system is now carried by the single operation , and the two remaining conditions, and , are linear. The next section shows how a Gabidulin decoding instance can impose exactly these three things.
6 From TSM to GabDec
6.1 What has to be shown
Section 5 turned a homogeneous quadratic system into an instance of TSM: a field with , and two subspaces given by bases, such that the system has a non-zero solution if and only if some has . All the non-linearity of the original problem is now carried by the twisted square , while the conditions and are linear. In this last step we start from such an instance and construct an instance of GabDec , that is, a field , a vector of rank and a received word , such that some satisfies if and only if some has . The received word is not given, it is designed.
P. Gaborit
By Lemma 3, the decoding instance is a yes-instance exactly when some plane of the support satisfies the eigenplane equation. One direction consists in exhibiting such a plane from a solution of TSM. The converse is the heart of the proof: we show that every solution plane is necessarily of the form with and . The construction and the proof are organized as follows. In Section 6.2 we build a cubic extension of , in which one equality splits into three independent equalities in , one per coefficient on ; this is what allows a single eigenplane equation to impose several conditions. In Section 6.3 we choose the code, through its support , so that the two linear conditions of TSM are built into the code itself. In Section 6.4 we choose the received word, , made of two Frobenius twists with different exponents, and check that it is a legitimate received word. Finally, in Section 6.5, we read the eigenplane equation coefficient by coefficient: the coefficients on 1 and force the shape , the coefficient on forces , and this proves the equivalence (Proposition 3) and the main theorem.
6.2 The field K
We first build the field in which the code will live. Fix once and for all an irreducible polynomial of degree 3; it depends only on , and it exists since the field exists and the minimal polynomial over of a generator of its cyclic multiplicative group is irreducible of degree 3 (for , ); it is found by exhaustive search in constant time. Put and let be the class of .
Lemma 7. K is a field, , and is a basis of K over E.
Proof. An irreducible polynomial of degree 3 over factors over into irreducible factors of equal degree, and since . Hence stays irreducible over , , and is a basis by the argument used for .
Every is thus written uniquely with , and an equality in is equivalent to three equalities in , one for each power of ; we call the component of on .
6.3 The code
With in hand we choose the code, that is, its support. Recall from Section 2 that a code is determined by the vector , whose coordinates are -linearly independent, and that its support is the -space of dimension spanned by these coordinates: is a basis of , a received word is an -linear map , and decoding asks for a plane of on which acts as a scalar. Choosing the code thus amounts to choosing together with a basis. Since the expected plane contains a vector and a vector with , we take
The sum is direct, because 1 and are linearly independent over , so, writing (with , since is cut out by linear conditions), . We choose the extension field with , and for the concatenation of the basis of and of for a basis of (computed by linear algebra from the ); this is an -basis of , so . Note that , so that radius makes sense. Moreover since , hence
so that the code satisfies the length constraint of Gabidulin codes.
6.4 The received word
The code being fixed, it remains to choose the received word; this is where the twisted square is produced. Since is ours to choose, and since by Section 2 received words correspond exactly to -linear maps , we define the map and deduce from it. Every element of is uniquely with , , so it suffices to give . We set
(*)
Lemma 8. The map (*) is -linear. The corresponding received word is for and for , and is computed in polynomial time.
Proof. The map is linear; and are additive and satisfy for ; the multiplication by is linear.
The two Frobenius twists have distinct exponents on purpose: equal exponents on and would force the plane to be as well, but would only give , whereas the exponents and produce . For and in , the components of on are
of degree at most 2 in , so no reduction modulo R occurs.
6.5 The shape of solution planes
We prove the converse direction by showing that every solution plane has the form . The first lemma is the elementary fact that makes the coefficients on 1 and useful.
Lemma 9. Let be non-zero with . Then .
Proof. Put . Dividing by gives . Since , also . Write ; applying times gives , hence , and .
P. Gaborit
This is the only place where the parity of N is used.
Lemma 10. If a plane satisfies for some , then with and .
Proof. By Lemma 4, for all and in we have , and the components on 1 and give and . Let , the image of under the linear map ; it is a subspace of . If , take linearly independent and realizing them: the first relation and Lemma 9 give , a contradiction. Hence , and likewise for , using . The map , , is linear and injective, so . Thus , with , the map is bijective, and and belong to .
Note that the argument never assumes that a particular basis of L has nonzero components: it works on the projections A and B of the whole plane. With the shape of solution planes in hand, the coefficient on finishes the job, and the converse direction is a direct computation.
Proposition 3. There exists with if and only if there exists with .
Proof. Assume the decoding instance is a yes-instance. By Lemmas 2 and 10, some plane with and lies in . The component on of the equality reads . Dividing by gives , and since , the element satisfies , so ; this is where the exponent of TSM arises. Since is an -subspace, .
Conversely let with , put , so that , and . Then and . By linearity , a plane since the sum is direct, lies in , and Lemma 2 gives .
6.6 Proof of Theorem 1
All three steps are now established, and we can prove the main theorem, which we recall.
Theorem 1. For every fixed prime power , is NP-complete. More precisely, a 3-SAT formula with variables and clauses is mapped in deterministic polynomial time to an instance with and , where , and .
Proof. Membership in NP. Given , a certificate is ; the rank of is computed by Gaussian elimination over on its matrix of coordinates, in polynomial time.
NP-hardness. Let be a 3-SAT formula with variables and clauses, and . Section 4 produces homogeneous quadratic forms in unknowns, with , such that is satisfiable if and only if they have a common zero (Proposition 1). Section 5 produces from them an instance of TSM, with and , such that the forms have a common zero if and only if some has (Proposition 2). Section 6 produces from an instance of GabDec over , of length , such that some satisfies if and only if is a yes-instance (Proposition 3). Composing the three equivalences, is satisfiable if and only if is a yes-instance of GabDec.
Polynomial time. Each object of the construction is computed deterministically in time polynomial in , with the sizes of Table 1: the exponents are given by a closed formula (Lemma 6); the irreducible polynomial of degree defining is found by Shoup's algorithm [33]; the polynomial of degree 3 defining depends only on ; the elements , the basis of , the vector and the received word are obtained by linear algebra over in dimension (Lemmas 5 and 8). Since is fixed, , and the elements of forming and have coordinates each over , so that the output instance has size symbols of , polynomial in the size of the formula.
Remark 2 (representation of finite fields). The answer does not depend on how finite fields are represented. We take , with found by Shoup's deterministic algorithm [33] in time polynomial in for fixed , and . If the input must give by a single irreducible polynomial of degree , one computes by the same algorithm and an explicit isomorphism by Lenstra's deterministic algorithm [28], and outputs . Since restricts to an automorphism of , it is semilinear over and preserves rank weights; as , the two instances have the same answer.
Table 1. Sizes in the reduction, for a formula with variables and clauses, , and fixed .
| Object | Size | Construction |
|---|---|---|
| exponents | (Lemma 6) | |
| field | irreducible polynomial [33] | |
| field | fixed degree-3 polynomial | |
| polynomial | linear algebra | |
| code | with ; Gab(g,1) | |
| radius |
P. Gaborit
7 Consequences
7.1 Complexity consequences
We first derive the consequence for Gabidulin codes, then turn to the general problems RSD and RMD from Section 2. Maximum-likelihood decoding of a code consists in finding, for a received word, a closest codeword.
Corollary 2. For every fixed prime power q, maximum-likelihood decoding of Gabidulin codes is NP-hard under deterministic polynomial reductions, already for codes of dimension k = 1.
Proof. For , a maximum-likelihood decoder applied to returns some with . Comparing this rank with decides , which is NP-complete by Theorem 1.
This holds for the simplest codes of the family, which have dimension one and minimum distance n.
We next consider RSD and RMD.
Corollary 3. RSD, the rank syndrome decoding problem for -linear codes, is NP-complete under deterministic polynomial reductions.
Proof. From an instance of , compute a parity-check matrix of and . The solutions of are exactly the vectors , so a solution of rank at most exists if and only if the instance of is a yes-instance.
Corollary 4. RMD, the rank minimum distance problem for -linear codes, is NP-complete under deterministic polynomial reductions, already for codes of dimension 2.
Proof. From consider and . If , which is tested by linear algebra, the instance of is a yes-instance and we output any fixed yes-instance; otherwise has dimension 2. Multiplication by a non-zero scalar is an -linear bijection of , hence preserves rank. A codeword with and therefore has rank , while a codeword with equals with and has rank . Hence has a non-zero codeword of rank at most if and only if the instance of is a yes-instance.
These problems underlie rank-based cryptography. Gaborit and Zémor [19] established their hardness through a randomized reduction from Hamming decoding; Corollaries 3 and 4 give NP-completeness under deterministic reductions. Their reduction covers constant rate and small weight, ours is restricted to dimension one or two and to large radius; the two results are complementary. The result can also be seen as the rank-metric counterpart of the Guruswami–Vardy theorem [26].
7.2 Comparison with the Hamming metric
It is instructive to compare with the Hamming metric. There, any linear code of fixed dimension is decoded at radius in polynomial time: a codeword at that distance agrees with the received word on positions, and one may enumerate the candidate position sets and solve a linear system for each. For the Reed–Solomon code is the repetition code and the problem is trivial; this is why the Guruswami–Vardy theorem needs a growing dimension. In the rank metric the agreement set is an -subspace rather than a subset, there are candidates, and Theorem 1 shows that the problem is hard already for . The same contrast explains why the Guruswami–Vardy reduction does not transfer: it encodes a subset-sum instance into the freedom of choosing which positions to keep, a freedom which does not exist for subspaces, so that the hard constraints must be written, as here, into the field structure of .
Several questions remain open and are discussed in Section 8.
8 Discussion and open questions
The reduction proves hardness in a specific regime: dimension one, radius , and an extension degree . Each of these three parameters raises a natural question, namely how far the radius can be lowered, whether the extension degree can be brought down to the values used in cryptography, and whether the dimension can be increased. We discuss them in turn, together with directions that seem interesting to explore.
Below radius . For , radius asks for an eigenspace of dimension instead of a plane. One might try to use summands in the support, , with , where the would be powers of whose pairwise products are linearly independent over ; a Sidon set of exponents could provide this with an extension of moderate degree. If the coefficientwise reading of the eigenplane equation were to go through as in Section 6, the same pivot problem might give hardness at radius , at the price of a larger extension degree. Whether this works, down to which radius, and with which trade-off between the radius and , remains to be investigated.
Square codes. The parameters produced by the reduction are not those most often used in practice: our instances have , whereas rank-based cryptosystems frequently work with square or nearly square codes, or close to , which also give the smallest extension field for a given length. The complexity of decoding in this regime is open. A heuristic count suggests that radius may not be the right place to look for it: a random word has on average about scalars within that distance, which is large when . If yes-instances are indeed typical in this regime, which the expectation alone does not prove and which would not exclude worst-case hardness, the natural question for square codes would be at smaller radius.
P. Gaborit
Higher dimensions. Decoding Gab(g, k) at radius asks for a -dimensional space on which agrees with a q-polynomial of q-degree less than k. A direction that seems promising is to compose a dimension-one instance with linearized polynomials of q-degree one, such as : when , which requires a suitable choice of since , replacing by would raise both the dimension of the agreement space and the q-degree by one, whereas merely adding coordinates cannot help. The difficulty would be to control the solutions that such a lifting may create without coming from the original instance; if they could be characterized and avoided by a suitable choice of , the present core could serve as the base case of an induction on k.
9 Conclusion
Decoding a Gabidulin code of dimension one at radius , the first radius at which the question is not trivial, is NP-complete. Maximum-likelihood decoding of Gabidulin codes is therefore NP-hard already in dimension one, where its Hamming-metric counterpart is easy, and rank syndrome decoding and rank minimum distance for -linear codes are NP-complete under deterministic reductions, where only a randomized reduction was known. The proof rests on a single idea: once the received word is read as an -linear map, decoding becomes the search for an eigenplane, and two Frobenius twists on the support turn that eigenplane equation into the pivot problem TSM, which encodes 3-SAT.
Our result is a first step towards understanding the complexity of decoding Gabidulin codes beyond the unique decoding radius. It raises natural questions on how far hardness extends, in the dimension of the code, in the decoding radius, and towards the square parameters of cryptography, which will require further investigation.
Acknowledgment. AI tools (Claude, Anthropic, and ChatGPT, OpenAI) were used during the preparation of this manuscript for language editing, IATEX assistance, and exploratory discussions. All mathematical statements, proofs, and conclusions were independently verified by the author, who takes full responsibility for the content.
References
-
Aragon, N., Gaborit, P., Hauteville, A., Ruatta, O., Zémor, G.: Low rank parity check codes: new decoding algorithms and applications to cryptography. IEEE Trans. Inf. Theory 65(12), 7697–7717 (2019)
-
Aragon, N., Blazy, O., Gaborit, P., Hauteville, A., Zémor, G.: Durandal: a rank metric based signature scheme. In: EUROCRYPT 2019, LNCS 11478, pp. 728–758 (2019)
-
Aragon, N., Blazy, O., Deneuville, J.-C., Gaborit, P., Hauteville, A., Ruatta, O., Tillich, J.-P., Zémor, G., et al.: ROLLO – Rank-Ouroboros, LAKE and LOCKER. Submission to the NIST post-quantum cryptography standardization process (2019)
-
Aguilar Melchor, C., Aragon, N., Bettaieb, S., Bidoux, L., Blazy, O., Deneuville, J.-C., Gaborit, P., Zémor, G., et al.: Rank Quasi-Cyclic (RQC). Submission to the NIST post-quantum cryptography standardization process (2019)
-
Berlekamp, E.R., McEliece, R.J., van Tilborg, H.C.A.: On the inherent intractability of certain coding problems. IEEE Trans. Inf. Theory 24(3), 384–386 (1978)
-
Buss, J.F., Frandsen, G.S., Shallit, J.O.: The computational complexity of some problems of linear algebra. J. Comput. Syst. Sci. 58(3), 572–596 (1999)
-
Cheng, Q.: Hard problems of algebraic geometry codes. IEEE Trans. Inf. Theory 54(1), 402–406 (2008)
-
Cheng, Q., Wan, D.: On the list and bounded distance decodability of Reed–Solomon codes. SIAM J. Comput. 37(1), 195–209 (2007)
-
Coggia, D., Couvreur, A.: On the security of a Loidreau rank metric code based encryption scheme. Des. Codes Cryptogr. 88, 1941–1957 (2020)
-
Cox, D.A., Little, J., O'Shea, D.: Ideals, Varieties, and Algorithms, 4th edn. Undergraduate Texts in Mathematics, Springer (2015)
-
Delsarte, P.: Bilinear forms over a finite field, with applications to coding theory. J. Combin. Theory Ser. A 25, 226–241 (1978)
-
Dumer, I., Micciancio, D., Sudan, M.: Hardness of approximating the minimum distance of a linear code. IEEE Trans. Inf. Theory 49(1), 22–37 (2003)
-
Faure, C., Loidreau, P.: A new public-key cryptosystem based on the problem of reconstructing p-polynomials. In: Coding and Cryptography, WCC 2005, LNCS 3969, pp. 304–315 (2006)
-
Forbes, M.A., Shpilka, A.: On identity testing of tensors, low-rank recovery and compressed sensing. In: STOC 2012, pp. 163–172 (2012)
-
Fraenkel, A.S., Yesha, Y.: Complexity of problems in games, graphs and algebraic equations. Discrete Appl. Math. 1, 15–30 (1979)
-
Gabidulin, E.M.: Theory of codes with maximum rank distance. Probl. Inf. Transm. 21(1), 1–12 (1985)
-
Gaborit, P., Murat, G., Ruatta, O., Zémor, G.: Low rank parity check codes and their application to cryptography. In: WCC 2013 (2013)
-
Gabidulin, E.M., Paramonov, A.V., Tretjakov, O.V.: Ideals over a non-commutative ring and their application in cryptology. In: EUROCRYPT 1991, LNCS 547, pp. 482–489 (1991)
-
Gaborit, P., Zémor, G.: On the hardness of the decoding and the minimum distance problems for rank codes. IEEE Trans. Inf. Theory 62(12), 7245–7252 (2016)
-
Gandikota, V., Ghazi, B., Grigorescu, E.: NP-hardness of Reed–Solomon decoding and the Prouhet–Tarry–Escott problem. In: FOCS 2015, pp. 760–773 (2015)
-
Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. W.H. Freeman (1979)
-
Guruswami, V., Kopparty, S.: Explicit subspace designs. In: FOCS 2013, pp. 608–617 (2013)
-
Guruswami, V., Sudan, M.: Improved decoding of Reed–Solomon and algebraic-geometry codes. IEEE Trans. Inf. Theory 45(6), 1757–1767 (1999)
-
Guruswami, V., Xing, C.: List decoding Reed–Solomon, algebraic-geometric, and Gabidulin subcodes up to the Singleton bound. In: STOC 2013, pp. 843–852 (2013)
-
Guo, Z., Xing, C., Yuan, C., Zhang, Z.: Random Gabidulin codes achieve list decoding capacity in the rank metric. In: FOCS 2024, pp. 1846–1873 (2024)
-
Guruswami, V., Vardy, A.: Maximum-likelihood decoding of Reed–Solomon codes is NP-hard. IEEE Trans. Inf. Theory 51(7), 2249–2256 (2005)
-
Koetter, R., Kschischang, F.R.: Coding for errors and erasures in random network coding. IEEE Trans. Inf. Theory 54(8), 3579–3591 (2008)
P. Gaborit
-
Lenstra, H.W., Jr.: Finding isomorphisms between finite fields. Math. Comp. 56(193), 329–347 (1991)
-
Loidreau, P.: A new rank metric codes based encryption scheme. In: PQCrypto 2017, LNCS 10346, pp. 3–17 (2017)
-
Overbeck, R.: Structural attacks for public key cryptosystems based on Gabidulin codes. J. Cryptology 21(2), 280–301 (2008)
-
Renner, J., Puchinger, S., Wachter-Zeh, A.: LIGA: a cryptosystem based on the hardness of rank-metric list and interleaved decoding. Des. Codes Cryptogr. 89, 1279–1319 (2021)
-
Raviv, N., Wachter-Zeh, A.: Some Gabidulin codes cannot be list decoded efficiently at any radius. IEEE Trans. Inf. Theory 62(4), 1605–1615 (2016)
-
Shoup, V.: New algorithms for finding irreducible polynomials over finite fields. Math. Comp. 54(189), 435–447 (1990)
-
Silva, D., Kschischang, F.R., Koetter, R.: A rank-metric approach to error control in random network coding. IEEE Trans. Inf. Theory 54(9), 3951–3967 (2008)
-
Vardy, A.: The intractability of computing the minimum distance of a code. IEEE Trans. Inf. Theory 43(6), 1757–1766 (1997)
-
Wachter-Zeh, A.: Bounds on list decoding of rank-metric codes. IEEE Trans. Inf. Theory 59(11), 7268–7277 (2013)