Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 2, p. 11 — the bound v_{P_ε} ≤ Σ_{s≤t}Σ_i L_s(i) + (1 − ε)(T − t) (weak duality, the half used in the proof of Theorem 3)

Proved
CloudMWU.Bicriteria.proposition_2_weak_duality

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

linear-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1queueingweak-duality

Let 0<ε<10 < \varepsilon < 10<ε<1, let LLL be a nonnegative load sequence for NNN users, and let h∗h^*h∗ be any sequence of (1−ε)(1-\varepsilon)(1−ε)-allocations, i.e. ht∗(i)≥0h^*_t(i) \ge 0ht∗​(i)≥0 and ∑iht∗(i)≤1−ε\sum_i h^*_t(i) \le 1 - \varepsilon∑i​ht∗​(i)≤1−ε at every step. Then for all times s≤Ts \le Ts≤T,

workh∗(T)  ≤  ∑τ=1s∑iLτ(i)  +  (1−ε)(T−s),\mathrm{work}_{h^*}(T) \;\le\; \sum_{\tau=1}^{s} \sum_i L_\tau(i) \;+\; (1 - \varepsilon)(T - s),workh∗​(T)≤τ=1∑s​i∑​Lτ​(i)+(1−ε)(T−s),

where workh∗(T)\mathrm{work}_{h^*}(T)workh∗​(T) is the total work that h∗h^*h∗ completes in the first TTT steps.

This is the half vPε≤min⁡0≤s≤T(∑τ=1s∑iLτ(i)+(1−ε)(T−s))v_{P_\varepsilon} \le \min_{0 \le s \le T}\big(\sum_{\tau=1}^{s}\sum_i L_\tau(i) + (1-\varepsilon)(T-s)\big)vPε​​≤min0≤s≤T​(∑τ=1s​∑i​Lτ​(i)+(1−ε)(T−s)) of Proposition 2, obtained in the paper by weak duality for the dual solution with γt=1,βt=0\gamma_t = 1, \beta_t = 0γt​=1,βt​=0 up to sss and γt=0,βt=1\gamma_t = 0, \beta_t = 1γt​=0,βt​=1 afterwards: up to time sss no allocation can complete more than the load that has arrived, and afterwards it completes at most 1−ε1 - \varepsilon1−ε per step. It bounds the offline benchmark in the proof of Theorem 3.

Formalization Note The statement is about the work of an allocation sequence in the queueing model, rather than about the value vPεv_{P_\varepsilon}vPε​​ of the LP (Pε)(P_\varepsilon)(Pε​); the work of every allocation sequence is a feasible point of (Pε)(P_\varepsilon)(Pε​), so this is the inequality the proof of Theorem 3 uses. Time is 0-based and queues start empty.

Preamble
import Mathlib
import Definitions.Def_CloudMWU_Bicriteria_Queue
Formal statement
namespace CloudMWU.Bicriteria

open Finset

theorem proposition_2_weak_duality (N : ℕ) (ε : ℝ) (hε : 0 < ε) (hε1 : ε < 1)
    (L : ℕ → Fin N → ℝ) (hL : ∀ t i, 0 ≤ L t i)
    (hstar : ℕ → Fin N → ℝ) (hstar_alloc : IsAllocSeq (1 - ε) hstar)
    (s t : ℕ) (hst : s ≤ t) :
    totalWork hstar L t ≤ totalLoad L s + (1 - ε) * ((t : ℝ) - (s : ℝ)) := by sorry

end CloudMWU.Bicriteria
Source
Perez-Salazar, Menache, Singh, Toriello, Dynamic Resource Allocation in the Cloud with Near-Optimal Efficiency, arXiv:1809.02688v3, p. 11, Proposition 2 (the ≤ half; proof in Appendix B.1, p. 27, 'Consider the dual solution … Then, by weak duality')
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

    Confirmed by the moderator at approval.

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