ProbabilityTheory.HasSubexponentialMGF.average_of_iIndepFun
From the authors
The average of K independent sub-exponential variables with parameters (V i, b) has
parameters ((∑ i, V i) / K ^ 2, b / K).
-
Ω : Type u_1mΩ : MeasurableSpace ΩA measurable space is a space equipped with a σ-algebra. -
ι : Type u_2Fintype ιFintype αmeans thatαis finite, i.e. there are only finitely many distinct elements of typeα.
-
μ : MeasureTheory.Measure ΩA measure is defined to be an outer measure that is countably additive on measurable sets, with the additional assumption that the outer measure is the canonical extension of the restricted measure. -
b : ℝ -
X : ι → Ω → ℝ -
V : ι → ℝ
-
h_indep : iIndepFun X μA family of functions defined on the same spaceΩand taking values in possibly different spaces, each with a measurable space structure, is independent if the family of measurable space structures… -
h : ∀ (i : ι), HasSubexponentialMGF (X i) (V i) b μXhas a sub-exponential moment generating function with parameters(V, b): for everytwithb * |t| ≤ 1,exp (t * X)is integrable andmgf X μ t ≤ exp (V * t ^ 2 / 2).
HasSubexponentialMGF (fun ω => (∑ i, X i ω) / ↑(Fintype.card ι)) ((∑ i, V i) / ↑(Fintype.card ι) ^ 2)
(b / ↑(Fintype.card ι)) μMeasurableSpace : Type u_6 → Type u_6A measurable space is a space equipped with a σ-algebra.
Fintype : Type u_3 → Type u_3`Fintype α` means that `α` is finite, i.e. there are only finitely many distinct elements of type `α`. The evidence of this is a finset `elems` (a list up to permutation without duplicates), together with a proof that everything of type `α` is in the list.
MeasureTheory.Measure : (α : Type u_5) → [MeasurableSpace α] → Type u_5A measure is defined to be an outer measure that is countably additive on measurable sets, with the additional assumption that the outer measure is the canonical extension of the restricted measure. The measure of a set `s`, denoted `μ s`, is an extended nonnegative real. The real-valued version is written `μ.real s`.
Real : TypeThe type `ℝ` of real numbers constructed as equivalence classes of Cauchy sequences of rational numbers.
ProbabilityTheory.iIndepFun : {Ω : Type u_1} →
{ι : Type u_2} →
{_mΩ : MeasurableSpace Ω} →
{β : ι → Type u_6} →
[m : (x : ι) → MeasurableSpace (β x)] →
((x : ι) → Ω → β x) → autoParam (MeasureTheory.Measure Ω) ProbabilityTheory.iIndepFun._auto_1 → PropA family of functions defined on the same space `Ω` and taking values in possibly different spaces, each with a measurable space structure, is independent if the family of measurable space structures they generate on `Ω` is independent. For a function `g` with codomain having measurable space structure `m`, the generated measurable space structure is `MeasurableSpace.comap g m`.
ProbabilityTheory.HasSubexponentialMGF : {Ω : Type u_1} →
{mΩ : MeasurableSpace Ω} →
(Ω → ℝ) → ℝ → ℝ → autoParam (MeasureTheory.Measure Ω) ProbabilityTheory.HasSubexponentialMGF._auto_1 → Prop`X` has a sub-exponential moment generating function with parameters `(V, b)`: for every `t` with `b * |t| ≤ 1`, `exp (t * X)` is integrable and `mgf X μ t ≤ exp (V * t ^ 2 / 2)`. For `b = 0` this is `HasSubgaussianMGF X V μ`. This is equivalent to `Kernel.HasSubexponentialMGF X V b (Kernel.const Unit μ) (Measure.dirac ())`, as proved in `hasSubexponentialMGF_iff_kernel`.Go to its page
HDiv.hDiv : {α : Type u} → {β : Type v} → {γ : outParam (Type w)} → [self : HDiv α β γ] → α → β → γ`a / b` computes the result of dividing `a` by `b`. The meaning of this notation is type-dependent. * For most types like `Nat`, `Int`, `Rat`, `Real`, `a / 0` is defined to be `0`. * For `Nat`, `a / b` rounds downwards. * For `Int`, `a / b` rounds downwards if `b` is positive or upwards if `b` is negative. It is implemented as `Int.ediv`, the unique function satisfying `a % b + b * (a / b) = a` and `0 ≤ a % b < natAbs b` for `b ≠ 0`. Other rounding conventions are available using the functions `Int.fdiv` (floor rounding) and `Int.tdiv` (truncation rounding). * For `Float`, `a / 0` follows the IEEE 754 semantics for division, usually resulting in `inf` or `nan`. Conventions for notations in identifiers: * The recommended spelling of `/` in identifiers is `div`.
Fintype.card : (α : Type u_3) → [Fintype α] → ℕ`card α` is the number of elements in `α`, defined when `α` is a fintype.
HPow.hPow : {α : Type u} → {β : Type v} → {γ : outParam (Type w)} → [self : HPow α β γ] → α → β → γ`a ^ b` computes `a` to the power of `b`. The meaning of this notation is type-dependent. Conventions for notations in identifiers: * The recommended spelling of `^` in identifiers is `pow`.
Code
lemma average_of_iIndepFun {ι : Type*} [Fintype ι] {X : ι → Ω → ℝ} (h_indep : iIndepFun X μ)
{V : ι → ℝ} (h : ∀ i, HasSubexponentialMGF (X i) (V i) b μ) :
HasSubexponentialMGF (fun ω ↦ (∑ i, X i ω) / Fintype.card ι)
((∑ i, V i) / (Fintype.card ι : ℝ) ^ 2) (b / Fintype.card ι) μProof
by
have := (fun_sum_of_iIndepFun h_indep h).const_mul (1 / Fintype.card ι)
have h1 : (fun ω ↦ (∑ i, X i ω) / Fintype.card ι)
= fun ω ↦ (1 / Fintype.card ι) * ∑ i, X i ω := by
ext ω
ring
have h2 : (∑ i, V i) / (Fintype.card ι : ℝ) ^ 2 = (1 / Fintype.card ι) ^ 2 * ∑ i, V i := by
ring
have h3 : b / Fintype.card ι = |1 / (Fintype.card ι : ℝ)| * b := by
rw [abs_of_nonneg (by positivity)]
ring
rw [h1, h2, h3]
exact thisMeaning last changed in v4.34.0-rc2-76-g565f652 (2026-09-10).
Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file · open it in the Lean web editor.
Dependency graph
Audit surface: 1 project declarations, 60 external constants
✓ Proved: no sorry anywhere in its closure
This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.