Analysis of Boolean functions

Short description: Study of Boolean functions via discrete Fourier analysis

In mathematics and theoretical computer science, analysis of Boolean functions is the study of real-valued functions on {0,1}n or {−1,1}n (such functions are sometimes known as pseudo-Boolean functions) from a spectral perspective.[1] The functions studied are often, but not always, Boolean-valued, making them Boolean functions. The area has found many applications in combinatorics, social choice theory, random graphs, and theoretical computer science, especially in hardness of approximation, property testing, and PAC learning.

## Contents

* 1 Basic concepts
* 1.1 Fourier expansion
* 1.2 Fourier degree and Fourier levels
* 1.3 Influence
* 1.4 Noise stability
* 1.5 Noise operator
* 1.6 Hypercontractivity
* 1.7 p-Biased analysis
* 1.7.1 Influence
* 1.7.2 Noise operator
* 1.7.3 Russo–Margulis formula
* 1.8 Gaussian space
* 2 Basic results
* 2.1 Friedgut–Kalai–Naor theorem
* 2.2 Kahn–Kalai–Linial theorem
* 2.3 Friedgut's junta theorem
* 2.4 Invariance principle
* 3 Some applications
* 3.1 Linearity testing
* 3.2 Arrow's theorem
* 3.3 Sharp thresholds
* 3.4 Majority is stablest
* 4 References

## Basic concepts

We will mostly consider functions defined on the domain {−1,1}n. Sometimes it is more convenient to work with the domain {0,1}n instead. If f is defined on {−1,1}n, then the corresponding function defined on {0,1}n is

f01(x1,…,xn)=f((−1)x1,…,(−1)xn).

Similarly, for us a Boolean function is a {−1,1}-valued function, though often it is more convenient to consider {0,1}-valued functions instead.

### Fourier expansion

Every real-valued function f:{−1,1}n->ℝ has a unique expansion as a multilinear polynomial:

f(x)=∑S⊆[n]f^(S)χS(x),χS(x)=∏i∈Sxi.

(Note that even if the function is 0-1 valued this is not a sum mod 2, but just an ordinary sum of real numbers.)

This is the Hadamard transform of the function f, which is the Fourier transform in the group ℤ2n. The coefficients f^(S) are known as Fourier coefficients, and the entire sum is known as the Fourier expansion of f. The functions χS are known as Fourier characters, and they form an orthonormal basis for the space of all functions over {−1,1}n, with respect to the inner product ⟨f,g⟩=2−n∑x∈{−1,1}nf(x)g(x).

The Fourier coefficients can be calculated using an inner product:

f^(S)=⟨f,χS⟩.

In particular, this shows that f^(∅)=E⁡[f], where the expected value is taken with respect to the uniform distribution over {−1,1}n. Parseval's identity states that

‖f‖2=E⁡[f2]=∑Sf^(S)2.

If we skip S=∅, then we get the variance of f:

Var⁡[f]=∑S≠∅f^(S)2.

### Fourier degree and Fourier levels

The degree of a function f:{−1,1}n->ℝ is the maximum d such that f^(S)≠0 for some set S of size d. In other words, the degree of f is its degree as a multilinear polynomial.

It is convenient to decompose the Fourier expansion into levels: the Fourier coefficient f^(S) is on level |S|.

The degree d part of f is

f=d=∑|S|=df^(S)χS.

It is obtained from f by zeroing out all Fourier coefficients not on level d.

We similarly define f>d,f<d,f≥d,f≤d.

### Influence

The i'th influence of a function f:{−1,1}n->ℝ can be defined in two equivalent ways:

Infi[f]=E⁡[(f−f⊕i2)2]=∑S∋if^(S)2,f⊕i(x1,…,xn)=f(x1,…,xi−1,−xi,xi+1,…,xn).

If f is Boolean then Infi[f] is the probability that flipping the i'th coordinate flips the value of the function:

Infi[f]=Pr⁡[f(x)≠f⊕i(x)].

If Infi[f]=0 then f doesn't depend on the i'th coordinate.

The total influence of f is the sum of all of its influences:

Inf⁡[f]=∑i=1nInfi[f]=∑S|S|f^(S)2.

The total influence of a Boolean function is also the average sensitivity of the function. The sensitivity of a Boolean function f at a given point is the number of coordinates i such that if we flip the i'th coordinate, the value of the function changes. The average value of this quantity is exactly the total influence.

The total influence can also be defined using the discrete Laplacian of the Hamming graph, suitably normalized: Inf⁡[f]=⟨f,Lf⟩.

A generalized form of influence is the ρ-stable influence, defined by:

Infi(ρ)[f]=Stabρ[Dif]=∑S∋iρ|S|−1f^(S)2.

The corresponding total influences is

I(ρ)[f]=ddρStabρ[f]=∑S|S|ρ|S|−1f^(S)2.

One can prove that a function f:{−1,1}n->{−1,1} has at most “constantly” many “stably-influential” coordinates: |{i∈[n]:Infi(1−δ)[f]≥ϵ}|≤1δϵ.

### Noise stability

Given −1≤ρ≤1, we say that two random vectors x,y∈{−1,1}n are ρ-correlated if the marginal distributions of x,y are uniform, and E⁡[xiyi]=ρ. Concretely, we can generate a pair of ρ-correlated random variables by first choosing x,z∈{−1,1}n uniformly at random, and then choosing y according to one of the following two equivalent rules, applied independently to each coordinate:

yi={xiw.p. ρ,ziw.p. 1−ρ.oryi={xiw.p. 1+ρ2,−xiw.p. 1−ρ2.

We denote this distribution by y∼Nρ(x).

The noise stability of a function f:{−1,1}n->ℝ at ρ can be defined in two equivalent ways:

Stabρ[f]=Ex;y∼Nρ(x)[f(x)f(y)]=∑S⊆[n]ρ|S|f^(S)2.

For 0≤δ≤1, the noise sensitivity of f at δ is

NSδ[f]=12−12Stab1−2δ[f].

If f is Boolean, then this is the probability that the value of f changes if we flip each coordinate with probability δ, independently.

### Noise operator

The noise operator Tρ is an operator taking a function f:{−1,1}n->ℝ and returning another function Tρf:{−1,1}n->ℝ given by

(Tρf)(x)=Ey∼Nρ(x)[f(y)]=∑S⊆[n]ρ|S|f^(S)χS.

When ρ>0, the noise operator can also be defined using a continuous-time Markov chain in which each bit is flipped independently with rate 1. The operator Tρ corresponds to running this Markov chain for 12log⁡1ρ steps starting at x, and taking the average value of f at the final state. This Markov chain is generated by the Laplacian of the Hamming graph, and this relates total influence to the noise operator.

Noise stability can be defined in terms of the noise operator: Stabρ[f]=⟨f,Tρf⟩.

### Hypercontractivity

For 1≤q<∞, the Lq-norm of a function f:{−1,1}n->ℝ is defined by

‖f‖q=E⁡[|f|q]q.

We also define ‖f‖∞=maxx∈{−1,1}n|f(x)|.

The hypercontractivity theorem states that for all p>q>1, if |ρ|≤q−1p−1 then

‖Tρf‖p≤‖f‖q.

Hypercontractivity is closely related to the logarithmic Sobolev inequalities of functional analysis.[2]

A similar result for 1>p>q is known as reverse hypercontractivity.[3] It states that if |ρ|≤1−p1−q then

‖Tρf‖q≥‖f‖p.

### p-Biased analysis

In many situations the input to the function is not uniformly distributed over {−1,1}n, but instead has a bias toward −1 or 1. In these situations it is customary to consider functions over the domain {0,1}n. For 0<p<1, the p-biased measure μp is given by

μp(x)=p∑ixi(1−p)∑i(1−xi).

This measure can be generated by choosing each coordinate independently to be 1 with probability p and 0 with probability 1−p.

The classical Fourier characters are no longer orthogonal with respect to this measure. Instead, we use the following characters:

ωS(x)=(p1−p)|{i∈S:xi=0}|(−1−pp)|{i∈S:xi=1}|.

The p-biased Fourier expansion of f is the expansion of f as a linear combination of p-biased characters:

f=∑S⊆[n]f^(S)ωS.

We can extend the definitions of influence and the noise operator to the p-biased setting by using their spectral definitions.

#### Influence

The i's influence is given by

Infi[f]=∑S∋if^(S)2=p(1−p)E⁡[(f−f⊕i)2].

The total influence is the sum of the individual influences:

Inf⁡[f]=∑i=1nInfi[f]=∑S|S|f^(S)2.

#### Noise operator

A pair of ρ-correlated random variables can be obtained by choosing x,z∼μp independently and y∼Nρ(x), where Nρ is given by

yi={xiw.p. ρ,ziw.p. 1−ρ.

The noise operator is then given by

(Tρf)(x)=∑S⊆[n]ρ|S|f^(S)ωS(x)=Ey∼Nρ(x)[f(y)].

Using this we can define the noise stability and the noise sensitivity, as before.

#### Russo–Margulis formula

The Russo–Margulis formula (also called the Margulis–Russo formula[1]) states that for monotone Boolean functions f:{0,1}n->{0,1},

ddpEx∼μp[f(x)]=Inf⁡[f]p(1−p)=∑i=1nPr⁡[f≠f⊕i].

Both the influence and the probabilities are taken with respect to μp, and on the right-hand side we have the average sensitivity of f. If we think of f as a property, then the formula states that as p varies, the derivative of the probability that f occurs at p equals the average sensitivity at p.

The Russo–Margulis formula is key for proving sharp threshold theorems such as Friedgut's.

### Gaussian space

One of the deepest results in the area, the invariance principle, connects the distribution of functions on the Boolean cube {−1,1}n to their distribution on Gaussian space, which is the space ℝn endowed with the standard n-dimensional Gaussian measure.

Many of the basic concepts of Fourier analysis on the Boolean cube have counterparts in Gaussian space:

* The counterpart of the Fourier expansion in Gaussian space is the Hermite expansion, which is an expansion to an infinite sum (converging in L2) of multivariate Hermite polynomials.
* The counterpart of total influence or average sensitivity for the indicator function of a set is Gaussian surface area, which is the Minkowski content of the boundary of the set.
* The counterpart of the noise operator is the Ornstein–Uhlenbeck operator (related to the Mehler transform), given by (Uρf)(x)=Ez∼N(0,1)[f(ρx+1−ρ2z)], or alternatively by (Uρf)(x)=E⁡[f(y)], where x,y is a pair of ρ-correlated standard Gaussians.
* Hypercontractivity holds (with appropriate parameters) in Gaussian space as well.

Gaussian space is more symmetric than the Boolean cube (for example, it is rotation invariant), and supports continuous arguments which may be harder to get through in the discrete setting of the Boolean cube. The invariance principle links the two settings, and allows deducing results on the Boolean cube from results on Gaussian space.

## Basic results

### Friedgut–Kalai–Naor theorem

If f:{−1,1}n->{−1,1} has degree at most 1, then f is either constant, equal to a coordinate, or equal to the negation of a coordinate. In particular, f is a dictatorship: a function depending on at most one coordinate.

The Friedgut–Kalai–Naor theorem,[4] also known as the FKN theorem, states that if f almost has degree 1 then it is close to a dictatorship. Quantitatively, if f:{−1,1}n->{−1,1} and ‖f>1‖2<ε, then f is O(ε)-close to a dictatorship, that is, ‖f−g‖2=O(ε) for some Boolean dictatorship g, or equivalently, Pr⁡[f≠g]=O(ε) for some Boolean dictatorship g.

Similarly, a Boolean function of degree at most d depends on at most CW2d coordinates, making it a junta (a function depending on a constant number of coordinates), where CW is an absolute constant equal to at least 1.5, and at most 4.41, as shown by Wellens.[5] The Kindler–Safra theorem[6] generalizes the Friedgut–Kalai–Naor theorem to this setting. It states that if f:{−1,1}n->{−1,1} satisfies ‖f>d‖2<ε then f is O(ε)-close to a Boolean function of degree at most d.

### Kahn–Kalai–Linial theorem

The Poincaré inequality for the Boolean cube (which follows from formulas appearing above) states that for a function f:{−1,1}n->ℝ,

Var⁡[f]≤Inf⁡[f]≤deg⁡f⋅Var⁡[f].

This implies that maxiInfi[f]≥Var⁡[f]n.

The Kahn–Kalai–Linial theorem,[7] also known as the KKL theorem, states that if f is Boolean then maxiInfi[f]=Ω(log⁡nn).

The bound given by the Kahn–Kalai–Linial theorem is tight, and is achieved by the Tribes function of Ben-Or and Linial:[8]

(x1,1∧⋯∧x1,w)∨⋯∨(x2w,1∧⋯∧x2w,w).

The Kahn–Kalai–Linial theorem was one of the first results in the area, and was the one introducing hypercontractivity into the context of Boolean functions.

### Friedgut's junta theorem

If f:{−1,1}n->{−1,1} is an M-junta (a function depending on at most M coordinates) then Inf⁡[f]≤M according to the Poincaré inequality.

Friedgut's theorem[9] is a converse to this result. It states that for any ε>0, the function f is ε-close to a Boolean junta depending on exp⁡(Inf⁡[f]/ε) coordinates.

Combined with the Russo–Margulis lemma, Friedgut's junta theorem implies that for every p, every monotone function is close to a junta with respect to μq for some q≈p.

### Invariance principle

The invariance principle[10] generalizes the Berry–Esseen theorem to non-linear functions.

The Berry–Esseen theorem states (among else) that if f=∑i=1ncixi and no ci is too large compared to the rest, then the distribution of f over {−1,1}n is close to a normal distribution with the same mean and variance.

The invariance principle (in a special case) informally states that if f is a multilinear polynomial of bounded degree over x1,…,xn and all influences of f are small, then the distribution of f under the uniform measure over {−1,1}n is close to its distribution in Gaussian space.

More formally, let ψ be a univariate Lipschitz function, let f=∑S⊆[n]f^(S)χS, let k=deg⁡f, and let ε=maxi∑S∋if^(S)2. Suppose that ∑S≠∅f^(S)2≤1. Then

|Ex∼{−1,1}n[ψ(f(x))]−Eg∼N(0,I)[ψ(f(g))]|=O(k9kε).

By choosing appropriate ψ, this implies that the distributions of f under both measures are close in CDF distance, which is given by supt|Pr⁡[f(x)<t]−Pr⁡[f(g)<t]|.

The invariance principle was the key ingredient in the original proof of the Majority is Stablest theorem.

## Some applications

### Linearity testing

A Boolean function f:{−1,1}n->{−1,1} is linear if it satisfies f(xy)=f(x)f(y), where xy=(x1y1,…,xnyn). It is not hard to show that the Boolean linear functions are exactly the characters χS.

In property testing we want to test whether a given function is linear. It is natural to try the following test: choose x,y∈{−1,1}n uniformly at random, and check that f(xy)=f(x)f(y). If f is linear then it always passes the test. Blum, Luby and Rubinfeld[11] showed that if the test passes with probability 1−ε then f is O(ε)-close to a Fourier character. Their proof was combinatorial.

Bellare et al.[12] gave an extremely simple Fourier-analytic proof, that also shows that if the test succeeds with probability 1/2+ε, then f is correlated with a Fourier character. Their proof relies on the following formula for the success probability of the test:

12+12∑S⊆[n]f^(S)3.

### Arrow's theorem

Arrow's impossibility theorem states that for three and more candidates, the only unanimous voting rule for which there is always a Condorcet winner is a dictatorship.

The usual proof of Arrow's theorem is combinatorial. Kalai[13] gave an alternative proof of this result in the case of three candidates using Fourier analysis. If f:{−1,1}n->{−1,1} is the rule that assigns a winner among two candidates given their relative orders in the votes, then the probability that there is a Condorcet winner given a uniformly random vote is 34−34Stab−1/3[f], from which the theorem easily follows.

The FKN theorem implies that if f is a rule for which there is almost always a Condorcet winner, then f is close to a dictatorship.

### Sharp thresholds

A classical result in the theory of random graphs states that the probability that a G(n,p) random graph is connected tends to e−e−c if p∼log⁡n+cn. This is an example of a sharp threshold: the width of the "threshold window", which is O(1/n), is asymptotically smaller than the threshold itself, which is roughly log⁡nn. In contrast, the probability that a G(n,p) graph contains a triangle tends to e−c3/6 when p∼cn. Here both the threshold window and the threshold itself are Θ(1/n), and so this is a coarse threshold.

Friedgut's sharp threshold theorem[14] states, roughly speaking, that a monotone graph property (a graph property is a property which doesn't depend on the names of the vertices) has a sharp threshold unless it is correlated with the appearance of small subgraphs. This theorem has been widely applied to analyze random graphs and percolation.

On a related note, the KKL theorem implies that the width of threshold window is always at most O(1/log⁡n).[15]

### Majority is stablest

Let Majn:{−1,1}n->{−1,1} denote the majority function on n coordinates. Sheppard's formula gives the asymptotic noise stability of majority:

Stabρ[Majn]⟶1−2πarccos⁡ρ.

This is related to the probability that if we choose x∈{−1,1}n uniformly at random and form y∈{−1,1}n by flipping each bit of x with probability 1−ρ2, then the majority stays the same:

Stabρ[Majn]=2Pr⁡[Majn(x)=Majn(y)]−1.

There are Boolean functions with larger noise stability. For example, a dictatorship xi has noise stability ρ.

The Majority is Stablest theorem states, informally, then the only functions having noise stability larger than majority have influential coordinates. Formally, for every ε>0 there exists τ>0 such that if f:{−1,1}n->{−1,1} has expectation zero and maxiInfi[f]≤τ, then Stabρ[f]≤1−2πarccos⁡ρ+ε.

The first proof of this theorem used the invariance principle in conjunction with an isoperimetric theorem of Borell in Gaussian space; since then more direct proofs were devised.[16] [17]

Majority is Stablest implies that the Goemans–Williamson approximation algorithm for MAX-CUT is optimal, assuming the unique games conjecture. This implication, due to Khot et al.,[18] was the impetus behind proving the theorem.

## References

1. ↑ 1.0 1.1 O'Donnell, Ryan (2014). Analysis of Boolean functions. Cambridge University Press. ISBN 978-1-107-03832-5.
2. ↑ , Wikidata Q62111462
3. ↑ Mossel, Elchanan; Oleszkiewicz, Krzysztof; Sen, Arnab (2013). "On reverse hypercontractivity". Geometric and Functional Analysis 23 (3): 1062–1097. doi:10.1007/s00039-013-0229-4.
4. ↑ Friedgut, Ehud; Kalai, Gil; Naor, Assaf (2002). "Boolean functions whose Fourier transform is concentrated on the first two levels". Advances in Applied Mathematics 29 (3): 427–437. doi:10.1016/S0196-8858(02)00024-6.
5. ↑ Wellens, Jake (2020). "Relationships between the number of inputs and other complexity measures of Boolean functions". Discrete Analysis. doi:10.19086/da.57741. https://discreteanalysisjournal.com/article/57741-relationships-between-the-number-of-inputs-and-other-complexity-measures-of-boolean-functions.
6. ↑ Kindler, Guy (2002). "Chapter 16" (PDF). Property testing, PCP, and juntas (Thesis). Tel Aviv University.
7. ↑ Kahn, Jeff; Kalai, Gil; Linial, Nati (1988). "The influence of variables on Boolean functions.". SFCS'88. White Plains: IEEE. pp. 68–80. doi:10.1109/SFCS.1988.21923.
8. ↑ Ben-Or, Michael; Linial, Nathan (1985). "Collective coin flipping, robust voting schemes and minima of Banzhaf values". SFCS'85. Portland, Oregon: IEEE. pp. 408–416. doi:10.1109/SFCS.1985.15.
9. ↑ Friedgut, Ehud (1998). "Boolean functions with low average sensitivity depend on few coordinates". Combinatorica 18 (1): 474–483. doi:10.1007/PL00009809.
10. ↑ Mossel, Elchanan; O'Donnell, Ryan; Oleszkiewicz, Krzysztof (2010). "Noise stability of functions with low influences: Invariance and optimality". Annals of Mathematics 171 (1): 295–341. doi:10.4007/annals.2010.171.295.
11. ↑ Blum, Manuel; Luby, Michael; Rubinfeld, Ronitt (1993). "Self-testing/correcting with applications to numerical problems". J. Comput. Syst. Sci. 47 (3): 549–595. doi:10.1016/0022-0000(93)90044-W.
12. ↑ Bellare, Mihir; Coppersmith, Don; Håstad, Johan; Kiwi, Marcos; Sudan, Madhu (1995). "Linearity testing in characteristic two". FOCS'95.
13. ↑ Kalai, Gil (2002). "A Fourier-theoretic perspective on the Condorcet paradox and Arrow's theorem". Advances in Applied Mathematics 29 (3): 412–426. doi:10.1016/S0196-8858(02)00023-4. http://ratio.huji.ac.il/sites/default/files/publications/dp280.pdf.
14. ↑ Friedgut, Ehud (1999). "Sharp thresholds of graph properties and the k-SAT problem". Journal of the American Mathematical Society 12 (4): 1017–1054. doi:10.1090/S0894-0347-99-00305-7.
15. ↑ Friedgut, Ehud; Kalai, Gil (1996). "Every monotone graph property has a sharp threshold". Proceedings of the American Mathematical Society 124 (10): 2993–3002. doi:10.1090/S0002-9939-96-03732-X.
16. ↑ De, Anindya; Mossel, Elchanan; Neeman, Joe (2016), "Majority is Stablest: Discrete and SoS", Theory of Computing 12 (4): 1–50, doi:10.4086/toc.2016.v012a004, https://theoryofcomputing.org/articles/v012a004/v012a004.pdf
17. ↑ Eldan, Ronen; Mikulincer, Dan; Raghavendra, Prasad (June 2023). "Noise stability on the Boolean hypercube via a renormalized Brownian motion". STOC. Orlando, Florida: ACM. pp. 661–671. doi:10.1145/3564246.3585118. https://dl.acm.org/doi/10.1145/3564246.3585118.
18. ↑ Khot, Subhash; Kindler, Guy; Mossel, Elchanan; O'Donnell, Ryan (2007), "Optimal inapproximability results for MAX-CUT and other two-variable CSPs?", SIAM Journal on Computing 37 (1): 319–357, doi:10.1137/S0097539705447372, https://www.cs.cornell.edu/~abrahao/tdg/papers/KKMO-maxcut.pdf

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Analysis of Boolean functions. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Analysis_of_Boolean_functions&oldid=4156369"