Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(A.3), p. 15 — the drift of Ξ1 = (2µmax/αn)qi equals λn(2µmax/αn) − (2µmax/αn)µi1[1,∞)(qi) − Σj 2µmax(qi − qj)+

Proved
StableDispatch.Markov.eq_A_3

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

continuous-time-markov-chainload-balancinglyapunov-driftp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Fix n≥1n\ge1n≥1, λ∈(0,1)\lambda\in(0,1)λ∈(0,1), αn>0\alpha_n>0αn​>0 and μ∈Σn\mu\in\Sigma_nμ∈Σn​, and let rrr be the transition rates of the chain (Q(⋅),I(⋅))(Q(\cdot),I(\cdot))(Q(⋅),I(⋅)) of the single-ID policy, with μmax⁡=max⁡jμj\mu_{\max}=\max_j\mu_jμmax​=maxj​μj​ and Ξ1(q,i)=2μmax⁡αnqi\Xi_1(q,i)=\frac{2\mu_{\max}}{\alpha_n}q_iΞ1​(q,i)=αn​2μmax​​qi​. For every state (q,i)(q,i)(q,i), the series below converges and

∑(q′,i′)∈Z+n×{1,…,n}[Ξ1(q′,i′)−Ξ1(q,i)]r(q,i)→(q′,i′)=λn(2μmax⁡αn)−2μmax⁡αnμi1[1,∞)(qi)−∑j=1n2μmax⁡(qi−qj)+\sum_{(q',i')\in\mathbb Z_+^n\times\{1,\dots,n\}}\big[\Xi_1(q',i')-\Xi_1(q,i)\big]r_{(q,i)\to(q',i')}=\lambda n\Big(\frac{2\mu_{\max}}{\alpha_n}\Big)-\frac{2\mu_{\max}}{\alpha_n}\mu_i\mathbb 1_{[1,\infty)}(q_i)-\sum_{j=1}^n2\mu_{\max}(q_i-q_j)^+(q′,i′)∈Z+n​×{1,…,n}∑​[Ξ1​(q′,i′)−Ξ1​(q,i)]r(q,i)→(q′,i′)​=λn(αn​2μmax​​)−αn​2μmax​​μi​1[1,∞)​(qi​)−j=1∑n​2μmax​(qi​−qj​)+ ≤λn(2μmax⁡αn)−∑j=1n2μmax⁡(qi−qj)+,\le\lambda n\Big(\frac{2\mu_{\max}}{\alpha_n}\Big)-\sum_{j=1}^n2\mu_{\max}(q_i-q_j)^+ ,≤λn(αn​2μmax​​)−j=1∑n​2μmax​(qi​−qj​)+,

where x+=max⁡{x,0}x^+=\max\{x,0\}x+=max{x,0}.

This is the drift of the memory term of the Lyapunov function; the negative term −∑j2μmax⁡(qi−qj)+-\sum_j2\mu_{\max}(q_i-q_j)^+−∑j​2μmax​(qi​−qj​)+ penalizes a stored server whose queue is longer than others.

Formalization Note. The sum runs over all states, including (q,i)(q,i)(q,i) itself, where the summand is 000; it is stated as a HasSum so that convergence is part of the claim. The diagonal of the generator is used as the rate r(q,i)→(q,i)r_{(q,i)\to(q,i)}r(q,i)→(q,i)​, which is harmless because its factor is 000.

Differences from the source:

  • encoding: Σ over all (q′, i′) of [Ξ1(q′, i′) − Ξ1(q, i)] r → HasSum of the family y ↦ (Ξ1(y) − Ξ1(x))·Q(x, y) with Q the generator; reason: same sum, with convergence made explicit (the diagonal term is 0)
  • encoding: n arbitrary → [NeZero n]; reason: μ_max is undefined for n = 0 (no servers)
  • encoding: servers {1, …, n} → Fin n (0-based); reason: Lean convention, same instances
Preamble
import Mathlib
import Definitions.Def_MatrixAnalytic_Tree_Process
import Definitions.Def_StableDispatch_Markov_Setting
Formal statement
namespace StableDispatch.Markov

theorem eq_A_3 (n : ℕ) [NeZero n] (lam α : ℝ) (μ : Fin n → ℝ) (hlam0 : 0 < lam)
    (hlam1 : lam < 1) (hα : 0 < α) (hμ : μ ∈ Sigma n) (q : Fin n → ℕ) (i : Fin n) :
    HasSum (fun y : State n => (Xi1 μ α y - Xi1 μ α (q, i)) * gen n lam α μ (q, i) y)
        (lam * n * (2 * muMax μ / α) - 2 * muMax μ / α * μ i * (if 1 ≤ q i then 1 else 0)
          - ∑ j, 2 * muMax μ * max ((q i : ℝ) - (q j : ℝ)) 0) ∧
      lam * n * (2 * muMax μ / α) - 2 * muMax μ / α * μ i * (if 1 ≤ q i then 1 else 0)
          - ∑ j, 2 * muMax μ * max ((q i : ℝ) - (q j : ℝ)) 0
        ≤ lam * n * (2 * muMax μ / α) - ∑ j, 2 * muMax μ * max ((q i : ℝ) - (q j : ℝ)) 0 := by sorry

end StableDispatch.Markov
Source
Gamarnik, Tsitsiklis, Zubeldia, Stability, Memory, and Messaging Trade-Offs in Heterogeneous Service Systems, arXiv:2007.07219v1, p. 15, (A.3)
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

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