Lemma 10: conditional-mean upper tail from joint-tail bounds
OpenQAlgorithms.Papers.Independent.Intake100.P61.conditionalMean_upper_tailLet have a measurable nonnegative probability density on . Define as an extended nonnegative integral from this same joint law, choosing zero on null marginal fibers. Let , , and let be nonnegative, nondecreasing, with and . Suppose for every , where is nonnegative and may take value . Then
The series is interpreted in the extended nonnegative reals, preserving infinite conditional means. Source correction: the printed sum starts at one despite ; starting at zero includes the missing first interval. Independent moderation remains pending.
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P61
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 pp.22–23, Lemma 10 (E20–E27), corrected indexing: E22 prints k=1
with b_0=b and omits [b_0,b_1). The sum starts at k=0 as E23's partition requires.
See the source-discrepancy ledger. Integrals and the series are extended. -/
theorem conditionalMean_upper_tail
(p : ℝ × ℝ → ℝ≥0∞) (hp : Measurable p) [IsProbabilityMeasure (quadrantLaw p)]
(a b delta : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) (hdelta : 0 < delta)
(threshold : ℕ → ℝ) (hthreshold : ∀ k, 0 ≤ threshold k)
(hmono : Monotone threshold) (hzero : threshold 0 = b)
(hlim : Tendsto threshold atTop atTop) (eta : ℝ → ℝ≥0∞)
(htail : ∀ k, quadrantLaw p {v | v.1 ≤ a ∧ threshold k ≤ v.2} ≤ eta (threshold k)) :
quadrantLaw p {v | v.1 ≤ a ∧ ENNReal.ofReal (b + delta) ≤ densityConditionalMean p v.1} ≤
(∑' k : ℕ, ENNReal.ofReal (threshold (k + 1)) * eta (threshold k)) /
ENNReal.ofReal delta := by sorry
end QAlgorithms.Papers.Independent.Intake100.P61
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be measurable, and suppose the measure with density relative to the product of Lebesgue measures restricted to is a probability measure. Define , and define when is zero or infinite, and otherwise . For any real , any , any nondecreasing sequence satisfying , , and , and any function , assume that for every ,
Then
The sum, products, division, and comparisons involving are in the nonnegative extended reals; no finiteness assumption is made on or the sum. The sequence may have repeated values, and and may be zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.