Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Fluid function of the Coxian model: u is differentiable, u(t) → ρ and u̇(t) → 0

Proved
UnknownLoads.Coxian.fluid_u_limits

by tianyipeng · Nov 3, 2026 · Mathlib 0df444a (Lean v4.33.1)

coxianfluid-limitlearningload-balancing

Let uuu be the fluid function (3) of the Coxian scenario with constant arrival rate λ\lambdaλ:

u(t)=∑m=1rum(0) Gm(t)+∫0tλ G1(t−s) ds,um(0)=∑νν(m) s(0,ν),u(t) = \sum_{m=1}^{r} u^m(0)\, G_m(t) + \int_0^t \lambda\, G_1(t-s)\, ds, \qquad u^m(0) = \sum_{\nu} \nu(m)\, s(0,\nu),u(t)=m=1∑r​um(0)Gm​(t)+∫0t​λG1​(t−s)ds,um(0)=ν∑​ν(m)s(0,ν),

where Gm(t)=(etQ1)mG_m(t) = (e^{tQ}\mathbf 1)_mGm​(t)=(etQ1)m​ is the complementary cumulative distribution function of the residual service time of a task currently in phase mmm, QQQ being the sub-generator of the Coxian phase process (Qmm=−μmQ_{mm} = -\mu_mQmm​=−μm​, Qm,m+1=pmμmQ_{m,m+1} = p_m\mu_mQm,m+1​=pm​μm​). Let ρ=λ/μ\rho = \lambda/\muρ=λ/μ be the offered load, with 1/μ=∑i=1r(1−pi)∏j<ipj∑k≤i1/μk1/\mu = \sum_{i=1}^r (1-p_i)\prod_{j<i}p_j \sum_{k\le i} 1/\mu_k1/μ=∑i=1r​(1−pi​)∏j<i​pj​∑k≤i​1/μk​ the mean service time.

Then, for any initial state s(0)∈Ss(0) \in Ss(0)∈S, the function uuu is differentiable at every t>0t > 0t>0, and

lim⁡t→∞u(t)=ρ,lim⁡t→∞u˙(t)=0.\lim_{t\to\infty} u(t) = \rho, \qquad \lim_{t\to\infty} \dot u(t) = 0.t→∞lim​u(t)=ρ,t→∞lim​u˙(t)=0.

This is the analytic fact about uuu invoked at the start of the proof of Theorem 3 ("It follows from (3) that uuu is differentiable. Furthermore, u(t)→ρu(t)\to\rhou(t)→ρ and u˙(t)→0\dot u(t)\to 0u˙(t)→0 as t→∞t\to\inftyt→∞"). It holds because Gm(t)→0G_m(t)\to 0Gm​(t)→0 exponentially fast for every phase mmm (the sub-generator QQQ is upper bidiagonal with negative diagonal), while ∫0∞G1=1/μ\int_0^\infty G_1 = 1/\mu∫0∞​G1​=1/μ is the mean of the Coxian service time and u˙(t)=∑mum(0)G˙m(t)+λG1(t)\dot u(t) = \sum_m u^m(0)\dot G_m(t) + \lambda G_1(t)u˙(t)=∑m​um(0)G˙m​(t)+λG1​(t).

Formalization note: phases are indexed by Fin r; phaseMass0 is a tsum, so if it diverges it takes the junk value 000, which does not affect the claim since Gm(t)→0G_m(t) \to 0Gm​(t)→0.

Preamble
import Mathlib
import Definitions.Def_UnknownLoads_Coxian_Model
open MeasureTheory Filter Topology
Formal statement
namespace UnknownLoads.Coxian

/-- Proof of Theorem 3 (p. 44): the fluid function `u` of (3) (with constant `λ`) is
differentiable, `u(t) → ρ` and `u̇(t) → 0` as `t → ∞`. -/
theorem fluid_u_limits {P : Params} (s0 : Profile P.r → ℝ) (hs0 : InS s0) :
    (∀ t : ℝ, 0 < t → DifferentiableAt ℝ (fluidU P s0) t) ∧
    Tendsto (fluidU P s0) atTop (𝓝 (rho P)) ∧
    Tendsto (deriv (fluidU P s0)) atTop (𝓝 0) := by sorry

end UnknownLoads.Coxian
Source
Goldsztajn, Borst & van Leeuwaarden, Learning and balancing unknown loads in large-scale systems, arXiv:2012.10142v3, p. 44, proof of Theorem 3 (first paragraph), with u defined in (3), p. 14, and Proposition 17, p. 42

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