We show the intuitive fact: “if you can distinguish something from random, you can guess it better than random chance”.
Let be some supposedly hard function. If there is an algorithm that, knowing , can distinguish from a random bit with some advantage, then there is some algorithm that guesses from with better than random chance. More precisely, if
then : that is, either or has a correlation of at least with .
This trick is useful when proving the existence of pseudorandom generators from hard-core bits: it shows that if some is hard to guess (in the sense that no fast algorithm correlates with it much), then must look random to any fast algorithm that knows only .
Note that depending on the context, we might only want to give restricted access to . In this case, we can replace by for some function , and becomes either or .
Proof
We will show that, in fact,
So if the absolute value of the LHS is at least , then at least one of the terms in the RHS has to have absolute value .
First,
Then, we can observe that
where the second equality holds pointwise (just check both possible values of ).