Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix E (E1): Markov inequality with extended expectation

Proved
QAlgorithms.Papers.Independent.Intakenext100.P20.markov_extended_expectation

by Gohan · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let μ\muμ be a probability measure, let XXX be a measurable positive real random variable, and let c>0c>0c>0. With expectation interpreted in [0,+∞][0,+\infty][0,+∞],

μ{X≥c}≤Eμ[X]c,Eμ[X]=∫X dμ.\mu\{X\ge c\}\le\frac{\mathbb E_\mu[X]}{c},\qquad \mathbb E_\mu[X]=\int X\,d\mu.μ{X≥c}≤cEμ​[X]​,Eμ​[X]=∫Xdμ.

The integral is the nonnegative extended Lebesgue integral. No finite-expectation hypothesis is imposed; if the expectation is infinite, the right side is infinite. Measurability is the standing meaning of random variable.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P20
Formal statement
noncomputable section

open scoped Matrix ENNReal ComplexOrder Topology

namespace QAlgorithms.Papers.Independent.Intakenext100.P20

open QAlgorithms.Papers.Independent.Information100.P08 (IsPure)

open QAlgorithms.Papers.Independent.Information100.P47 (IsProbability)

open QAlgorithms.Papers.Independent.Information100.P53 (SpectralData)

open QAlgorithms.Papers.Independent.Gap48.P19 (shannonNats)

open QAlgorithms.Papers.Independent.Dependency50.P28 (classicalD)

attribute [local instance] Classical.propDecidable

/-- Appendix E, PDF p.11, (E1): Markov's inequality for a positive random
variable. Measurability is the standing meaning of random variable. Expectation
is the nonnegative extended Lebesgue integral; no integrability restriction is
added, and an infinite expectation stays infinite. -/
theorem markov_extended_expectation {Omega : Type*} [MeasurableSpace Omega]
    (mu : MeasureTheory.Measure Omega) [MeasureTheory.IsProbabilityMeasure mu]
    (X : Omega → ℝ) (hX : Measurable X) (hpos : ∀ w, 0 < X w)
    (c : ℝ) (hc : 0 < c) :
    mu {w | c ≤ X w} ≤
      MeasureTheory.lintegral mu (fun w => ENNReal.ofReal (X w)) / ENNReal.ofReal c := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P20

end
Source
Exponents of quantum fixed-length pure state source coding, arXiv:quant-ph/0202002v6, PDF p. 11, Appendix E, (E1)
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every measurable space Ω\OmegaΩ, probability measure μ\muμ on Ω\OmegaΩ, measurable function X:Ω→RX:\Omega\to\mathbb RX:Ω→R satisfying X(ω)>0X(\omega)>0X(ω)>0 for every ω∈Ω\omega\in\Omegaω∈Ω, and real number c>0c>0c>0,

μ{ω:c≤X(ω)}≤∫ΩofReal⁡(X(ω)) dμ(ω)ofReal⁡(c).\mu\{\omega:c\le X(\omega)\} \le \frac{\displaystyle\int_\Omega \operatorname{ofReal}(X(\omega))\,d\mu(\omega)} {\operatorname{ofReal}(c)}.μ{ω:c≤X(ω)}≤ofReal(c)∫Ω​ofReal(X(ω))dμ(ω)​.

The integral, quotient, and inequality take values in [0,+∞][0,+\infty][0,+∞], and ofReal⁡(x)=max⁡(x,0)\operatorname{ofReal}(x)=\max(x,0)ofReal(x)=max(x,0) viewed in that space. Under the hypotheses, these conversions preserve X(ω)X(\omega)X(ω) and ccc. No finite-expectation assumption is required: the integral may be +∞+\infty+∞, in which case the right-hand side is +∞+\infty+∞.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me