Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 1, (4.17)–(4.19) — with deterministic unit service times the fluid equation has the sawtooth solution Q̄(t) = 1 + t − ⌊t⌋

Proved
ReedGGN.Regulator.example_1

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

fluid-limitmany-server-queuep2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1regulator-map

Take deterministic unit service times, F0(x)=F(x)=1{x≥1}F_0(x)=F(x)=\mathbf 1\{x\ge1\}F0​(x)=F(x)=1{x≥1} (the law of the unit mass at 111), initial fluid content Qˉ0=1\bar Q_0=1Qˉ​0​=1 and fluid arrivals Aˉ=e\bar A=eAˉ=e. The fluid equation (4.7) then reads

Qˉ(t)=min⁡(1,1)Fˉ0(t)+(1−1)+G(t)+∫0tG(t−s) ds+∫[0,t](Qˉ(t−s)−1)+ dF(s),t≥0,\bar Q(t)=\min(1,1)\bar F_0(t)+(1-1)^+G(t)+\int_0^tG(t-s)\,ds+\int_{[0,t]}(\bar Q(t-s)-1)^+\,dF(s),\qquad t\ge0,Qˉ​(t)=min(1,1)Fˉ0​(t)+(1−1)+G(t)+∫0t​G(t−s)ds+∫[0,t]​(Qˉ​(t−s)−1)+dF(s),t≥0,

with Fˉ0=G=1−F\bar F_0=G=1-FFˉ0​=G=1−F. Then:

  1. the path Qˉ(t)=1+t−⌊t⌋\bar Q(t)=1+t-\lfloor t\rfloorQˉ​(t)=1+t−⌊t⌋ is càdlàg on [0,∞)[0,\infty)[0,∞);
  2. it solves this equation;
  3. every càdlàg solution of the equation equals 1+t−⌊t⌋1+t-\lfloor t\rfloor1+t−⌊t⌋ for all t≥0t\ge0t≥0.

This verifies the paper's Example 1, the explicit sawtooth fluid limit (4.19), periodic with period 111 and discontinuous at the integers.

Formalization Note The input terms of (4.7) are written as on p. 12 and not pre-simplified: that they equal 1+t1+t1+t on [0,1)[0,1)[0,1) and 111 afterwards is part of the claim. The paper's (4.18) reads Qˉ(t)=1+(Qˉ(t)−1)+\bar Q(t)=1+(\bar Q(t)-1)^+Qˉ​(t)=1+(Qˉ​(t)−1)+, which every Qˉ≥1\bar Q\ge1Qˉ​≥1 satisfies; (4.7) gives Qˉ(t)=1+(Qˉ(t−1)−1)+\bar Q(t)=1+(\bar Q(t-1)-1)^+Qˉ​(t)=1+(Qˉ​(t−1)−1)+ for t≥1t\ge1t≥1, which is the equation stated here. Theorem 4.1 itself (the fluid limit) is not part of this statement.

Preamble
import Mathlib
import Definitions.Def_ReedGGN_Regulator_PathSpace
import Definitions.Def_ReedGGN_Regulator_Equation
import Definitions.Def_ReedGGN_Regulator_FluidInput
Formal statement
namespace ReedGGN.Regulator

open MeasureTheory

/-- Example 1 (p. 15), (4.17)–(4.19): deterministic service times `F_0 = F = 1{x ≥ 1}`,
`Q̄₀ = 1`, `Ā = e`. The fluid equation (4.7) is (3.1) with `B = F`, `a = −1` and input the
first three terms of (4.7); its càdlàg solution is `Q̄(t) = 1 + t − ⌊t⌋` on `[0, ∞)`. -/
theorem example_1 :
    IsCadlag (fun t : ℝ => 1 + t - (⌊t⌋ : ℝ)) ∧
    SolvesRegulator (Measure.dirac 1) (-1)
      (fluidInput 1 (tail (Measure.dirac 1)) (Measure.dirac 1))
      (fun t : ℝ => 1 + t - (⌊t⌋ : ℝ)) ∧
    (∀ Q : ℝ → ℝ, IsCadlag Q →
      SolvesRegulator (Measure.dirac 1) (-1)
        (fluidInput 1 (tail (Measure.dirac 1)) (Measure.dirac 1)) Q →
      Set.EqOn Q (fun t : ℝ => 1 + t - (⌊t⌋ : ℝ)) (Set.Ici 0)) := by sorry

end ReedGGN.Regulator
Source
Reed, The G/GI/N Queue in the Halfin–Whitt Regime, arXiv:0912.2837v1, p. 15, Example 1, Eqs. (4.17)–(4.19); p. 12, Eq. (4.7)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

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