Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 — 12he≤fe≤max⁡{qe,1} he\tfrac12 h_e \le f_e \le \max\{q_e,1\}\,h_e21​he​≤fe​≤max{qe​,1}he​ on {0}∪R≥1\{0\}\cup\mathbb R_{\ge1}{0}∪R≥1​

Proved
OnlineGND.lemma_1

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

economies-of-scaleinequalitiesp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let eee be a resource with σe≥0\sigma_e\ge0σe​≥0, ξe>0\xi_e>0ξe​>0 and αe≥1\alpha_e\ge1αe​≥1, let fef_efe​ be its (D)oS cost (1), qe=(σe/ξe)1/αeq_e=(\sigma_e/\xi_e)^{1/\alpha_e}qe​=(σe​/ξe​)1/αe​, and he(x)=ξeqeαe−1x+ξexαeh_e(x)=\xi_eq_e^{\alpha_e-1}x+\xi_ex^{\alpha_e}he​(x)=ξe​qeαe​−1​x+ξe​xαe​. For every x∈{0}∪R≥1x\in\{0\}\cup\mathbb R_{\ge1}x∈{0}∪R≥1​,

12 he(x)≤fe(x)≤max⁡{qe,1}⋅ξeqeαe−1⋅x+ξe⋅xαe≤max⁡{qe,1}⋅he(x).\tfrac12\,h_e(x)\le f_e(x)\le\max\{q_e,1\}\cdot\xi_eq_e^{\alpha_e-1}\cdot x+\xi_e\cdot x^{\alpha_e}\le\max\{q_e,1\}\cdot h_e(x).21​he​(x)≤fe​(x)≤max{qe​,1}⋅ξe​qeαe​−1​⋅x+ξe​⋅xαe​≤max{qe​,1}⋅he​(x).

Thus, at loads that are 000 or at least 111, the (D)oS cost is within a factor 2max⁡{qe,1}2\max\{q_e,1\}2max{qe​,1} of a convex power function, which is the reduction of §2.

Formalization Note Powers are Real.rpow.

Differences from the source:

  • encoding: ξe≥0\xi_e\ge0ξe​≥0 → ξe>0\xi_e>0ξe​>0; reason: qe=(σe/ξe)1/αeq_e=(\sigma_e/\xi_e)^{1/\alpha_e}qe​=(σe​/ξe​)1/αe​, used in the statement, is undefined at ξe=0\xi_e=0ξe​=0
  • encoding: qeαe−1q_e^{\alpha_e-1}qeαe​−1​ at qe=0q_e=0qe​=0, αe=1\alpha_e=1αe​=1 → the value 111 (Real.rpow); reason: Lean convention 00=10^0=100=1, the limit of qe0q_e^0qe0​ as qe→0q_e\to0qe​→0; it changes no instance with qe>0q_e>0qe​>0 or αe>1\alpha_e>1αe​>1
Preamble
import Definitions.Def_OnlineGND_DoS
Formal statement
namespace OnlineGND

/-- **Lemma 1** (Nagarajan & Wang, arXiv:2007.07721v1, §2, p.6). For each resource `e` and each load
`x ∈ {0} ∪ ℝ_{≥1}`,
`½ · hₑ(x) ≤ fₑ(x) ≤ max{qₑ, 1} · ξₑ qₑ^{αₑ−1} · x + ξₑ · x^{αₑ} ≤ max{qₑ, 1} · hₑ(x)`.

**Formalization Note.** `σₑ ≥ 0`, `ξₑ > 0` (so `qₑ = (σₑ/ξₑ)^{1/αₑ}` is defined) and `αₑ ≥ 1`.
Powers are `Real.rpow`; `qₑ^{αₑ−1} = 1` when `qₑ = 0`, `αₑ = 1`, as in the paper. -/
theorem lemma_1 {E : Type*} [Fintype E] (σ ξ α : E → ℝ) (e : E) (hσ : 0 ≤ σ e) (hξ : 0 < ξ e)
    (hα : 1 ≤ α e) (x : ℝ) (hx : x = 0 ∨ 1 ≤ x) :
    1 / 2 * hFun σ ξ α e x ≤ dosCost σ ξ α e x ∧
      dosCost σ ξ α e x ≤
        max (qPar σ ξ α e) 1 * (ξ e * qPar σ ξ α e ^ (α e - 1)) * x + ξ e * x ^ α e ∧
      max (qPar σ ξ α e) 1 * (ξ e * qPar σ ξ α e ^ (α e - 1)) * x + ξ e * x ^ α e ≤
        max (qPar σ ξ α e) 1 * hFun σ ξ α e x := by sorry

end OnlineGND
Source
Nagarajan & Wang, Online Generalized Network Design Under (Dis)Economies of Scale, arXiv:2007.07721v1, Lemma 1, p.6
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 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