Theorem.Fourier Expansion (of Boolean Functions) [boolean/thm/fourier-exp]

Every Boolean function can be written uniquely as a multilinear polynomial in the functions

𝜒𝑆(𝑥)=𝑖𝑆𝑥𝑖,𝑆[𝑛]:𝑓(𝑥)=𝑆[𝑛]𝑓̂(𝑆)𝜒𝑆(𝑥),

where 𝑓̂(𝑆) is the Fourier coefficient of 𝑓 on 𝑆.

The 𝜒𝑆 are called parity functions. Where 𝜒𝑆(𝑥)=1 exactly when an odd number of the bits (𝑥𝑖)𝑖𝑆 are 1. Importantly, they form a basis of the 2𝑛-dimensional vector space of functions 𝑓:{±1}𝑛.