Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1, p. 7 — under Conditions 1–2 and stability, the stationary distribution of the token-based central queue is the product form (10)–(11)

Proved
TokenQueue.ProductForm.theorem_1

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

global-balancep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1product-formqueueingstationary-distribution

Consider the token-based central queue with finitely many customer types and tokens, Poisson arrival rates λc>0\lambda_c>0λc​>0, compatibility sets Tc≠∅\mathcal T_c\ne\emptysetTc​=∅, a randomised assignment rule satisfying the assignment condition (Condition 1), and departure rates μTj(x)=η(ϕ(x))sj(T1,…,Tj)\mu_{T_j}(x)=\eta(\phi(x))s_j(T_1,\dots,T_j)μTj​​(x)=η(ϕ(x))sj​(T1​,…,Tj​) satisfying the order-independent condition (Condition 2), with k(T1,…,Tj)>0k(T_1,\dots,T_j)>0k(T1​,…,Tj​)>0 for non-empty sequences of distinct tokens. Suppose the queue is stable, i.e. the series in (11) converges. Then

π(x)=π((0)) Πλ({T1,…,Ti})Πk(T1,…,Ti)∏j=1iαjnj∏j=1ϕ(x)1η(j),x=(T1,n1,…,Ti,ni),(10)\pi(x)=\pi((0))\,\frac{\Pi_\lambda(\{T_1,\dots,T_i\})}{\Pi_k(T_1,\dots,T_i)}\prod_{j=1}^{i}\alpha_j^{n_j}\prod_{j=1}^{\phi(x)}\frac1{\eta(j)},\qquad x=(T_1,n_1,\dots,T_i,n_i),\tag{10}π(x)=π((0))Πk​(T1​,…,Ti​)Πλ​({T1​,…,Ti​})​j=1∏i​αjnj​​j=1∏ϕ(x)​η(j)1​,x=(T1​,n1​,…,Ti​,ni​),(10)

with Πλ({T1,…,Ti})=∏j=1iλTj({T1,…,Tj−1})\Pi_\lambda(\{T_1,\dots,T_i\})=\prod_{j=1}^i\lambda_{T_j}(\{T_1,\dots,T_{j-1}\})Πλ​({T1​,…,Ti​})=∏j=1i​λTj​​({T1​,…,Tj−1​}), Πk(T1,…,Ti)=∏j=1ik(T1,…,Tj)\Pi_k(T_1,\dots,T_i)=\prod_{j=1}^i k(T_1,\dots,T_j)Πk​(T1​,…,Ti​)=∏j=1i​k(T1​,…,Tj​), αj=λU({T1,…,Tj})/k(T1,…,Tj)\alpha_j=\lambda_{\mathcal U(\{T_1,\dots,T_j\})}/k(T_1,\dots,T_j)αj​=λU({T1​,…,Tj​})​/k(T1​,…,Tj​) and

π((0))=(1+∑x≠(0)Πλ({T1,…,Ti})Πk(T1,…,Ti)∏j=1iαjnj∏j=1ϕ(x)1η(j))−1,(11)\pi((0))=\Bigl(1+\sum_{x\ne(0)}\frac{\Pi_\lambda(\{T_1,\dots,T_i\})}{\Pi_k(T_1,\dots,T_i)}\prod_{j=1}^{i}\alpha_j^{n_j}\prod_{j=1}^{\phi(x)}\frac1{\eta(j)}\Bigr)^{-1},\tag{11}π((0))=(1+x=(0)∑​Πk​(T1​,…,Ti​)Πλ​({T1​,…,Ti​})​j=1∏i​αjnj​​j=1∏ϕ(x)​η(j)1​)−1,(11)

is a stationary distribution of the queue: it is a probability distribution on the states, every state has total exit rate λ+μ(x)\lambda+\mu(x)λ+μ(x), the mean exit rate ∑xπ(x)(λ+μ(x))\sum_x\pi(x)(\lambda+\mu(x))∑x​π(x)(λ+μ(x)) is finite, and the global balance equations

π(x)∑yq(x,y)=∑yπ(y) q(y,x)\pi(x)\sum_y q(x,y)=\sum_y\pi(y)\,q(y,x)π(x)y∑​q(x,y)=y∑​π(y)q(y,x)

hold for the transition rates qqq of the queue (§4.1).

The sum over x≠(0)x\ne(0)x=(0) in (11) is the paper's sum over i=1,…,Ki=1,\dots,Ki=1,…,K, ordered iii-tuples of distinct tokens and (n1,…,ni)∈Ni(n_1,\dots,n_i)\in\mathbb N^i(n1​,…,ni​)∈Ni. The theorem identifies the stationary distribution of a multi-type, multi-server central queue in closed product form, from which the paper derives the distributions of queue lengths, waiting and sojourn times.

Formalization Note "Stable" is read as summability of the weights (10), as in §4.4 (p. 9): when the series in (11) diverges, π((0))=0\pi((0))=0π((0))=0 and the queue is not ergodic. Uniqueness of the stationary distribution is not stated: the paper gets it from irreducibility and an ergodicity theorem of Foster [12], and the state type contains infeasible descriptors (weight 000) outside the irreducible class. The added assumptions Tc≠∅\mathcal T_c\ne\emptysetTc​=∅ and k>0k>0k>0 are explained in the definitions item. The global balance equations use the published predicate KellyStochasticNetworks.FullBalance (unconditional sums), and the conclusion includes the summability of the inflow at each state and of the exit-rate mass, so that no sum is a junk value. The rates qqq are the forward transition rates of §4.1, not the right-hand side of (8).

Preamble
import Mathlib
import Definitions.Def_KellyStochasticNetworks_Balance
import Definitions.Def_TokenQueue_ProductForm_Model
Formal statement
namespace TokenQueue.ProductForm

open Finset

/-- **Theorem 1**, p. 7. If the token-based central queue is stable (the series (11) converges) and
Conditions 1 and 2 hold, the normalised weights `π(x) = π((0)) Π_λ/Π_k ∏ α_j^{n_j} ∏ 1/η(j)` with
`π((0))` given by (11) form a probability distribution on the states that satisfies the global
balance equations of the queue's forward transition rates. -/
theorem theorem_1 {C T : Type} [Fintype C] [DecidableEq C] [Fintype T] [DecidableEq T]
    (P : Params C T) (hS : P.Standing) (h1 : Condition1 P) (h2 : Condition2 P) (hk : KPos P)
    (hstab : Summable (weight P)) :
    let π : State T → ℝ := fun x => weight P x / ∑' y, weight P y
    π State.empty = (1 + ∑' x : {x : State T // x.1 ≠ []}, weight P x.1)⁻¹ ∧
    (∀ x, π x = π State.empty * weight P x) ∧
    (∀ x, 0 ≤ π x) ∧ HasSum π 1 ∧
    (∀ x, HasSum (fun y => rate P x y) (lamTot P + mu P x.1)) ∧
    (∀ x, Summable (fun y => π y * rate P y x)) ∧
    Summable (fun x => π x * (lamTot P + mu P x.1)) ∧
    KellyStochasticNetworks.FullBalance π (rate P) := by sorry

end TokenQueue.ProductForm
Source
Ayesta, Bodas, Dorsman, Verloop, A token-based central queue with order-independent service rates, arXiv:1902.02137v1, p. 7, Theorem 1, Eqs. (10)–(11); stability reading from §4.4, p. 9
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

    Confirmed by the moderator at approval.

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