Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 — f+λgf+\lambda gf+λg is non-decreasing and continuous

Proved
ResetInventory.lemma_1_monotone_sum

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

dynamic-programminginventory-controlp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1threshold-policy

Lemma 1. Consider two functions fff and ggg on a compact interval [a,b][a,b][a,b]. Suppose that fff is differentiable, with derivative bounded below by a positive constant, Dxf(x)≥M>0D_xf(x)\ge M>0Dx​f(x)≥M>0, and that ggg is Lipschitz continuous with constant L≥0L\ge0L≥0. Then for every fixed λ\lambdaλ with 0≤λ≤M/L0\le\lambda\le M/L0≤λ≤M/L, the function

x↦f(x)+λ g(x)x\mapsto f(x)+\lambda\,g(x)x↦f(x)+λg(x)

is non-decreasing and continuous on [a,b][a,b][a,b].

A function growing at rate at least MMM absorbs a perturbation with slope at most λL≤M\lambda L\le MλL≤M. In Proposition 3 this is applied to the derivatives: the derivative of the strongly convex stage cost plus γ\gammaγ times the Lipschitz derivative of the expected cost-to-go is non-decreasing.

Differences from the source:

  • encoding: 0 ≤ λ ≤ M/L → 0 ≤ λ and λ·L ≤ M; reason: equal when L > 0; at L = 0 the paper's M/L imposes no bound, while Lean's M/0 = 0 would force λ = 0
  • generalization: f differentiable on [a, b] → f has a derivative within [a, b] at every point of [a, b] (one-sided at a and b); reason: a weaker hypothesis: a function differentiable on [a, b] has such derivatives, and at interior points they coincide
  • generalization: a compact interval [a, b] → any reals a, b; reason: for a > b the interval is empty and both conclusions hold trivially; for a ≤ b it is the source's statement
Preamble
import Mathlib
Formal statement
namespace ResetInventory

/-- **Lemma 1** of Lee, Mintz, Aswani, Shen, Yang, arXiv:2209.03571v1, p.37. Consider two
functions `f` and `g` on a compact interval `[a, b]`. Suppose that `f` is differentiable with
derivative bounded below by a positive constant, `D_x f(x) ≥ M > 0`, and that `g` is Lipschitz
continuous with constant `L ≥ 0`. Then for any fixed `λ` with `0 ≤ λ ≤ M / L`, the function
`f + λ g` is non-decreasing and continuous on `[a, b]`.

**Formalization Note** `λ` is written `lam` (`λ` is a Lean keyword). The bound `λ ≤ M / L` is
written `λ L ≤ M` (equal for `L > 0`; at `L = 0` the paper's `M / L` means no bound, while Lean's
`M / 0 = 0` would force `λ = 0`). Differentiability on `[a, b]` is a derivative `f'` within
`[a, b]` at every point of `[a, b]` (one-sided at the endpoints). `a ≤ b` is not required: for
`a > b` the interval is empty and both claims hold trivially. -/
theorem lemma_1_monotone_sum (a b M L lam : ℝ) (f f' g : ℝ → ℝ)
    (hf : ∀ x ∈ Set.Icc a b, HasDerivWithinAt f (f' x) (Set.Icc a b) x)
    (hM : 0 < M) (hf' : ∀ x ∈ Set.Icc a b, M ≤ f' x)
    (hL : 0 ≤ L) (hg : ∀ x ∈ Set.Icc a b, ∀ y ∈ Set.Icc a b, |g x - g y| ≤ L * |x - y|)
    (hlam0 : 0 ≤ lam) (hlam : lam * L ≤ M) :
    MonotoneOn (fun x => f x + lam * g x) (Set.Icc a b) ∧
      ContinuousOn (fun x => f x + lam * g x) (Set.Icc a b) := by sorry

end ResetInventory
Source
Lee, Mintz, Aswani, Shen, Yang, Optimal Policy for Inventory Management with Periodic and Controlled Resets, arXiv:2209.03571v1, Lemma 1, p.37
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