Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 1(b): form of the KL projection onto Δε\Delta_\varepsilonΔε​

Proved
CloudAlloc.MWU.proposition_1b_kl_proj_form

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

multiplicative-weightsonline-algorithmsoperations-researchqueueingresource-allocation

Let N≥2N\ge 2N≥2 and 0<ε<10<\varepsilon<10<ε<1. Let y∈RNy\in\mathbb R^Ny∈RN have positive entries, let x=πΔε(y)x=\pi_{\Delta_\varepsilon}(y)x=πΔε​​(y) be its KL projection onto the truncated simplex, and let S={i:x(i)=ε/N}S=\{i: x(i)=\varepsilon/N\}S={i:x(i)=ε/N} be the coordinates at the floor. Then there are numbers μi≥0\mu_i\ge 0μi​≥0, with μi=0\mu_i=0μi​=0 for i∉Si\notin Si∈/S, such that for every iii

x(i)=y(i) eμi C,C=1−εN∣S∣∑j∉Sy(j).x(i)=y(i)\,e^{\mu_i}\,C,\qquad C=\frac{1-\frac{\varepsilon}{N}|S|}{\sum_{j\notin S}y(j)} .x(i)=y(i)eμi​C,C=∑j∈/S​y(j)1−Nε​∣S∣​.

The projection rescales the unconstrained coordinates by a common factor and lifts the others to the floor; this is the structure used in the proofs of Lemmas 1 and 2.

Differences from the source:

  • reading: y ∈ R^N_+ → y(i) > 0 for every i; reason: at y(i) = 0 the objective Σ x log(x/y) is +∞ for every x ∈ Δ_ε and the argmin is undefined
  • encoding: x = π_{Δ_ε}(y), an argmin → IsKLProj N ε y x (x ∈ Δ_ε and minimizes the objective over Δ_ε); reason: argmin as a predicate, no choice function; the minimizer is unique for y > 0
Preamble
import Mathlib
import Definitions.Def_CloudAlloc_MWU_IsKLProj
Formal statement
namespace CloudAlloc.MWU

/-- **Proposition 1(b): the form of the KL projection onto `Δ_ε`.**
Perez-Salazar, Menache, Singh, Toriello, *Dynamic Resource Allocation in the Cloud with Near-Optimal
Efficiency*, arXiv:1809.02688v3, Proposition 1(b), p. 9 (proof in Appendix A, p. 26):
"Let `y ∈ R^N_+`, `x = π∆ε(y)`, and `S = {i : x(i) = ε/N}`. Then: (b) `x(i) = y(i)e^{µi}C`, where
`C = ((1 − (ε/N)|S|)/Σ_{j∉S} y(j))`, `µi ≥ 0` for all `i` and `µi = 0` for `i ∉ S`."

For `N ≥ 2` users, `0 < ε < 1`, a vector `y` with positive entries and its KL projection `x` onto
`Δ_ε`, with `S` the set of coordinates of `x` at the floor `ε/N`, there are multipliers `μ_i ≥ 0`,
vanishing off `S`, with `x(i) = y(i) e^{μ_i} C` for every `i`.

**Formalization Note.** `0 < ε < 1` is §2.1's "For `0 < ε < 1`" (p. 8) and `N ≥ 2` its standing
assumption "We assume `N ≥ 2`" (p. 8). The paper's `y ∈ R^N_+` is read as `y > 0` entrywise: at
`y(i) = 0` the objective `Σ x log(x/y)` is `+∞` for every `x ∈ Δ_ε`, and the argmin is undefined.
`x = π_{Δ_ε}(y)` is the predicate `IsKLProj N ε y x`. `j ∉ S` is `Sᶜ` in `Fin N`; it is nonempty
because `ε < 1`, so the denominator of `C` is positive. -/
theorem proposition_1b_kl_proj_form {N : ℕ} (hN : 2 ≤ N) {ε : ℝ} (hε : 0 < ε) (hε1 : ε < 1)
    {y x : Fin N → ℝ} (hy : ∀ i, 0 < y i) (hx : IsKLProj N ε y x) :
    let S := Finset.univ.filter (fun i => x i = ε / N)
    ∃ μ : Fin N → ℝ, (∀ i, 0 ≤ μ i) ∧ (∀ i ∉ S, μ i = 0) ∧
      ∀ i, x i = y i * Real.exp (μ i) * ((1 - ε / N * S.card) / ∑ j ∈ Sᶜ, y j) := by sorry

end CloudAlloc.MWU
Source
Perez-Salazar, Menache, Singh, Toriello, Dynamic Resource Allocation in the Cloud with Near-Optimal Efficiency, arXiv:1809.02688v3, Proposition 1(b), p. 9 (proof in Appendix A, p. 26)

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