Eq. (7): ∫_{r(Q)}^{r(Q)+Q} G = ∫_0^Q H and C(Q) = (λK + ∫_0^Q H(y)dy)/Q
ProvedZhengQR.Flatness.cost_integral_forminventoryp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1qr-policy
In the stochastic model, let be an optimal reorder point for the order quantity , let for with , and let be the average cost with the reorder point chosen optimally. Then for every ,
This rewrites the two-variable cost as a function of the order quantity alone, and is the starting point of every comparison between the stochastic model and the EOQ model.
Preamble
import Mathlib import Definitions.Def_ZhengQR_Flatness_QRModel
Formal statement
namespace ZhengQR.Flatness
theorem cost_integral_form (M : QRModel) (Q : ℝ) (hQ : 0 < Q) :
(∫ y in M.r Q..M.r Q + Q, M.G y) = (∫ y in (0 : ℝ)..Q, M.H y) ∧
M.C Q = (M.lam * M.K + ∫ y in (0 : ℝ)..Q, M.H y) / Q := by sorry
end ZhengQR.Flatness
Source
Zheng, On Properties of Stochastic Inventory Systems, Management Science 38(1), 1992, p. 91, Eq. (7)
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. is an arbitrary model consisting of:
- real numbers , all strictly positive;
- a probability measure on that has a finite first moment, has mean , and gives full mass to ;
- the requirement that the function
has exactly one global minimizer .
Definitions used.
- .
- is a chosen global minimizer of over , or if none exists.
- for , and for .
- .
Claim. For every real , both of the following hold:
and
Degenerate cases.
- The only explicit hypothesis is , so and are excluded.
- Nothing in the hypotheses guarantees that has a minimizer. If it had none, would be the placeholder , and the claim would then be about the integral of over .
- is defined through the choice function at every point . So the right-hand integral depends on those choices.
- If is not integrable on , counts as . The same convention applies to on . In that case the first equation compares these conventional values.
- The claim is stated for every ; no range restriction on beyond positivity.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.