Adaptive tests of t-wise independence #
A test that inspects bits of its input adaptively is a decision tree
(Cslib.DecisionTree), and the bits it inspects on an input z are t.queries z. The input
reaches the leaf it reaches exactly on the subcube of inputs that agree with z on those bits
(DecisionTree.eval_eq_of_forall_mem_queries). Summing over the leaves therefore turns a bound
on subcubes into a bound on trees: if a signed weight d on the cube has total weight at most
ε in absolute value on every subcube spanned by an admissible set of coordinates, and every
query set of the tree is admissible, then |∑ z, d z * g (t.eval z)| ≤ 2 ^ k * C * ε, where every
input makes at most k queries and |g| ≤ C at the outputs
(Cslib.DecisionTree.abs_sum_mul_eval_le). The proof is an induction over the tree that keeps the
partial assignment fixed by the queries so far; a query whose answer is already fixed follows a
single branch, so repeated queries cost nothing.
With d the difference of a distribution and the uniform distribution, this gives the bounds
in Exercises 8.29 and 8.32(2) of the March 2007 draft [Gol07c]:
- Exercise 8.29: a
t-wise independent generator with blocks ofκ → Bool, as inCslib.Probability.IsKWiseIndependentHash, is perfectly indistinguishable from uniform by any randomized test that examinestblocks adaptively (Cslib.Probability.IsKWiseIndependentHash.bind_map_eval_eq). Here every admissible set meets at mosttblocks, on which the generator is exactly uniform, soε = 0. - Exercise 8.32(2): if every
tpositions ofXareε-close to uniform, then every randomized test that inspectstpositions adaptively has distinguishing gap at most2 ^ t ε(Cslib.DecisionTree.abs_bind_map_eval_apply_sub_le).
The companion separation module proves that adaptive tests can detect distributions whose fixed-coordinate marginals are close to uniform.
Main results #
Cslib.DecisionTree.abs_sum_mul_eval_le: bounds on subcubes give bounds on decision trees.Cslib.Probability.IsKWiseIndependentHash.map_eval_eq,Cslib.Probability.IsKWiseIndependentHash.bind_map_eval_eq: Exercise 8.29.Cslib.DecisionTree.abs_map_eval_apply_sub_le,Cslib.DecisionTree.abs_bind_map_eval_apply_sub_le: Exercise 8.32(2).Cslib.DecisionTree.exists_dist_map_restrict_le_and_map_eval_eq_printed_length: separation at the printed length in Exercise 8.32(1).
References #
- [O. Goldreich, Computational Complexity: A Conceptual Perspective, draft r4] [Gol07c]
Bounds on subcubes bound decision trees. Let d be a signed weight on the cube whose total
on every subcube spanned by an admissible set P of coordinates, {z | ∀ i ∈ P, z i = a i}, is at
most ε in absolute value. If a decision tree t makes at most k queries on every input, its
query sets are all admissible, and |g| ≤ C on its outputs, then the d-weighted sum of
g (t.eval z) is at most 2 ^ k * (C * ε) in absolute value.
Adaptive tests of almost t-wise independence, deterministic case. If the marginal of X
on every t coordinates is ε-close to uniform, a decision tree that inspects at most t
coordinates on every input accepts X and the uniform distribution with probabilities that differ
by at most 2 ^ t ε. The randomized form is abs_bind_map_eval_apply_sub_le
Goldreich, Exercise 8.32(2).
Adaptive tests of almost t-wise independence [Goldreich, Exercise 8.32(2)]
[Gol07c]. If every t fixed positions of X are ε-close to uniform, then every
randomized test that inspects t positions adaptively distinguishes X from the uniform
distribution with gap at most 2 ^ t ε. The test draws coins r from ρ on a finite type and
runs the decision tree T r, which inspects at most t positions on every input. Its gap is the
absolute difference of its acceptance probabilities. The source leaves the string length n ≥ t
implicit. It appears here as t ≤ Fintype.card ι.
t-wise independent generators fool adaptive block tests, deterministic case. If G is a
t-wise independent family of block sequences, then a decision tree on the bits (p, j) of the
blocks that reads bits of at most t blocks on every input has the same output distribution on
G with a uniform seed as on uniform bits. The randomized form is bind_map_eval_eq
Goldreich, Exercise 8.29.
t-wise independent generators fool adaptive tests of t blocks
Goldreich, Exercise 8.29. Let G be a t-wise independent generator:
for a uniform seed s, the blocks G s p : κ → Bool at any t positions p are independent and
uniform (IsKWiseIndependentHash t G; Goldreich's blocks are b(k)-bit strings, κ = Fin (b k)).
A randomized test draws coins r from ρ and runs the decision tree T r on the output bits
(p, j), reading bits of at most t blocks on every input. Its output distribution on G with a
uniform seed equals that on uniform bits, so the output of G is perfectly indistinguishable from
uniform by it. A test that reads whole blocks, choosing the next block from the contents of those
already read, is such a tree; trees may also read parts of blocks.