Lemma 2, p. 637 — if E[r_t | 𝓕_t] = 0 and E[‖r_t‖² | 𝓕_t] ≤ B, then Σ γ_t r_t and Σ γ_t²‖r_t‖² converge a.s. when Σ γ_t² < ∞
ProvedGradErrors.Stochastic.lemma_2Let be a probability space with a filtration , let be a finite-dimensional real inner-product space (for instance or ), and let be deterministic real numbers with
Let be random vectors such that, for every ,
- is -measurable;
- is integrable;
- almost surely;
- almost surely, where is a deterministic constant.
Then, with probability 1, both sequences of partial sums
converge to finite limits as .
In the proof of Proposition 3 this lemma is applied to the noise rescaled by -measurable factors (Lemma 3 of the paper), to show that the accumulated noise and its second-order contribution are almost surely finite.
Formalization Note The space is a general finite-dimensional real inner-product space, because the paper applies the lemma both to real-valued and to -valued . The conditional expectations are Mathlib's condExp. Integrability of is stated explicitly: Mathlib's conditional expectation of a non-integrable function is , so without it hypotheses 3 and 4 would hold vacuously. It costs nothing, since in the paper's sense already gives . Convergence is convergence of the partial sums, not Lean's Summable, which would mean unconditional convergence; may converge only conditionally. Only is assumed of the stepsizes, as in the paper.
import Mathlib open Filter Topology NNReal ENNReal MeasureTheory ProbabilityTheory InnerProductSpace
namespace GradErrors.Stochastic
theorem lemma_2 {Ω : Type*} {m0 : MeasurableSpace Ω} (P : Measure Ω) [IsProbabilityMeasure P]
(ℱ : Filtration ℕ m0) {F : Type*} [NormedAddCommGroup F] [InnerProductSpace ℝ F]
[FiniteDimensional ℝ F] (γ : ℕ → ℝ) (hsq : Summable (fun t => γ t ^ 2))
(r : ℕ → Ω → F) (B : ℝ)
(hrm : ∀ t, StronglyMeasurable[ℱ (t + 1)] (r t))
(hr2 : ∀ t, Integrable (fun ω => ‖r t ω‖ ^ 2) P)
(hr0 : ∀ t, P[r t | ℱ t] =ᵐ[P] 0)
(hrB : ∀ t, P[fun ω => ‖r t ω‖ ^ 2 | ℱ t] ≤ᵐ[P] fun _ => B) :
∀ᵐ ω ∂P,
(∃ S : F, Tendsto (fun T => ∑ t ∈ Finset.range (T + 1), γ t • r t ω) atTop (𝓝 S)) ∧
(∃ S' : ℝ,
Tendsto (fun T => ∑ t ∈ Finset.range (T + 1), γ t ^ 2 * ‖r t ω‖ ^ 2) atTop (𝓝 S')) := by sorry
end GradErrors.Stochastic
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.