A function is linear if either of the following conditions hold:
for some (Global description)
For all (Local description)
What can we say about function which satisfies many of these local requirements? How close is it to a linear function? How does the distance to linear functions related to the fraction of local requirements satisfied?
BLR Test (Blum, Luby, Rubinfeld): Given :
- Choose independently and uniformly at random.
- Query
- Accept if and Reject otherwise.
Theorem: Let be a function whose distance to linear functions is . Then the BLR test rejects with probability between and
Fourier Proof: Let
Upper bound: Using Parseval , we get
We have for any
We have for any linear function
and hence
Lower bound: Let be such that
We have
Therefore