arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:1306.1360v1 [cs.CC] 06 Jun 2013

Some properties are not even partially testableThanks: The research leading to these results has received funding from the European Union’s - Seventh Framework Programme [FP7/2007-2013] under grant agreement n° 202405 (PROPERTY TESTING).

Eldar Fischer Thanks: Department of Computer Science, Technion, Haifa 32000, Israel. eldar@cs.technion.ac.il    Yonatan Goldhirsh Thanks: Department of Computer Science, Technion, Haifa 32000, Israel. jongold@cs.technion.ac.il    Oded Lachish Thanks: Birkbeck, University of London, London, UK. oded@dcs.bbk.ac.uk
Abstract

For a property PP and a sub-property PP^{\prime}, we say that PP is PP^{\prime}-partially testable with qq queries if there exists an algorithm that distinguishes, with high probability, inputs in PP^{\prime} from inputs ϵ\epsilon-far from PP by using qq queries. There are natural properties that require many queries to test, but can be partitioned into a small number of subsets for which they are partially testable with very few queries, and in fact the minimal O(1/ϵ)O(1/\epsilon).

We prove that this is not always the case. More than that, we prove the existence of a property PP such that the only subsets PP^{\prime} for which PP is PP^{\prime}-partially testable are very small. To prove this we introduce new techniques for proving property testing lower bounds. In addition to obtaining some broad-brush criteria for non-testability, this implies a lower bound on the possibility of PCPPs with a sublinear proof size. This also implies lower bounds on MAPs, a notion newly defined by Gur and Rothblum.

The new techniques rely on analyzing a proposed partial tester. We show that the queries performed by a tester must, with high probability, query indexes where a uniformly random member of the sub-property has low entropy. We then show how one can aggregate the “entropy loss” to deduce that a random choice in the sub-property must have low entropy, and therefore the sub-property must be small.

We develop two techniques for aggregating the entropy loss. A simpler technique that applies to non-adaptive testers is based on partitioning the input bits into high query probability parts and parts where there is an entropy loss when conditioned on the high probability parts. Against adaptive testers we develop a more intricate technique based on constructing a decision tree. The root-to-leaf paths in this tree rearrange the input into parts where each part exhibits entropy loss when conditioned on the path prefix. This decision tree is constructed by combining carefully selected decision trees from those used by the adaptive testing algorithm.

1 Introduction

Property Testing deals with randomized approximation algorithms that operate under low information situations. Formally, we deal with objects from some universe UU parametrized by an integer nn, usually Σn\Sigma^{n} where Σ\Sigma is some finite alphabet; with a notion of distance between two objects in UU, usually the Hamming distance; and with a notion of a query to an object in UU, usually corresponding to retrieving xix_{i} for an index i{1,,n}i\in\{1,\ldots,n\}.

Definition 1.1 (Testable property).

Let P{0,1}nP\subseteq\{0,1\}^{n}. We say that PP is testable with qq queries if there exists an algorithm AA that gets as input a parameter ϵ>0\epsilon>0 and query access to an input string x{0,1}nx\in\{0,1\}^{n} and outputs accept or reject such that:

  • If xPx\in P, then AA accepts with probability at least 2/32/3.

  • If d(x,P)>ϵd(x,P)>\epsilon, then AA rejects with probability at least 2/32/3.

If furthermore all queries performed to the input can be decided before any of them are made, then the algorithm is non-adaptive, and otherwise it is adaptive. If we require that whenever xPx\in P, then the algorithm accepts with probability 11, then the algorithm is 1-sided, and otherwise it is 2-sided.

Property Testing was first addressed by Blum, Luby and Rubinfeld [6], and most of its general notions were first formulated by Rubinfeld and Sudan [19]. The first investigated properties were mostly of an algebraic nature, such as the property of a Boolean function being linear. The first investigation of combinatorial properties and the formal definition of testability was by Goldreich, Goldwasser and Ron [11]. Since then Property Testing has attracted significant attention. For surveys see [8, 16, 17].

When proving that testing a property requires many queries, one might ask “how strong is this requirement?”, which can be illustrated with an example. Alon et. al. [3] studied the testability of formal languages, and proved that the language L={uuRvvR|u,v{0,1}}L=\{uu^{R}vv^{R}|u,v\in\{0,1\}^{*}\} requires at least Ω(n)\Omega(\sqrt{n}) queries to test. Informally, one may say that the “reason” for this language being untestable is the difficulty in guessing the length of uuRuu^{R}. This can be made formal by considering the languages Li={uuRvvR|u,v{0,1},|u|=i}L_{i}=\{uu^{R}vv^{R}|u,v\in\{0,1\}^{*},|u|=i\}, which form a partition of LL. A simple sampling algorithm can perform O(ϵ1)O(\epsilon^{-1}) queries to an input and distinguish between inputs in LiL_{i} and inputs ϵ\epsilon-far from LL. It is also important to note that |L{0,1}n|=2Θ(n)|L\cap\{0,1\}^{n}|=2^{\Theta(n)}, but its partition L0{0,1}n,,Ln{0,1}nL_{0}\cap\{0,1\}^{n},\ldots,L_{n}\cap\{0,1\}^{n} is only to a number of subsets linear in nn.

This phenomenon is not unique to the language considered by Alon et. al. Another example is that of graph isomorphism, first considered in the property testing framework by Alon et. al. [2] (and later by Fischer and Matsliah [9]), and shown to require at least Ω(n)\Omega(n) queries to test. In this setting we consider a pair of unknown graphs given by their adjacency matrices, and we are charged with distinguishing the case where they are isomorphic from the case where more than ϵn2\epsilon n^{2} of their edges must be changed to make them isomorphic. In this case, the size of the property is 2Θ(n2)2^{\Theta(n^{2})}, and we can partition the property into n!n! properties {Pπ|πSn}\{P_{\pi}|\pi\in S_{n}\}, each defined by Pπ={(G1,G2)|π(G1)=G2}P_{\pi}=\{(G_{1},G_{2})|\pi(G_{1})=G_{2}\}, such that a sampling algorithm can perform O(ϵ1)O(\epsilon^{-1}) queries to an input and distinguish between inputs in PπP_{\pi} and inputs ϵ\epsilon-far from the original property.

Thus it is tempting to ask whether this is a general phenomenon. Can any property PP be partitioned into k=|P|o(1)k=|P|^{o(1)} properties P1,,PkP_{1},\ldots,P_{k} such that the task of distinguishing inputs in PiP_{i} from inputs far from PP can be performed with a number of queries that depends only on ϵ\epsilon? The main result of the present paper is to prove that this is not always the case. In fact, there exist properties for which any such partition must be to a number of subsets exponential in nn.

To prove this result we consider a simpler setting that implies it.

Definition 1.2 (Partially testable property).

Let P{0,1}nP\subseteq\{0,1\}^{n} and PPP^{\prime}\subseteq P. We say that PP is PP^{\prime}-partially testable with qq queries if there exists an algorithm AA that gets as input a parameter ϵ>0\epsilon>0 and query access to an input string x{0,1}nx\in\{0,1\}^{n} and outputs accept or reject such that:

  • If xPx\in P^{\prime}, then AA accepts with probability at least 2/32/3.

  • If d(x,P)>ϵd(x,P)>\epsilon, then AA rejects with probability at least 2/32/3.

If furthermore all queries performed to the input can be decided before any of them are made, then the algorithm is non-adaptive, and else it is adaptive.

Obviously, if PP is testable with qq queries, then for any subset PPP^{\prime}\subseteq P it is PP^{\prime}-partially testable with the same number of queries. On the other hand, for any property PP and any element xPx\in P, we have that PP is {x}\{x\}-partially testable with O(ϵ1)O(\epsilon^{-1}) queries.

The partitions described above are in fact partitions of PP into subsets P1,,PkP_{1},\ldots,P_{k} such that PP is PiP_{i}-partially testable for every 1ik1\leq i\leq k. If there exists such a partition into not too many sets, then there must be at least one set that is relatively large. Our main result shows that there exists a property PP for which all subsets PPP^{\prime}\subseteq P such that PP is PP^{\prime}-partially testable are small. In fact, all linear codes with large dual distance define such properties.

Theorem 1.3.

Let C{0,1}nC\subseteq\{0,1\}^{n} be a linear code of size |C|2164n|C|\leq 2^{\frac{1}{64}n} and dual distance Γ\Gamma. For every CCC^{\prime}\subseteq C, if CC is CC^{\prime}-partially testable with qq adaptive queries, then |C||C|2Θ(Γq)|C^{\prime}|\leq|C|2^{-\Theta\left(\frac{\Gamma}{q}\right)}.

We will first prove a weak version of Theorem 1.3 in Section 4 which will apply for qq non-adaptive queries and imply the bound |C||C|2Θ(Γq3)|C^{\prime}|\leq|C|2^{-\Theta\left(\frac{\Gamma}{q^{3}}\right)}. This proof will use some of the key ideas that will later manifest in the proof of the theorem in its full generality in Section 5.

An important question is the existence of codes with strong parameters. A random linear code CC will have Γ=Θ(n)\Gamma=\Theta(n) and |C|=2Θ(n)|C|=2^{\Theta(n)} with high probability (this is implied by the Gilbert-Varshamov bound [10, 20]; MacWilliams et. al. [15] showed that this can also be obtained by codes which are self-dual and thus also have good distance), and thus by Theorem 1.3 we will have that for any CCC^{\prime}\subseteq C such that CC is CC^{\prime}-partially testable with qq queries, |C||C|2Θ(nq)|C^{\prime}|\leq|C|2^{-\Theta\left(\frac{n}{q}\right)}. For a constant qq, this implies that partial testability will only be possible with exponentially small subsets. The best explicit (and low uniform decision complexity) construction known to us is that of [1], which gives |C|=2Θ(n)|C|=2^{\Theta(n)} with Γ=Θ(n/logn)\Gamma=\Theta(n/\log n), and thus the bound becomes |C|nO(1)|C|2Θ(nq)|C^{\prime}|\leq n^{O(1)}|C|2^{-\Theta\left(\frac{n}{q}\right)}, which is polynomially worse than the non-explicit bound, but is still a strong upper bound on the size of CC^{\prime}.

Theorem 1.3 implies that there exist properties PP that require a lot of queries to test, and that every partition of PP into subsets P1,,PkP_{1},\ldots,P_{k} such that PP is PiP_{i}-partially testable for every 1ik1\leq i\leq k requires that kk will be very big. One might ask if we can prove a converse. That is, if PP can be tested with a few queries, can we find such a partition with a small kk?

Open Problem 1.4.

Let PP be a property testable with rr queries. Is it true that we can partition PP into subsets P1,,PkP_{1},\ldots,P_{k} such that PP is PiP_{i}-partially testable with O(1)O(1) queries for every 1ik1\leq i\leq k and kk is bounded by some moderate function of rr?

Theorem 1.3 implies that for some properties, kk might be as big as 2Θ(nq)2^{\Theta\left(\frac{n}{q}\right)}. It is not clear whether this value of kk can always be obtained. The trivial upper bound for every property is by partitioning into 2nq2^{n-q} subsets of size 2q2^{q}. Are there properties for which this is required?

Open Problem 1.5.

Does there exist a property PP such that for every PPP^{\prime}\subseteq P where PP is PP^{\prime}-partially testable with qq queries we also have |P||P|2Θ(q)Θ(n)|P^{\prime}|\leq|P|2^{\Theta(q)-\Theta(n)}?

1.1 Related work

Our notion of a partition is similar to existing notions in computational complexity. For a partition P=P1P2PkP=P_{1}\cup P_{2}\cup\ldots\cup P_{k} where for every 1ik1\leq i\leq k, PP is PiP_{i}-partially testable, the designation of PiP_{i} can be seen as a “proof” that a certain xx is in PP. If xPx\in P, then there exists some PiP_{i} such that xPix\in P_{i} and therefore a PiP_{i}-partial tester for PP will accept it with high probability. If xx is ϵ\epsilon-far from PP, then all PiP_{i}-partial testers for PP will reject it with high probability.

This is similar to the notion of a Probabilistically Checkable Proof of Proximity (PCPP), first introduced by Ben-Sasson et. al. [4]. PCPPs are to property testing as NP is to P. A qq query PCPP for a property PUP\subset U is an algorithm that gets as input xUx\in U and a proof of proximity π{0,1}l\pi\in\{0,1\}^{l}. The algorithm must perform at most qq queries to xx and π\pi and fulfill the requirement that if xPx\in P then there exists a proof π\pi that causes the algorithm to accept with high probability, but when xx is ϵ\epsilon-far from PP then for any proof π\pi the algorithm rejects with high probability. In our setting, the algorithm is allowed free access to a proof of length l=log(k)l=\log(k), but we expect ll to be sublinear in the size of xx. In particular, the property we analyze here cannot have a PCPP with a sublinear length proof.

Rothblum et. al.  [18] introduced the notion of an Interactive Proof of Proximity (IPP). In an IPP for a property PP, the tester can also communicate with a prover in addition to querying the input xx. If xPx\in P then the prover has a strategy that will cause the tester to accept with high probability. When xx is ϵ\epsilon-far from PP, the prover cannot make the tester accept with high probability. Rothblum et. al. show that all languages in NC admit such a protocol with n\sqrt{n} query and communication complexity and polylog(n)\mathrm{polylog}(n) communication rounds. Protocols of this kind are only interesting for the case where the communication complexity is sublinear, or else the prover may just give the input to the tester.

Independently of the present work, Gur and Rothblum [13] weakened the IPP model to create Merlin-Arthur Proofs of Proximity (MAP). Gur and Rothblum define a MAP as a proof-system for a property PP where for an input xx and a proof π\pi the verifier reads the entire proof π\pi and queries qq bits from the input xx. If xPx\in P, then there exists a proof π\pi such that the verifier accepts with high probability, and if xx is far from PP, then for every proof π\pi the verifier rejects with high probability. Since we can trivially set π=x\pi=x, the only interesting cases are where the length of π\pi is sublinear.

The notion of a MAP with qq queries and proofs of length \ell for a property PP is equivalent to the existence of k=2k=2^{\ell} sets P1,,PkP_{1},\ldots,P_{k} such that P=P1P2PkP=P_{1}\cup P_{2}\cup\ldots\cup P_{k} where for every 1ik1\leq i\leq k, PP is PiP_{i}-partially testable with qq queries.

Gur and Rothblum give several constructions of properties where a MAP with a sublinear length proof greatly reduces query complexity. Gur and Rothblum also introduce the Tensor Sum family of properties, for which they prove that for every constant α>0\alpha>0 there exists an instantiation of Tensor Sum such that any MAP for it that performs qq queries must require a proof of length Ω(n1αq)\Omega\left(\frac{n^{1-\alpha}}{q}\right). This is slightly weaker than Theorem 1.3 proved in the present paper. Their lower bound is proved by an extension of the communication complexity technique of Brody et.al. [5] to Merlin-Arthur communication complexity. This proof technique is fitting for the MAP setting, but does not apply to partial testing in general. Gur and Rothblum also prove that this trade off is almost optimal for the Tensor Sum properties.

Additionally, Gur and Rothblum show separations between the power of MAPs and that of IPPs and PCPPs. They also show that 2-sidedness may only give a MAP a polylog(n)\mathrm{polylog}(n) factor improvement in proof length and query complexity over a 1-sided algorithm. Their result implies a connection also between 1-sided and 2-sided partial testability, though not one that would preserve O(1)-query partial testability.

2 Proof plan

For the proofs of our main result we develop new techniques that are in some ways more flexible than the traditional use of Yao’s method for proving property testing lower bounds. We believe that these techniques hold promise for other lower bound situations where using Yao’s method seems to hit a wall.

2.1 General themes

As with Yao’s method, we contrast the behavior of a supposed test when it is run over an input chosen according to some distribution over “yes” instances, with its behavior when it is run over an input chosen according to some distribution over “no” instances. However, while in the traditional method these two distributions are chosen based only on the property (and should work against all possible algorithms of a given class), here the distributions are in fact tailor made for the specific analyzed algorithm. Note that special care must be taken in the definition of such an input distribution. It may not depend on the “real-time” behavior of the algorithm (i.e. it may not adapt itself to the identity of the random queries that the algorithm has made), and is instead constructed based only on the description of the algorithm.

The second theme is the use of Shannon entropy. Our goal here is to prove that if CC is CC^{\prime}-partially testable, then CC^{\prime} cannot be too large. For achieving this we assume that a testing algorithm exists, and then contrast a uniformly random choice of a word in CC^{\prime} with another word chosen from a “dangerous” distribution over words far from CC. The assumption that the test in fact distinguishes the two distributions allows us to show that a uniformly random choice of a word in CC^{\prime} has low entropy, and hence CC^{\prime} must be small. Using entropy instead of direct counting is crucial to using our main method for obtaining a bound against 22-sided error tests, rather than only 11-sided error ones.

2.2 Proving a bound against non-adaptive algorithms

The bound against non-adaptive algorithms showcases the above general themes. A supposed CC^{\prime}-partial test with qq queries is in essence a distribution over query sets of size qq, such that with high probability a query set is chosen that highlights a difference between members of CC^{\prime} and inputs far from being in CC. Now if the test were additionally 11-sided, this would translate to forbidden values in the meaningful query sets, which would give a cross product bound on the size of CC^{\prime}. For 22-sided tests we use an analogous feature of entropy, namely that of subadditivity.

To construct a “dangerous” distribution over words far from being in CC, we first take note of the “heavy” indexes, which are those bits of the input that are with high probability part of the query subset of the investigated testing algorithm. There will be only few of those, and our distribution over far words would be that of starting with a restriction of a uniformly random word in CC^{\prime} to the set of heavy indexes, and augmenting it with independently and uniformly chosen values to all other input bits. When contrasted with the uniform distribution over all members of CC^{\prime}, we obtain that there must be many query sets that show a distinction between the two distributions over the non-heavy indexes with respect to the heavy ones. This means that the values of the non-heavy indexes in each such query set do not behave like a uniformly independent choice, and thus have a corresponding entropy (conditioned on the heavy index bits) that is significantly less than the maximal possible entropy. Having many such query sets in essence means that we can find many such sets that are disjoint outside the heavy indexes, which in turn leads to an entropy bound by virtue of subadditivity (when coupled with general properties of linear codes).

2.3 Proving a bound against adaptive algorithms

An adaptive algorithm cannot be described as a distribution over query sets, but rather as a distribution over small decision trees of height qq that determine the queries. Therefore low-entropy index sets cannot be readily found (and in fact do not always exist). To deal with this we employ a new technique, that allows us to “rearrange” the input in a way that preserves entropy, but now admits disjoint low-entropy sets.

This new construction is a reader, which in essence is an adaptive algorithm that reads the entire input bit by bit (without repetitions). As this adaptive algorithm always eventually reads the entire input, it defines a bijection between the input to be read and the “reading stream”, i.e. the sequence of values in the order that the reader has read them.

The construction of this reader is fully based on the description of the qq-query adaptive algorithm that CC^{\prime}-partially tests for CC (again we assume that such an algorithm exists). In fact we contrast the uniform distribution over members of CC^{\prime} with not one but many possible distributions over inputs far from CC. At every stage we obtain that, as long as our reader has not yet read a large portion of the input, the adaptive test can provide a decision tree over the yet-unread bits that shows a difference between a uniformly random member of CC^{\prime} (conditioned on the values of the bits already read) and an independently uniform random choice of values for the unread bits. Our reader will be the result of “concatenating” such decision trees as long as there are enough unread bits. Thus in the “reading stream” we have sets of q consecutive bits, each with low entropy (as it is distinguishable from independently uniform values). When there are not enough unread bits left, we read all remaining bits arbitrarily, and use general properties of codes to bound the entropy on that final chunk.

The method of constructing a reader not only allows us to do away with the exponential penalty usually associated with moving from non-adaptive to adaptive algorithms, but we additionally obtain better bounds for non-adaptive algorithms as well. This is because a reader can do away also with the penalty of moving from the situation of having many low-entropy query sets to having a family of sets disjoint outside the heavy indexes, in essence by constructing the reader for the uniform distribution over CC^{\prime} based on not one but many “dangerous” input distributions.

3 Preliminaries

Below we introduce the reader to some basic definitions and results regarding entropy and the dual distance of codes. We refer the reader who is interested in a more thorough introduction of entropy to [7, Chapter 2].

First, we introduce a standard notion of distance between distributions.

Definition 3.1 (Total variation distance).

Let pp and qq be two distributions over the domain 𝒟\mathcal{D}. The total variation distance between pp and qq is defined to be dTV(p,q)=12i𝒟|p(i)q(i)|d_{TV}(p,q)=\frac{1}{2}\sum_{i\in\mathcal{D}}|p(i)-q(i)|.

We now introduce the notion of the entropy of a random variable, the entropy of a random variable conditioned on another one, and two well-known lemmas.

Definition 3.2 (Entropy).

Let XX be a random variable over the domain 𝒟\mathcal{D}. The entropy of XX is defined to be H[X]=i𝒟Pr[X=i]log(Pr[X=i])H[X]=-\sum_{i\in\mathcal{D}}\Pr[X=i]\log(\Pr[X=i]).

Definition 3.3 (Conditional entropy).

Let XX and YY be random variables over the domain 𝒟\mathcal{D}. The entropy of XX conditioned on YY is defined to be H[X|Y]=y𝒟Pr[Y=i]H[X|Y=y]H[X|Y]=\sum_{y\in\mathcal{D}}\Pr[Y=i]H[X|Y=y].

Lemma 3.4 (The chain rule).

Assume that XX and YY are random variables. The entropy of the combined state determined by both random variables is denoted H[X,Y]H[X,Y]. This quantity obeys the chain rule H[X,Y]=H[X|Y]+H[Y]H[X,Y]=H[X|Y]+H[Y].

Lemma 3.5 (Subadditivity).

If XX and YY are random variables, then H[X,Y]H[X]+H[Y]H[X,Y]\leq H[X]+H[Y].

The total variation distance is not a natural fit to the context of entropy. A more fitting notion of distance between distributions is divergence.

Definition 3.6 (Divergence).

Let pp and qq be two distributions over 𝒟\mathcal{D}. The divergence of qq from pp is defined to be D(pq)=i𝒟p(i)log(p(i)q(i))D(p\|q)=\sum_{i\in\mathcal{D}}p(i)\log\left(\frac{p(i)}{q(i)}\right).

Fortunately, divergence and total variation distance are related via Pinsker’s inequality.

Lemma 3.7 (Pinsker’s inequality).

Assume that pp and qq are two distributions over the domain 𝒟\mathcal{D}. The total variation distance between pp and qq is related to the divergence of qq from pp by the inequality 12D(p||q)dTV(p,q)\sqrt{\frac{1}{2}D(p||q)}\geq d_{TV}(p,q).

We will actually be using a simpler corollary of it.

Lemma 3.8 (Corollary of Pinsker’s inequality).

Assume that XX is a random variable distributed according to pp over 𝒟\mathcal{D}, and denote the uniform distribution over 𝒟\mathcal{D} by pup_{u}. The entropy of XX is related to its total variation distance from the uniform distribution by H[X]log(|𝒟|)2(dTV(p,pu))2H[X]\leq\log(|\mathcal{D}|)-2(d_{TV}(p,p_{u}))^{2}.

Proof.
H[X]=i𝒟Pr[X=i]log(Pr[X=i])H[X]=-\sum_{i\in\mathcal{D}}\Pr[X=i]\log(\Pr[X=i])
=i𝒟Pr[X=i]log(Pr[X=i]1|𝒟||𝒟|)=-\sum_{i\in\mathcal{D}}\Pr[X=i]\log(\Pr[X=i]\cdot\frac{1}{|\mathcal{D}|}\cdot|\mathcal{D}|)
=i𝒟Pr[X=i]log(1|𝒟|)i𝒟Pr[X=i]log(Pr[X=i]|𝒟|)=-\sum_{i\in\mathcal{D}}\Pr[X=i]\log(\frac{1}{|\mathcal{D}|})-\sum_{i\in\mathcal{D}}\Pr[X=i]\log(\Pr[X=i]\cdot|\mathcal{D}|)
=log(|𝒟|)D(ppu)log(|𝒟|)2(dTV(p,pu))2=\log(|\mathcal{D}|)-D(p\|p_{u})\leq\log(|\mathcal{D}|)-2(d_{TV}(p,p_{u}))^{2}

Where the last step follows from Pinsker’s inequality. ∎

Let x{0,1}nx\in\{0,1\}^{n} and J[n]J\subseteq[n]. We use x[J]x[J] to denote the restriction of xx to the indices in JJ. That is, the vector <xj>jJ<x_{j}>_{j\in J}. When C{0,1}nC\subseteq\{0,1\}^{n} we use C[J]={x[J]|xC}C[J]=\{x[J]|x\in C\}.

Let C{0,1}nC\subseteq\{0,1\}^{n}. We denote by U(C)U(C) the uniform distribution over CC. In accordance with the notation above, when XU(C)X\sim U(C), X[J]X[J] denotes the random variable obtained by drawing uniformly from CC and then restricting to the indices in JJ. As a shorthand we use U(C)[J]U(C)[J] for the distribution of X[J]X[J]. We use UJ(C)U_{J}(C) to denote the result of first drawing a vector xx according to U(C)U(C), and then replacing x[[n]J]x\left[[n]\setminus J\right] with a uniformly random vector in {0,1}n|J|\{0,1\}^{n-|J|}. In particular, in many cases we will take CC to be a singleton, in which case we drop the curly braces and denote this probability distribution by UJ(x)U_{J}(x).

We will make inherent use of the following result, which can be found e.g. in [14, Chapter 1, Theorem 10].

Lemma 3.9.

If J[n]J\subseteq[n] is such that |J|<Γ|J|<\Gamma and XU(C)X\sim U(C), then X[J]X[J] is distributed uniformly over {0,1}|J|\{0,1\}^{|J|}.

We will also need the fact that a mostly random input is far from a code with high probability.

Lemma 3.10.

Let C{0,1}nC\subseteq\{0,1\}^{n} such that |C|2164n|C|\leq 2^{\frac{1}{64}n}, ϵ<1/8\epsilon<1/8, and let J[n]J\subseteq[n] be such that |J|n/2|J|\leq n/2. XUJ(C)X\sim U_{J}(C) is ϵ\epsilon-far from CC with probability 1o(1)1-o(1). Furthermore, this is still true when conditioned on any value of X[J]X[J].

Proof.

By Chernoff bounds, the probability that a random element XUJ(C)X\sim U_{J}(C) will agree with cCc\in C in more than (1ϵ)n(1-\epsilon)n coordinates is at most exp(n(1/4ϵ)2)\exp\bigg(-n(1/4-\epsilon)^{2}\bigg). Taking the union bound over all cCc\in C gives us |C|exp(n(1/4ϵ)2)=o(1)|C|\cdot\exp\bigg(-n(1/4-\epsilon)^{2}\bigg)=o(1). Since this calculation assumes that X[J]X[J] always agrees with c[J]c[J], it holds when conditioned on any value of X[J]X[J]. ∎

Finally, we will also need to use Lemma 3.9 to help us calculate the entropy of uniform random variables in codes.

Lemma 3.11.

Let CC be a code with dual distance Γ\Gamma, J[n]J\subseteq[n] such that |J|Γ|J|\leq\Gamma, CCC^{\prime}\subseteq C and XU(C)X\sim U(C^{\prime}). Then H[X|X[J]]log|C||J|H[X|X[J]]\leq\log|C|-|J|. Furthermore, this is true when conditioned on any particular value of X[J]X[J].

Proof.

We can partition CC according to the values of the bits in JJ:

C=z{0,1}|J|{cC|c[J]=z}C=\bigcup_{z\in\{0,1\}^{|J|}}\{c\in C|c[J]=z\}

By Lemma 3.9, all sets on the right hand side are of size 2|J||C|2^{-|J|}|C|. Obviously, for all z{0,1}|J|z\in\{0,1\}^{|J|}, we have {cC|c[J]=z}{cC|c[J]=z}\{c^{\prime}\in C^{\prime}|c^{\prime}[J]=z\}\subseteq\{c\in C|c[J]=z\}, simply because CCC^{\prime}\subseteq C. Thus for every xC[J]x\in C^{\prime}[J], we have that

H[X|X[J]=x]log|{cC|c[J]=z}|log|{cC|c[J]=z}|.H[X|X[J]=x]\leq\log|\{c^{\prime}\in C^{\prime}|c^{\prime}[J]=z\}|\leq\log|\{c\in C|c[J]=z\}|.

This completes the “furthermore” part of the lemma. To obtain the non-conditioned version, note that by the definition of conditional entropy,

H[X|X[J]]=ExU(C)[J]H[X|X[J]=x]log(2|J||C|)=log|C||J|.H[X|X[J]]=\mathrm{E}_{x\sim U(C^{\prime})[J]}H[X|X[J]=x]\leq\log\left(2^{-|J|}|C|\right)=\log|C|-|J|.

We note (and use throughout) that trivially H[X|X[J]]=H[X[{1,,n}J]|X[J]]H[X|X[J]]=H[X[\{1,\ldots,n\}\setminus J]|X[J]].

4 Nonadaptive lower bound

In this section we prove Theorem 1.3 for the case of a non-adaptive tester and with slightly worse quantitative bounds. For the rest of this section, set C{0,1}nC\subset\{0,1\}^{n} to be a code with dual distance Γ\Gamma and |C|2164n|C|\leq 2^{\frac{1}{64}n}. Set ϵ<1/8\epsilon<1/8 and assume that CC is CC^{\prime}-partially testable for CCC^{\prime}\subseteq C with qq non-adaptive queries.

Next we define a non-adaptive tester for a property. This definition is consistent with the standard one.

Definition 4.1 (Non-adaptive property tester).

A non-adaptive ϵ\epsilon-tester for a code C{0,1}nC\subseteq\{0,1\}^{n} with query complexity q(ϵ,n)q(\epsilon,n) is defined by a collection of query sets {Qi}iI\{Q_{i}\}_{i\in I} of size qq together with a predicate πi\pi_{i} for each query set and a distribution μ\mu over II which satisfies:

  • If xCx\in C, then with probability at least 2/32/3 an iIi\in I is picked such that πi(x[Qi])=1\pi_{i}(x[Q_{i}])=1.

  • If d(x,C)>ϵd(x,C)>\epsilon, then with probability at least 2/32/3 an iIi\in I is picked such that πi(x[Qi])=0\pi_{i}(x[Q_{i}])=0.

For a CC^{\prime}-partial tester the first item must hold only for xCx\in C^{\prime}.

Set a non-adaptive tester for CC^{\prime}, and let {Qi}iI\{Q_{i}\}_{i\in I} be its query sets.

We will be interested only in those query sets which are useful for telling a random element in CC^{\prime} from a mostly random element in {0,1}n\{0,1\}^{n}.

Definition 4.2 (JJ-Discerning query set).

Let J[n]J\subseteq[n] be such that |J|n/2|J|\leq n/2. A query set QiQ_{i} is a JJ-discerning set if dTV(U(C)[Qi],UJ(C)[Qi])1/8d_{TV}(U(C^{\prime})[Q_{i}],U_{J}(C^{\prime})[Q_{i}])\geq 1/8.

Next we prove that a tester must have a lot of such good query sets.

Lemma 4.3.

Set J[n]J\subseteq[n] such that |J|n/2|J|\leq n/2. With probability at least 1/91/9 the query set QiQ_{i} picked by the tester is a JJ-discerning set.

Proof.

Assume the contrary, that is, that with probability greater than 8/98/9 the query set QiQ_{i} picked by the tester is such that dTV(U(C)[Qi],UJ(C)[Qi])<1/8d_{TV}(U(C^{\prime})[Q_{i}],U_{J}(C^{\prime})[Q_{i}])<1/8.

Thus for every such QiQ_{i},

|PrU(C)[Qi][tester accepts]PrUJ(C)[Qi][tester accepts]|<1/8.|\Pr_{U(C^{\prime})[Q_{i}]}[\text{tester accepts}]-\Pr_{U_{J}(C^{\prime})[Q_{i}]}[\text{tester accepts}]|<1/8.

For the case where the query set picked is not discerning, which occurs with probability smaller than 1/91/9, we have no bound (better than 11) on the difference in probability.

Overall, over the randomness of the tester,

|PrU(C)[tester accepts]PrUJ(C)[tester accepts]|<8/91/8+1/9=2/9.|\Pr_{U(C^{\prime})}[\text{tester accepts}]-\Pr_{U_{J}(C^{\prime})}[\text{tester accepts}]|<8/9\cdot 1/8+1/9=2/9.

But by the correctness of the tester and Lemma 3.10, we arrive at PrU(C)[tester accepts]2/3\Pr_{U(C^{\prime})}[\text{tester accepts}]\geq 2/3 and PrUJ(C)[tester accepts]1/3\Pr_{U_{J}(C^{\prime})}[\text{tester accepts}]\leq 1/3, a contradiction. ∎

We will later want to construct a collection of JJ-discerning sets disjoint outside of a small fixed portion of the input. Towards this end we prove that JJ-discerning sets show difference between an element in CC^{\prime} and a mostly random element in {0,1}n\{0,1\}^{n} even when we only look outside of JJ.

Lemma 4.4.

Assume that QiQ_{i} is a JJ-discerning set, draw ZU(C)[J]Z\sim U(C^{\prime})[J] and then draw XU(C)[Qi]X\sim U(C^{\prime})[Q_{i}] conditioned on X[J]=ZX[J]=Z. With probability at least 1/151/15, the distribution of X[QiJ]X[Q_{i}\setminus J] is 1/161/16-far from U({0,1}|QiJ|)U(\{0,1\}^{|Q_{i}\setminus J|}).

Proof.

First note that the distance between U(C)[Qi]U(C^{\prime})[Q_{i}] and UJ(C)[Qi]U_{J}(C^{\prime})[Q_{i}] is the expectation over ZZ of the distance of X[QiJ]X[Q_{i}\setminus J] from U({0,1}|QiJ|)U(\{0,1\}^{|Q_{i}\setminus J|}), conditioned on X[J]=ZX[J]=Z. By definition, that is at least 1/81/8. By simple probability bounds, with probability at least 1/151/15, ZZ is such that the distance of X[QiJ]X[Q_{i}\setminus J] from U({0,1}|QiJ|)U(\{0,1\}^{|Q_{i}\setminus J|}) conditioned on X[J]=ZX[J]=Z is at least 1/161/16. ∎

However, total variation distance is not very handy for counting. We now use Lemma 3.8 to transform our total variation bounds into “entropy loss” bounds.

Lemma 4.5.

If QiQ_{i} is a JJ-discerning set and XU(C)[Qi]X\sim U(C^{\prime})[Q_{i}], then H[X[QiJ]|X[J]]|QiJ|0.0005H[X[Q_{i}\setminus J]|X[J]]\leq|Q_{i}\setminus J|-0.0005.

Proof.

Let L{0,1}|J|L\subseteq\{0,1\}^{|J|} be the set of values z{0,1}|J|z\in\{0,1\}^{|J|} such that when drawing XU(C)[Qi]X\sim U(C^{\prime})[Q_{i}] conditioned on X[J]=zX[J]=z, the distribution of X[QiJ]X[Q_{i}\setminus J] is 1/161/16-far from U({0,1}|QiJ|)U(\{0,1\}^{|Q_{i}\setminus J|}).

Since the entropy is non-negative, we can upper bound

H[X[QiJ]|X[J]]zLPrZU(C)[J][Z=z]H[[QiJ]|X[J]=z]+z{0,1}JLPrZU(C)[J][Z=z]|QiJ|.H[X[Q_{i}\setminus J]|X[J]]\leq\sum_{z\in L}\Pr_{Z\sim U(C^{\prime})[J]}[Z=z]H[[Q_{i}\setminus J]|X[J]=z]+\sum_{z\in\{0,1\}^{J}\setminus L}\Pr_{Z\sim U(C^{\prime})[J]}[Z=z]|Q_{i}\setminus J|.

To treat the first summand on the right hand side, we invoke Lemma 3.8 to obtain

H[[QiJ]|X[J]=z]|QiJ|0.007.H[[Q_{i}\setminus J]|X[J]=z]\leq|Q_{i}\setminus J|-0.007.

Overall we get

zLPrZU(C)[J][Z=z]H[[QiJ]|X[J]=z]+z{0,1}JLPrZU(C)[J][Z=z]|QiJ||QiJ|0.0005.\sum_{z\in L}\Pr_{Z\sim U(C^{\prime})[J]}[Z=z]H[[Q_{i}\setminus J]|X[J]=z]+\sum_{z\in\{0,1\}^{J}\setminus L}\Pr_{Z\sim U(C^{\prime})[J]}[Z=z]|Q_{i}\setminus J|\leq|Q_{i}\setminus J|-0.0005.

Next we would try to cover the indices in [n][n] with as many discerning sets as possible. To later sum up the entropy loss, we need these sets to be disjoint outside a not-too-big set. We determine this set of “bad” indices as the set of bits read (non-adaptively) by the tester with the highest probability.

Definition 4.6.

Define B={k[n]|PrQμ[kQ]2qΓ}B=\{k\in[n]|\Pr_{Q\sim\mu}[k\in Q]\geq\frac{2q}{\Gamma}\}.

Observation 4.7.

|B|Γ/2n/2|B|\leq\Gamma/2\leq n/2. Therefore Lemma 3.10 holds with I=BI=B.

Now we can prove that we can find many BB-discerning sets which are disjoint outside of BB.

Lemma 4.8.

There exists a set IDI_{D} such that:

  • For all iIDi\in I_{D}, QiQ_{i} is a BB-discerning set

  • For all i,jIDi,j\in I_{D}, QiBQ_{i}\setminus B and QjBQ_{j}\setminus B are disjoint

D=iID(QiB)D=\cup_{i\in I_{D}}(Q_{i}\setminus B) satisfies Γ/2|D|Γ18q2\Gamma/2\geq|D|\geq\frac{\Gamma}{18q^{2}}. Additionally, |ID|Γ18q3|I_{D}|\geq\frac{\Gamma}{18q^{3}}.

Proof.

We construct the set IDI_{D} greedily. Suppose that we have discerning sets covering kk bits that are disjoint outside of BB. Choose a set randomly using the tester’s distribution conditioned on it being BB-discerning. This increases the probability of every query set, and every bit to be in a query set, by at most 99. By the definition of BB, if we choose a query set randomly using the tester’s distribution, the probability that it intersects our already covered bits outside of BB is at most 92q2Γk9\frac{2q^{2}}{\Gamma}k. As long as this number is smaller than 11, such a set exists. Therefore, as long as k<Γ18q2k<\frac{\Gamma}{18q^{2}} we have a set to add, leading to the bound. To get the upper bound on |D||D| we can just stop the process before DD gets too big. ∎

Finally, we are ready to calculate the entropy of a uniformly random codeword from CC^{\prime}. We use the chain rule to split this into calculating the entropy of the bits in BB, the entropy of the bits in DD conditioned on the bits of BB, and the entropy of everything else conditioned on the bits in DBD\cup B.

Lemma 4.9.

If XU(C)X\sim U(C^{\prime}), then H[X]log|C|0.0005Γ18q3H[X]\leq\log|C|-0.0005\frac{\Gamma}{18q^{3}}

Proof.

First, by the chain rule for entropy and the fact that DB=DD\setminus B=D,

H[X]=H[X|X[DB]]+H[X[D]|X[B]]+H[X[B]]H[X]=H[X|X[D\cup B]]+H[X[D]|X[B]]+H[X[B]]

We proceed by bounding each element in the sum. First, trivially:

H[X[B]]|B|H[X[B]]\leq|B|

Next, invoke Lemma 3.11 for DBD\cup B, since |DB|Γ|D\cup B|\leq\Gamma. This gives us:

H[X|X[DB]]log|C||DB|H[X|X[D\cup B]]\leq\log|C|-|D\cup B|

Now, recall that iID(QiB)=D\cup_{i\in I_{D}}(Q_{i}\setminus B)=D. Since these sets are disjoint outside of BB, we employ subadditivity to get:

H[X[DB]|X[B]]iIDH[X[QiB]|X[B]]H[X[D\setminus B]|X[B]]\leq\sum_{i\in I_{D}}H[X[Q_{i}\setminus B]|X[B]]

Now, since these are all BB-discerning sets, by Lemma 4.5 we know that for all iIDi\in I_{D} we have that H[X[QiB]|X[B]]|QiB|0.0005H[X[Q_{i}\setminus B]|X[B]]\leq|Q_{i}\setminus B|-0.0005. By Lemma 4.8 we know that |ID|Γ18q3|I_{D}|\geq\frac{\Gamma}{18q^{3}}. Summing up we get:

iIDH[X[QiB]|X[B]]|D|0.0005|ID|\sum_{i\in I_{D}}H[X[Q_{i}\setminus B]|X[B]]\leq|D|-0.0005|I_{D}|
|D|0.0005Γ18q3\leq|D|-0.0005\frac{\Gamma}{18q^{3}}

That is,

H[X[D]|X[B]]|D|0.0005Γ18q3H[X[D]|X[B]]\leq|D|-0.0005\frac{\Gamma}{18q^{3}}

Summing everything up we get the statement of the lemma. ∎

From this it follows that:

Theorem 4.10 (Weak form of the main theorem).

Let CCC^{\prime}\subseteq C, if CC is CC^{\prime}-partially testable with qq non-adaptive queries, then

|C|=2H[X]|C|20.0005Γ18q3.|C^{\prime}|=2^{H[X]}\leq|C|2^{-0.0005\frac{\Gamma}{18q^{3}}}.

5 Adaptive lower bound

In this section we prove Theorem 1.3 in its full generality. We start by introducing the mechanism of a reader, which allows us to separate the adaptivity and randomness of the algorithm.

Definition 5.1 (Reader).

A kk-reader rr is a sequence r0,r1,,rk1r_{0},r_{1},\ldots,r_{k-1}, where ri:{0,1}i{1,,n}r_{i}:\{0,1\}^{i}\to\{1,\ldots,n\} satisfy for all i<ji<j and y{0,1}jy\in\{0,1\}^{j} that ri(y[{1,,i}])rj(y)r_{i}(y[\{1,\ldots,i\}])\neq r_{j}(y).

Given an input x{0,1}nx\in\{0,1\}^{n}, the reader defines a sequence of its bits. This is the reading of xx.

Definition 5.2 (Reading).

Given x{0,1}nx\in\{0,1\}^{n} and a kk-reader rr, the reading Rr(x)R_{r(x)} of xx according to rr is a sequence y1,,yky_{1},\ldots,y_{k} defined inductively by yi+1=xri(y1,,yi)y_{i+1}=x_{r_{i}(y_{1},\ldots,y_{i})}. We define ri(x)r_{i}(x) to be ri(y1,,yi)r_{i}(y_{1},\ldots,y_{i}). The set of unread bits Ur(x)U_{r(x)} is the subset of {1,,n}\{1,\ldots,n\} that did not appear as values of r1,,rkr_{1},\ldots,r_{k} in the reading.

We can now define an adaptive tester as a distribution over readers and decision predicates.

Definition 5.3 (Adaptive tester).

An adaptive ϵ\epsilon-tester for a code C{0,1}nC\subseteq\{0,1\}^{n} with query complexity q=q(ϵ,n)q=q(\epsilon,n) is defined by a collection of qq-readers {ri}iI\{r^{i}\}_{i\in I} together with predicates πi\pi_{i} for each reader, and a distribution μ\mu over II which satisfies:

  • For all xCx\in C, Priμ[πi(Rri(x))=1]2/3\Pr_{i\sim\mu}\left[\pi_{i}(R_{r^{i}(x)})=1\right]\geq 2/3.

  • For all x{0,1}nx\in\{0,1\}^{n} such that d(x,C)>ϵd(x,C)>\epsilon, Priμ[πi(Rri(x))=0]2/3\Pr_{i\sim\mu}\left[\pi_{i}(R_{r^{i}(x)})=0\right]\geq 2/3.

Part of the usefulness of readers is that if we can construct a reader that reads the entire input, then reading the property CC^{\prime} through it preserves its size.

Observation 5.4.

If rr is an nn-reader, then the function mapping every x{0,1}nx\in\{0,1\}^{n} to its reading Rr(x)R_{r(x)} is a bijection.

Proof.

Suppose that xxx^{\prime}\neq x, and let i{1,,n}i\in\{1,\ldots,n\} be the least index such that xri(x)xri(x)x_{r_{i}(x)}\neq x^{\prime}_{r_{i}(x)}. Such an ii must exist since rr reads all bits, and xxx^{\prime}\neq x. Note that ri(x)=ri(x)r_{i}(x)=r_{i}(x^{\prime}), since it is the first bit read to be different (and thus OPENy1,,yi=y1,,yi)y_{1},\ldots,y_{i}=y^{\prime}_{1},\ldots,y^{\prime}_{i}). Thus xri(x)xri(x)x_{r_{i}(x)}\neq x^{\prime}_{r_{i}(x^{\prime})} and therefore Rr(x)Rr(x)R_{r(x)}\neq R_{r(x^{\prime})}. ∎

In light of the above, we will construct an nn-reader and bound the size of CC^{\prime} when permuted by its reading. However, while the end product of the construction is an nn-reader, the intermediate steps might not be kk-readers for any kk. Thus we need to introduce a more general notion.

Definition 5.5 (Generalized reader).

A generalized reader rr is a sequence r0,r1,,rn1r_{0},r_{1},\ldots,r_{n-1} where ri:{0,1}i{1,,n}{}r_{i}:\{0,1\}^{i}\to\{1,\ldots,n\}\cup\{\star\} satisfy for all i<ji<j and y{0,1}jy\in\{0,1\}^{j} one of the following

  • ri(y[{1,,i}]){1,,n}rj(y)r_{i}(y[\{1,\ldots,i\}])\in\{1,\ldots,n\}\setminus r_{j}(y)

  • ri(y[{1,,i}])=rj(y)=r_{i}(y[\{1,\ldots,i\}])=r_{j}(y)=\star

Given a generalized reader rr, a terminal sequence in it is y{0,1}iy\in\{0,1\}^{i} such that ri(y1,,yi)=r_{i}(y_{1},\ldots,y_{i})=\star, while ri1(y1,,yi1)r_{i-1}(y_{1},\ldots,y_{i-1})\neq\star or i=0i=0.

If we fix a certain x{0,1}nx\in\{0,1\}^{n}, a generalized reader defines a sequence of non-repeating indices that at some point may degenerate to a constant sequence of \star. Note that every kk-reader naturally defines a generalized reader by setting all undefined functions to map everything to \star.

It is useful to think of a (possibly generalized) reader as a decision tree. With a generalized reader, we will often want to continue the branches of the tree with another reader. This operation is called grafting. We start with the notion of a 00-branch and a 11-branch.

Definition 5.6 (00-branch, 11-branch).

Let rr be a (possibly generalized) reader. The 00-branch of rr is the reader rr^{\prime} defined by ri(y1,,yi)=ri+1(0,y1,,yi)r^{\prime}_{i}(y_{1},\ldots,y_{i})=r_{i+1}(0,y_{1},\ldots,y_{i}). Similarly, the 11-branch of rr is the reader r′′r^{\prime\prime} defined by ri′′(y1,,yi)=ri+1(1,y1,,yi)r^{\prime\prime}_{i}(y_{1},\ldots,y_{i})=r_{i+1}(1,y_{1},\ldots,y_{i}).

We can now define grafting, and will do so recursively. Informally, grafting a reader tt onto rr at yy means that at every \star in the decision tree of rr that can be reached after reading yy, we continue the reading according to tt.

Definition 5.7 (Grafting).

Let rr and tt be generalized readers and x{0,1}ix\in\{0,1\}^{i} be a terminal sequence in rr. The grafting of tt onto rr on the branch yy is a new reader rt,yr^{t,y} defined as follows.

  • If t0{r0(y1,,yi),,ri1(y1,,yi)}t_{0}\in\{r_{0}(y_{1},\ldots,y_{i}),\ldots,r_{i-1}(y_{1},\ldots,y_{i})\}, graft the yt0y_{t_{0}}-branch of tt onto rr at y1,,yiy_{1},\ldots,y_{i}.

  • If t0{r0(y1,,yi),,ri1(y1,,yi)}t_{0}\notin\{r_{0}(y_{1},\ldots,y_{i}),\ldots,r_{i-1}(y_{1},\ldots,y_{i})\}, set ri(y1,,yi)=t0r_{i}(y_{1},\ldots,y_{i})=t_{0}, call the new reader rr^{\prime}, and graft the 00-branch of tt onto rr^{\prime} at y0,,yi,0y_{0},\ldots,y_{i},0 and the 11-branch of tt onto tt at y0,,yi,1y_{0},\ldots,y_{i},1.

Repeat the above recursively, with the base case being the grafting of an identically \star reader onto rr by not changing anything.

Note that the grafting of a generalized reader onto another results in a generalized reader. Note that it is also possible that rt,y=rr^{t,y}=r when all bits that tt may read were already read by rr according as yy.

To introduce the notion of a reader that discerns a random input from an input from CC^{\prime}, we will first need to formulate a notion of executing a reader, which is inherently adaptive, on a partly random input.

Definition 5.8 (JJ-Simulation of a reader).

Let rr be a qq-reader, J[n]J\subseteq[n] and y{0,1}|J|y\in\{0,1\}^{|J|}. The JJ-simulation of rr on yy is the distribution S(r,y,J)S(r,y,J) over {0,1}q\{0,1\}^{q} defined to be Rr(x)R_{r(x)} where x[J]=y[J]x[J]=y[J], and all bits of xx outside of JJ are picked independently and uniformly at random from {0,1}\{0,1\}.

We now introduce the notion of a reader that discerns a random input from an input from CC^{\prime}.

Definition 5.9 (JJ-Discerning reader).

Let rr be a (possibly generalized) reader, J[n]J\subseteq[n] and y{0,1}|J|y\in\{0,1\}^{|J|}. Let xx be a uniform random variable in {cC|c[J]=y}\{c\in C^{\prime}|c[J]=y\}. We say that rr is a JJ-discerning reader for yy if dTV(Rr(x),S(r,y,J))1/8d_{TV}(R_{r(x)},S(r,y,J))\geq 1/8.

Next, we prove that many readers are indeed discerning.

Lemma 5.10.

Set J[n]J\subseteq[n] such that |J|n/2|J|\leq n/2 and y{0,1}|J|y\in\{0,1\}^{|J|}. With probability at least 1/91/9 the qq-reader rr picked by the tester is JJ-discerning for yy.

Proof.

Let rr be a reader that is not JJ-discerning for yy. Let BUJ(y)B\sim U_{J}(y) and GU({cC|c[J]=y})G\sim U(\{c\in C^{\prime}|c[J]=y\}). Denote by πr\pi_{r} the predicate associated with rr. By our assumption,

|Pr[πr(Rr(B))=1]Pr[πr(Rr(G))=1]|<1/8.|\Pr[\pi_{r}(R_{r(B)})=1]-\Pr[\pi_{r}(R_{r(G)})=1]|<1/8.

Now assume that with probability greater than 8/98/9, the qq-reader picked is not JJ-discerning for yy. Now consider the difference in acceptance probability when drawing a reader according to μ\mu.

|Prrμ[πr(Rr(B))=1]Prrμ[πr(Rr(G))=1]|<8/91/8+1/9=2/9.|\Pr_{r\sim\mu}[\pi_{r}(R_{r(B)})=1]-\Pr_{r\sim\mu}[\pi_{r}(R_{r(G)})=1]|<8/9\cdot 1/8+1/9=2/9.

But by Lemma 3.10 and the correctness of the tester, Prrμ[πr(Rr(B))=1]1/3\Pr_{r\sim\mu}[\pi_{r}(R_{r(B)})=1]\leq 1/3, and by the correctness of the tester Prrμ[πr(Rr(G))=1]2/3\Pr_{r\sim\mu}[\pi_{r}(R_{r(G)})=1]\geq 2/3, a contradiction. ∎

A common operation will be to graft a discerning reader with additional arbitrary bits. This does not cause a discerning reader to stop being one.

Definition 5.11.

Let rr and ss be generalized readers. We say that rr contains ss if for every x{0,1}nx\in\{0,1\}^{n}, the sequence of non-\star elements in Rs(x)R_{s(x)} is a prefix of Rr(x)R_{r(x)}.

Note that in particular, whenever we graft ss onto rr along some branch, we obtain a reader which contains rr.

Lemma 5.12.

Let rr and ss be generalized readers such that rr contains ss. Let J[n]J\subseteq[n] and y{0,1}|J|y\in\{0,1\}^{|J|}. If ss is a JJ-discerning reader for yy, then so is rr.

Proof.

Let BUJ(y)B\sim U_{J}(y) and GU({cC|c[J]=y})G\sim U(\{c\in C^{\prime}|c[J]=y\}). Consider Rr(B)R_{r(B)}. Its outcomes can be partitioned according to their Rs(B)R_{s(B)} prefixes. Thus the probability of every event defined by values of Rr(B)R_{r(B)} can be written as a weighted sum of the probabilities of events defined by values of Rs(B)R_{s(B)}. The same is true for Rr(G)R_{r(G)} and Rs(G)R_{s(G)}. Therefore dTV(Rr(x),S(r,y,J))dTV(Rs(x),S(s,y,J))d_{TV}(R_{r(x)},S(r,y,J))\geq d_{TV}(R_{s(x)},S(s,y,J)). ∎

To prove that a uniform choice in CC^{\prime} does not have high entropy we graft discerning readers one onto the other. We will want to make sure that all the branches of the decision tree are of the same height throughout the grafting, and thus we define the notion of a padded grafting.

Definition 5.13 (qq-Padded grafting).

Let rr be a generalized reader, tt be a qq-reader and y{0,1}iy\in\{0,1\}^{i} be a terminal sequence in rr. The qq-padded grafting of tt onto rr on the branch yy is defined by the following process. First, let rr^{\prime} be the grafting of tt onto rr at the branch yy. Now perform the following repeatedly: Let z1,,zjz_{1},\ldots,z_{j} with j<qj<q be such that ri+j1(y1,,yi,z1,,zj1)r^{\prime}_{i+j-1}(y_{1},\ldots,y_{i},z_{1},\ldots,z_{j-1})\neq\star but ri+j(y1,,yi,z1,,zj)=r^{\prime}_{i+j}(y_{1},\ldots,y_{i},z_{1},\ldots,z_{j})=\star (or j=0j=0 and ri(y1,,yi)=r^{\prime}_{i}(y_{1},\ldots,y_{i})=\star). Let kk be an arbitrary index not in {r0,,ri+j1(y1,,yi,z1,,zj1)}\{r^{\prime}_{0},\ldots,r^{\prime}_{i+j-1}(y_{1},\ldots,y_{i},z_{1},\ldots,z_{j-1})\}, and redefine ri+j(y1,,yi,z1,,zj)=kr^{\prime}_{i+j}(y_{1},\ldots,y_{i},z_{1},\ldots,z_{j})=k. Repeat this process as long as such z1,,zjz_{1},\ldots,z_{j} with j<qj<q exist.

The above is basically grafting additional arbitrary reads, so that the end-result will always read exactly qq bits after reading the sequence y1,,yiy_{1},\ldots,y_{i}. The next observation together with Lemma 5.12 implies that qq-padded grafting of a JJ-discerning reader is equivalent to a grafting of some other JJ-discerning reader.

Observation 5.14.

Let rr be a generalized reader, tt a qq-reader and y{0,1}iy\in\{0,1\}^{i} a terminal sequence in rr. There exists a reader ss containing tt such that the qq-padded grafting of tt onto rr at yy is equivalent to the grafting of ss onto rr at yy.

Now we can finally prove the main lemma, by performing repeated qq-padded grafting of discerning readers one onto another.

Lemma 5.15.

If XU(C)X\sim U(C^{\prime}), where CC is CC^{\prime}-partially testable with qq queries, then H[X]log|C|132Γ/qH[X]\leq\log|C|-\lfloor\frac{1}{32}\Gamma/q\rfloor

Proof.

Let us construct an nn-reader and consider the entropy of CC^{\prime} when permuted by this reader.

Start with a 00-reader r0r^{0}. Let ss be a \emptyset-discerning qq-reader for the empty word, which must exist since the adaptive tester must pick one with positive probability. Set r1r^{1} to be the grafting of ss onto r0r^{0} on the branch of the empty word.

Assume that we have constructed the jqjq-reader rjr^{j}. If jqΓjq\geq\Gamma, graft a reader that reads all remaining bits arbitrarily onto rjr^{j} on all branches. Else, perform the following for all branches y{0,1}jqy\in\{0,1\}^{jq} to obtain rj+1r^{j+1} (noting that they are all terminal sequences in rjr^{j}):

  • If there is no member of CC^{\prime} with the reading Rrj(y)R_{r^{j}(y)}, perform a qq-padded grafting of an arbitrary qq-reader onto rjr^{j} at the branch yy,

  • If such a member exists, let ss be a {r1j(y),r2j(y),,rjqj(y)}\{r_{1}^{j}(y),r_{2}^{j}(y),\ldots,r_{jq}^{j}(y)\}-discerning reader for yy. Perform a qq-padded grafting of ss onto rjr^{j} at the branch yy.

Now let rr be the resulting nn-reader, let rR(C)r_{R(C^{\prime})} be the image of CC^{\prime} under the reading of rr, and let XU(rR(C))X\sim U(r_{R(C^{\prime})}). By Observation 5.4, the distribution of XX is the same as starting with a uniformly random member of CC^{\prime} and then taking its reading according to rr. By the chain rule H[X]=H[X[{1,,Γ}]]+H[X|X[{1,,Γ}]]H[X]=H[X[\{1,\ldots,\Gamma\}]]+H[X|X[\{1,\ldots,\Gamma\}]].

Note that in the case of a word from CC^{\prime}, the maximal jj in the construction is equal to Γ/q\Gamma/q. By the chain rule we may write

H[X[{1,,Γ}]]=i=1Γ/qH[X[{(i1)q+1,,iq1}]|X[{1,,(i1)q1}]]H[X[\{1,\ldots,\Gamma\}]]=\sum_{i=1}^{\Gamma/q}H[X[\{(i-1)q+1,\ldots,iq-1\}]|X[\{1,\ldots,(i-1)q-1\}]]

and since each sequence of qq bits is from the grafting of a reader which is discerning with respect to all the previous ones, we may apply Lemma 3.8 to obtain

H[X[{1,,Γ}]]=i=1Γ/qH[X[{(i1)q+1,,iq1}]|X[{1,,(i1)q1}]]H[X[\{1,\ldots,\Gamma\}]]=\sum_{i=1}^{\Gamma/q}H[X[\{(i-1)q+1,\ldots,iq-1\}]|X[\{1,\ldots,(i-1)q-1\}]]
i=1Γ/q(q132)ΓΓ/q132\leq\sum_{i=1}^{\Gamma/q}\left(q-\frac{1}{32}\right)\leq\Gamma-\Gamma/q\cdot\frac{1}{32}

.

By Lemma 3.11, H[X|X[{1,,Γ}]]log|C|ΓH[X|X[\{1,\ldots,\Gamma\}]]\leq\log|C|-\Gamma, so by summing it all up we get H[X]log|C|Γ/q132H[X]\leq\log|C|-\Gamma/q\cdot\frac{1}{32}.

This gives us Theorem 1.3 in its full generality, as it implies that |C|=2H[X]2Γ/32q|C||C^{\prime}|=2^{H[X]}\leq 2^{-\Gamma/32q}\cdot|C|.

References

  • [1] Noga Alon, László Babai, and Alon Itai. A fast and simple randomized parallel algorithm for the maximal independent set problem. Journal of Algorithms, 7(4):567–583, December 1986.
  • [2] Noga Alon, Eldar Fischer, Michael Krivelevich, and Mario Szegedy. Efficient testing of large graphs. Combinatorica, 20(4):451–476, 2000.
  • [3] Noga Alon, Michael Krivelevich, Ilan Newman, and Mario Szegedy. Regular languages are testable with a constant number of queries. SIAM J. Comput, 30(6):1842–1862, 2000.
  • [4] Eli Ben-Sasson, Oded Goldreich, Prahladh Harsha, Madhu Sudan, and Salil P. Vadhan. Robust PCPs of proximity, shorter PCPs, and applications to coding. SIAM J. Comput, 36(4):889–974, 2006.
  • [5] Eric Blais, Joshua Brody, and Kevin Matulef. Property testing lower bounds via communication complexity. Computational Complexity, 21(2):311–358, 2012.
  • [6] Manuel Blum, Michael Luby, and Ronitt Rubinfeld. Self-testing/correcting with applications to numerical problems. J. Comput. Syst. Sci., 47(3):549–595, 1993.
  • [7] Thomas M. Cover and Joy A. Thomas. Elements of Information Theory. Wiley-Interscience, New York, USA, 2000.
  • [8] Eldar Fischer. The art of uninformed decisions: A primer to property testing. Current Trends in Theoretical Computer Science: The Challenge of the New Century, I:229–264, 2004.
  • [9] Eldar Fischer and Arie Matsliah. Testing graph isomorphism. SIAM J. Comput, 38(1):207–225, 2008.
  • [10] E. N. Gilbert. A comparison of signalling alphabets. The Bell System Technical Journal, 31(3):504–522, May 1952.
  • [11] Oded Goldreich, Shaffi Goldwasser, and Dana Ron. Property testing and its connection to learning and approximation. J. ACM, 45:653–750, July 1998.
  • [12] Oded Goldreich and Madhu Sudan. Locally testable codes and PCPs of almost-linear length. J. ACM, 53(4):558–655, 2006.
  • [13] Tom Gur and Ron Rothblum. Non-interactive proofs of proximity. Electronic Colloquium on Computational Complexity (ECCC), (078), 2013.
  • [14] F. J. MacWilliams and N. J. A. Sloane. The Theory of Error-Correcting Codes, volume 16 of North-Holland Mathematical Library. North-Holland, 1977.
  • [15] F. J. MacWilliams, N. J. A. Sloane, and J. G. Thompson. Good self dual codes exist. Discrete Math., 3:153–162, 1972.
  • [16] Dana Ron. Property testing: A learning theory perspective. Found. Trends Mach. Learn., 1:307–402, March 2008.
  • [17] Dana Ron. Algorithmic and Analysis Techniques in Property Testing. 2010.
  • [18] Guy N. Rothblum, Salil Vadhan, and Avi Wigderson. Interactive proofs of proximity: delegating computation in sublinear time. In Proceedings of the 45th annual ACM symposium on Symposium on theory of computing, STOC ’13, pages 793–802, New York, NY, USA, 2013. ACM.
  • [19] Ronitt Rubinfeld and Madhu Sudan. Robust characterizations of polynomials with applications to program testing. SIAM J. Comput., 25(2):252–271, 1996.
  • [20] R. R. Varshamov. Estimate of the number of signals in error correcting codes. In Dokl. Akad. Nauk SSSR, volume 117, pages 739–741, 1957.