arXiv:2610.40825cs.CCOct 2026

Manuscript Offprint

arXiv:2610.40825

On the NP-Hardness of Rank-Metric Minimum Distance and Syndrome Decoding, at Every Rate

Venkata Gandikota, Vatsal Jha, S. Venkitesh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In this work, we investigate the hardness of computing minimum distance, as well as the hardness of syndrome decoding, for rank-metric codes. It is known (Gaborit and Zémor, IEEE TIT 2016) that for Fqm\mathbb{F}_{q^m}-linear rank-metric codes of length NN, minimum distance when m=O(N)m = O(N) and syndrome decoding when m=O(N2)m = O(N^2) are NP-hard under randomized reductions. We obtain a derandomization of these results, and a bit more.

We show that for any fixed small ε>0\varepsilon > 0, for Fqm\mathbb{F}_{q^m}-linear rank-metric codes of length NN with m=O(N1+ε)m = O(N^{1+\varepsilon}), the problems of minimum distance, nearest codeword, and syndrome decoding are NP-hard under deterministic reductions. Further, we can prescribe the rate, that is, if we restrict to codes having any fixed rational rate R∈(0,1)R \in (0,1), then the NP-hardness for all three problems persists.

Our main technical contribution is simple, and possibly of independent interest. The reduction of Gaborit and Zémor (IEEE TIT 2016) relies on a distance-preserving embedding of a Hamming-metric code into a rank-metric code, obtained by multiplying its coordinates by a uniformly random vector. We show that we can choose an explicit vector from a slightly larger extension field.

*Syracuse University †Purdue University ‡Ben-Gurion University of the Negev

1 Introduction

The theory of error-correcting codes is concerned with encoding messages in a structured way, so that they can be recovered even after being subject to noise. Two notions that are vital to such recovery are the redundancy introduced by incorporating additional information derived from the message symbols into the codeword symbols, and the separation between distinct codewords. The tradeoff between these two requirements is central to the study of error-correcting codes.

Codes and distance functions. A code is a nonempty subset C⊆ΣNC \subseteq \Sigma^N over a finite alphabet Σ\Sigma, with a distance function on ΣN\Sigma^N representing the model of noise. One of the prototypical models uses the Hamming distance across coordinates. Even more structured is the setting of linear codes, where the alphabet is a finite field Fq\mathbb{F}_q. A linear code C≤FqNC \leq \mathbb{F}_q^N is an Fq\mathbb{F}_q-linear subspace, and its minimum distance dH(C)d_H(C) is the least Hamming weight of a nonzero codeword. Computing dH(C)d_H(C) is the minimum distance problem (MDP). In the nearest codeword problem (NCP), we instead seek a codeword closest to a given word. This is equivalent to syndrome decoding (SD). These are basic computational problems in coding theory. Syndrome decoding was proved NP-complete in [BMT78]; the same was later proved for minimum distance in [Var97]. Subsequent work established NP-hardness of approximation within any constant factor under randomized [DMS03] and then deterministic reductions [CW12; AK11; BGR25].

Yet another important model is to expand codewords over an extension field to obtain a matrix over a base field, and replace the Hamming distance across coordinates by the rank distance. The resulting codes are called rank-metric codes, and these are the focus of our work. For x∈FqmNx \in \mathbb{F}_{q^m}^N, the rank weight is wR(x):=dim⁡Fq(⟨x1,…,xN⟩Fq)w_R(x) := \dim_{\mathbb{F}_q}(\langle x_1, \ldots, x_N \rangle_{\mathbb{F}_q}), the rank of the m×Nm \times N matrix over Fq\mathbb{F}_q obtained by coordinate expansion in a basis of Fqm\mathbb{F}_{q^m} over Fq\mathbb{F}_q. An Fqm\mathbb{F}_{q^m}-linear rank-metric code is an Fqm\mathbb{F}_{q^m}-subspace C≤FqmNC \leq \mathbb{F}_{q^m}^N. Introduced in [Del78; Gab85], these are the rank-metric counterparts of Hamming linear codes. Gabidulin codes are the analogue of Reed–Solomon codes. They are used in network coding and form the basis of rank-based cryptography, whose security rests on rank syndrome decoding hardness.

It must be noted that rank-metric codes are different from the related matrix codes. A matrix code is an arbitrary Fq\mathbb{F}_q-subspace of FqM×N\mathbb{F}_q^{M \times N}, for any number of rows MM. Placing a Hamming word on a matrix diagonal preserves its weight [Cou01], so hardness in the Hamming metric implies hardness for matrix codes. The related MinRank problem is NP-complete [BFS99]. An Fqm\mathbb{F}_{q^m}-linear code must also be closed under multiplication by Fqm\mathbb{F}_{q^m}, which the diagonal embedding need not ensure. The known hardness results for Fqm\mathbb{F}_{q^m}-linear rank-metric codes use the randomized reduction of [GZ16]: multiply the coordinates of a Hamming code CC by α∈(Fqm∗)N\alpha \in (\mathbb{F}_{q^m}^*)^N and take the Fqm\mathbb{F}_{q^m}-linear span Dα(C)FqmD_\alpha(C)_{\mathbb{F}_{q^m}}. For uniformly random α\alpha and m>2qNm > 2qN, this code's rank distance equals dH(C)d_H(C) with high probability [GZ16, Thm. 8]. Their randomized reduction for rank syndrome decoding requires m>N2m > N^2 [GZ16, Thm. 10]. These reductions only exclude ZPP algorithms unless NP = ZPP. We ask whether these reductions can be made deterministic.

Is the minimum distance problem for Fqm\mathbb{F}_{q^m}-linear rank-metric codes NP-hard under deterministic reductions? Does this hold at every fixed rate?

The first part was open even for exact minimum distance without parameter restrictions. We also prescribe the rate R=dim⁡Fqm(C)/NR = \dim_{\mathbb{F}_{q^m}}(C)/N, which is fixed in applications such as rank-based cryptography. Our reductions produce hard instances at every rational rate R∈(0,1)R \in (0,1), while retaining positive relative distance and a threshold proportional to the length.

References (24)