From Local to Robust Testing via Agreement Testing
Irit Dinur1 Department of Mathematics and Computer Science, Weizmann Institute of Science, Rehovot, Israel [email protected] Prahladh Harsha2 Tata Institute of Fundamental Research, India [email protected] Tali Kaufman Department of Computer Science, Bar-Ilan University, Ramat Gan, Israel [email protected] Noga Ron-Zewi Department of Computer Science, University of Haifa, Haifa, Israel [email protected]
Abstract A local tester for an error-correcting code is a probabilistic procedure that queries a small subset of coordinates, accepts codewords with probability one, and rejects non-codewords with probability proportional to their distance from the code. The local tester is robust if for non-codewords it satisfies the stronger property that the average distance of local views from accepting views is proportional to the distance from the code. Robust testing is an important component in constructions of locally testable codes and probabilistically checkable proofs as it allows for composition of local tests. In this work we show that for certain codes, any (natural) local tester can be converted to a roubst tester with roughly the same number of queries. Our result holds for the class of affine- invariant lifted codes which is a broad class of codes that includes Reed-Muller codes, as well as recent constructions of high-rate locally testable codes (Guo, Kopparty, and Sudan, ITCS 2013). Instantiating this with known local testing results for lifted codes gives a more direct proof that improves some of the parameters of the main result of Guo, Haramaty, and Sudan (FOCS 2015), showing robustness of lifted codes. To obtain the above transformation we relate the notions of local testing and robust testing to the notion of agreement testing that attempts to find out whether valid partial assignments can be stitched together to a global codeword. We first show that agreement testing implies robust testing, and then show that local testing implies agreement testing. Our proof is combinatorial, and is based on expansion / sampling properties of the collection of local views of local testers. Thus, it immediately applies to local testers of lifted codes that query random affine subspaces m in Fq , and moreover seems amenable to extension to other families of locally testable codes with expanding families of local views.
2012 ACM Subject Classification Theory of computation → Computational complexity and cryptography
1 Supported by ERC-CoG grant number 772839. 2 Research supported in part by the UGC-ISF grant and the Swarnajayanti Fellowship. Part of the work was done when the author was visiting the Weizmann Institute of Science.
© Irit Dinur, Prahladh Harsha, Tal Kaufman, and Noga Ron-Zewi; licensed under Creative Commons License CC-BY 10th Innovations in Theoretical Computer Science (ITCS 2019). Editor: Avrim Blum; Article No. 29; pp. 29:1–29:18 Leibniz International Proceedings in Informatics Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany 29:2 From Local to Robust Testing via Agreement Testing
Keywords and phrases Local testing, Robust testing, Agreement testing, Affine-invariant codes, Lifted codes
Digital Object Identifier 10.4230/LIPIcs.ITCS.2019.29
1 Introduction
Our main result shows a transformation from local testing to robust testing for the class of affine-invariant lifted codes. We start by describing the notions of local testing, robust testing, and lifted codes.
1.1 Local testing and robust testing A code is a subset C ⊆ Σn. The elements of C are called codewords, Σ is the alphabet of
the code, and n is the block length. The rate of the code is the ratio (log|Σ| |C|)/n. The code is linear if Σ = Fq where Fq is the finite field of q elements, and C is an Fq-linear n subspace of Fq . It will be convenient to think of codewords in C as functions f : U → Σ where U is a domain of size n. For a pair of functions f, g : U → Σ we let dist(f, g) denote the fraction of inputs x ∈ U for which f(x) 6= g(x). The relative distance dist(C) of the code is the minimum of dist(f, g) over all codewords f, g ∈ C. For a function f : U → Σ we let dist(f, C) denote the minimum of dist(f, g) over all codewords g ∈ C. A local tester for the code C is a probabilistic oracle algorithm that on oracle access to a function f : U → Σ makes at most Q queries to f, and accepts f ∈ C with probability one, while rejecting f 6∈ C with probability at least α · dist(f, C). We refer to Q as the query complexity of the tester, and to α as the soundness. In this work we shall restrict our attention to local testers that pick a random subset K ⊆ U of cardinality Q according 3 to some distribution, and accept if and only if f|K ∈ C|K . The requirement then is that f|K ∈ C|K with probability one whenever f ∈ C, and
Pr[f|K ∈/ C|K ] ≥ α · dist(f, C) (1) K otherwise. In this work we will be interested in the stronger notion of robustness. We say that a local tester as above is robust if for non-codewords the average distance of its local views from accepting views is proportional to the distance of the given function from the code. That is, as before we require that f|K ∈ C|K with probability one whenever f ∈ C, but instead of (1) we now require that EK dist(f|K ,C|K ) ≥ α · dist(f, C) (2)
whenever f∈ / C. Here we refer to α as the robustness of the tester. The notion of robustness was introduced by Ben-Sasson and Sudan [8] based on analogous notions for probabilistically checkable proofs [5, 15]. Robustness is a natural property of local testers that relates the global distance of a function from the code to its local distance from accepting views on local views. Moreover, robustness is also an important ingredient in constructions of locally testable codes and probabilistically checkable proofs as it allows for composition of local tests. Specifically, it follows by definition that if a code C is robustly
3 Local testers may generally apply a more complex predicate on f|K . However, natural local testers are typically of the restricted form we consider, and moreover it can be shown that a local tester for a linear code must be of this form [6]. I. Dinur, P. Harsha, T. Kaufman, and N. Ron-Zewi 29:3 testable with query complexity Q and soundness α, and additionally each local restriction 0 0 C|K is locally testable with query complexity Q and soundness α , then the code C is locally testable with query complexity Q0 and soundness α · α0. This property is useful when local restrictions can be tested efficiently which can happen if the code has many symmetries (as is the case with the class of lifted codes considered in this work) or can be achieved, in the case of probabilistically checkable proof, by attaching a short proof of proximity.
One can easily observe that (2) implies (1) since f|K ∈/ C|K whenever dist(f|K ,C|K ) > 0, so robustness is a stronger requirement than local testing. For the other direction, note that a local tester with soundness α has robustness at least α/Q since dist(f|K ,C|K ) ≥ 1/Q whenever f|K ∈/ C|K . A natural question is whether this loss in roubstness is necessary, and whether robustness is strictly stronger notion than local testing. In this work we shall show that this loss is unnecessary for the class of lifted codes, discussed below.
1.2 Lifted codes
` Lifted codes are specified by a base code C ⊆ {Fq → Fq} and a dimension m ≥ `. We further assume that the base code C is linear and affine-invariant, that is, for any codeword f ∈ C, ` ` and for any affine transformation A : Fq → Fq it holds that f ◦ A ∈ C. Given these we define `%m m the lifted code C to be the code consisting of all functions f : Fq → Fq that satisfy that f|L ∈ C for any `-dimensional affine subspace L. Lifted codes were first introduced by Ben-Sasson et al [7], and their local testability properties were further explored in subsequent work [20, 21, 19]. They are a natural generalization of the well-studied family of Reed-Muller codes, and moreover they also give rise to new families of locally testable codes that outperform Reed-Muller codes in certain range of parameters [20]. Specifically, lifted codes lead to one of the two known constructions (the other one being tensor codes [8, 9, 27, 24]) of high-rate locally testable codes (i.e., locally testable codes with rate approaching one and sublinear locality). Generally, lifted codes form a natural subclass of affine-invariant codes satisfying the “single-orbit characterization” property that is known to imply local testability, as well as local decodability [23]. There is a natural local test associated with lifted codes: on oracle access to a function m f : Fq → Fq, pick a uniform random `-dimensional affine subspace L and accept if and only if f|L ∈ C. It follows immediately by definition that this test accepts any valid codeword f ∈ C`%m with probability one, but more work is required to show that this test is sound. Specifically, since the test forms a single orbit characterization, it follows from [23] that it has soundness roughly q−2`. The dependence of the soundness on the dimension ` was later eliminated in [21] who showed soundness that is only a function of q (though an extremely quickly decaying one). As for robustness, the above local testing results, together with the straightforward transformation from local testing to robust testing, immediately give robustness that is dependent on the dimension `. This was eliminated recently in [19] who showed robustness of the form poly(δ) (about δ74, where δ is the relative distance of the code) for the local test that queries subspaces of slightly larger dimension of 2`. Interestingly, [19] did not rely on the aforementioned local testing results, but rather relied on viewing lifted codes as the intersection of “modified tensor codes”. They then proceeded by showing that these modified tensor codes are robustly testable (using the proof method of [27] showing robustness of tensor codes), and that this implies local testability of the lifted code (see Section 2.4 for more details about the proof method of [19]).
I T C S 2 0 1 9 29:4 From Local to Robust Testing via Agreement Testing
1.3 Our results
Our main result gives a transformation from local testing to robust testing, that does not suffer the factor of Q (the query complexity) loss in robustness, for the class of lifted codes. The transformation uses local testability in a “black-box” manner, and shows that if a code in this family is locally testable (using the natural subspace tester) then it is also robustly testable with roughly the same number of queries and robustness. For k ≥ `, let the k-dimensional (subspace) test denote the local tester that on oracle m access to a function f : Fq → Fq queries a uniform random k-dimensional affine subspace K `%k and accepts if and only if f|K ∈ C .
` I Theorem 1 (Main). Let C ⊆ {Fq → Fq} be an affine-invariant linear code, and m ≥ k ≥ `. Suppose that C`%m is locally testable using the k-dimensional test with query complexity k `%r `%m q and soundness α, and let δ := mink≤r≤m dist(C ). Then C is robustly testable 2k using the (2k + logq(4/δ))-dimensional test with query complexity O(q /δ) and robustness Ω(α · δ3).
Note that if the relative distance δ is constant, we only incur a constant multiplicative loss in robustness and testing dimension. To apply the above theorem one can instantiate it with the local testing result of [23] that says that lifted codes are locally testable using the `-dimensional test with soundness ≈ q−2` (see Theorem 6 below). However, to obtain constant robustness we need that the soundness of the initial local tester would be constant (independent of q and `), and for this we observe (in Proposition 19) that the soundness of [23] can be easily amplified to Ω(1) at the cost of increasing the testing dimension to ≈ 3`.4 Using this observation we obtain the following.
` I Corollary 2. Let C ⊆ {Fq → Fq} be an affine-invariant linear code of relative distance δ, `%m and m ≥ `. Then C is robustly testable using the (6` + logq(128/δ))-dimensional test with robustness Ω(δ3).
Compared to the above corollary, [19] use lower dimension of 2`, but also obtain lower soundness of Ω(δ74). As described next, our proof is combinatorial, relying mainly on expansion / sampling properties of the collection of local views. In particular, it uses very little about the algebraic structure of lifted codes or the base code. We thus hope that such techniques would prove useful in the future for showing robustness for other families of locally testable codes with similar expansion properties.
2 Proof overview
Our proof is based on a new connection between the notions of local testing, robust testing, and agreement testing. Specifically, we show that for the class of lifted codes agreement testing implies robust testing, and local testing implies agreement testing. The combination of these two implications gives our main Theorem 1. Next we elaborate on the notion of agreement testing, followed by an overview of each of the implications.
4 Such an amplification with similar blow-up in query complexity can be easily obtained by repeating the test and accepting if and only if all invocations accept; we however need that the tester would be a subspace tester which can be obtained using sampling properties of affine subspaces. I. Dinur, P. Harsha, T. Kaufman, and N. Ron-Zewi 29:5
2.1 Agreement testing An agreement test attempts to find out whether partial assignments to local views can be stitched together to a single global codeword. Let C ⊆ {U → Σ} be a code, and let S be a collection of subsets of U. An agreement tester for C, S is a probabilistic oracle algorithm that receives oracle access to a collection of partial assignments {fS : S → Σ | S ∈ S} on sets of S, where fS ∈ C|S for any S ∈ S. The tester queries a few of the fS’s, and is required to accept with probability one any collection (fS)S that is consistent with some global codeword g ∈ C (that is, g|S = fS for any S ∈ S), while rejecting any inconsistent collection (fS)S with probability proportional to the minimal fraction of fS’s that must be changed in order to be consistent with some global codeword. In this work we focus on the two query agreement tester that picks a pair of sets S, S0 ∈ S according to some distribution 0 and accepts if and only if fS and fS0 agree on their intersection S ∩ S . Agreement testing has first appeared in PCP constructions [3, 2] as so-called “low degree tests”, and is a key component in the proof of almost all PCP theorems. A prime example is the line vs. line low degree test [17, 26] in the proof of the PCP theorem. In the PCP construction, a function on a large vector space is replaced by an ensemble of (supposed) restrictions to all possible affine lines. These restrictions are supplied by a prover and are not a priori guaranteed to agree with any single global function. The “low degree test” is run by the verifier to check that restrictions on intersecting lines agree with each other, i.e. they give the same value to the point of intersection. The main point of the argument is to show that the passing of the test implies agreement with a single global function. In these early low degree tests (including the linearity testing work of [10]) an agreement test component can be discerned but quite implicitly. Indeed, it was only separated in the works [25, 4] that looked at the so-called list-decoding regime5, with the goal of proving a large gap for the PCP. Goldreich and Safra [18] tried to separate the algebraic aspect of the low degree test from the combinatorial, and formulated a more general “consistency test” which is also referred to as an agreement test. They also proved a certain local to global result which was too weak to be useful for PCPs. In hindsight it is clear that since their family of subsets consisted of axis parallel lines, the expansion was not strong enough for a good agreement test. Only recently [13] the role of expansion underlying the family of subsets had begun to be uncovered. Work on agreement testing then continued the combinatorial direction of [18] mainly in the list-decoding regime for direct product testing [15, 12, 22, 16, 14]. The techniques developed in this line of work turn out to be useful also for agreement testing in the unique-decoding regime (which is the more standard testing regime), and in particular for our work here.
2.2 Agreement testing implies robust testing We begin with an overview of the simpler implication from agreement testing to robust testing. Suppose that we have a two query agreement tester for C, S as described above. We would like to show that the local tester that queries a random S ∈ S is robust. Let T be the collection of subsets of U formed by pairwise intersections of sets in S. The main properties we need out of S, T are sampling properties, specifically, that S samples well the set of points U, and that for any S ∈ S all sets in T contained in S sample well the set of points in S. The main property we need out of the code is that its restrictions to sets in T
5 In the list decoding regime one would like to reject a function that is (1 − )-far from the code with very high-probability of 1 − O().
I T C S 2 0 1 9 29:6 From Local to Robust Testing via Agreement Testing
have distance. In the case of lifted codes these properties can be guaranteed by letting S, T be families of affine subspaces of fixed dimension. To see that the proposed local tester is indeed robust, suppose that we have a function f : U → Σ that is close to C|S on a typical S, our goal is to show that f is close to a codeword g ∈ C. We first create an instance (fS)S for the agreement tester by letting fS ∈ C|S be the closest valid assignment to f|S. Next observe that since f|S is typically close to fS, and by assumption that T ’s sample well inside S’s, for a typical T and S, S0 containing T it holds that fS|T ≈ f|T ≈ fS0 |T , and by distance property on T this implies in turn that typically fS|T = fS0 |T . Consequently, agreement testability implies the existence of a codeword g ∈ C that agrees with most fS, and so g|S = fS ≈ f|S for most S. But since S samples well inside U we conclude that f must be close to g as required.
2.3 Local testing implies agreement testing
We now turn to the local testing to agreement testing implication which is a bit more involved. Suppose that we have a local testing algorithm for C that queries a random set K ∈ K and accepts if and only if f|K ∈ C|K . We would like to obtain an agreement tester for C with respect to some collection of subsets S. As before, let T be the collection of subsets of U formed by pairwise intersections of sets in S. Once more the main properties we require out of S, T , K are sampling properties. Specifically, we need that S samples well inside U, and that for any T ∈ T all sets in K contained in T sample well inside T . We also require distance properties out of C, specifically that C has distance on U and on restrictions to sets in S and T . Once more, in the case of lifted codes these properties can be guaranteed by letting S, T , K be families of affine subspaces of fixed dimension.
To show agreement testability, let (fS)S be a collection of valid assignments to sets in 0 S (so fS ∈ C|S for any S), and suppose that fS agrees with fS0 on S ∩ S for most pairs 0 S, S . Our goal will be to find a global codeword g ∈ C that agrees with most fS. We find the function g in the following three stages.
Initial stage
In the first stage we define for any K ∈ K a “most popular function” PlurK by choosing the most common value among fS|K going over all S ∈ S containing K. We then show, using the assumption that fS’s typically agree on their intersections, that this most popular function is obtained with overwhelming probability for a typical K.
Local structure stage
In the second stage we define for each K ∈ K a function gK : U → Σ by letting gK (x) be the most common “vote” among all fS that contain K and x and agree with PlurK on K (this function is well defined because of the initial stage). We then show that for a typical K, gK is close to some function hK ∈ C, and moreover hK |S = fS for most S containing K. To see why the above holds, first note that by assumptions that C has distance on T ’s, and K’s sample well inside T ’s, if a pair of fS’s agree on K then they must typically also agree on their whole intersection. Therefore gK (x) is also typically defined with overwhelming 0 probability. Consequently, for a typical K, and most K , gK |K0 agrees with some fS. Recalling that fS’s are valid assignments, local testability then implies the existence of hK ∈ C that is close to gK . The fact that hK |S = fS for most S containing K follows by assumption that S samples well U, and distance property on S. I. Dinur, P. Harsha, T. Kaufman, and N. Ron-Zewi 29:7
Global structure stage
ˆ In the final stage we show that there exists K such that hKˆ agrees with fS for most S ˆ (not necessarily containing K). We can then set our “global function” g to be equal to hKˆ . To this end, we first observe that it suffices to show that most functions hK are in fact 0 identical. This now follows since for typical S ⊇ K ∪ K it holds that hK |S = fS = hK0 |S, and consequently since S samples U it must typically hold that hK = hK0 .
2.4 The proof method of Guo et al
The proof method of Guo et al [19] for showing robustness of lifted codes is very different from ours. In particular, it relies heavily on the algebraic structure of lifted codes. More specifically, the proof is based on viewing the lifted codes as the intersection of “modified ⊗m tensor codes”. The tensor product C of a code C ⊆ {Fq → Fq} can be thought of as the m ’axis-parallel lifting’ of C, that is, it is the code that consists of all functions f : Fq → Fq whose restrictions to any axis-parallel line belong to C. The “modified tensor code” is a code ⊗m m ⊗m ⊗m of the form Cb where b is a direction in Fq , and Cb consists of all functions f ∈ C whose restrictions to lines in direction b also belong to C. The authors first use the proof method of [27], showing robust testing of tensor codes, to show that the modified tensor codes are also robustly testable. They then use the fact that ⊗m the lifted code is the intersection of all codes of the form Cb for all directions b (this is true when the dimension of the base code for lifting is ` = 1; when ` > 1 the proof becomes more complicated) to deduce robust testability for the lifted code. However, since intersection of robustly testable codes is not necessarily robustly testable, a non-trivial work is required to show robust testability, which in particular exploits the degree structure of affine-invariant lifted codes. The above program can be carried out only when the dimension m of the lifted code is a small constant multiple of `, and the authors use the “bootstrapping” technique [26, 2, 4, 1] to extend the result to work for arbitrary large m. In contrast, we work directly with lifted codes of large dimension which allows us to m exploit the sampling / expansion properties of large affine subspaces in Fq . To the best of our knowledge, even for the special case of low-degree polynomials, this gives the first analysis of robustness that is not based on the two step approach of first analyzing the constant dimensional case and only then moving to the general dimensional case. As opposed to [19] who reprove local testability on the way, our proof uses local testability in a black-box manner. Thus, it exhibits a separation between the algebraic properties that are used for showing local testability, and the combinatorial properties that are needed in order to turn local testability into robust testability.
Paper organization
The rest of the paper is organized as follows. In Section 3 we set some notation, provide some definitions, and present the expansion properties of subspaces that we use. The transformation from agreement testing to robust testing is given in Section 4, while the transformation from local testing to agreement testing apperas in Section 5. We wrap-up in Section 6 with the full transformation from local testing to robust testing that proves our main Theorem 1 and Corollary 2.
I T C S 2 0 1 9 29:8 From Local to Robust Testing via Agreement Testing
3 Preliminaries
m For a prime power q, let Fq denote the finite field of q elements. Let {Fq → Fq} denote the m set of functions mapping Fq to Fq. In what follows we focus on codes which are subsets m m of functions C ⊆ {Fq → Fq}. For a pair of functions f, g : Fq → Fq we use dist(f, g) to m denote the fraction of inputs x ∈ Fq for which f(x) 6= g(x). The relative distance dist(C) of m the code C is minf6=g∈C {dist(f, g)}. For a function f : Fq → Fq we use dist(f, C) to denote ming∈C {dist(f, g)}. The code C is said to be linear if it is an Fq-linear subspace, i.e., for every α ∈ Fq and m m f, g ∈ C, we have αf +g ∈ C. A function A : Fq → Fq is said to be an affine transformation m×m m if there exist a matrix M ∈ Fq and a vector b ∈ Fq such that A(x) = Mx + b. The code C is said to be affine-invariant if for every affine transformation A and every f ∈ C we have f ◦ A ∈ C (where (f ◦ A)(x) = f(A(x))).
3.1 Lifted codes
m m A subset L ⊆ Fq is said to be an `-dimensional affine subspace if there exist α0 ∈ Fq and m P` linearly independent α1, . . . , α` ∈ Fq such that L = {α0 + i=1 αixi|x1, . . . , x` ∈ Fq}. We ` fix an arbitrary affine map γL : Fq → L (which we can view as a parameterization of L). For m ` a function f : Fq → Fq, the restriction f|L is viewed as a function in {Fq → Fq} through ? ` ` f ◦ γL : Fq → Fq. In particular, when we ask if f|L ∈ C ⊆ {Fq → Fq} what we are really asking is whether f ◦ γL ∈ C. Note that if C is affine-invariant, whether f|L ∈ C does not depend on the choice of the parametrization γL.
` I Definition 3 (Lifted codes). Let C ⊆ {Fq → Fq} be an affine-invariant linear code, and m ≥ `. The m-dimensional lift C`%m of C is given by
`%m m m C := f : Fq → Fq | f|L ∈ C for every `-dimensional affine subspace L ⊆ Fq .
` I Proposition 4 (Distance of lifted codes, [20], Theorem 5.1, Part (2)). Let C ⊆ {Fq → Fq} be an affine-invariant linear code, and m ≥ `. Then dist(C`%m) ≥ dist(C) − q−`.
3.2 Local testing, robust testing, and agreement testing We now formally define the notions of local testing, robust testing, and agreement testing, specialized to the class of lifted codes and subspace testers. In the case of local testing and robust testing this simply means that the tester samples a uniform random k-dimensional affine subspace and its accepting views are codewords in C`%k.
` I Definition 5 (Local testing of lifted codes). Let C ⊆ {Fq → Fq} be an affine-invariant linear code, and m ≥ k ≥ `. The m-dimensional lift C`%m is (k, α)-testable if for every m f : Fq → Fq it holds that
`%k `%m Pr f|K ∈/ C ≥ α · dist(f, C ), K
m where the probability is over a uniform random k-dimensional affine subspace K ⊆ Fq .
` I Theorem 6 ([23], Theorem 2.9). Let C ⊆ {Fq → Fq} be an affine-invariant linear code, m and m ≥ `. Then the `-dimensional test rejects a function f : Fq → Fq with probability at 1 −2` `%m `%m q−2` least 2 · min q , dist(f, C ) . In particular, C is `, 2 -testable. I. Dinur, P. Harsha, T. Kaufman, and N. Ron-Zewi 29:9
` I Definition 7 (Robust testing of lifted codes). Let C ⊆ {Fq → Fq} be an affine-invariant linear code, and m ≥ k ≥ `. The m-dimensional lift C`%m is (k, α)-robust if for every m f : Fq → Fq it holds that
`%k `%m EK dist(f|K ,C ) ≥ α · dist(f, C ),
m where the expectation is over a uniform random k-dimensional affine subspace K ⊆ Fq . We note the following easy implications.
` I Proposition 8. Let C ⊆ {Fq → Fq} be an affine-invariant linear code, and m ≥ k ≥ `. Then the following hold. 1. If C`%m is (k, α)-robust then it is (k, α)-testable. 2. If C`%m is (k, α)-testable then it is (k, α · q−k)-robust. 3. If C`%m is (k, α)-testable then it is (r, α)-testable for any k ≤ r ≤ m. 4. If C`%m is (k, α)-robust then it is (r, α)-robust for any k ≤ r ≤ m.
`%k `%k Proof. Part (1) follows since f|K ∈/ C whenever dist(f|K ,C ) > 0, while Part (2) `%k −k `%k follows since dist(f|K ,C ) ≥ q whenever f|K ∈/ C . Part (3) follows by observing that for a uniform random r-dimensional affine subspace R,
`%r 1 `%r Pr f|R ∈/ C = ER f|R∈/C R `%k ≥ ER Pr f|K ∈/ C K⊆R `%k = Pr f|K ∈/ C , K
`%r `%k where the inequality follows since f|R ∈ C implies that f|K ∈ C for any K. `%r Finally, Part (4) follows by letting fR be the codeword in C that is closest to f|R, and noting that
`%r ER dist(f|R,C ) = ER dist(f|R, fR) = ER EK⊆R dist(f|K , fR|K ) `%k ≥ ER EK⊆R dist(f|K ,C ) `%k = EK dist(f|K ,C ) ,
`%k where the inequality follows since fR|K ∈ C for any K. J
We now turn to the definition of agreement testing. The agreement testers we consider are two query testers that for t < s, sample a uniform random t-dimensional affine subspace T , and a pair of uniform random s-dimensional affine subspaces S, S0 containing T , and accept if and only if fS, fS0 agree on T . m For a code C ⊆ {Fq → Fq} we let C(s) be the code containing all collections (fS)S of partial assignments to s-dimensional affine subspaces that are consistent with some global codeword g ∈ C, formally, C(s) := (fS)S | ∃ g ∈ C such that g|S = fS for any s-dimensional affine subspace S .
For a pair of collections (fS)S, (gS)S of partial assignments to s-dimensional affine subspaces we denote by dist((fS)S, (gS)S) the fraction of s-dimensional affine subspaces S for which fS 6= gS, and we define dist((fS)S,C(s)) accordingly.
I T C S 2 0 1 9 29:10 From Local to Robust Testing via Agreement Testing
` I Definition 9 (Agreement testing of lifted codes). Let C ⊆ {Fq → Fq} be an affine-invariant linear code, and m ≥ s > t ≥ `. The m-dimensional lift C`%m is (s, t, α)-agreement testable `%s if for every collection (fS)S where fS ∈ C for every s-dimensional affine subspace S it holds that