Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 11: conditional-mean lower tail from a joint lower tail

Open
QAlgorithms.Papers.Independent.Intake100.P61.conditionalMean_lower_tail

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

prove2quantum

Let (X,Y)(X,Y)(X,Y) have a measurable nonnegative probability density ppp on [0,∞)2[0,\infty)^2[0,∞)2, and let m(x)=∫0∞y p(y∣x) dym(x)=\int_0^\infty y\,p(y\mid x)\,dym(x)=∫0∞​yp(y∣x)dy be its actual extended conditional mean, with arbitrary zero values on null marginal fibers. For a,b≥0a,b\ge0a,b≥0 and δ>0\delta>0δ>0, suppose Pr⁡[X≥a,Y≤b]≤η\Pr[X\ge a,Y\le b]\le\etaPr[X≥a,Y≤b]≤η for a nonnegative extended bound η\etaη. Then

Pr⁡[X≥a, m(X)≤b−δ]≤bηδ.\Pr[X\ge a,\ m(X)\le b-\delta]\le\frac{b\eta}{\delta}.Pr[X≥a, m(X)≤b−δ]≤δbη​.

A negative real threshold b−δb-\deltab−δ makes the event empty. In Lean this is expressed by including δ≤b\delta\le bδ≤b inside the event before converting its threshold to an extended nonnegative real. The result concerns nonnegative variables and does not bound arbitrary signed correlations.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P61
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped BigOperators ENNReal Topology

namespace QAlgorithms.Papers.Independent.Intake100.P61

attribute [local instance] Classical.propDecidable Classical.decEq

-- The frozen frequency formula specializes exactly to the source alphabet Fin (2 ^ d).

open QAlgorithms.Papers.Independent.Advance50.P30 (empiricalFrequency)

/-- PDF p.23, Lemma 11 (E28–E34): epsilon_2 denotes a tail bound, not a square.
The delta<=b clause in the event expresses that a nonnegative conditional mean
cannot be <= a negative real threshold; it does not restrict the theorem's domain. -/
theorem conditionalMean_lower_tail
    (p : ℝ × ℝ → ℝ≥0∞) (hp : Measurable p) [IsProbabilityMeasure (quadrantLaw p)]
    (a b delta : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) (hdelta : 0 < delta)
    (eta : ℝ≥0∞) (htail : quadrantLaw p {v | a ≤ v.1 ∧ v.2 ≤ b} ≤ eta) :
    quadrantLaw p {v | a ≤ v.1 ∧ delta ≤ b ∧
      densityConditionalMean p v.1 ≤ ENNReal.ofReal (b - delta)} ≤
      ENNReal.ofReal b * eta / ENNReal.ofReal delta := by sorry

end QAlgorithms.Papers.Independent.Intake100.P61

end
Source
Composable security proof for continuous-variable quantum key distribution with coherent states, arXiv:1408.5689v3, PDF p. 23, Lemma 11, E28–E34
Read-back

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

Let p:R2→[0,∞]p:\mathbb R^2\to[0,\infty]p:R2→[0,∞] be measurable, and suppose the measure νp\nu_pνp​ with density ppp relative to the product of Lebesgue measures restricted to [0,∞)[0,\infty)[0,∞) is a probability measure. Put p1(x)=∫[0,∞)p(x,y) dyp_1(x)=\int_{[0,\infty)}p(x,y)\,dyp1​(x)=∫[0,∞)​p(x,y)dy, with mp(x)=0m_p(x)=0mp​(x)=0 if p1(x)=0p_1(x)=0p1​(x)=0 or p1(x)=∞p_1(x)=\inftyp1​(x)=∞, and otherwise mp(x)=∫[0,∞)y p(x,y)/p1(x) dym_p(x)=\int_{[0,\infty)}y\,p(x,y)/p_1(x)\,dymp​(x)=∫[0,∞)​yp(x,y)/p1​(x)dy. For any real a,b≥0a,b\ge0a,b≥0, any δ>0\delta>0δ>0, and any η∈[0,∞]\eta\in[0,\infty]η∈[0,∞], if

νp{(x,y):a≤x, y≤b}≤η,\nu_p\{(x,y):a\le x,\ y\le b\}\le\eta,νp​{(x,y):a≤x, y≤b}≤η,

then

νp{(x,y):a≤x, δ≤b, mp(x)≤max⁡(b−δ,0)}≤bηδ.\nu_p\{(x,y):a\le x,\ \delta\le b,\ m_p(x)\le\max(b-\delta,0)\} \le\frac{b\eta}{\delta}.νp​{(x,y):a≤x, δ≤b, mp​(x)≤max(b−δ,0)}≤δbη​.

The right side uses nonnegative extended-real arithmetic, including 0⋅∞=00\cdot\infty=00⋅∞=0. The condition δ≤b\delta\le bδ≤b is part of the event itself, so the event is empty when δ>b\delta>bδ>b.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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