Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proof of Theorem 4.1, p. 97 — the multiplier 1/√y = (F − ∑ a_k f_k)/∑ √(a_k f_k) meets (4.2)

Proved
KellyReversibility.Allocation.multiplier_choice

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

capacity-allocationlagrange-multiplierp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-bookp2o-v1stochastic-networks

Let J≥1J \ge 1J≥1, aj>0a_j > 0aj​>0, fj>0f_j > 0fj​>0 for every jjj, and F>∑kakfkF > \sum_k a_k f_kF>∑k​ak​fk​. Define

y=(∑kakfkF−∑kakfk)2.y = \left(\frac{\sum_k \sqrt{a_k f_k}}{F - \sum_k a_k f_k}\right)^{2}.y=(F−∑k​ak​fk​∑k​ak​fk​​​)2.

Then y>0y > 0y>0,

1y=F−∑kakfk∑kakfk,\frac{1}{\sqrt y} = \frac{F - \sum_k a_k f_k}{\sum_k \sqrt{a_k f_k}},y​1​=∑k​ak​fk​​F−∑k​ak​fk​​,

the Lagrangian minimizer ϕjy=aj+aj/(yfj)\phi^y_j = a_j + \sqrt{a_j/(y f_j)}ϕjy​=aj​+aj​/(yfj​)​ coincides with the allocation of Theorem 4.1,

aj+ajyfj=aj+ajfj∑kakfk⋅F−∑kakfkfjfor every j,a_j + \sqrt{\frac{a_j}{y f_j}} = a_j + \frac{\sqrt{a_j f_j}}{\sum_k \sqrt{a_k f_k}}\cdot\frac{F - \sum_k a_k f_k}{f_j} \quad\text{for every } j,aj​+yfj​aj​​​=aj​+∑k​ak​fk​​aj​fj​​​⋅fj​F−∑k​ak​fk​​for every j,

and it satisfies the cost constraint (4.2): ∑jfjϕjy=F\sum_j f_j \phi^y_j = F∑j​fj​ϕjy​=F.

This is the step that chooses the multiplier so that the minimizer of the Lagrangian is feasible.

Formalization Note The hypotheses J≥1J \ge 1J≥1 and F>∑kakfkF > \sum_k a_k f_kF>∑k​ak​fk​ are implicit in the book; they make yyy well defined and positive.

Preamble
import Mathlib
import Definitions.Def_KellyReversibility_Allocation_CapacityAllocation
Formal statement
namespace KellyReversibility.Allocation

theorem multiplier_choice {J : ℕ} (hJ : 0 < J) (a f : Fin J → ℝ) (F : ℝ)
    (ha : ∀ j, 0 < a j) (hf : ∀ j, 0 < f j) (hF : ∑ k, a k * f k < F) :
    let y : ℝ := ((∑ k, Real.sqrt (a k * f k)) / (F - ∑ k, a k * f k)) ^ 2
    0 < y ∧ 1 / Real.sqrt y = (F - ∑ k, a k * f k) / ∑ k, Real.sqrt (a k * f k) ∧
      (∀ j, a j + Real.sqrt (a j / (y * f j)) = optimalAllocation a f F j) ∧
      ∑ j, f j * (a j + Real.sqrt (a j / (y * f j))) = F := by sorry

end KellyReversibility.Allocation
Source
Kelly, Reversibility and Stochastic Networks, Wiley 1979, p. 97, proof of Theorem 4.1 (substitution in constraint (4.2))
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me