Eq. (7): and
ProvedZhengQR.CostBounds.cost_integral_formIn the stochastic model, let be the optimal reorder point for order quantity , with , and . For every ,
This rewrites the optimal-reorder cost as a function of alone, through the single-variable function ; every later result on the order quantity starts from this form.
import Mathlib import Definitions.Def_ZhengQR_CostBounds_QRMachinery import Definitions.Def_ZhengQR_CostBounds_Model
namespace ZhengQR.CostBounds
theorem cost_integral_form (M : QRModel) (Q : ℝ) (hQ : 0 < Q) :
(∫ y in reorderPt M.G M.lam M.K Q..reorderPt M.G M.lam M.K Q + Q, M.G y)
= ∫ y in (0 : ℝ)..Q, Hfun M.G M.lam M.K y ∧
Cfun M.G M.lam M.K Q = (M.lam * M.K + ∫ y in (0 : ℝ)..Q, Hfun M.G M.lam M.K y) / Q := by sorry
end ZhengQR.CostBounds
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix a model :
- are real numbers.
- is a probability measure on concentrated on (almost everywhere), with and integrable.
- has exactly one global minimizer.
Derived objects.
- .
- is a fixed but unspecified minimizing over all of , if such an exists; otherwise .
- is the chosen global minimizer of . Under the model's assumption it is the unique one.
- for , and for .
- .
Statement. For every real , both of the following hold:
Degenerate cases. Only is covered. The statement does not assume that an optimal reorder point exists for or for the appearing in . Where none exists, is used. The integrals are the convention-valued ones: they are if the integrand is not integrable on the interval. The statement asserts no integrability. On the integration interval, is used only at the single endpoint .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.