Lemma 1 — is jointly convex in and
ProvedZhengQR.EOQHeuristic.joint_convexConsider the stochastic model with demand rate , leadtime , holding and backorder cost rates , leadtime demand with , newsvendor cost with a unique minimiser, and fixed ordering cost . Then the average cost
is a jointly convex function of on the domain .
Joint convexity is what makes sequential minimisation (first over , then over ) yield a convex function of (Lemma 5).
Formalization Note The paper writes "a joint convex function of and " without naming the domain; is defined only for , so the domain is .
import Mathlib import Definitions.Def_ZhengQR_EOQHeuristic_qrCost import Definitions.Def_ZhengQR_EOQHeuristic_stochasticModel open MeasureTheory Filter Topology
namespace ZhengQR.EOQHeuristic
theorem joint_convex {lam L K h p : ℝ} {μ : Measure ℝ} (hM : IsQRModel lam L h p μ) (hK : 0 < K) :
ConvexOn ℝ (Set.Ioi (0 : ℝ) ×ˢ (Set.univ : Set ℝ))
(fun z : ℝ × ℝ => qrCost (newsvendorCost μ h p) lam K z.1 z.2) := 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 and ;
- for -almost every ;
- the function has exactly one global minimizer on .
Assume also .
Define, for real and ,
Claim. The map is convex on the set . That is, for all and with , and all with :
Degenerate cases. The domain excludes . The value (from division by zero) is therefore not constrained by this statement. The hypotheses can all hold, for example with the point mass at . The claim covers every . If the integral of over some interval failed to exist, the integral's fallback value would be used in the formula.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.