Lemma 4 — is increasing and convex on with asymptotic slope
ProvedZhengQR.EOQHeuristic.hFun_propsIn the stochastic model (as in Lemma 2, with ), let for and . Then
- is strictly increasing on ;
- is convex on ;
- is right-continuous at , i.e. ;
- every chord of on has slope at most : for ,
The paper states: " is an increasing convex function with asymptotic slope as ". The slope is exactly the slope of the EOQ model's counterpart , which makes this lemma the basis of every comparison between the two models.
Formalization Note "Increasing" is read as strictly increasing (the proof shows ). "Asymptotic slope " is read as items 4 and 5: the proof shows , and later proofs use it as the bound ; for a convex without assumed differentiability, the chord bound plus the limit of express exactly this. Item 3 is the content of the paper's "" (p. 91), since here is defined as .
import Mathlib import Definitions.Def_ZhengQR_EOQHeuristic_qrCost import Definitions.Def_ZhengQR_EOQHeuristic_costCurves import Definitions.Def_ZhengQR_EOQHeuristic_stochasticModel open MeasureTheory Filter Topology
namespace ZhengQR.EOQHeuristic
theorem hFun_props {lam L K h p : ℝ} {μ : Measure ℝ} (hM : IsQRModel lam L h p μ) (hK : 0 < K) :
StrictMonoOn (hFun (newsvendorCost μ h p) lam K) (Set.Ici 0) ∧
ConvexOn ℝ (Set.Ici 0) (hFun (newsvendorCost μ h p) lam K) ∧
ContinuousWithinAt (hFun (newsvendorCost μ h p) lam K) (Set.Ici 0) 0 ∧
(∀ Q Q' : ℝ, 0 ≤ Q → Q < Q' → hFun (newsvendorCost μ h p) lam K Q' - hFun (newsvendorCost μ h p) lam K Q ≤ h * p / (h + p) * (Q' - Q)) ∧
Tendsto (fun Q : ℝ => hFun (newsvendorCost μ h p) lam K Q / Q) atTop (𝓝 (h * p / (h + p))) := by sorry
end ZhengQR.EOQHeuristic
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be real numbers and a measure on . Assume the model hypotheses:
- ;
- is a probability measure with finite first moment and mean ;
- is concentrated on almost everywhere;
- has a unique global minimizer, called .
Assume also .
Notation.
- is a chosen minimizer over real of , or if none exists.
- for , and for .
Claim. All five of the following hold:
- is strictly increasing on : if then .
- is convex on .
- is continuous at from the right: as with .
- For all with :
- The ratio has a limit at infinity:
Degenerate cases. Items 1, 2 and 4 include , where takes the value . Values for are not constrained. Since , the constant involves no division by zero. The hypotheses can all hold, for example with the point mass at .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.