4.4 Ligero Interleaved Linear Code Testing

For a code C⊆Σn and a vector 𝐯∈Σn,

  • •

    denote by d⁢(𝐯,C) the minimum distance of 𝐯 from C, namely the number of positions in which 𝐯 differs from the closest codeword in C,

  • •

    denote by d⁢(V,C) the minimum distance between a vector set V and a code C, that

    d⁢(V,C)=min𝐯∈V⁡d⁢(𝐯,C),
  • •

    denote by Δ⁢(𝐯,C) the set of positions in which 𝐯 differs from such a closest codeword,

  • •

    denote by Δ⁢(V,C) the set of positions in which some 𝐯∈V differs from their closest codeword in C, that

    Δ⁢(V,C)=⋃𝐯∈VΔ⁢(𝐯,C).
Definition 4.4.1 (Interleaved Code).

Let L⊂𝔽n be an [n,k,d] linear code over 𝔽. We let Lm denote the [n,m⁢k,d] (interleaved) code over 𝔽m whose codewords are all 𝐔∈𝔽m×n, such that each row 𝐮i of 𝐔 satisfies 𝐮i∈L, and let 𝐮∗,j denote the jth symbol (column) of 𝐔.

A randomized algorithm [AHI+17] to test the membership of 𝐔 in Lm follows, where 𝐔 is stored in an oracle 𝒪:

  • •

    𝒱 samples 𝐫←r𝔽m and sends over 𝐫 to 𝒫.

  • •

    𝒫 sends back 𝐰←𝐫𝖳⁢𝐔 to 𝒱.

  • •

    𝒱 samples a set of positions Q←r[1,n]ℓ, and queries 𝒪 for symbols 𝐮∗,i for all i∈Q.

  • •

    𝒱 checks if 𝐰 is consistent with {𝐮∗,i}i∈Q by ⟨𝐫,𝐮∗,i⟩=wi.

Lemma 4.4.2.

Let e be a positive integer such that e<d/4. Suppose d⁢(𝐔∗,Lm)>e, then for a random 𝐰∗ in RowSpan⁢(𝐔∗),

Pr⁡[d⁢(𝐰∗,L)≤e]≤e+1|𝔽|.
Proof.

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.

Lemma 4.4.3.

Suppose 𝐮,𝐯∈RowSpan⁢(𝐔∗) with d⁢(𝐮,L)>2⁢e, then over the line f⁢(α)=α⋅𝐮+𝐯 where α∈𝔽,

Pr⁡[d⁢(α⋅𝐮+𝐯,L)≤e]≤|𝔽|−1.
Proof.

On the line f⁢(α)=α⋅𝐮+𝐯, suppose there are 2 distinct elements f⁢(α0) and f⁢(α1), such that

d⁢(α0⋅𝐮+𝐯,L)≤e⁢ and ⁢d⁢(α1⋅𝐮+𝐯,L)≤e.

By triangle inequality,

d⁢((α0−α1)⋅𝐮,L)≤d⁢(α0⋅𝐮+𝐯,L)+d⁢(α1⋅𝐮+𝐯,L)≤2⁢e,

this contradicts against the assumption of d⁢(𝐮,L)>2⁢e. Hence, at most 1 element on f⁢(α) has distance at most e. ∎

Corollary 4.4.4.

Suppose 𝐮∈RowSpan⁢(𝐔∗) has d⁢(𝐮,L)>2⁢e, then for a random 𝐰∗ in RowSpan⁢(𝐔∗),

Pr⁡[d⁢(𝐰∗,L)≤e]≤|𝔽|−1.
Proof.

We foliate RowSpan⁢(𝐔∗) with |𝔽|m−1 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 e, and thus at most |𝔽|m−1 such elements, which completes the proof. ∎

On the other hand, if every element in RowSpan⁢(𝐔∗) has distance to L at most 2⁢e, fixing a differed position j, we argue that there are at most 1 element over a line, with distance to L is at most e, and the element is not differed at j.

Lemma 4.4.5.

Suppose 𝐮,𝐯∈RowSpan⁢(𝐔∗) with j∈Δ⁢(𝐮,L), then

Pr⁡[d⁢(α⋅𝐮+𝐯,L)≤e⁢⋀j∉Δ⁢(α⋅𝐮+𝐯,L)]≤|𝔽|−1.
Proof.

If there are 2 distinct elements on f⁢(α) both have the jth symbol matched, and both distances to L are at most e, then by triangle inequality,

d⁢(Span⁢(f⁢(α0),f⁢(α1)),L) =mina,b⁡d⁢(a⋅f⁢(α0)+b⋅f⁢(α1),L)
≤d⁢(α0⋅𝐮+𝐯,L)+d⁢(α1⋅𝐮+𝐯,L)
≤2⁢e<d/2,

all elements in the Span⁢(f⁢(α0),f⁢(α1)) are in the unique decoding radius, hence all elements have jth symbol matched. Yet this contradicts 𝐮∈Span⁢(f⁢(α0),f⁢(α1)), that j∈Δ⁢(𝐮,L). Hence, there are at most 1 such element on the f⁢(α). ∎

The following corollary is immediate by the space foliation idea in [Mos10].

Corollary 4.4.6.

For a random 𝐰∗ in RowSpan⁢(𝐔∗), and j∈Δ⁢(𝐔∗,Lm),

Pr⁡[d⁢(𝐰∗,L)≤e⁢⋀j∉Δ⁢(𝐰∗,L)]≤|𝔽|−1.

Since d⁢(𝐔∗,Lm)>e, we union bound over at least e+1 differed positions, upper bounded by (e+1)⋅|𝔽|−1. ∎

An improved result of distance preserving of random linear combination over linear code is also in [AHI+17].

Lemma 4.4.7.

Let e be a positive integer such that e<d/3. Suppose d⁢(𝐔∗,Lm)>e, then for a random 𝐰∗ in RowSpan⁢(𝐔∗),

Pr⁡[d⁢(𝐰∗,L)≤e]≤e+1|𝔽|.
Proof.

We start by showing there exists elements in RowSpan⁢(𝐔∗) such that the distance to L greater than e.

Lemma 4.4.8.

Suppose d⁢(𝐔∗,Lm)>e, and |𝔽|>e, then there exists 𝐰∗∈RowSpan⁢(𝐔∗) such that d⁢(𝐰∗,L)>e.

Proof.

Suppose all 𝐰∗∈RowSpan⁢(𝐔∗) have d⁢(𝐰∗,L)≤e, then let 𝐮∗∈RowSpan⁢(𝐔∗) maximizes the distance to L,

max𝐯∗∈RowSpan⁢(𝐔∗)⁡d⁢(𝐯∗,L)=d⁢(𝐮∗,L)≤e.

There must exist another element 𝐱∗ in the rowspan, such that

Δ⁢(𝐱∗,L)∖Δ⁢(𝐮∗,L)≠∅,

otherwise d⁢(𝐮∗,L)=d⁢(𝐔∗,Lm)>e, contradicting to the prior assumption of d⁢(𝐮∗,L)≤e.

We also want to know, if all 𝐰∗∈RowSpan⁢(𝐔∗) are of distance at most e to L, 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 f⁢(α)=α⋅𝐮∗+𝐱∗, and let 𝐮,𝐱,𝐲 be the codewords within e distance to 𝐮∗,𝐱∗,f⁢(α), then

d⁢(α⋅𝐮∗+𝐱∗,α⋅𝐮+𝐱)≤d⁢(𝐮∗,𝐮)+d⁢(𝐱∗,𝐱)≤2⁢e,

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 L at most e. Then the distance between 2 valid codewords is

d⁢(α⋅𝐮∗+𝐱∗,𝐲)≤d⁢(α⋅𝐮∗+𝐱∗,f⁢(α))+d⁢(f⁢(α),𝐲)≤2⁢e+e<d,

which leads to a contradiction, as any 2 valid codewords are at least of d distance. Hence, 𝐲=α⋅𝐮+𝐱.

Assuming all 𝐰∗∈RowSpan⁢(𝐔∗) have d⁢(𝐰∗,L)≤e, now we know the linear combination of 𝐰∗’s is the same as the linear combination of the nearest 𝐰 codewords. Let

Δ𝐮∗,𝐱∗=Δ⁢(𝐮∗,L)∩Δ⁢(𝐱∗,L).

Then the probability for any position in Δ𝐮∗,𝐱∗ being cancelled on a random α is at most |Δ𝐮∗,𝐱∗|⋅|𝔽|−1 by union bound. Hence, by

|Δ𝐮∗,𝐱∗|<e<|𝔽|,

first inequality holds by d⁢(𝐮∗,L)<e, then the probability that no position in Δ𝐮∗,𝐱∗ being cancelled is positive, which proves the existence of 𝐰∗ that d⁢(𝐰∗,L)>e. ∎

Since there exists elements in the rowspan such that the distance to L is greater than e, in order to strengthen the result from lemma 4.4.2, it suffices to show that in an affine subspace of 𝔽n, either all points are of distances within e to L, or almost all are not. This reduces to showing the same in 1-dimensional space.

Lemma 4.4.9.

For any 𝐮,𝐯∈𝔽n constructing a line α⋅𝐮+𝐯,

  • •

    either every points have d⁢(α⋅𝐮+𝐯,L)≤e,

  • •

    or at most e points have d⁢(α⋅𝐮+𝐯,L)≤e.

Proof.

We show this with 2 vectors of Hamming weight at most e, and see if any element in the 1-dimensional affine subspace can be within distance e to any valid non-zero codeword. Let 𝐮∗,𝐯∗ be 2 vectors of Hamming weights at most e, then they define a line f⁢(α)=α⋅𝐮∗+𝐯∗. The lemma can be proved in 2 cases:

  • •

    |supp⁢(𝐮∗)∪supp⁢(𝐯∗)|≤e. Then any element on the line are within distance e to 𝟎.

  • •

    |supp⁢(𝐮∗)∪supp⁢(𝐯∗)|>e. The intersection Δ𝐮∗,𝐯∗ has at most e−1 elements. By a similar argument of differed position cancelling in lemma 4.4.8, there are at most e−1 points on the line with overlapped disagreeing positions cancelled, hence there are at most e−1 points within distance e to 𝟎.

    Suppose there is a non-zero codeword 𝐜 such that an α⋅𝐮∗+𝐯∗ is within distance e to 𝐜, but by triangle inequality,

    d⁢(𝟎,𝐜)≤d⁢(𝟎,α⋅𝐮∗+𝐯∗)+d⁢(α⋅𝐮∗+𝐯∗,𝐜)≤d⁢(𝟎,𝐯∗)+d⁢(𝟎,𝐮∗)+d⁢(α⋅𝐮∗+𝐯∗,𝐜)≤3⁢e<d,

    which is a contradiction. Hence, there is only 𝟎 that is within e 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 𝐔n is far from Lm.

Theorem 4.4.10.

Let e<d/3 be a positive integer. Suppose d⁢(𝐔∗,Lm)>e, then for any malicious 𝒫 strategy, 𝒱 accepts with probability at most

(1−e+1n)t+e+1|𝔽|.
Proof.

Let 𝐰∗𝖳=𝐫𝖳⁢𝐔∗, the probability upper bound follows:

Pr⁡[𝒱⁢ accepts] ≤Pr⁡[𝒱⁢ accepts⁢∣d⁢(𝐰∗,L)>⁢e]+Pr⁡[d⁢(𝐰∗,L)≤e]
≤(n−e−1t)⋅(nt)−1+e+1|𝔽|
≤(1−e+1n)t+e+1|𝔽|,

the first inequality holds by 1.4.14 trick, while the second holds by lemma 4.4.7. ∎