CommunicationComplexity.FiniteProbabilitySpace.measureReal_eq_integral_indicator_one
theoremverifiedimported Lean
Measure of a set as the integral of its indicator. Let $\Omega$ be a finite probability space and let $S \subseteq \Omega$. Then the (real-valued) probability of $S$ equals the integral over $\Omega$ of the indicator function of $S$, taken with value $1$ on $S$ and $0$ elsewhere: \[ \mathbb{P}(S) \;=\; \int_{\Omega} \mathbf{1}_S(\omega)\, d\omega, \] where $\mathbf{1}_S \colon \Omega \to \bbr$ is the function equal to $1$ at points of $S$ and $0$ at points outside $S$.
Statement
set_option relaxedAutoImplicit false in set_option autoImplicit false in open MeasureTheory in open scoped ProbabilityTheory in theorem CommunicationComplexity.FiniteProbabilitySpace.measureReal_eq_integral_indicator_one {Ω : Type*} [FiniteProbabilitySpace Ω] (S : Set Ω) : volume.real S = ∫ ω, Set.indicator S (1 : Ω → ℝ) ω
- Source
- TCSlib, `CommunicationComplexity.FiniteProbabilitySpace.measureReal_eq_integral_indicator_one`
- Lean proof
- By Lucy Horowitz, Timothe Kasriel, Mihir Singhal, from github.com/Shilun-Allan-Li/tcslib at
c8a02591b1e5(Copyright (c) 2026 Lucy Horowitz, Timothe Kasriel, and Mihir Singhal. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.CommunicationComplexity.FiniteProbabilitySpace.measureReal_eq_integral_indicator_one← CommunicationComplexity.FiniteProbabilitySpace.measureReal_eq_integral_indicator_one (TCSlib/CommunicationComplexity/NewmanTheorem/FiniteProbabilitySpace.lean:478): verbatim
- Verified
- 07 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- CommunicationComplexity.FiniteProbabilitySpaceA typeclass bundling a
MeasureSpacestructure on $\Omega$ together with aCommunicationComplexity.FiniteMeasureSpace…
- CommunicationComplexity.FiniteProbabilitySpaceA typeclass bundling a
- Used by 2
- CommunicationComplexity.PublicCoin.FiniteMessage.Protocol.exists_good_randomnessExistence of good randomness for derandomization. Let $\Omega$ be a finite probability space and let $X$ and $Y$ be finite input sets. Let…
- CommunicationComplexity.Deterministic.Protocol.signedBias_eq_one_sub_two_distributionalErrorSigned correlation and distributional error. Let $X$ and $Y$ be the input types of Alice and Bob, and let $\mu$ be a finite probability…
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option relaxedAutoImplicit false inset_option autoImplicit false inopen MeasureTheory inopen scoped ProbabilityTheory in/-- The real-valued measure of a set is the integral of its indicator. -/theorem CommunicationComplexity.FiniteProbabilitySpace.measureReal_eq_integral_indicator_one {Ω : Type*} [FiniteProbabilitySpace Ω] (S : Set Ω) : volume.real S = ∫ ω, Set.indicator S (1 : Ω → ℝ) ω := by rw [MeasureTheory.integral_indicator_one MeasurableSet.of_discrete]