Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 8.2 — stability region of weighted alpha-fair allocations

Proved
KellyStochasticNetworks.FlowStability.stability_iff

by Shuze Chen · Oct 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-optimizationoperations-researchprobabilitystochastic-systems

Consider finitely many resources and routes, each route using at least one resource, with positive capacities CjC_jCj​, independent Poisson arrival intensities νr\nu_rνr​, independent exponential file-size parameters μr\mu_rμr​, positive weights wrw_rwr​, and α>0\alpha>0α>0. At every state n∈NRn\in\mathbb N^Rn∈NR, let Xr(n)=nrxr(n)X_r(n)=n_rx_r(n)Xr​(n)=nr​xr​(n) be the weighted α\alphaα-fair aggregate allocation. The countable Markov process has birth rates νr\nu_rνr​ and departure rates μrXr(n)\mu_rX_r(n)μr​Xr​(n) on active routes. Write ρr=νr/μr\rho_r=\nu_r/\mu_rρr​=νr​/μr​.

The process is positive recurrent, equivalently it has an equilibrium probability distribution, if and only if

∑r:j∈rρr<Cjfor every resource j.\sum_{r:j\in r}\rho_r<C_j\qquad\text{for every resource }j.r:j∈r∑​ρr​<Cj​for every resource j.

The equivalence includes failure of positive recurrence at equality as well as above capacity. It characterizes the full stochastic stability region, beyond the deterministic drift inequality.

Formalization Note Equilibrium means invariance under every nonnegative-time transition kernel of the explicit bounded-rate Poisson uniformization on NR\mathbb N^RNR. A probability measure on the canonical path space is also required to realize the corresponding stationary Markov finite-dimensional distributions. Counts are not truncated. Existence of an equilibrium distribution, irreducibility, and any drift bound are not assumptions of the theorem. Positive parameter conventions are the standing nondegenerate model used in the source's Lyapunov calculation; an absent route may be omitted.

Preamble
import Mathlib
import Definitions.Def_KellyStochasticNetworks_FlowStability_Process
Formal statement
namespace KellyStochasticNetworks.FlowStability

/-- Theorem 8.2. Network includes finite 0-1 incidence, a nonempty resource set for
each route, positive capacities, arrival rates, exponential SIZE PARAMETERS mu,
weights, and alpha (all strictly positive). IsAlphaFair maximizes the published aggregate utility at each
count vector, with inactive rates zero and positive active rates. The process has
birth rates nu_r and departure rates mu_r X_r(n), X_r=n_r x_r. PositiveRecurrent
means existence of a probability mass function invariant at EVERY t>=0 under the
Poisson-uniformized transition function on Fin R -> Nat, together with a probability
measure on (NNReal -> (Fin R -> Nat)) whose coordinate process has the stationary
Markov finite-dimensional laws pi(y0) times the product of those transition kernels
for every finite nondecreasing list of nonnegative times. No drift, stationary
law, or process measure is a hypothesis. Subcritical means sum_r A_jr (nu_r/mu_r) < C_j for every j. -/
theorem stability_iff {J R : ℕ} (D : Network J R)
    (X : State R → Fin R → ℝ) (hX : IsAlphaFair D X) :
    PositiveRecurrent D X ↔ Subcritical D := by sorry

end KellyStochasticNetworks.FlowStability
Source
Kelly & Yudovina, Stochastic Networks (2014), supplied Lecture Notes PDF, printed p. 189 (PDF p. 197), Theorem 8.2 and (8.2); model on printed pp. 186, 188 (PDF pp. 194, 196)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

The statement asserts the following, for any natural numbers JJJ and RRR.

Data.

  • DDD is an object of type Network J R. Here JJJ is the number of resources, indexed by j∈{0,…,J−1}j \in \{0,\dots,J-1\}j∈{0,…,J−1}, and RRR is the number of routes, indexed by r∈{0,…,R−1}r \in \{0,\dots,R-1\}r∈{0,…,R−1}. The fields and well-formedness conditions of Network are defined in the imported file Definitions.Def_KellyStochasticNetworks_FlowStability_Process, which is not shown here.
  • XXX is a function that takes a state nnn (of type State R) and a route rrr and returns a real number Xr(n)X_r(n)Xr​(n). State R is also defined in the unseen file.
  • hXh_XhX​ is a hypothesis that XXX satisfies the predicate IsAlphaFair for the network DDD.

Conclusion. Under these assumptions,

PositiveRecurrent(D,X)  ⟺  Subcritical(D).\text{PositiveRecurrent}(D, X) \iff \text{Subcritical}(D).PositiveRecurrent(D,X)⟺Subcritical(D).

This is a two-way equivalence: each condition implies the other.

What the visible code does not show. None of Network, State, IsAlphaFair, PositiveRecurrent or Subcritical is defined in the code shown. Their meaning cannot be checked from this declaration alone. The only description available is the author's doc-comment, which is a description and not the code. According to it:

  • Network packages:

    • a finite 0–1 incidence matrix A=(Ajr)A = (A_{jr})A=(Ajr​), in which each route uses a nonempty set of resources;
    • capacities Cj>0C_j > 0Cj​>0;
    • arrival rates νr>0\nu_r > 0νr​>0;
    • exponential size parameters μr>0\mu_r > 0μr​>0;
    • weights wr>0w_r > 0wr​>0;
    • a fairness parameter α>0\alpha > 0α>0.
  • IsAlphaFair says that at each count vector nnn, the rates xr(n)x_r(n)xr​(n) maximize the aggregate utility defined in the source paper. Rates of inactive routes are zero, rates of active routes are positive, and Xr(n)=nr xr(n)X_r(n) = n_r\, x_r(n)Xr​(n)=nr​xr​(n).

  • PositiveRecurrent concerns the process on states n:{0,…,R−1}→Nn : \{0,\dots,R-1\} \to \mathbb{N}n:{0,…,R−1}→N. In this process, route rrr gains a flow at rate νr\nu_rνr​ and loses one at rate μrXr(n)\mu_r X_r(n)μr​Xr​(n). The predicate requires two things to exist:

    • a probability mass function π\piπ that is invariant at every time t≥0t \ge 0t≥0 under the Poisson-uniformized transition function;
    • a probability measure on paths indexed by [0,∞)[0,\infty)[0,∞) whose coordinate process has the stationary Markov finite-dimensional laws. For every finite nondecreasing list of times, these laws are π(y0)\pi(y_0)π(y0​) multiplied by the corresponding transition kernels.

    The comment says no drift condition, stationary law or process measure is assumed as a hypothesis.

  • Subcritical means that for every resource jjj:

∑rAjr νrμr<Cj.\sum_{r} A_{jr}\,\frac{\nu_r}{\mu_r} < C_j .r∑​Ajr​μr​νr​​<Cj​.

Degenerate cases. These follow from the visible structure and, where noted, the comment's description; none could be confirmed against the unseen definitions.

  • J=0J = 0J=0 (no resources). If Subcritical quantifies over all resources as described, it holds vacuously, and the theorem would then assert positive recurrence. However, if Network really requires every route to use a nonempty set of resources, then no network with J=0J = 0J=0 and R≥1R \ge 1R≥1 exists, and the statement is vacuous for those sizes.
  • R=0R = 0R=0 (no routes). There is exactly one state: the empty count vector. Each sum ∑rAjrνr/μr\sum_r A_{jr}\nu_r/\mu_r∑r​Ajr​νr​/μr​ is 000, so Subcritical reduces to 0<Cj0 < C_j0<Cj​ for all jjj, which positive capacities would guarantee. The theorem then asserts that the one-state process is positive recurrent.
  • Division νr/μr\nu_r/\mu_rνr​/μr​. If μr=0\mu_r = 0μr​=0, real division returns 000. The comment says every μr>0\mu_r > 0μr​>0, but that is not visible in this code.
  • An unsatisfiable IsAlphaFair. If no XXX satisfies IsAlphaFair for some DDD (for example, because the utility maximization has no solution at some state), the theorem says nothing about that DDD.
  • Values that do not come from the network. XXX is an arbitrary real-valued function, constrained only through hXh_XhX​. Whether IsAlphaFair pins XXX down uniquely, or forces nonnegative values, depends on the unseen definition.
Human review
  • Endorsed by Community (Bot) · Oct 22, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 22, 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