CommunicationComplexity.Internal.cdf_one
theoremverifiedimported Lean
Total cumulative probability equals one. Let $p$ be a probability mass function on the finite set $\mathrm{Fin}\,m = \{0, 1, \dots, m-1\}$. Then its cumulative distribution function evaluated at $m$ accounts for the entire mass, $\mathrm{cdf}(p, m) = 1$, this value being computed in the extended non-negative reals $\bbr_{\ge 0}^\infty$.
Statement
set_option relaxedAutoImplicit false in set_option autoImplicit false in open MeasureTheory in open scoped ENNReal in lemma CommunicationComplexity.Internal.cdf_one {m : ℕ} (p : PMF (Fin m)) : cdf p m = 1
- Source
- TCSlib, `CommunicationComplexity.Internal.cdf_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.Internal.cdf_one← CommunicationComplexity.Internal.cdf_one (TCSlib/CommunicationComplexity/NewmanTheorem/PrivateCoinApproximation.lean:91): verbatim
- Verified
- 07 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- CommunicationComplexity.Internal.cdfGiven a probability mass function $p$ on $\mathrm{Fin}\,m$ and a natural number $n$, $\mathrm{cdf}(p, n)$ is the cumulative probability…
- Used by 2
- CommunicationComplexity.Internal.uniformApprox_approxUniform approximation error bound. Let $p$ be a probability mass function on $\mathrm{Fin}\,m$ with $m \ge 1$, and let $n \ge 1$ be an…
- CommunicationComplexity.Internal.invCdf_eq_iffCharacterization of the inverse CDF. Let $p$ be a probability mass function on $\mathrm{Fin}\,m = \{0, 1, \dots, m-1\}$ with $m \ge 1$,…
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 ENNReal in/-- The cumulative distribution function equals `1` at `m` (all the mass is counted). -/lemma CommunicationComplexity.Internal.cdf_one {m : ℕ} (p : PMF (Fin m)) : cdf p m = 1 := by simp only [cdf, Fin.is_lt, ↓reduceIte] have hsum := PMF.tsum_coe p simp only [tsum_fintype] at hsum exact hsum