Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1: a constant c bc\,bcb allocation does at least ccc times the work of any allocation capped at bbb

Proved
CloudAlloc.MWU.sla_cap_comparison

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

multiplicative-weightsonline-algorithmsoperations-researchqueueingresource-allocation

Let LLL be nonnegative loads, iii a user, bbb a cap and c∈[0,1]c\in[0,1]c∈[0,1]. Let h′′h''h′′ be any allocations with 0≤ht′′(i)≤b0\le h''_t(i)\le b0≤ht′′​(i)≤b for all ttt, and h′h'h′ allocations with ht′(i)=c bh'_t(i)=c\,bht′​(i)=cb for all ttt; let w′′w''w′′, w′w'w′ be their work, each with its own queues on the same loads. Then for every time ttt

∑τ=1twτ′(i) ≥ c∑τ=1twτ′′(i).\sum_{\tau=1}^t w'_\tau(i)\ \ge\ c\sum_{\tau=1}^t w''_\tau(i).τ=1∑t​wτ′​(i) ≥ cτ=1∑t​wτ′′​(i).

With c=1−2εc=1-2\varepsilonc=1−2ε and b=β(i)b=\beta(i)b=β(i) this turns Theorem 4's comparison with the static reservation (1−2ε)β(i)(1-2\varepsilon)\beta(i)(1−2ε)β(i) into clause 2 of Theorem 1, a comparison with every allocation capped at β(i)\beta(i)β(i).

Differences from the source:

  • reading: "a stronger bi-criteria result that implies the SLA guarantee in Theorem 1" (no statement printed) → the comparison step stated explicitly; reason: the implication from Theorem 4 to Theorem 1, clause 2, needs exactly this step
  • generalization: c = 1 − 2ε, b = β(i), h″ allocations in [0, 1]^N → every c ∈ [0, 1], every b, only coordinate i of h″ and h′ constrained; reason: the paper's case is the instance c = 1 − 2ε, b = β(i)
  • 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_userWork
Formal statement
namespace CloudAlloc.MWU

/-- **SLA comparison: a constant `c·b` allocation does at least `c` times the work of any allocation
capped at `b` (the step from Theorem 4 to Theorem 1, p. 10).**
Perez-Salazar, Menache, Singh, Toriello, *Dynamic Resource Allocation in the Cloud with Near-Optimal
Efficiency*, arXiv:1809.02688v3, §3, p. 10 (implicit step): "Similarly, for SLA satisfaction, we
prove a stronger bi-criteria result that implies the SLA guarantee in Theorem 1."

For nonnegative loads, a user `i`, a cap `b`, a factor `c ∈ [0, 1]`, any allocations `h″` giving
user `i` between `0` and `b` at every step, and allocations `h′` giving user `i` exactly `c·b` at every
step: at every time `t`, user `i`'s cumulative work under `h′` is at least `c` times its cumulative
work under `h″`.

**Formalization Note.** Lean time `τ` is the paper's `τ + 1`. The paper does not spell this step out:
with `c = 1 − 2ε` and `b = β(i)` it turns Theorem 4's comparison with `h′_t(i) = (1 − 2ε)β(i)` into
Theorem 1's comparison with every `h′` capped at `β(i)`. It is stated for general `c ∈ [0, 1]` and
`b`. Only coordinate `i` of the allocations enters; each sequence has its own queues on the same loads,
from `Q_1 = 0`. -/
theorem sla_cap_comparison {N : ℕ} {c b : ℝ} (hc0 : 0 ≤ c) (hc1 : c ≤ 1)
    {L : ℕ → Fin N → ℝ} (hL : ∀ t i, 0 ≤ L t i) (i : Fin N) {h'' h' : ℕ → Fin N → ℝ}
    (hh'' : ∀ τ, 0 ≤ h'' τ i ∧ h'' τ i ≤ b) (hh' : ∀ τ, h' τ i = c * b) :
    ∀ t, c * userWork h'' L i t ≤ userWork h' L i t := by sorry

end CloudAlloc.MWU
Source
Perez-Salazar, Menache, Singh, Toriello, Dynamic Resource Allocation in the Cloud with Near-Optimal Efficiency, arXiv:1809.02688v3, §3, p. 10 (implicit step from Theorem 4 to Theorem 1)

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