# Analysis of Boolean functions

In mathematics and theoretical computer science, analysis of Boolean functions is the study of real-valued functions on ${\displaystyle \{0,1\}^{n}}$ or ${\displaystyle \{-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.

## Basic concepts

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

${\displaystyle f_{01}(x_{1},\ldots ,x_{n})=f((-1)^{x_{1}},\ldots ,(-1)^{x_{n}}).}$

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

### Fourier expansion

Every real-valued function ${\displaystyle f\colon \{-1,1\}^{n}\to \mathbb {R} }$  has a unique expansion as a multilinear polynomial:

${\displaystyle f(x)=\sum _{S\subseteq [n]}{\hat {f}}(S)\chi _{S}(x),\quad \chi _{S}(x)=\prod _{i\in S}x_{i}.}$

This is the Hadamard transform of the function ${\displaystyle f}$ , which is the Fourier transform in the group ${\displaystyle \mathbb {Z} _{2}^{n}}$ . The coefficients ${\displaystyle {\hat {f}}(S)}$  are known as Fourier coefficients, and the entire sum is known as the Fourier expansion of ${\displaystyle f}$ . The functions ${\displaystyle \chi _{S}}$  are known as Fourier characters, and they form an orthonormal basis for the space of all functions over ${\displaystyle \{-1,1\}^{n}}$ , with respect to the inner product ${\displaystyle \langle f,g\rangle =2^{-n}\sum _{x\in \{-1,1\}^{n}}f(x)g(x)}$ .

The Fourier coefficients can be calculated using an inner product:

${\displaystyle {\hat {f}}(S)=\langle f,\chi _{S}\rangle .}$

In particular, this shows that ${\displaystyle {\hat {f}}(\emptyset )=\operatorname {E} [f]}$ , where the expected value is taken with respect to the uniform distribution over ${\displaystyle \{-1,1\}^{n}}$ . Parseval's identity states that

${\displaystyle \|f\|^{2}=\operatorname {E} [f^{2}]=\sum _{S}{\hat {f}}(S)^{2}.}$

If we skip ${\displaystyle S=\emptyset }$ , then we get the variance of ${\displaystyle f}$ :

${\displaystyle \operatorname {Var} [f]=\sum _{S\neq \emptyset }{\hat {f}}(S)^{2}.}$

### Fourier degree and Fourier levels

The degree of a function ${\displaystyle f\colon \{-1,1\}^{n}\to \mathbb {R} }$  is the maximum ${\displaystyle d}$  such that ${\displaystyle {\hat {f}}(S)\neq 0}$  for some set ${\displaystyle S}$  of size ${\displaystyle d}$ . In other words, the degree of ${\displaystyle f}$  is its degree as a multilinear polynomial.

It is convenient to decompose the Fourier expansion into levels: the Fourier coefficient ${\displaystyle {\hat {f}}(S)}$  is on level ${\displaystyle |S|}$ .

The degree ${\displaystyle d}$  part of ${\displaystyle f}$  is

${\displaystyle f^{=d}=\sum _{|S|=d}{\hat {f}}(S)\chi _{S}.}$

It is obtained from ${\displaystyle f}$  by zeroing out all Fourier coefficients not on level ${\displaystyle d}$ .

We similarly define ${\displaystyle f^{>d},f^{ .

### Influence

The ${\displaystyle i}$ 'th influence of a function ${\displaystyle f\colon \{-1,1\}^{n}\to \mathbb {R} }$  can be defined in two equivalent ways:

{\displaystyle {\begin{aligned}&\operatorname {Inf} _{i}[f]=\operatorname {E} \left[\left({\frac {f-f^{\oplus i}}{2}}\right)^{2}\right]=\sum _{S\ni i}{\hat {f}}(S)^{2},\\[5pt]&f^{\oplus i}(x_{1},\ldots ,x_{n})=f(x_{1},\ldots ,x_{i-1},-x_{i},x_{i+1},\ldots ,x_{n}).\end{aligned}}}

If ${\displaystyle f}$  is Boolean then ${\displaystyle \operatorname {Inf} _{i}[f]}$  is the probability that flipping the ${\displaystyle i}$ 'th coordinate flips the value of the function:

${\displaystyle \operatorname {Inf} _{i}[f]=\Pr[f(x)\neq f^{\oplus i}(x)].}$

If ${\displaystyle \operatorname {Inf} _{i}[f]=0}$  then ${\displaystyle f}$  doesn't depend on the ${\displaystyle i}$ 'th coordinate.

The total influence of ${\displaystyle f}$  is the sum of all of its influences:

${\displaystyle \operatorname {Inf} [f]=\sum _{i=1}^{n}\operatorname {Inf} _{i}[f]=\sum _{S}|S|{\hat {f}}(S)^{2}.}$

The total influence of a Boolean function is also the average sensitivity of the function. The sensitivity of a Boolean function ${\displaystyle f}$  at a given point is the number of coordinates ${\displaystyle i}$  such that if we flip the ${\displaystyle 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: ${\displaystyle \operatorname {Inf} [f]=\langle f,Lf\rangle }$ .

The Sensitivity conjecture: There exists an absolute constant C > 0, such that for every boolean function f,

          Block Sensitivity  bs(f) ≤ Sensitivity s(f}C.


was confirmed by Hao Huang [2], [3].

A generalized form of influence is the ${\displaystyle \rho }$ -stable influence, defined by:

${\displaystyle \operatorname {Inf} _{i}^{(\rho )}[f]=\operatorname {Stab} _{\rho }[\operatorname {D} _{i}f]=\sum _{S\ni i}\rho ^{|S|-1}{\hat {f}}(S)^{2}.}$

The corresponding total influences is

${\displaystyle \operatorname {I} ^{(\rho )}[f]={\frac {d}{d\rho }}\operatorname {Stab} _{\rho }[f]=\sum _{S}|S|\rho ^{|S|}{\hat {f}}(S)^{2}.}$

One can prove that a function ${\displaystyle f:\{-1,1\}^{n}\to \{-1,1\}}$  has at most “constantly” many “stably-influential” coordinates: ${\displaystyle |\{i\in [n]:\operatorname {Inf} _{i}^{(1-\delta )}[f]\geq \epsilon \}|\leq {\frac {1}{\delta \epsilon }}.}$

### Noise stability

Given ${\displaystyle -1\leq \rho \leq 1}$ , we say that two random vectors ${\displaystyle x,y\in \{-1,1\}^{n}}$  are ${\displaystyle \rho }$ -correlated if the marginal distributions of ${\displaystyle x,y}$  are uniform, and ${\displaystyle \operatorname {E} [x_{i}y_{i}]=\rho }$ . Concretely, we can generate a pair of ${\displaystyle \rho }$ -correlated random variables by first choosing ${\displaystyle x,z\in \{-1,1\}^{n}}$  uniformly at random, and then choosing ${\displaystyle y}$  according to one of the following two equivalent rules, applied independently to each coordinate:

${\displaystyle y_{i}={\begin{cases}x_{i}&{\text{w.p. }}\rho ,\\z_{i}&{\text{w.p. }}1-\rho .\end{cases}}\quad {\text{or}}\quad y_{i}={\begin{cases}x_{i}&{\text{w.p. }}{\frac {1+\rho }{2}},\\-x_{i}&{\text{w.p. }}{\frac {1-\rho }{2}}.\end{cases}}}$

We denote this distribution by ${\displaystyle y\sim N_{\rho }(x)}$ .

The noise stability of a function ${\displaystyle f\colon \{-1,1\}^{n}\to \mathbb {R} }$  at ${\displaystyle \rho }$  can be defined in two equivalent ways:

${\displaystyle \operatorname {Stab} _{\rho }[f]=\operatorname {E} _{x;y\sim N_{\rho }(x)}[f(x)f(y)]=\sum _{S\subseteq [n]}\rho ^{|S|}{\hat {f}}(S)^{2}.}$

For ${\displaystyle 0\leq \delta \leq 1}$ , the noise sensitivity of ${\displaystyle f}$  at ${\displaystyle \delta }$  is

${\displaystyle \operatorname {NS} _{\delta }[f]={\frac {1}{2}}-{\frac {1}{2}}\operatorname {Stab} _{1-2\delta }[f].}$

If ${\displaystyle f}$  is Boolean, then this is the probability that the value of ${\displaystyle f}$  changes if we flip each coordinate with probability ${\displaystyle \delta }$ , independently.

### Noise operator

The noise operator ${\displaystyle T_{\rho }}$  is an operator taking a function ${\displaystyle f\colon \{-1,1\}^{n}\to \mathbb {R} }$  and returning another function ${\displaystyle T_{\rho }f\colon \{-1,1\}^{n}\to \mathbb {R} }$  given by

${\displaystyle (T_{\rho }f)(x)=\operatorname {E} _{y\sim N_{\rho }(x)}[f(y)]=\sum _{S\subseteq [n]}\rho ^{|S|}{\hat {f}}(S)\chi _{S}.}$

When ${\displaystyle \rho >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 ${\displaystyle T_{\rho }}$  corresponds to running this Markov chain for ${\displaystyle {\frac {1}{2}}\log {\frac {1}{\rho }}}$  steps starting at ${\displaystyle x}$ , and taking the average value of ${\displaystyle 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: ${\displaystyle \operatorname {Stab} _{\rho }[f]=\langle f,T_{\rho }f\rangle }$ .

### Hypercontractivity

For ${\displaystyle 1\leq q<\infty }$ , the ${\displaystyle L_{q}}$ -norm of a function ${\displaystyle f\colon \{-1,1\}^{n}\to \mathbb {R} }$  is defined by

${\displaystyle \|f\|_{q}={\sqrt[{q}]{\operatorname {E} [|f|^{q}]}}.}$

We also define ${\displaystyle \|f\|_{\infty }=\max _{x\in \{-1,1\}^{n}}|f(x)|.}$

The hypercontractivity theorem states that for any ${\displaystyle q>2}$  and ${\displaystyle q'=1/(1-1/q)}$ ,

${\displaystyle \|T_{\rho }f\|_{q}\leq \|f\|_{2}\quad {\text{and}}\quad \|T_{\rho }f\|_{2}\leq \|f\|_{q'}.}$

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

A similar result for ${\displaystyle q<2}$  is known as reverse hypercontractivity.[5]

### p-Biased analysis

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

${\displaystyle \mu _{p}(x)=p^{\sum _{i}x_{i}}(1-p)^{\sum _{i}(1-x_{i})}.}$

This measure can be generated by choosing each coordinate independently to be 1 with probability ${\displaystyle p}$  and 0 with probability ${\displaystyle 1-p}$ .

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

${\displaystyle \omega _{S}(x)=\left({\sqrt {\frac {p}{1-p}}}\right)^{|\{i\in S:x_{i}=0\}|}\left(-{\sqrt {\frac {1-p}{p}}}\right)^{|\{i\in S:x_{i}=1\}|}.}$

The p-biased Fourier expansion of ${\displaystyle f}$  is the expansion of ${\displaystyle f}$  as a linear combination of p-biased characters:

${\displaystyle f=\sum _{S\subseteq [n]}{\hat {f}}(S)\omega _{S}.}$

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

#### Influence

The ${\displaystyle i}$ 's influence is given by

${\displaystyle \operatorname {Inf} _{i}[f]=\sum _{S\ni i}{\hat {f}}(S)^{2}=p(1-p)\operatorname {E} [(f-f^{\oplus i})^{2}].}$

The total influence is the sum of the individual influences:

${\displaystyle \operatorname {Inf} [f]=\sum _{i=1}^{n}\operatorname {Inf} _{i}[f]=\sum _{S}|S|{\hat {f}}(S)^{2}.}$

#### Noise operator

A pair of ${\displaystyle \rho }$ -correlated random variables can be obtained by choosing ${\displaystyle x,z\sim \mu _{p}}$  independently and ${\displaystyle y\sim N_{\rho }(x)}$ , where ${\displaystyle N_{\rho }}$  is given by

${\displaystyle y_{i}={\begin{cases}x_{i}&{\text{w.p. }}\rho ,\\z_{i}&{\text{w.p. }}1-\rho .\end{cases}}}$

The noise operator is then given by

${\displaystyle (T_{\rho }f)(x)=\sum _{S\subseteq [n]}\rho ^{|S|}{\hat {f}}(S)\omega _{S}(x)=\operatorname {E} _{y\sim N_{\rho }(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 ${\displaystyle f\colon \{0,1\}^{n}\to \{0,1\}}$ ,

${\displaystyle {\frac {d}{dp}}\operatorname {E} _{x\sim \mu _{p}}[f(x)]={\frac {\operatorname {Inf} [f]}{p(1-p)}}=\sum _{i=1}^{n}\Pr[f\neq f^{\oplus i}].}$

Both the influence and the probabilities are taken with respect to ${\displaystyle \mu _{p}}$ , and on the right-hand side we have the average sensitivity of ${\displaystyle f}$ . If we think of ${\displaystyle f}$  as a property, then the formula states that as ${\displaystyle p}$  varies, the derivative of the probability that ${\displaystyle f}$  occurs at ${\displaystyle p}$  equals the average sensitivity at ${\displaystyle 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 ${\displaystyle \{-1,1\}^{n}}$  to their distribution on Gaussian space, which is the space ${\displaystyle \mathbb {R} ^{n}}$  endowed with the standard ${\displaystyle 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 ${\displaystyle L^{2}}$ ) 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 ${\displaystyle (U_{\rho }f)(x)=\operatorname {E} _{z\sim N(0,1)}[f(\rho x+{\sqrt {1-\rho ^{2}}}z)]}$ , or alternatively by ${\displaystyle (U_{\rho }f)(x)=\operatorname {E} [f(y)]}$ , where ${\displaystyle x,y}$  is a pair of ${\displaystyle \rho }$ -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 ${\displaystyle f\colon \{-1,1\}^{n}\to \{-1,1\}}$  has degree at most 1, then ${\displaystyle f}$  is either constant, equal to a coordinate, or equal to the negation of a coordinate. In particular, ${\displaystyle f}$  is a dictatorship: a function depending on at most one coordinate.

The Friedgut–Kalai–Naor theorem,[6] also known as the FKN theorem, states that if ${\displaystyle f}$  almost has degree 1 then it is close to a dictatorship. Quantitatively, if ${\displaystyle f\colon \{-1,1\}^{n}\to \{-1,1\}}$  and ${\displaystyle \|f^{>1}\|^{2}<\varepsilon }$ , then ${\displaystyle f}$  is ${\displaystyle O(\varepsilon )}$ -close to a dictatorship, that is, ${\displaystyle \|f-g\|^{2}=O(\varepsilon )}$  for some Boolean dictatorship ${\displaystyle g}$ , or equivalently, ${\displaystyle \Pr[f\neq g]=O(\varepsilon )}$  for some Boolean dictatorship ${\displaystyle g}$ .

Similarly, a Boolean function of degree at most ${\displaystyle d}$  depends on at most ${\displaystyle C_{W}2^{d}}$  coordinates, making it a junta (a function depending on a constant number of coordinates), where ${\displaystyle C_{W}}$  is an absolute constant equal to at least 1.5, and at most 4.41, as shown by Wellens. The Kindler–Safra theorem[7] generalizes the Friedgut–Kalai–Naor theorem to this setting. It states that if ${\displaystyle f\colon \{-1,1\}^{n}\to \{-1,1\}}$  satisfies ${\displaystyle \|f^{>d}\|^{2}<\varepsilon }$  then ${\displaystyle f}$  is ${\displaystyle O(\varepsilon )}$ -close to a Boolean function of degree at most ${\displaystyle d}$ .

### Kahn–Kalai–Linial theorem

The Poincaré inequality for the Boolean cube (which follows from formulas appearing above) states that for a function ${\displaystyle f\colon \{-1,1\}^{n}\to \mathbb {R} }$ ,

${\displaystyle \operatorname {Var} [f]\leq \operatorname {Inf} [f]\leq \deg f\cdot \operatorname {Var} [f].}$

This implies that ${\displaystyle \max _{i}\operatorname {Inf} _{i}[f]\geq {\frac {\operatorname {Var} [f]}{n}}}$ .

The Kahn–Kalai–Linial theorem,[8] also known as the KKL theorem, states that if ${\displaystyle f}$  is Boolean then ${\displaystyle \max _{i}\operatorname {Inf} _{i}[f]=\Omega \left({\frac {\log n}{n}}\right)}$ .

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

${\displaystyle (x_{1,1}\land \cdots \land x_{1,w})\lor \cdots \lor (x_{2^{w},1}\land \cdots \land x_{2^{w},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 ${\displaystyle f\colon \{-1,1\}^{n}\to \{-1,1\}}$  is an ${\displaystyle M}$ -junta (a function depending on at most ${\displaystyle M}$  coordinates) then ${\displaystyle \operatorname {Inf} [f]\leq M}$  according to the Poincaré inequality.

Friedgut's theorem[10] is a converse to this result. It states that for any ${\displaystyle \varepsilon >0}$ , the function ${\displaystyle f}$  is ${\displaystyle \varepsilon }$ -close to a Boolean junta depending on ${\displaystyle \exp(\operatorname {Inf} [f]/\varepsilon )}$  coordinates.

Combined with the Russo–Margulis lemma, Friedgut's junta theorem implies that for every ${\displaystyle p}$ , every monotone function is close to a junta with respect to ${\displaystyle \mu _{q}}$  for some ${\displaystyle q\approx p}$ .

### Invariance principle

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

The Berry–Esseen theorem states (among else) that if ${\displaystyle f=\sum _{i=1}^{n}c_{i}x_{i}}$  and no ${\displaystyle c_{i}}$  is too large compared to the rest, then the distribution of ${\displaystyle f}$  over ${\displaystyle \{-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 ${\displaystyle f}$  is a multilinear polynomial of bounded degree over ${\displaystyle x_{1},\ldots ,x_{n}}$  and all influences of ${\displaystyle f}$  are small, then the distribution of ${\displaystyle f}$  under the uniform measure over ${\displaystyle \{-1,1\}^{n}}$  is close to its distribution in Gaussian space.

More formally, let ${\displaystyle \psi }$  be a univariate Lipschitz function, let ${\displaystyle f=\sum _{S\subseteq [n]}{\hat {f}}(S)\chi _{S}}$ , let ${\displaystyle k=\deg f}$ , and let ${\displaystyle \varepsilon =\max _{i}\sum _{S\ni i}{\hat {f}}(S)^{2}}$ . Suppose that ${\displaystyle \sum _{S\neq \emptyset }{\hat {f}}(S)^{2}\leq 1}$ . Then

${\displaystyle \left|\operatorname {E} _{x\sim \{-1,1\}^{n}}[\psi (f(x))]-\operatorname {E} _{g\sim N(0,I)}[\psi (f(g))]\right|=O(k9^{k}\varepsilon ).}$

By choosing appropriate ${\displaystyle \psi }$ , this implies that the distributions of ${\displaystyle f}$  under both measures are close in CDF distance, which is given by ${\displaystyle \sup _{t}|\Pr[f(x) .

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

## Some applications

### Linearity testing

A Boolean function ${\displaystyle f\colon \{-1,1\}^{n}\to \{-1,1\}}$  is linear if it satisfies ${\displaystyle f(xy)=f(x)f(y)}$ , where ${\displaystyle xy=(x_{1}y_{1},\ldots ,x_{n}y_{n})}$ . It is not hard to show that the Boolean linear functions are exactly the characters ${\displaystyle \chi _{S}}$ .

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

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

${\displaystyle {\frac {1}{2}}+{\frac {1}{2}}\sum _{S\subseteq [n]}{\hat {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[14] gave an alternative proof of this result in the case of three candidates using Fourier analysis. If ${\displaystyle f\colon \{-1,1\}^{n}\to \{-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 ${\displaystyle {\frac {3}{4}}-{\frac {3}{4}}\operatorname {Stab} _{-1/3}[f]}$ , from which the theorem easily follows.

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

### Sharp thresholds

A classical result in the theory of random graphs states that the probability that a ${\displaystyle G(n,p)}$  random graph is connected tends to ${\displaystyle e^{-e^{-c}}}$  if ${\displaystyle p\sim {\frac {\log n+c}{n}}}$ . This is an example of a sharp threshold: the width of the "threshold window", which is ${\displaystyle O(1/n)}$ , is asymptotically smaller than the threshold itself, which is roughly ${\displaystyle {\frac {\log n}{n}}}$ . In contrast, the probability that a ${\displaystyle G(n,p)}$  graph contains a triangle tends to ${\displaystyle e^{-c^{3}/6}}$  when ${\displaystyle p\sim {\frac {c}{n}}}$ . Here both the threshold window and the threshold itself are ${\displaystyle \Theta (1/n)}$ , and so this is a coarse threshold.

Friedgut's sharp threshold theorem[15] 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 ${\displaystyle O(1/\log n)}$ .[16]

### Majority is stablest

Let ${\displaystyle \operatorname {Maj} _{n}\colon \{-1,1\}^{n}\to \{-1,1\}}$  denote the majority function on ${\displaystyle n}$  coordinates. Sheppard's formula gives the asymptotic noise stability of majority:

${\displaystyle \operatorname {Stab} _{\rho }[\operatorname {Maj} _{n}]\longrightarrow 1-{\frac {2}{\pi }}\arccos \rho .}$

This is related to the probability that if we choose ${\displaystyle x\in \{-1,1\}^{n}}$  uniformly at random and form ${\displaystyle y\in \{-1,1\}^{n}}$  by flipping each bit of ${\displaystyle x}$  with probability ${\displaystyle {\frac {1-\rho }{2}}}$ , then the majority stays the same:

${\displaystyle \operatorname {Stab} _{\rho }[\operatorname {Maj} _{n}]=2\Pr[\operatorname {Maj} _{n}(x)=\operatorname {Maj} _{n}(y)]-1}$ .

There are Boolean functions with larger noise stability. For example, a dictatorship ${\displaystyle x_{i}}$  has noise stability ${\displaystyle \rho }$ .

The Majority is Stablest theorem states, informally, then the only functions having noise stability larger than majority have influential coordinates. Formally, for every ${\displaystyle \varepsilon >0}$  there exists ${\displaystyle \tau >0}$  such that if ${\displaystyle f\colon \{-1,1\}^{n}\to \{-1,1\}}$  has expectation zero and ${\displaystyle \max _{i}\operatorname {Inf} _{i}[f]\leq \tau }$ , then ${\displaystyle \operatorname {Stab} _{\rho }[f]\leq 1-{\frac {2}{\pi }}\arccos \rho +\varepsilon }$ .

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.[citation needed]

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.,[17] was the impetus behind proving the theorem.

## References

1. ^ a b O'Donnell, Ryan (2014). Analysis of Boolean functions. Cambridge University Press. ISBN 978-1-107-03832-5.
2. ^ Induced subgraphs of hypercubes and a proof of the Sensitivity Conjecture, Huang Hao, 19 August 2019, https://arxiv.org/abs/1907.00847
3. ^ Decades-old computer Science Conjecture Solved in Two Pages,Quanta Magazine, 2019 February, https://www.quantamagazine.org/mathematician-solves-computer-science-conjecture-in-two-pages-20190725
4. ^ Diaconis, Persi; Saloff-Coste, Laurent (1996). "Logarithmic Sobolev inequalities for finite Markov chains". Annals of Applied Probability. 6 (3): 695–750. doi:10.1214/aoap/1034968224.
5. ^ Mossel, Elchanan; Oleszkiewicz, Krzysztof; Sen, Arnab (2013). "On reverse hypercontractivity". GAFA. 23 (3): 1062–1097. arXiv:1108.1210. doi:10.1007/s00039-013-0229-4.
6. ^ 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.
7. ^ Kindler, Guy (2002). "16". Property testing, PCP, and juntas (Thesis). Tel Aviv University.
8. ^ Kahn, Jeff; Kalai, Gil; Linial, Nati (1988). "The influence of variables on Boolean functions.". Proc. 29th Symp. on Foundations of Computer Science. SFCS'88. White Plains: IEEE. pp. 68–80. doi:10.1109/SFCS.1988.21923.
9. ^ Ben-Or, Michael; Linial, Nathan (1985). "Collective coin flipping, robust voting schemes and minima of Banzhaf values". Proc. 26th Symp. on Foundations of Computer Science. SFCS'85. Portland, Oregon: IEEE. pp. 408–416. doi:10.1109/SFCS.1985.15.
10. ^ Friedgut, Ehud (1998). "Boolean functions with low average sensitivity depend on few coordinates". Combinatorica. 18 (1): 474–483. CiteSeerX 10.1.1.7.5597. doi:10.1007/PL00009809.
11. ^ 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. arXiv:math/0503503. doi:10.4007/annals.2010.171.295.
12. ^ 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.
13. ^ Bellare, Mihir; Coppersmith, Don; Håstad, Johan; Kiwi, Marcos; Sudan, Madhu (1995). "Linearity testing in characteristic two". Proc. 36th Symp. on Foundations of Computer Science. FOCS'95.
14. ^ Kalai, Gil (2002). "A Fourier-theoretic perspective on the Condorcet paradox and Arrow's theorem". Adv. Appl. Math. 29 (3): 412–426. doi:10.1016/S0196-8858(02)00023-4.
15. ^ Friedgut, Ehud (1999). "Sharp thresholds of graph properties and the k-SAT problem". J. Am. Math. Soc. 12 (4): 1017–1054. doi:10.1090/S0894-0347-99-00305-7.
16. ^ Friedgut, Ehud; Kalai, Gil (1996). "Every monotone graph property has a sharp threshold". Proc. Am. Math. Soc. 124 (10): 2993–3002. doi:10.1090/S0002-9939-96-03732-X.
17. ^ Khot, Subhash; Kindler, Guy; Mossel, Elchanan; O'Donnell, Ryan (2007), "Optimal inapproximability results for MAX-CUT and other two-variable CSPs?" (PDF), SIAM Journal on Computing, 37 (1): 319–357, CiteSeerX 10.1.1.130.8886, doi:10.1137/S0097539705447372