For a code and a vector ,
denote by the minimum distance of from , namely the number of positions in which differs from the closest codeword in ,
denote by the minimum distance between a vector set and a code , that
denote by the set of positions in which differs from such a closest codeword,
denote by the set of positions in which some differs from their closest codeword in , that
Let be an linear code over . We let denote the (interleaved) code over whose codewords are all , such that each row of satisfies , and let denote the symbol (column) of .
A randomized algorithm [AHI+17] to test the membership of in follows, where is stored in an oracle :
samples and sends over to .
sends back to .
samples a set of positions , and queries for symbols for all .
checks if is consistent with by .
Let be a positive integer such that . Suppose , then for a random in ,
We introduce the following lemma, stating that if there is an element in the rowspan of has large distance, then such element is almost everywhere in the rowspan space.
Suppose with , then over the line where ,
On the line , suppose there are 2 distinct elements and , such that
By triangle inequality,
this contradicts against the assumption of . Hence, at most 1 element on has distance at most . ∎
Suppose has , then for a random in ,
We foliate with parallel lines similar to [Mos10], where each line is defined by . By lemma 4.4.3, each line has at most 1 element of distance at most , and thus at most such elements, which completes the proof. ∎
On the other hand, if every element in has distance to at most , fixing a differed position , we argue that there are at most 1 element over a line, with distance to is at most , and the element is not differed at .
Suppose with , then
If there are 2 distinct elements on both have the symbol matched, and both distances to are at most , then by triangle inequality,
all elements in the are in the unique decoding radius, hence all elements have symbol matched. Yet this contradicts , that . Hence, there are at most 1 such element on the . ∎
The following corollary is immediate by the space foliation idea in [Mos10].
For a random in , and ,
Since , we union bound over at least differed positions, upper bounded by . ∎
An improved result of distance preserving of random linear combination over linear code is also in [AHI+17].
Let be a positive integer such that . Suppose , then for a random in ,
We start by showing there exists elements in such that the distance to greater than .
Suppose , and , then there exists such that .
Suppose all have , then let maximizes the distance to ,
There must exist another element in the rowspan, such that
otherwise , contradicting to the prior assumption of .
We also want to know, if all are of distance at most to , does the nearest codewords follow the same linear combination as the ’s (or we cannot analyze by the union of differed positions).
Construct a line , and let be the codewords within distance to , then
the first inequality holds by the triangle inequality, and the second holds by the assumption that any element in the rowspan is of distance to at most . Then the distance between 2 valid codewords is
which leads to a contradiction, as any 2 valid codewords are at least of distance. Hence, .
Assuming all have , now we know the linear combination of ’s is the same as the linear combination of the nearest codewords. Let
Then the probability for any position in being cancelled on a random is at most by union bound. Hence, by
first inequality holds by , then the probability that no position in being cancelled is positive, which proves the existence of that . ∎
Since there exists elements in the rowspan such that the distance to is greater than , in order to strengthen the result from lemma 4.4.2, it suffices to show that in an affine subspace of , either all points are of distances within to , or almost all are not. This reduces to showing the same in 1-dimensional space.
For any constructing a line ,
either every points have ,
or at most points have .
We show this with 2 vectors of Hamming weight at most , and see if any element in the 1-dimensional affine subspace can be within distance to any valid non-zero codeword. Let be 2 vectors of Hamming weights at most , then they define a line . The lemma can be proved in 2 cases:
. Then any element on the line are within distance to .
. The intersection has at most elements. By a similar argument of differed position cancelling in lemma 4.4.8, there are at most points on the line with overlapped disagreeing positions cancelled, hence there are at most points within distance to .
Suppose there is a non-zero codeword such that an is within distance to , but by triangle inequality,
which is a contradiction. Hence, there is only that is within distance to elements on the line.
∎
By lemma 4.4.8 and lemma 4.4.9, the proof for lemma 4.4.7 is immediate. ∎
We conclude with the soundness analysis, when is far from .
Let be a positive integer. Suppose , then for any malicious strategy, accepts with probability at most
Let , the probability upper bound follows:
the first inequality holds by 1.4.14 trick, while the second holds by lemma 4.4.7. ∎