Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.4 — the product form of a closed migration process

Proved
KellyStochasticNetworks.closed_migration_equilibrium

by naimengye · Sep 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

markov-chainproduct-formqueueing-theorystochastic-networks

Consider a closed migration process on JJJ colonies: individuals move one at a time from colony jjj to colony kkk at rate

q(n,Tjkn)=λjk φj(nj),q(n, T^{jk}n) = \lambda_{jk}\,\varphi_j(n_j),q(n,Tjkn)=λjk​φj​(nj​),

where λjj=0\lambda_{jj} = 0λjj​=0, all λjk≥0\lambda_{jk} \ge 0λjk​≥0, φj(0)=0\varphi_j(0) = 0φj​(0)=0 and φj(r)>0\varphi_j(r) > 0φj​(r)>0 for r≥1r \ge 1r≥1. Let (αj)(\alpha_j)(αj​) solve the traffic equations (2.1):

αj>0,∑jαj=1,αj∑kλjk=∑kαkλkj.\alpha_j > 0, \qquad \sum_j \alpha_j = 1, \qquad \alpha_j \sum_k \lambda_{jk} = \sum_k \alpha_k \lambda_{kj}.αj​>0,j∑​αj​=1,αj​k∑​λjk​=k∑​αk​λkj​.

Then for any non-zero constant GGG the measure

π(n)=G−1∏j=1Jαj nj∏r=1njφj(r)\pi(n) = G^{-1}\prod_{j=1}^{J}\frac{\alpha_j^{\,n_j}}{\prod_{r=1}^{n_j}\varphi_j(r)}π(n)=G−1j=1∏J​∏r=1nj​​φj​(r)αjnj​​​

satisfies the equilibrium equations for these rates. On the state space S={n:∑jnj=N}S = \{n : \sum_j n_j = N\}S={n:∑j​nj​=N} of a closed process with NNN individuals, GGG is the normalizing constant GNG_NGN​ that makes π\piπ a probability distribution, and π\piπ is then the equilibrium distribution of the process.

The striking feature is that the joint distribution factorizes as a product over individual colonies, even though the total population is held fixed and the occupancies are therefore dependent.

Formalization Note The equilibrium equations are a local condition, one equation per state, so they are stated over all of Z+J\mathbb{Z}_+^JZ+J​ rather than over the fixed-population subset; restricting to SSS changes nothing, because every transition preserves ∑jnj\sum_j n_j∑j​nj​. The constant GGG is left free precisely because the equilibrium equations are homogeneous: fixing it is the separate normalization step over SSS.

Preamble
import Mathlib
import Definitions.Def_KellyStochasticNetworks_Balance
import Definitions.Def_KellyStochasticNetworks_Migration
Formal statement
namespace KellyStochasticNetworks

theorem closed_migration_equilibrium {J : ℕ} (lam : Fin J → Fin J → ℝ) (φ : Fin J → ℕ → ℝ)
    (α : Fin J → ℝ) (G : ℝ) (hG : G ≠ 0)
    (hlamdiag : ∀ j, lam j j = 0) (hlam : ∀ j k, 0 ≤ lam j k)
    (hφ0 : ∀ j, φ j 0 = 0) (hφpos : ∀ j r, 1 ≤ r → 0 < φ j r)
    (htraffic : ClosedTraffic lam α) :
    FullBalance (fun n : Fin J → ℕ => G⁻¹ * ∏ j, (α j ^ n j / phiProd φ j (n j)))
      (closedMigrationRates lam φ) := by sorry

end KellyStochasticNetworks
Source
Kelly & Yudovina, Stochastic Networks, CUP 2014, p. 27 (PDF p. 35), Theorem 2.4: 'The equilibrium distribution for a closed migration process is pi(n) = G_N^{-1} prod_{j=1}^{J} alpha_j^{n_j} / prod_{r=1}^{n_j} phi_j(r), n in S. Here, G_N is a normalizing constant, chosen so the distribution sums to 1, and (alpha_j) are the solution to the traffic equations (2.1).' sha256 ec271d555059aee58613e5e9a98b8346214b16185c527314f5d94c1ac8b17b6a
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 2026

    Confirmed by the mission captain (proposal self-audit).

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