In the Impagliazzo hard-core set theorem we are a given a function such that every algorithm in a certain class makes errors at least a fraction of the times when given a random input. We think of as small, and so of as exhibiting a weak form of average-case complexity. We want to find a large set such that is average-case hard in a stronger sense when restricted to . This stronger form of average-case complexity will be that no efficient algorithm can make noticeably fewer errors while computing on than a trivial algorithm that always outputs the same value regardless of the input. The formal statement of what we are trying to do (see also the discussion in this previous post) is:
Impagliazzo Hard-Core Set Theorem, “Constructive Version”
Let be a boolean function, be a size parameter, be given. Then there is a size parameter such that the following happens.
Suppose that for every function computable by a circuit of size we have
Then there is a set such that: (i) is recognizable by circuits of size ; (ii) , and in fact the number of in such that is at least , and so is the number of in such that ; and (iii) for every computable by a circuit of size ,
Our approach will be to look for a “regular partition” of . We shall construct a partition of such that: (i) given , we can efficiently compute what is the block that belongs to; (ii) the number of blocks does not depend on ; (iii) restricted to most blocks behaves like a random function of the same density. (By “density” of a function we mean the fraction of inputs on which the function evaluates to one.)
In particular, we will use the following form of (iii): for almost all the blocks , no algorithm has advantage more than over a constant predictor in computing in .
Let be the union of all majority-0 blocks (that is, of blocks such that takes the value 0 on a majority of elements of ) and let be the union of all majority-1 blocks.
I want to claim that no algorithm can do noticeably better on than the constant algorithm that always outputs 0. Indeed, we know that within (almost) all of the blocks that compose no algorithm can do noticeably better than the always-0 algorithm, so this must be true for a stronger reason for the union. The same is true for , with reference to the constant algorithm that always outputs 1. Also, if the partition is efficiently computable, then(in a non-uniform setting) and are efficiently recognizable. It remains to argue that either or is large and not completely unbalanced.
Recalling that we are in a non-uniform setting (where by “algorithms” we mean “circuits”) and that the partition is efficiently computable, the following is a well defined efficient algorithm for attempting to compute :
Algorithm. Local Majority
On input :
determine the block that belongs to;
output if ;
otherwise output 0
(The majority values of in the various blocks are just a set of bits that can be hard-wired into the circuit.)
We assumed that every efficient algorithm must make at least a fraction of errors. The set of inputs where the Local Majority algorithm makes mistakes is the union, over all blocks , of the “minority inputs” of the block . (If is the majority value of in a block , then the “minority inputs” of are the set of inputs such that .)
Let be the set of minority inputs (those where our algorithm makes a mistake) in and be the set of minority inputs in . Then at least one of and must have size at least , because the size of their union is at least . If has size at least , then has all the properties of the set we are looking for.
It remains to construct the partition. We describe an iterative process to construct it. We begin with the trivial partition where . At a generic step of the construction, we have a partition , and we consider as above. Let be such that . If there is no algorithm that has noticeable advantage in computing over , we are done. Otherwise, if there is such an algorithm , we refine the partition by splitting each block according to the values that takes on the elements of the block.
After steps of this process, the partition has the following form: there are functions and each of the (at most) blocks of the partition corresponds to a bit string and it contains all inputs such that . In particular, the partition is efficiently computable.
We need to argue that this process terminates with . To this end, we define a potential function that measures the “imbalance” of inside the blocks the partition
and we can show that this potential function increases by at least at each step of the iteration. Since the potential function can be at most 1, the bound on the number of iterations follows.
A reader familiar with the proof of the Szemeredi Regularity Lemma will recognize the main ideas of iterative partitioning, of using a “counterexample” to the regularity property required of the final partition to do a refinement step, and of using a potential function argument to bound the number of refinement steps.
In which way can we see them as “finitary ergodic theoretic” techniques? As somebody who does not know anything about ergodic theory, I may not be in an ideal position to answer this question. But this kind of difficulty has not stopped me before, so I may attempt to answer this question in a future post.