AFTD Auto-Formalizing Theoretical Domains

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.
Verified
07 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 2

Lean source view module on GitHub

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]
See it in the graphDiscuss this resultChallenge it