125 Boolean Analysis — Restriction Fourier
125.1 Overview
This module analyses how a random restriction acts on the Fourier spectrum of a real-valued Boolean function \(f : \{ 0,1\} ^n \to \mathbb {R}\). It gives a closed form for the Fourier coefficients of the restricted function \(f_\rho \), factors the Bernoulli restriction measure coordinate by coordinate, and derives O’Donnell’s Proposition 4.17: \(\mathbb {E}_\rho [\widehat{f_\rho }(S)] = p^{\left\lvert S\right\rvert }\widehat{f}(S)\) and \(\mathbb {E}_\rho [\widehat{f_\rho }(S)^2] = \sum _{U \supseteq S} p^{\left\lvert S\right\rvert }(1-p)^{\left\lvert U \setminus S\right\rvert }\widehat{f}(U)^2\), together with the probability form \(\Pr _\rho [U \cap J = S] = p^{\left\lvert S\right\rvert }(1-p)^{\left\lvert U\setminus S\right\rvert }\) for the set \(J\) of free coordinates.
125.2 Declarations
The restriction \(\mathrm{restrictBF}\) of a real-valued Boolean function reads free coordinates from the input and fixed coordinates from the restriction \(\rho \), i.e. \((\mathrm{restrictBF}\, f\, \rho )(x) = f(\rho .\mathrm{extend}\, x)\). This statement says that for a Boolean-valued \(f : \{ 0,1\} ^n \to \{ 0,1\} \), restricting its \(\pm 1\)-encoding agrees with encoding the restricted function: \(\mathrm{restrictBF}\, (\mathrm{boolToSign}\circ f)\, \rho = \mathrm{boolToSign}\circ (\mathrm{restrictFn}\, f\, \rho )\).
For a restriction \(\rho \) and a coordinate \(i\), we have \(i \in \rho .\mathrm{freeVars}\) if and only if \(\rho \, i = \mathtt{none}\), i.e. exactly when \(\rho \) leaves the coordinate \(i\) unfixed. The companion definition \(\mathrm{signProd}\, \rho \, T = \prod _{i \in T} \mathrm{boolToSign}((\rho \, i).\mathrm{getD}\ \mathtt{false})\) collects the \(\pm 1\)-encodings of the bits \(\rho \) fixes on a set \(T\).
For a set \(U \subseteq [n]\), a restriction \(\rho \) with free set \(J = \rho .\mathrm{freeVars}\), and an input \(x\),
so the character splits into a character in the free coordinates times a constant sign coming from the fixed coordinates.
For \(f : \{ 0,1\} ^n \to \mathbb {R}\), a restriction \(\rho \) with free set \(J = \rho .\mathrm{freeVars}\), and \(S \subseteq [n]\),
where \(f_\rho = \mathrm{restrictBF}\, f\, \rho \). This is the analogue of O’Donnell Corollary 3.22.
For any family \(h : [n] \to \mathrm{Option}\ \mathrm{Bool} \to \mathbb {R}\),
the sum ranging over all restrictions \(\rho \) on \(n\) variables and \(v\) over the three possible per-coordinate values.
For \(p \in \mathbb {R}\) and any family \(h : [n] \to \mathrm{Option}\ \mathrm{Bool} \to \mathbb {R}\),
so the Bernoulli weight is absorbed coordinatewise into the per-variable weight \(\mathrm{varWeight}\).
Given sets \(U, S \subseteq [n]\), a coordinate \(i\) and a per-coordinate value \(v\), the local factor is \(1\) if \(i \in S\) and \(v = \mathtt{none}\) (the coordinate must be free), \(0\) if \(i \in S\) and \(v\) is fixed; for \(i \in U \setminus S\) it is \(0\) when \(v = \mathtt{none}\) and \(\mathrm{boolToSign}(b)\) when \(v = \mathtt{some}\ b\); and \(1\) for all remaining coordinates. It encodes the event \(U \cap \mathrm{freeVars} = S\) together with the sign contributed on \(U \setminus S\).
If \(S \subseteq U\) then for every restriction \(\rho \) with free set \(J\),
where the left-hand side is understood as \(0\) when the indicator fails.
For \(p \in \mathbb {R}\), sets \(U, S\) and a coordinate \(i\),
For \(p \in \mathbb {R}\), sets \(U, V, S\) and a coordinate \(i\),
which is the per-coordinate average needed for the squared coefficient.
For \(p \in \mathbb {R}\) and sets \(S, U \subseteq [n]\),
Under a Bernoulli(\(p\))-random restriction \(\rho \), the expected Fourier coefficient of the restricted function at \(S\) is
the expectation being the \(\mathrm{bernoulliRestrWeight}\, p\)-weighted sum over all restrictions.
Under a Bernoulli(\(p\))-random restriction \(\rho \), the expected squared Fourier coefficient at \(S\) is
where the sum runs over all \(U \subseteq [n]\) and the terms with \(S \not\subseteq U\) vanish.
For every restriction \(\rho \) and every set \(T \subseteq [n]\), \((\mathrm{signProd}\, \rho \, T)^2 = 1\).
For a Bernoulli(\(p\))-random restriction \(\rho \) with free set \(J = \rho .\mathrm{freeVars}\) and sets \(U, S \subseteq [n]\),
Combined with the second identity this yields O’Donnell’s form \(\mathbb {E}_\rho [\widehat{f_\rho }(S)^2] = \sum _U \Pr [U \cap J = S]\cdot \widehat{f}(U)^2\).
125.3 Additional declarations
Given \(f : \{ 0,1\} ^n \to \mathbb {R}\) and a restriction \(\rho \), the restricted function \(f_\rho = \mathrm{restrictBF}\, f\, \rho \) is defined by
so free coordinates are read from the input \(x\) and fixed coordinates from \(\rho \). It is the real-valued analogue of \(\mathrm{restrictFn}\).
For a restriction \(\rho \) and a set \(T \subseteq [n]\),
the product of the \(\pm 1\)-encodings of the bits that \(\rho \) fixes on \(T\). On coordinates where \(\rho \) is free the default value \(\mathtt{false}\) is used; this junk value is harmless because the definition is only ever paired with indicators forcing \(T\) to consist of fixed coordinates.