AFTD Auto-Formalizing Theoretical Domains

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