A counterexample to a proximity gap conjecture

This is a solution to a problem discussed at the 2024 research workshop concerning Conjecture 2.4 of https://ia.cr/2023/630.

The following is known.

Theorem 1 (Diamond-Posen 2023). Let be a linear code with distance at least , and let be some parameter. Suppose that there is a line such that at least points on are at distance at most from . Then, every point on is at distance at most from .

It was asked whether the threshold of here is tight. We give a counterexample demonstrating that it is tight; that is, we give an example where and the conjecture does not hold.

Suppose . Let (this will be the number of points on at distance at most from , and can in fact be arbitrary). Then let , and let be an arbitrary prime.

Define the vectors as follows (for ). Let have ones in indices to (zero-indexing), and zeroes elsewhere. Also, let have ones in indices to , and have ones in indices to , and zeroes elsewhere. That is,

(Note that , , all have ones in disjoint sets of indices.)

Now, for , define the vector These vectors all lie on a line, so we let be the set of all . Finally, we obtain vectors , for , by perturbing the :

The code will then just be generated by the :

For , the vectors have distance at most from , and therefore from . It remains to check that has distance at least , and that the other vectors have distance greater than from .

Claim 2. has distance at least .

Proof. Let be nonzero; we will show that the Hamming weight of is at least . Note that is the (nonzero) linear combination of some . If there are at most two in the linear combination, then the coefficient of either or must be nonzero, and thus of the last entries must be nonzero, and we are done. Otherwise, there are at least three , which means there are three with nonzero coefficients, and thus again at least nonzero entries. Thus we are done. ◻

Claim 3. For , has distance at least from .

Proof. Let ; we will show that has distance at least from . Note again that is the linear combination of some , for . If there is only one vector in this linear combination, then it will be impossible for to have the same coefficients of and as , so will have distance at least from . Otherwise, there are two vectors in the linear combination, and thus there are two with nonzero coefficients, and thus will have distance at least from . ◻