AFTD Auto-Formalizing Theoretical Domains

Bonami.uniformMeasure_apply

theoremverifiedimported Lean

Uniform measure of a single point of the hypercube. Let $n$ be a natural number and let $x$ be a point of the Boolean hypercube $\{0,1\}^n$. Under the canonical uniform probability measure on $\{0,1\}^n$, the measure of the singleton $\{x\}$, taken as a real number, equals the uniform weight $2^{-n}$.

Statement

open BooleanAnalysis in
open MeasureTheory Set Filter ProbabilityTheory BooleanAnalysis Real in
variable {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω} [IsProbabilityMeasure μ] in
lemma Bonami.uniformMeasure_apply {n : ℕ} (x : BoolCube n) :
    ((uniformMeasure n) {x}).toReal = uniformWeight n
Source
TCSlib, `Bonami.uniformMeasure_apply`
Lean proof
By Owen McGinty, Hydroxyi (from the file's git history), from github.com/Shilun-Allan-Li/tcslib at c8a02591b1e5 (Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.
Verified
07 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
Used by 1
  • Bonami.bonami_lemmaBonami's hypercontractivity lemma for low-degree functions. Let $f : \{0,1\}^n \to \bbr$ be a Boolean function whose Fourier expansion has…

Lean source view module on GitHub

open BooleanAnalysis inopen MeasureTheory Set Filter ProbabilityTheory BooleanAnalysis Real invariable {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω} [IsProbabilityMeasure μ] in/-- Prove that our canonical measure matches the combinatorial uniformWeight. **Source:** [OD14, Cor. 9.6 (uniform product-space specialization)]. -/lemma Bonami.uniformMeasure_apply {n : ℕ} (x : BoolCube n) :    ((uniformMeasure n) {x}).toReal = uniformWeight n := by  dsimp [uniformMeasure]  rw [PMF.toMeasure_apply_singleton]  simp only [PMF.uniformOfFintype_apply]  rw [ENNReal.toReal_inv]  simp only [Fintype.card_pi, Fintype.card_bool, Finset.prod_const, Finset.card_univ, Fintype.card_fin]  unfold uniformWeight  rw[ENNReal.toReal_natCast]  simp only [Nat.cast_pow, Nat.cast_ofNat, inv_pow]  exact MeasurableSet.singleton x
See it in the graphDiscuss this resultChallenge it