Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (29), p. 24 — with n0 = 0 and k(∅) = 0, Σ_k (1 − r_k) ∏_{j>k} r_j^{nj+1} Σ_{n≤nk} r_k^n = 1 for r_j = k(T1,…,Tj)/k(T1,…,Tj,T)

Proved
TokenQueue.ProductForm.eq_29

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

p2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1queueingtelescoping

Let kkk be positive on non-empty sequences of distinct tokens, with k(∅)=0k(\emptyset)=0k(∅)=0. For distinct tokens T1,…,Ti,TT_1,\dots,T_i,TT1​,…,Ti​,T and counts n1,…,ni∈Nn_1,\dots,n_i\in\mathbb Nn1​,…,ni​∈N, with n0=0n_0=0n0​=0,

∑k=0ik(T1,…,Tk,T)−k(T1,…,Tk)k(T1,…,Tk,T)∏j=k+1i(k(T1,…,Tj)k(T1,…,Tj,T))nj+1∑n=0nk(k(T1,…,Tk)k(T1,…,Tk,T))n=1.\sum_{k=0}^{i}\frac{k(T_1,\dots,T_k,T)-k(T_1,\dots,T_k)}{k(T_1,\dots,T_k,T)}\prod_{j=k+1}^{i}\left(\frac{k(T_1,\dots,T_j)}{k(T_1,\dots,T_j,T)}\right)^{n_j+1}\sum_{n=0}^{n_k}\left(\frac{k(T_1,\dots,T_k)}{k(T_1,\dots,T_k,T)}\right)^{n}=1.k=0∑i​k(T1​,…,Tk​,T)k(T1​,…,Tk​,T)−k(T1​,…,Tk​)​j=k+1∏i​(k(T1​,…,Tj​,T)k(T1​,…,Tj​)​)nj​+1n=0∑nk​​(k(T1​,…,Tk​,T)k(T1​,…,Tk​)​)n=1.

The sum telescopes; it is the step of Appendix A that shows that the release terms of (13) add up to λT({T1,…,Ti})π(x)\lambda_T(\{T_1,\dots,T_i\})\pi(x)λT​({T1​,…,Ti​})π(x), and it is used again, with i=j−1i=j-1i=j−1 and T=TjT=T_jT=Tj​, for (14).

Formalization Note The page writes k(T1,…,TkT)k(T_1,\dots,T_kT)k(T1​,…,Tk​T) in the first numerator, a typo for k(T1,…,Tk,T)k(T_1,\dots,T_k,T)k(T1​,…,Tk​,T). Neither Condition 1 nor Condition 2 is needed. The counts are an arbitrary function n:N→Nn:\mathbb N\to\mathbb Nn:N→N with n(0)=0n(0)=0n(0)=0; prefixes are l.take k.

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

open Finset

/-- Eq. (29), p. 24: with `n₀ = 0` and `k(∅) = 0`, for distinct tokens `T₁,…,T_i,T` and any counts
`n₁,…,n_i`,
`∑_{k=0}^{i} (k(T₁..T_k,T) − k(T₁..T_k))/k(T₁..T_k,T) · ∏_{j=k+1}^{i} (k(T₁..T_j)/k(T₁..T_j,T))^{n_j+1}
  · ∑_{n=0}^{n_k} (k(T₁..T_k)/k(T₁..T_k,T))^n = 1`. -/
theorem eq_29 {C T : Type} [Fintype C] [DecidableEq C] [Fintype T] [DecidableEq T]
    (P : Params C T) (hk : KPos P) (l : List T) (t : T) (hl : (t :: l).Nodup)
    (n : ℕ → ℕ) (hn : n 0 = 0) :
    ∑ k ∈ range (l.length + 1),
      (kfun P (l.take k ++ [t]) - kfun P (l.take k)) / kfun P (l.take k ++ [t]) *
        (∏ j ∈ Icc (k + 1) l.length, (kfun P (l.take j) / kfun P (l.take j ++ [t])) ^ (n j + 1)) *
        ∑ m ∈ range (n k + 1), (kfun P (l.take k) / kfun P (l.take k ++ [t])) ^ m = 1 := by sorry

end TokenQueue.ProductForm
Source
Ayesta, Bodas, Dorsman, Verloop, A token-based central queue with order-independent service rates, arXiv:1902.02137v1, p. 24, Appendix A, Eq. (29)
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