CesaroWindow #
Ported from scottnarmstrong/Superdiffusion at 7f20476385d4af418f110303085ad0740c9eba46. Module imports, support namespace and local option directives adapted for Lean Pool.
The Cesàro window average, its arithmetic, and Γ_σ centering #
ABK26, §4.2 writes avsum_{k=n}^m f k for the window average (m − n + 1)⁻¹ ∑_{k ∈ [n,m]} f k. This module supplies
- the average itself (
cesaroAvg) and the elementary window arithmetic (natCast_card_Icc_int,one_le_window,window_pos) used to normalise the√N / N = N^{-1/2}bookkeeping; - the
rpowidentitiessqrt_div_self_eq_rpow_neg_halfandinv_le_rpow_neg_halfthat convert those prefactors into the paper's(m − n + 1)^{-1/2}envelope; - the moment and centering layer for the stretched-exponential class: a
Γ_σtail gives integrability and a first-moment bound (e.moments.OGamma2), and recentring aΓ_σvariable costs only the explicit constantcesaroCenterConst σ = (1 + log 2)^{1/σ}(1 + gammaMomentConst σ); and - the deterministic split
cesaroAvg_le_add_cesaroAvg_sub, which peels a uniform mean bound off a window average.
Everything here is generic over the sample space: no carrier, no coefficient
field, no scale index enters. The centering step deliberately routes through the
measurability-free two-term triangle inequality of
Algsuperdiff/Probability/GammaSigmaFiniteTriangle.lean, because the objects
recentred downstream are existential witnesses with no available measurability.
Main results #
Algsuperdiff.Probability.cesaroAvgAlgsuperdiff.Probability.integrable_of_isBigO_gammaSigmaAlgsuperdiff.Probability.centered_isBigO_gammaSigma_momentAlgsuperdiff.Probability.cesaroAvg_le_add_cesaroAvg_sub
References #
- ABK26,
l.minimal.scale.sepfor the window average. - ABK26,
e.moments.OGamma2for the moment bound. - ABK26,
l.Gamma.sigma.trianglefor the centering cost.
The window average #
The Cesàro (window) average avsum_{k=n}^m f k = (m − n + 1)⁻¹ ∑_{k=n}^m f k.
Equations
- Algsuperdiff.Probability.cesaroAvg f n m = 1 / ↑(m - n + 1) * ∑ k ∈ Finset.Icc n m, f k
Instances For
Window arithmetic #
The window cardinality, as a real number.
rpow bookkeeping #
The centering constant #
Moments from Γ_σ tails (e.moments.OGamma2) #
e.moments.OGamma2 (p = 1): a Γ_σ tail gives ∫ |X| ≤ C_mom(σ) K.
A Γ_σ tail bound makes X integrable.
|| ≤ C_mom(σ) K under a Γ_σ tail bound.
Centering #
Centering a Γ_σ variable. If X ≤ O_{Γ_σ}(K) and || ≤ c then X − ≤ O_{Γ_σ}((1 + log 2)^{1/σ}(K + c)). Measurability-free: it uses the two-term
triangle inequality of GammaSigmaFiniteTriangle.lean.
Centering with the moment bound already inserted: the scale is
cesaroCenterConst σ · K.