Documentation

LeanPool.LeanBooleanfun

Analysis of Boolean functions in Lean #

Source: arxiv:2105.10386, doi:10.1017/CBO9781139814782 Authors: Joris Roos Status: verified Main declarations: LeanPool.LeanBooleanfun.BooleanFun.BV.dictator_of_condorcet_and_unanimous Tags: boolean-functions, fourier-analysis, social-choice MSC: 06E30, 42C10, 91B14

Mathematical overview #

Following Ryan O'Donnell's book Analysis of Boolean functions, this project formalizes basic definitions and results in the analysis of real-valued Boolean functions on the Hamming cube Fin n → Fin 2.

The development sets up the Walsh-Fourier transform fourierTransform (notation 𝓕) for real-valued functions on the Boolean cube, equips the space BooleanFunc n with the structure of an inner product space, and proves that the Walsh characters walshCharacter (notation χ S) form an orthonormal basis. From this it derives:

For Boolean-valued functions (i.e. taking values ±1), the project introduces the typeclass BooleanValued and proves:

Provenance #

Imported from https://github.com/roos-j/lean-booleanfun; ported from Lean v4.16.0-rc2 to Lean Pool's v4.30.0-rc2.