Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1, p. 6 — ergodic theorem: (1/n) Σ_{j≤n} I(Y_j ≤ l) → ℙ(Y₀ ≤ l) a.s.

Proved
ScheduledQueue.Stability.ergodic_recurrence

by mikedeng1 · Oct 14, 2026 · Mathlib 0df444a (Lean v4.33.1)

ergodic-theoremp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1queueingscheduled-traffic

In the scheduled-traffic model with h>0h>0h>0, i.i.d. integrable perturbations (ξj)j∈Z(\xi_j)_{j\in\mathbb Z}(ξj​)j∈Z​ and an independent uniform shift UUU, let Yn=∑j≥1I(−ξn+1−j>(j−2)h)Y_n=\sum_{j\ge1}I(-\xi_{n+1-j}>(j-2)h)Yn​=∑j≥1​I(−ξn+1−j​>(j−2)h). Then:

  1. there is a finite level lll with P(Y0≤l)>0\mathbb P(Y_0\le l)>0P(Y0​≤l)>0;
  2. for every l∈{0,1,2,… }l\in\{0,1,2,\dots\}l∈{0,1,2,…}, almost surely
1n∑j=1nI(Yj≤l)  ⟶  P(Y0≤l)(n→∞).\frac1n\sum_{j=1}^n I(Y_j\le l)\;\longrightarrow\;\mathbb P(Y_0\le l)\qquad(n\to\infty).n1​j=1∑n​I(Yj​≤l)⟶P(Y0​≤l)(n→∞).

Each YnY_nYn​ is the same function of the shifted i.i.d. sequence (ξn+j)j∈Z(\xi_{n+j})_{j\in\mathbb Z}(ξn+j​)j∈Z​, so this is the pointwise ergodic theorem for the shift. With lll as in part 1 the limit is positive, so Yn≤lY_n\le lYn​≤l for infinitely many nnn almost surely: this produces the times τi\tau_iτi​ along which the proof of Theorem 1 evaluates the lower bound.

Formalization Note. YnY_nYn​ is the corrected sum (see the definitions). The sequence (τi)(\tau_i)(τi​) of the page is not stated: it is "infinitely many nnn with Yn≤lY_n\le lYn​≤l", which part 2 implies when the limit is positive.

Preamble
import Mathlib
import Definitions.Def_ScheduledQueue_Stability_Setting
import Definitions.Def_ScheduledQueue_Stability_Reversed

open MeasureTheory ProbabilityTheory Set Filter Topology ENNReal
Formal statement
namespace ScheduledQueue.Stability

theorem ergodic_recurrence {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] (h : ℝ) (hh : 0 < h) (ξ : ℤ → Ω → ℝ) (U : Ω → ℝ)
    (hin : ScheduledInput P ξ U) :
    (∃ l : ℕ, 0 < P {ω | Y h ξ 0 ω ≤ l}) ∧
      ∀ l : ℕ, ∀ᵐ ω ∂P,
        Tendsto (fun n : ℕ => (n : ℝ)⁻¹ *
            ∑ j ∈ Finset.Icc 1 n, ({ω | Y h ξ j ω ≤ l}.indicator (fun _ => (1 : ℝ)) ω))
          atTop (𝓝 (P.real {ω | Y h ξ 0 ω ≤ l})) := by sorry

end ScheduledQueue.Stability
Source
Araman and Glynn, Stability of a Queue Fed by Scheduled Traffic at Critical Loading, arXiv:2212.04164v1, p. 6, proof of Theorem 1, "there exists l < ∞ such that ℙ(Y₀ > l) = ℙ(Y_j > l) < 1" and the ergodic-theorem display
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 14, 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