Abstract 1 Introduction 2 Representatives of Largest Weight 3 Optimal One-Sided Sparsifiers (Proof of Main Theorems) References

On the Hardness of the One-Sided Code Sparsifier Problem

Elena Grigorescu ORCID David R. Cheriton School of Computer Science, University of Waterloo, Canada Alice Moayyedi ORCID David R. Cheriton School of Computer Science, University of Waterloo, Canada
Abstract

The notion of code sparsification was introduced by Khanna, Putterman and Sudan (SODA 2024) as an analogue to the more established notion of cut sparsification in graphs and hypergraphs. In particular, for α(0,1), an (unweighted) one-sided α-sparsifier for a linear code 𝒞𝐅2n is a subset S[n] such that the weight of each codeword projected onto the coordinates in S is preserved up to an α fraction. Recently, Gharan and Sahami (arXiv:2502.02799) show the existence of one-sided 12-sparsifiers of size n/2+O(kn) for any linear code, where k is the dimension of 𝒞. In this paper, we consider the computational problem of finding a one-sided 12-sparsifier of minimal size, and show that it is NP-hard, via a reduction from the classical nearest codeword problem. We also show hardness of approximation results.

Keywords and phrases:
Code sparsifiers, NP-hardness, Approximation hardness
Copyright and License:
[Uncaptioned image] © Elena Grigorescu and Alice Moayyedi; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Error-correcting codes
Editors:
Meena Mahajan, Florin Manea, Annabelle McIver, and Nguyễn Kim Thắng

1 Introduction

For α(0,1), a one-sided α-sparsifier for a code 𝒞𝐅2n is a set S[n] such that the projection of any codeword c𝒞 onto S results in a vector cS whose weight is preserved up to an α-factor, namely that wt(cS)αwt(c). Here wt(c)=|{ici0}|, the number of nonzero elements in c.

The notion of (weighted) two-sided code sparsifiers was recently introduced by Khanna, Putterman, and Sudan [7], as an analogue of the notion of cut sparsifiers for graphs and hypergraphs [6], which have been studied even more broadly in the context of constraint satisfaction problems [9]. Recently, Gharan and Sahami [5] study the unweighted one-sided code sparsifier problem for linear codes (i.e. subspaces). They give an elegant short proof of the existence of one-sided 12-sparsifiers of size n/2+O(kn), where k=log|C| is the dimension of C.

Here we study the computational problem of finding one-sided unweighted 12-sparsifiers, defined as follows.

Minimal One-Sided 12-Sparsifier Problem (OptHalfSparsifier)
Instance: A linear code 𝒞, given by its generators.
Output: A set S[n] such that:

  • (Feasibility) for all c𝒞, wt(cS)12wt(c);

  • (Optimality) S is of smallest size among all sets that satisfy the above.

To the best of our knowledge, the complexity of finding minimum-sized sparsifiers has not been studied before. We show the following hardness results.

Theorem 1.

(Hardness of OptHalfSparsifier) OptHalfSparsifier is 𝖭𝖯-hard.

In fact, our results hold more generally:

Theorem 2.

(Approximation Hardness of OptHalfSparsifier) Let S[n] be a one-sided 12-sparsifier of minimal size for a linear code 𝒞. The problem of finding a one-sided 12-sparsifier S[n] for 𝒞 such that γ|S¯||S¯| (where S¯=[n]S) is:

  • 𝖭𝖯-hard for any constant γ1;

  • with γ=2log1ϵn for any constant ϵ>0, impossible to solve in polynomial time assuming 𝖭𝖯𝖣𝖳𝖨𝖬𝖤(2logO(1)n);

  • with γ=nc/loglogn for some constant c>0, impossible to solve in polynomial time assuming 𝖭𝖯δ>0𝖣𝖳𝖨𝖬𝖤(2nδ).

Our proofs show Turing reductions from the fundamental problem of computing a nearest codeword to a received string, as defined below.

Nearest Codeword Problem (NCP)
Instance: A linear code 𝒞 given by its generators, a received string s𝐅2n, and an integer k.
Output: (YES) if there exists c𝒞 such that wt(c+s)k, and (NO) otherwise.

The NP-hardness of the nearest codeword problem was first shown by Vardy [11], followed by proofs by Dumer, Micciancio, and Sudan [4] of the hardness of the problem for promise additive and multiplicative approximation versions, under RUR reductions. A sequence of follow-ups [8, 1, 10, 3, 2] have now established that the multiplicative approximation variant is NP-hard under deterministic Karp reductions.

1.1 Preliminaries

Let 𝒞 be a linear code over 𝐅2n; that is, 𝒞 is a subset of 𝐅2n such that c,c𝒞c+c𝒞. We may define a linear code 𝒞 as the span of the columns of a matrix M; in this case, we call M the generator matrix of 𝒞, and we call the columns of M the generators of 𝒞. We say that 𝒞 has dimension k if |𝒞|=2k. For h𝐅2n, h+𝒞 is called an affine subspace, or a coset of 𝒞 in 𝐅2n.

We denote by 𝟎 and 𝟏 the all-zeroes and the all-ones vectors, respectively, in 𝐅2n.

We define the weight of a string s𝐅2n, wt(s), as the number of nonzero coordinates of s. For a set of coordinates S[n] and a string c𝐅2n, we define cS as the projection of c onto the coordinates in S.

Definition 3.

A set S[n] is α-thin with respect to 𝒞 if for every codeword c𝒞,

wt(cS)αwt(c).

Likewise, we call a set S α-thick with respect to 𝒞 if wt(cS)αwt(c) for all c𝒞. If we identify the set S with its indicator vector s𝐅2n, the weight wt(cs) is equal to the weight wt(cS), where is the Schur or element-wise product. We say that a string s is α-thin or α-thick with respect to a code 𝒞 exactly when its corresponding set S is. Note that the complement of an α-thin set or string is a (1α)-thick set or string, and vice versa. We denote by S¯ the complement of the set S with respect to [n].

The terminology α-thin is by analogy to α-thinness in the context of graphs. An α-thin subgraph (usually, a tree) of a graph G is a subgraph TG such that, for any cut δ(S) of G, the number of edges in T which are in δ(S) is at most an α fraction of the total number of edges in δ(S). This notion corresponds directly to the above definition of α-thinness in linear codes via the following relation:

Given a graph G=(V,E), we define the incidence matrix M as a |V|×|E| matrix such that for vV,eE,

Mi,e={1if ve0if ve

That is, Mv,e=1 exactly when e is incident on v, and Mv,e=0 otherwise. If we use M as the generator matrix for a linear code C(M), then the α-thin subgraphs of G correspond to the α-thin sets of E with respect to C(M). If we define α-thick subgraphs as the complements of α-thin subgraphs, these also correspond to the α-thick sets of E.

There is also a direct correspondence between this notion of α-thickness and the notion of a one-sided α-sparsifier. If a set is α-thick with respect to a code 𝒞, it is also a one-sided α-sparsifier for that code, and vice versa.

In Section 3, we use the following hardness of approximation theorem for the nearest codeword problem [11, 4, 8, 1, 10, 3, 2].

Theorem 4.

Given an affine subspace V𝐅2n and an integer k>0, there is no polynomial-time algorithm which distinguishes between the following cases:

  • (YES): there exists xV with wt(x)k.

  • (NO): for all xV, it is the case that wt(x)γk.

  1. 1.

    when γ>1 is a constant, assuming P𝖭𝖯

  2. 2.

    when γ=2log1ϵn, for any ϵ, assuming 𝖭𝖯𝖣𝖳𝖨𝖬𝖤(2logO(1)n)

  3. 3.

    when γ=nc/loglogn, for some c>0, assuming 𝖭𝖯δ>0𝖣𝖳𝖨𝖬𝖤(2nδ).

1.2 Organization

In Section 2 we give a structural theorem of 12-thick sets. We use this to show that the problem of finding 12-thick sets is strongly related to the nearest codeword problem. In Section 3 we reduce NCP to the problem of finding optimal 12-thick sets (equivalently, optimal one-sided 12-sparsifiers) through this relationship, proving the main theorems.

2 Representatives of Largest Weight

In this section we characterise 12-thick sets, and connect them to the nearest codewords of elements in the same coset.

For a linear code 𝒞𝐅2n, we consider the quotient space 𝐅2n/𝒞. The equivalence classes or cosets H𝐅2n/𝒞 are the sets of strings such that h,hHh+h𝒞 and hH,sHh+s𝒞. For a given coset H, we define the set HH to be the set of strings in H of largest weight; H={hH:wt(h)=maxhHwt(h)}. Our first theorem is a characterisation of the 12-thick strings in a given coset:

Theorem 5.

For a member h of a coset H𝐅2n/𝒞, the following are equivalent:

  1. 1.

    h is among the elements of H of greatest weight;

  2. 2.

    h is 12-thick with respect to 𝒞;

  3. 3.

    The all-zeroes string, 𝟎, is a nearest codeword to the complement of h, h¯ (that is, h+𝟏).

We prove Theorem 5 in two parts: Lemma 6 (equivalence of 1. and 2.) and Lemma 7 (equivalence of 1. and 3.).

We say that c𝒞 is a nearest codeword to a string s𝐅2n when the Hamming distance between s and c, wt(s+c), is minimal among all elements of 𝒞. In general, we denote the complement of a string s as s¯, and the all-zeroes and all-ones strings as 𝟎 and 𝟏 respectively. Note that s¯=s+𝟏.

Lemma 6.

1. and 2. above are equivalent.

Proof.

Oveis Gharan and Sahami [5] present a proof that 1. implies 2., which we will briefly reproduce here for completeness. Suppose that hH is a string of maximal weight among strings in H, and suppose that h is not 12-thick with respect to 𝒞; that is, c𝒞 such that wt(ch)<12wt(c). Take the string h=h+c, noting that hH. We must have that wt(h)>wt(h), since ch<ch¯ – adding c turns more coordinates of h to one than it turns to zero. This contradicts the assumption that h is of maximal weight among strings in H; hence, h is 12-thick with respect to 𝒞.

Now, to show that 2. implies 1., suppose that hH is a 12-thick string, and that there is some hH such that wt(h)>wt(h). Then consider the codeword c=h+h, with c𝒞. Since c+h=h, and wt(h)>wt(h), we must have that wt(ch)<wt(ch¯); hence, wt(ch)<12wt(c). Then h is not 12-thick, a contradiction; any 12-thick string must be of maximal weight among its equivalence class.

Lemma 7.

1. and 3. above are equivalent.

Proof.

To show that 1. implies 3., take some hH of maximal weight, and suppose that there exists some codeword c𝒞 such that wt(c+h¯)<wt(h¯+𝟎)=wt(h¯). Then, noting that for any a𝐅2n, wt(a)=nwt(a¯)=nwt(a+𝟏), we have that:

wt(c+h¯)<wt(h¯)iffnwt(𝟏+c+h¯)<nwt(h)iffwt(c+h)>wt(h).

Hence c+h is an element of H of greater weight than h, a contradiction. More intuitively, if h¯ is closer to c than to 𝟎, it must be the case that it shares more coordinates with c than it has zero coordinates. Then h must differ on more coordinates with c than it has nonzero coordinates – so h+c, the string consisting of all coordinates in which h and c differ, must be of higher weight than h itself. So 𝟎 must be a nearest codeword in 𝒞 to h¯.

To show that 3. implies 1., suppose that hH is of less than maximal weight; that is, there is some hH with wt(h)>wt(h). Then c=h+h is a codeword in 𝒞 which is closer to h¯ than 𝟎:

wt(h¯)<wt(h¯)iffwt((h+h)+h¯)<wt(h¯)iffwt(c+h¯)<wt(h¯)

So 𝟎 is not a nearest codeword to h¯; if 𝟎 is a nearest codeword to some h¯ with hH, h is of maximal weight among elements of H.

This concludes the proof of Theorem 5.

The fundamental property at hand here is that the operation of shifting by some constant string is an isometry; once the nearest (or furthest) codewords of one element h of a coset H have been determined, the nearest codewords of every other element h in H are fully determined by the difference between h and h. Thus, since any element in the coset H must have some nearest codewords, there must be some elements of H which have any particular codeword as their nearest codeword – if hH has c as a nearest codeword, h+(c+c) has c as a nearest codeword. The elements of 𝟏+H which are closest to 𝟎 – corresponding to the elements of H which are furthest from 𝟎 – must therefore not merely be closer to 𝟎 than any other element of 𝟏+H, but also closer to 𝟎 than they are to any other element of 𝒞. This allows us to extract from H knowledge of the nearest codewords of every element of 𝟏+H:

Theorem 8.

Let H𝐅2n/𝒞 be some equivalence class and H be the set of strings of maximal weight in H. Consider any string hH and any string hH. Their sum, h+h, is a codeword in 𝒞 of minimum Hamming distance from h¯. Likewise, for any h, the codewords C of minimum Hamming distance from h¯ are of the form h+h for some hH.

Proof.

Take any hH and hH, and suppose that there exists some string c𝒞 such that wt(h¯+c)<wt(h¯+(h+h)). Then:

nwt(h+c)<nwt(h)iffwt(h+c)>wt(h).

Since h+c is in H, and elements of H have maximum weight among elements of H, this is a contradiction; no such c can exist. Furthermore, wt(h¯+(h+h))=nwt(h), which is the same quantity for all hH; hence, all codewords of the form h+h have equal and minimal Hamming distance from h¯. This proves the first direction. For the second direction, suppose that there exists a codeword c𝒞 of minimum Hamming distance from h¯; that is, wt(h¯+c)wt(h¯+(h+h)) for any hH. By the first direction, this is an equality; wt(h¯+c)=wt(h¯+(h+h)), since if wt(h¯+c)<wt(h¯+(h+h)) then h+h would not be a nearest codeword to h¯. Then wt(h+c)=wt(h); as h+cH, it must be the case that h+cH. So c=h+(h+c)=h+h for some hH. This proves the second direction.

Alternatively, we may observe that since 𝟎 is a nearest codeword to h¯, 𝟎+c=c must be a nearest codeword to h¯+c; that is, if c=h+h, then c is a nearest codeword to h¯+(h+h)=h¯. The inverse direction follows straightforwardly by reversing the argument.

This also demonstrates that, for any elements h,h in some coset H of 𝐅2n/𝒞, the nearest codewords in 𝒞 to h are the same distance from h as the nearest codewords to h. We can therefore talk about the “distance” of a coset from the code; the distance of a coset H to 𝒞 is the distance from any element of H to its nearest codewords in 𝒞. Since 𝟎 is always a codeword in any linear code, and the elements of minimum weight in a given coset must have 𝟎 as a nearest codeword, the distance of any coset is equal to the minimum weight among elements in that coset, minwt(H).

Since the 12-thick strings in a coset directly correspond to the nearest codewords of elements in that coset, we have the following:

Corollary 9.

Given a linear code 𝒞𝐅n, and integer k, the problem of determining whether a string in a given coset of 𝒞 in 𝐅2n exists of weight at least k, or equivalently whether the weight of the 12-thick elements in a given coset are at least k, is 𝖭𝖯-complete, under deterministic Karp reductions.

Proof.

This problem is obviously in 𝖭𝖯; we can certify any (YES) instance with a string of weight at least k in the given coset. We show 𝖭𝖯-hardness by reduction from the nearest codeword problem, as defined in Section 1.

Let CosetHeavy be the problem above:

Heaviest Element Problem (CosetHeavy)
Instance: A generator matrix M for a linear code 𝒞, a string h in an equivalence class H𝐅2n/𝒞, and an integer k.
Output: (YES) if there exists hH such that wt(h)k, and (NO) otherwise.

We define the mapping from NCP to CosetHeavy instances as follows:

(M,s,k)(M,s¯,nk)

This map can obviously be computed in polynomial time.

Suppose that the NCP instance (M,s,k) is a (YES) instance; there exists some c𝒞, with 𝒞 the linear code generated by M, such that wt(c+s)k. Then, specifically, the distance between c+s and 𝟎wt(c+s+𝟎) – is also at most k. So, following Theorem 8, there exists a string in the coset containing s of 𝒞 in 𝐅2n with weight at most k; there exists a string in the coset containing s¯ with weight at least nk. So the CosetHeavy instance (M,s¯,nk) is a (YES) instance.

Now suppose that the CosetHeavy instance is a (YES) instance. Then there is a string in the coset H containing s with weight at most k, and for any element of H there is a codeword in 𝒞 of distance at most k; the NCP instance is a (YES) instance.

Thus, NCP p CosetHeavy, and CosetHeavy is 𝖭𝖯-complete.

Note that this reduction is in fact surjective, and NCPpCosetHeavy.

3 Optimal One-Sided Sparsifiers (Proof of Main Theorems)

Of course, in order to sparsify a code, we are not actually interested in finding the 12-thick strings among a particular coset. Instead, we are interested in finding the 12-thick strings among all strings in 𝐅2n. Specifically, we are interested in the problem of finding the smallest strings which are 12-thick. We call a string an optimal α-thick (thin) string with respect to a code 𝒞 if it is α-thick (thin) with respect to 𝒞 and it is of least (resp. greatest) weight among all α-thick (thin) strings. Similarly, we call a set an optimal α-thick set if it is of smallest size among such sets.

Corollary 10.

The optimal 12-thick strings with respect to a code 𝒞 are exactly the complements of the strings of greatest weight which have 𝟎 as a nearest codeword in 𝒞.

Proof.

By Theorem 5, the 12-thick strings with respect to a code 𝒞 are exactly the complements of the strings which have 𝟎 as a nearest codeword – the 12-thin strings with respect to 𝒞. Further, the 12-thick strings of least weight are the complements of the 12-thin strings of greatest weight.

In fact, since the distance to the nearest codeword is constant among all elements of a given coset of 𝒞 in 𝐅2n, the cosets containing the optimal 12-thin strings are those where every element is of greatest distance to their nearest codewords. The cosets containing the optimal 12-thick strings, then, are cosets obtained by adding 𝟏 to the cosets containing the optimal 12-thin strings (note that in a code containing the codeword 𝟏, the cosets containing the optimal 12-thin strings are the same as the cosets containing the optimal 12-thick strings).

Theorem 1. [Restated, see original statement.]

(Hardness of OptHalfSparsifier) OptHalfSparsifier is 𝖭𝖯-hard.

Proof.

We demonstrate this by polynomial-time Turing reduction from NCP. We restate the problem for convenience:

Minimal One-Sided 12-Sparsifier Problem (OptHalfSparsifier)
Instance: A linear code 𝒞 given by its generators.
Output: A set S[n] such that:

  • (Feasibility) for all c𝒞, wt(cS)12c;

  • (Optimality) S is of smallest size among all sets which satisfy the above.

Algorithm 1 Solving NCP using OptHalfSparsifier.

We use Algorithm 1. This algorithm terminates in at most ndim(𝒞) calls to the OptHalfSparsifier subroutine, with O(nk) extra runtime: since ai𝒞i for all i, the dimension of 𝒞i+1 is one greater than the dimension of 𝒞i for all i. When the dimension of 𝒞i is n, then it must be the case that s𝒞i; thus, the loop at line 1 is run at most ndim(𝒞) times.

It remains to show correctness. We wish to maintain the invariant that, for each i, the distance from s to the nearest codeword in 𝒞i is no closer than the distance from s to the nearest codeword in 𝒞. So, towards a proof by contradiction, suppose that there is some i such that 𝒞i+1 has an element nearer to s than the nearest element in 𝒞i. Note that since 𝒞i+1=𝒞i(ai+𝒞i), if 𝒞i+1 has an element closer to s than all elements in 𝒞i, that element must be in ai+𝒞i. So we have:

minwt(s+𝒞i)>minwt(s+ai+𝒞i)
iff minwt(s+𝒞i)>minwt(s+hi¯+s+𝒞i)
iff minwt(s+𝒞i)>minwt(hi¯+𝒞i)

Where, for S𝐅2n, minwt(S) is the smallest weight among elements of S. Thus, the smallest weight among elements of the coset s+𝒞i is larger than the smallest weight among elements of the coset hi¯+𝒞i. But then the largest element in the coset s¯+𝒞i is smaller than the largest element in the coset hi. By Theorem 5, all largest elements of any coset are 12-thick, and the largest element of s¯+𝒞i is 12-thick; thus, hi cannot be a 12-thick string of minimal weight among all 12-thick strings, a contradiction. So 𝒞i+1 cannot have any elements nearer to s than the nearest elements in 𝒞i; by induction, 𝒞i has no closer elements to s than does 𝒞 for any i.

We can see this property more intuitively by noting that adding a basis element to a linear code combines pairs of cosets which differ by that element; the maximal (minimal) elements in the resulting coset will be the maximal (minimal) elements among the two. Thus, given that the coset containing h¯ contains a largest minimal element among any coset, the coset (h¯+𝒞i)(s¯+𝒞i) of 𝒞i+1 will contain the minimal element of s¯+𝒞i as a minimal element; repeatedly merging cosets in this manner never moves the coset containing s “closer” to the code.

Given this invariant, we proceed to show that the two conditionals on line 2 and line 3 can only be satisfied if the instance is a (YES) or (NO) instance respectively. We begin with line 2. Since hi¯ is a string of greatest distance from any codeword in 𝒞i, and has 𝟎 as a nearest codeword, if wt(hi¯)=nwt(hi)k, then the greatest distance from any string among elements in 𝒞i is at most k; thus, there must be a codeword in 𝒞i at least that close to s. By the invariant above, there also must be a codeword in 𝒞 which is that close, and the NCP instance (M,s,k) is a (YES) instance. To show that the conditional on line 3 is satisfied only for (NO) instances, note that if hi¯+s𝒞i, then s is in a coset with hi¯. This implies that the distance from s to its nearest codewords in 𝒞i is the same as that of hi¯ to its nearest codewords; since hi¯ has 𝟎 as a nearest codeword, the distance from s to its nearest codeword is exactly wt(hi¯)=nwt(hi). Since the conditional on line 2 was not satisfied, then, there exists no codeword in 𝒞i which has distance at most k from s. Since 𝒞i𝒞, there exists no codeword in 𝒞 of at most that distance, and the NCP instance (M,s,k) is a (NO) instance.

We therefore have a polynomial-time Turing reduction from NCP to OptHalfSparsifier, and OptHalfSparsifier is 𝖭𝖯-hard.

From known hardness of approximation results ([2]) of NCP, we can also derive similar results for the OptHalfSparsifier problem.

Theorem 2. [Restated, see original statement.]

(Approximation Hardness of OptHalfSparsifier) Let S[n] be a one-sided 12-sparsifier of minimal size for a linear code 𝒞. The problem of finding a one-sided 12-sparsifier S[n] for 𝒞 such that γ|S¯||S¯| (where S¯=[n]S) is:

  • 𝖭𝖯-hard for any constant γ1;

  • with γ=2log1ϵn for any constant ϵ>0, impossible to solve in polynomial time assuming 𝖭𝖯𝖣𝖳𝖨𝖬𝖤(2logO(1)n);

  • with γ=nc/loglogn for some constant c>0, impossible to solve in polynomial time assuming 𝖭𝖯δ>0𝖣𝖳𝖨𝖬𝖤(2nδ).

Proof.

This follows directly from the algorithm above and the hardness of approximation of NCP given by Theorem 4. Suppose that instead of an algorithm which solves OptHalfSparsifier, we have an algorithm which solves the following approximation of OptHalfSparsifier:

γ-Approximate Minimal One-Sided 12-Sparsifier Problem (ApproxOHSγ)
Instance: A linear code 𝒞 given by its generators.
Output: A set S[n] such that:

  • (Feasibility) for all c𝒞, wt(cS)12c;

  • (Approximate Optimality) if S is a set which satisfies the above feasibility condition, then γ|S¯||S¯|

If γ=1, then this problem is OptHalfSparsifier. Note that the multiplicative factor here is a constraint not on the size of the set itself, but the size of its conjugate; it is trivial to find a 12-thick set with a size within a factor of 2 of that of the smallest 12-thick set, by simply taking every coordinate which is represented among codewords in 𝒞. It is easy to see from this that approximation up to a constant factor of the set size is trivial.

Given such a subroutine we can use Algorithm 1 to approximate NCP, solving the following problem:

Nearest Codeword Problem with Multiplicative Gap γ (MultGapNCPγ)
Instance: A generator matrix M for a linear code 𝒞, a received string s𝐅2n, and an integer k.
Output: (YES) if there exists c𝒞 such that wt(c+s)k. (NO) if for every c𝒞, wt(c+s)>γk.

To show that this reduction goes through, we follow the previous proof with a small modification: instead of maintaining that the augmented codes 𝒞i each have no codewords closer to s than the closest codewords in 𝒞, we maintain that each 𝒞i has no codewords outside of 𝒞 of distance smaller than k to s. We note first that if hi+𝒞i has a distance from 𝒞i at most k, then we will have answered (YES) during that iteration of the loop at line 1; we only proceed to add hi+s to the generator matrix if hi+𝒞i is further from 𝒞i than k. Thus, the set (s+ai+𝒞i)=(hi¯+𝒞i) has a distance from 𝒞 no smaller than k. Formally, minwt(s+ai+𝒞i)=minwt(hi¯+𝒞i)>k.

The reduction from MultGapNCPγ to ApproxOHSγ then follows from the same arguments as in the proof of Theorem 1. Briefly, if the MultGapNCPγ instance is a (YES) instance, then it will certainly never be the case that the distance from s to 𝒞i is greater than k for any 𝒞i, so Algorithm 1 will output (YES); if the MultGapNCPγ instance is a (NO) instance, then, given the invariant above, Algorithm 1 may never output (YES), and must output (NO).

References

  • [1] Per Austrin and Subhash Khot. A simple deterministic reduction for the gap minimum distance of code problem. IEEE Trans. Inf. Theory, 60(10):6636–6645, 2014. doi:10.1109/TIT.2014.2340869.
  • [2] Vijay Bhattiprolu, Venkatesan Guruswami, Euiwoong Lee, and Xuandi Ren. Inapproximability of finding sparse vectors in codes, subspaces, and lattices, 2025. arXiv:2410.02636.
  • [3] Vijay Bhattiprolu and Euiwoong Lee. Inapproximability of sparsest vector in a real subspace. Electron. Colloquium Comput. Complex., TR24-151, 2024. URL: https://eccc.weizmann.ac.il/report/2024/151.
  • [4] Ilya Dumer, Daniele Micciancio, and Madhu Sudan. Hardness of approximating the minimum distance of a linear code. IEEE Trans. Inf. Theory, 49(1):22–37, 2003. doi:10.1109/TIT.2002.806118.
  • [5] Shayan Oveis Gharan and Arvin Sahami. Unweighted one-sided code sparsifiers and thin subgraphs, 2025. arXiv:2502.02799.
  • [6] David R. Karger. Using randomized sparsification to approximate minimum cuts. In Daniel Dominic Sleator, editor, Proceedings of the Fifth Annual ACM-SIAM Symposium on Discrete Algorithms. 23-25 January 1994, Arlington, Virginia, USA, pages 424–432. ACM/SIAM, 1994. URL: http://dl.acm.org/citation.cfm?id=314464.314582.
  • [7] Sanjeev Khanna, Aaron (Louie) Putterman, and Madhu Sudan. Code sparsification and its applications. In David P. Woodruff, editor, Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms, SODA 2024, Alexandria, VA, USA, January 7-10, 2024, pages 5145–5168. SIAM, 2024. doi:10.1137/1.9781611977912.185.
  • [8] Subhash Khot. Hardness of approximating the shortest vector problem in lattices. J. ACM, 52(5):789–808, 2005. doi:10.1145/1089023.1089027.
  • [9] Dmitry Kogan and Robert Krauthgamer. Sketching cuts in graphs and hypergraphs. In Tim Roughgarden, editor, Proceedings of the 2015 Conference on Innovations in Theoretical Computer Science, ITCS 2015, Rehovot, Israel, January 11-13, 2015, pages 367–376. ACM, 2015. doi:10.1145/2688073.2688093.
  • [10] Daniele Micciancio. Locally dense codes. In IEEE 29th Conference on Computational Complexity, CCC 2014, Vancouver, BC, Canada, June 11-13, 2014, pages 90–97. IEEE, IEEE Computer Society, 2014. doi:10.1109/CCC.2014.17.
  • [11] Alexander Vardy. The intractability of computing the minimum distance of a code. IEEE Trans. Inf. Theory, 43(6):1757–1766, 1997. doi:10.1109/18.641542.