Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1: multiplicative boost of active users

Proved
CloudAlloc.MWU.lemma_1_boost

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

multiplicative-weightsonline-algorithmsoperations-researchqueueingresource-allocation

Let N≥2N\ge 2N≥2, 0<ε≤1/100<\varepsilon\le 1/100<ε≤1/10, 0<η≤1/30<\eta\le 1/30<η≤1/3, SLAs β(i)≥0\beta(i)\ge 0β(i)≥0 with ∑iβ(i)≤1\sum_i\beta(i)\le 1∑i​β(i)≤1, and nonnegative loads. Let hhh be a run of Algorithm 1, AtA_tAt​ the active users at time ttt, At1={i∈At:ht(i)<β(i)}A^1_t=\{i\in A_t: h_t(i)<\beta(i)\}At1​={i∈At​:ht​(i)<β(i)}, At2=At∖At1A^2_t=A_t\setminus A^1_tAt2​=At​∖At1​, and c=εη/(4N)c=\varepsilon\eta/(4N)c=εη/(4N). Then:

  1. if ∑j∈Atht(j)≤1−ε\sum_{j\in A_t}h_t(j)\le 1-\varepsilon∑j∈At​​ht​(j)≤1−ε, every i∈Ati\in A_ti∈At​ satisfies ht+1(i)≥ht(i)(1+c)h_{t+1}(i)\ge h_t(i)(1+c)ht+1​(i)≥ht​(i)(1+c);
  2. every i∈At1i\in A^1_ti∈At1​ satisfies ht+1(i)≥ht(i)h_{t+1}(i)\ge h_t(i)ht+1​(i)≥ht​(i);
  3. every i∈At2i\in A^2_ti∈At2​ satisfies ht+1(i)≥ht(i)(1−εc)h_{t+1}(i)\ge h_t(i)(1-\varepsilon c)ht+1​(i)≥ht​(i)(1−εc).

When the system is under-utilized all active users gain multiplicatively, and in general active users lose little. This drives the utilization bound of Claim 3.2 and the SLA argument of Theorem 4.

Differences from the source:

  • generalization: η in Algorithm 1's input range 0 < η < 1/3 (no η range printed in this statement) → 0 < η ≤ 1/3; reason: the range printed in Lemma 2 and Theorem 4; it contains Algorithm 1's input range, so the statement specializes to it
  • encoding: times t = 1, 2, … with Q_t, h_t, w_t, L_t → Lean time t is the paper's time t + 1 (h t = h_{t+1}, queue h L t = Q_{t+1}, Finset.range t = {1, …, t}); reason: 0-based indexing of ℕ; same instances
  • reading: initial queue Q_1 left implicit in the model (p. 3) → every queue starts at 0 (queue h L 0 = 0); reason: LP constraint (1) and Proposition 2 (p. 11) require Σ_{s≤t} w_s(i) ≤ Σ_{s≤t} L_s(i), which fixes Q_1 = 0
Preamble
import Mathlib
import Definitions.Def_CloudAlloc_MWU_IsAlg1Run
Formal statement
namespace CloudAlloc.MWU

/-- **Lemma 1: multiplicative boost of active users.**
Perez-Salazar, Menache, Singh, Toriello, *Dynamic Resource Allocation in the Cloud with Near-Optimal
Efficiency*, arXiv:1809.02688v3, Lemma 1, p. 11 (proof in Appendix B, pp. 27–29):
"Let `c = εη/(4N)`. Then Algorithm 1 satisfies the following:
1. Suppose `Σ_{i∈At} ht(i) ≤ 1 − ε`. If `i ∈ At`, then `ht+1(i) ≥ ht(i)(1 + c)`.
2. In general, Algorithm 1 satisfies `ht+1(i) ≥ ht(i)` for `i ∈ A¹t` and `ht+1(i) ≥ ht(i)(1 − εc)`
for `i ∈ A²t`."

For every run `h` of Algorithm 1 with `N ≥ 2`, `0 < ε ≤ 1/10`, `0 < η ≤ 1/3`, SLAs `β ≥ 0` with
`Σβ ≤ 1` and nonnegative loads, and with `c = εη/(4N)`:
(1) if the active users hold at most `1 − ε` in total, every active user's allocation grows by the
factor `1 + c`; (2) an active user below its SLA does not lose allocation; (3) an active user at or
above its SLA keeps at least the fraction `1 − εc` of its allocation.

**Formalization Note.** Lean time `t` is the paper's `t + 1` (`h t` = `h_{t+1}`,
`queue h L t` = `Q_{t+1}`). Active means `0 < queue h L t i` (`A_t`); `A¹_t` is `h t i < β i`, `A²_t`
is `β i ≤ h t i`. The η range `0 < η ≤ 1/3` is that of Lemma 2 and Theorem 4 (p. 10, 13); Lemma 1
prints no η range, and `0 < η` comes from Algorithm 1's input (p. 9). -/
theorem lemma_1_boost {N : ℕ} (hN : 2 ≤ N) {ε η : ℝ} (hε : 0 < ε) (hε' : ε ≤ 1 / 10)
    (hη : 0 < η) (hη' : η ≤ 1 / 3)
    {β : Fin N → ℝ} (hβ0 : ∀ i, 0 ≤ β i) (hβsum : ∑ i, β i ≤ 1)
    {L : ℕ → Fin N → ℝ} (hL : ∀ t i, 0 ≤ L t i) {h : ℕ → Fin N → ℝ}
    (hrun : IsAlg1Run N ε η β L h) :
    let c := ε * η / (4 * (N : ℝ))
    (∀ t, ∑ j ∈ Finset.univ.filter (fun j => 0 < queue h L t j), h t j ≤ 1 - ε →
        ∀ i, 0 < queue h L t i → h t i * (1 + c) ≤ h (t + 1) i) ∧
      (∀ t i, 0 < queue h L t i → h t i < β i → h t i ≤ h (t + 1) i) ∧
      (∀ t i, 0 < queue h L t i → β i ≤ h t i → h t i * (1 - ε * c) ≤ h (t + 1) i) := by sorry

end CloudAlloc.MWU
Source
Perez-Salazar, Menache, Singh, Toriello, Dynamic Resource Allocation in the Cloud with Near-Optimal Efficiency, arXiv:1809.02688v3, Lemma 1, p. 11 (proof in Appendix B, pp. 27–29)

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