Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1: scaled allocations do at least the scaled work

Proved
CloudAlloc.MWU.scaled_allocation_work

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

multiplicative-weightsonline-algorithmsoperations-researchqueueingresource-allocation

Let LLL be nonnegative loads, hhh a nonnegative allocation sequence and c∈[0,1]c\in[0,1]c∈[0,1]. Let www be the work of hhh and wˉ\bar wwˉ the work of the scaled allocations hˉt=c ht\bar h_t=c\,h_thˉt​=cht​, each with its own queues on the same loads. Then for every user iii and every time ttt

∑τ=1twˉτ(i) ≥ c∑τ=1twτ(i).\sum_{\tau=1}^t\bar w_\tau(i)\ \ge\ c\sum_{\tau=1}^t w_\tau(i).τ=1∑t​wˉτ​(i) ≥ cτ=1∑t​wτ​(i).

With c=1−4εc=1-4\varepsilonc=1−4ε and summing over users, this is the step (1−4ε) workh≤workhˉ(1-4\varepsilon)\,\mathrm{work}_h\le\mathrm{work}_{\bar h}(1−4ε)workh​≤workhˉ​ in the derivation of Theorem 1 from Theorem 3.

Differences from the source:

  • generalization: total work over all users with c = 1 − 4ε and Σ_i h_t(i) = 1 → per-user cumulative work, every c ∈ [0, 1], every nonnegative h; reason: summing over users with c = 1 − 4ε gives the paper's statement
  • 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

/-- **Scaled allocations do at least the scaled work (derivation of 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 (unnumbered, in the derivation of Theorem 1 from
Theorem 3): "To argue the second, let `w1, . . . , wT` and `w̄1, . . . , w̄T` respectively denote the
work performed by allocations `h` and `h̄`. Then `(1−4ε)w1, . . . , (1−4ε)wT` are feasible work patterns
that the allocations `h̄1, . . . , h̄T` could do, since in this setting we have `1−4ε` capacity and the
same workload."

For nonnegative loads, nonnegative allocations `h` and a factor `c ∈ [0, 1]`, the allocations
`c·h` do, for every user `i` and every time `t`, at least `c` times the cumulative work that `h`
does: `Σ_{τ≤t} w̄_τ(i) ≥ c · Σ_{τ≤t} w_τ(i)`.

**Formalization Note.** Lean time `τ` is the paper's `τ + 1`. The paper uses `c = 1 − 4ε` and the
total work over all users; the statement is per user and for every `c ∈ [0, 1]` (summing over `i`
gives the paper's form). Each allocation sequence has its own queues on the same loads, from
`Q_1 = 0`. -/
theorem scaled_allocation_work {N : ℕ} {c : ℝ} (hc0 : 0 ≤ c) (hc1 : c ≤ 1)
    {L : ℕ → Fin N → ℝ} (hL : ∀ t i, 0 ≤ L t i) {hs : ℕ → Fin N → ℝ}
    (hhs : ∀ t i, 0 ≤ hs t i) (i : Fin N) (t : ℕ) :
    c * userWork hs L i t ≤ userWork (fun τ j => c * hs τ j) 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 (unnumbered, derivation of Theorem 1 from Theorem 3)

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