Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 — the SWSS ϑ_p equals (Σ_j d(i,j)θ_j − Σ_ℓ d(i,ℓ)λ̂_ℓ)/Σ_ℓ d(i,ℓ)p_ℓ for every class i

Proved
SWSSNet.Diffusion.theorem_2

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

linear-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1safety-staffingtree

Let ppp be a positive probability vector on the classes and let ddd be the gains (13) of the tree. For every class iii, the linear program (LP′) has the optimal value

ϑp=∑jd(i,j) θj−∑ℓd(i,ℓ) λ^ℓ∑ℓd(i,ℓ) pℓ,(14)\vartheta_p=\frac{\sum_{j}d(i,j)\,\theta_j-\sum_{\ell}d(i,\ell)\,\hat\lambda_\ell}{\sum_{\ell}d(i,\ell)\,p_\ell}, \qquad (14)ϑp​=∑ℓ​d(i,ℓ)pℓ​∑j​d(i,j)θj​−∑ℓ​d(i,ℓ)λ^ℓ​​,(14)

and this value is attained, i.e. it is the largest feasible value of ϑ\varthetaϑ.

The theorem computes the SWSS parameter in closed form from the network data. In particular, the same expression results for every choice of the reference class iii.

Formalization Note The conclusion is IsGreatest of the set of feasible values of (LP′): the value (14) is feasible and bounds every feasible value. Hence the supremum defining ϑp\vartheta_pϑp​ is attained and equals (14).

Preamble
import Mathlib
import Definitions.Def_SWSSNet_Diffusion_Network

open Matrix MeasureTheory
open scoped NNReal ENNReal BigOperators
Formal statement
namespace SWSSNet.Diffusion

/-- Theorem 2, p. 10: for every class `i`, the value `ϑ_p` of (LP′) is attained and equals
`(∑_j d(i,j) θ_j − ∑_ℓ d(i,ℓ) λ̂_ℓ) / ∑_ℓ d(i,ℓ) p_ℓ` (14). -/
theorem theorem_2 {I J : ℕ} (N : TreeNetwork I J) (p : Fin I → ℝ) (hp : IsPosProb p) (i : Fin I) :
    IsGreatest {ϑ | lpFeasible N p ϑ}
      ((∑ j, gain N (Sum.inl i) (Sum.inr j) * theta N j
          - ∑ ℓ, gain N (Sum.inl i) (Sum.inl ℓ) * N.lamHat ℓ) /
        ∑ ℓ, gain N (Sum.inl i) (Sum.inl ℓ) * p ℓ) := by sorry

end SWSSNet.Diffusion
Source
Hmedi, Arapostathis & Pang, On System-Wide Safety Staffing of Large-Scale Parallel Server Networks, arXiv:2009.01942v3, p. 10, Theorem 2, (14)
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

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