# Sensitivity theorem

In computational complexity, the sensitivity theorem, proved by Hao Huang in 2019, states that the sensitivity of a Boolean function $f\colon \{0,1\}^{n}\to \{0,1\}$ is at least the square root of its degree, thus settling a conjecture posed by Nisan and Szegedy in 1992. The proof is notably succinct, given that prior progress had been limited.

## Background

Several papers in the late 1980s and early 1990s showed that various decision tree complexity measures of Boolean functions are polynomially related, meaning that if $\alpha (f),\beta (f)$ are two such measures then $\alpha (f)\leq C\beta (f)^{C}$ for some constant $C>0$. Nisan and Szegedy showed that degree and approximate degree are also polynomially related to all these measures. Their proof went via yet another complexity measure, block sensitivity, which had been introduced by Nisan. Block sensitivity generalizes a more natural measure, (critical) sensitivity, which had appeared before.
Nisan and Szegedy asked whether block sensitivity is polynomially bounded by sensitivity (the other direction is immediate since sensitivity is at most block sensitivity). This is equivalent to asking whether sensitivity is polynomially related to the various decision tree complexity measures, as well as to degree, approximate degree, and other complexity measures which have been shown to be polynomially related to these along the years. This became known as the sensitivity conjecture.
Along the years, several special cases of the sensitivity conjecture were proven. The sensitivity theorem was finally proven in its entirety by Huang, using a reduction of Gotsman and Linial.

## Statement

Every Boolean function $f\colon \{0,1\}^{n}\to \{0,1\}$ can be expressed in a unique way as a multilinear polynomial. The degree of $f$ is the degree of this unique polynomial, denoted $\deg(f)$.
The sensitivity of the Boolean function $f$ at the point $x\in \{0,1\}^{n}$ is the number of indices $i\in [n]$ such that $f(x^{\oplus i})\neq f(x)$, where $x^{\oplus i}$ is obtained from $x$ by flipping the $i$'th coordinate. The sensitivity of $f$ is the maximum sensitivity of $f$ at any point $x\in \{0,1\}^{n}$, denoted $s(f)$.
The sensitivity theorem states that
    $s(f)\geq {\sqrt {\deg(f)}}.$
In the other direction, Tal, improving on an earlier bound of Nisan and Szegedy, showed that
    $s(f)\leq \deg(f)^{2}.$
The sensitivity theorem is tight for the AND-of-ORs function:
    $\bigwedge _{i=1}^{m}\bigvee _{j=1}^{m}x_{ij}$
This function has degree $m^{2}$ and sensitivity $m$.

## Proof

Let $f\colon \{0,1\}^{n}\to \{0,1\}$ be a Boolean function of degree $d$. Consider any maxonomial of $f$, that is, a monomial of degree $d$ in the unique multilinear polynomial representing $f$. If we substitute an arbitrary value in the coordinates not mentioned in the monomial then we get a function $F$ on $d$ coordinates which has degree $d$, and moreover, $s(f)\geq s(F)$. If we prove the sensitivity theorem for $F$ then it follows for $f$. So from now on, we assume without loss of generality that $f$ has degree $n$.
Define a new function $g\colon \{0,1\}^{n}\to \{0,1\}$ by
    $g(x_{1},\dots ,x_{n})=f\oplus x_{1}\oplus \cdots \oplus x_{n}.$
It can be shown that since $f$ has degree $n$ then $g$ is unbalanced (meaning that $|g^{-1}(0)|\neq |g^{-1}(1)|$), say $|g^{-1}(1)|>2^{n-1}$. Consider the subgraph $G$ of the hypercube (the graph on $\{0,1\}^{n}$ in which two vertices are connected if they differ by a single coordinate) induced by $S=g^{-1}(1)$. In order to prove the sensitivity theorem, it suffices to show that $G$ has a vertex whose degree is at least ${\sqrt {n}}$. This reduction is due to Gotsman and Linial.
Huang constructs a signing of the hypercube in which the product of the signs along any square is $-1$. This means that there is a way to assign a sign to every edge of the hypercube so that this property is satisfied. The same signing had been found earlier by Ahmadi et al., which were interested in signings of graphs with few distinct eigenvalues.
Let $A$ be the signed adjacency matrix corresponding to the signing. The property that the product of the signs in every square is $-1$ implies that $A^{2}=nI$, and so half of the eigenvalues of $A$ are ${\sqrt {n}}$ and half are $-{\sqrt {n}}$. In particular, the eigenspace of ${\sqrt {n}}$ (which has dimension $2^{n-1}$) intersects the space of vectors supported by $S$ (which has dimension $>2^{n-1}$), implying that there is an eigenvector $v$ of $A$ with eigenvalue ${\sqrt {n}}$ which is supported on $S$. (This is a simplification of Huang's original argument due to Shalev Ben-David.)
Consider a point $x\in S$ maximizing $|v_{x}|$. On the one hand, $Av={\sqrt {n}}v$. On the other hand, $Av$ is at most the sum of absolute values of all neighbors of $x$ in $S$, which is at most $\deg _{G}(x)\cdot |v_{x}|$. Hence $\deg _{G}(x)\geq {\sqrt {n}}$.

### Constructing the signing

Huang constructed the signing recursively. When $n=1$, we can take an arbitrary signing. Given a signing $\sigma _{n}$ of the $n$-dimensional hypercube $Q_{n}$, we construct a signing of $Q_{n+1}$ as follows. Partition $Q_{n+1}$ into two copies of $Q_{n}$. Use $\sigma _{n}$ for one of them and $-\sigma _{n}$ for the other, and assign all edges between the two copies the sign $1$.
The same signing can also be expressed directly. Let $(x,y)$ be an edge of the hypercube. If $i$ is the first coordinate on which $x,y$ differ, we use the sign $(-1)^{x_{1}+\cdots +x_{i-1}}$.

## Extensions

The sensitivity theorem can be equivalently restated as
    $\deg(f)\leq s(f)^{2}.$
Laplante et al. refined this to
    $\deg(f)\leq s_{0}(f)s_{1}(f),$
where $s_{b}(f)$ is the maximum sensitivity of $f$ at a point in $f^{-1}(b)$. They showed furthermore that this bound is attained at two neighboring points of the hypercube.
Aaronson, Ben-David, Kothari and Tal defined a new measure, the spectral sensitivity of $f$, denoted $\lambda (f)$. This is the largest eigenvalue of the adjacency matrix of the sensitivity graph of $f$, which is the subgraph of the hypercube consisting of all sensitive edges (edges connecting two points $x,y$ such that $f(x)\neq f(y)$). They showed that Huang's proof can be decomposed into two steps:
* $\deg(f)\leq \lambda (f)^{2}$.
* $\lambda (f)\leq s(f)$.
Using this measure, they proved several tight relations between complexity measures of Boolean functions: $\deg(f)=O(Q(f)^{2})$ and $D(f)=O(Q(f)^{4})$. Here $D(f)$ is the deterministic query complexity and $Q(f)$ is the quantum query complexity.
Dafni et al. extended the notions of degree and sensitivity to Boolean functions on the symmetric group and on the perfect matching association scheme, and proved analogs of the sensitivity theorem for such functions. Their proofs use a reduction to Huang's sensitivity theorem.