Theorem 3: and
ProvedZhengQR.CostBounds.optimal_cost_boundsConsider the stochastic continuous-review inventory model with demand rate , leadtime , fixed ordering cost , holding and backorder cost rates (all positive), and leadtime demand with , whose newsvendor cost has a unique minimizer . Let be the optimal order quantity of the stochastic model, and write
- for its optimal average cost,
- for its optimal average controllable cost, where ,
- and for the optimal order quantity and optimal average cost of the EOQ model with the same parameters and demand constant at .
Then
The stochastic model's total optimal cost exceeds the EOQ's, while its controllable part is smaller, and the total gap is at most the newsboy cost (as ).
Formalization Note is taken as ; the milestone for Eqs. (18), (20) proves is the unique minimizer of , so this is the optimal EOQ cost. is taken as ; by Eq. (13), on , so also minimizes and . The goal holds for every optimal ; Lemma 6 shows exactly one exists.
import Mathlib import Definitions.Def_ZhengQR_CostBounds_QRMachinery import Definitions.Def_ZhengQR_CostBounds_Model
namespace ZhengQR.CostBounds
theorem optimal_cost_bounds (M : QRModel) (Qs : ℝ) (hQs : IsOptQty M.G M.lam M.K Qs) :
C0fun M.G M.lam M.K Qs ≤ M.Qd / Qs * Cfun M.Gd M.lam M.K M.Qd ∧
Cfun M.Gd M.lam M.K M.Qd ≤ Cfun M.G M.lam M.K Qs ∧
Cfun M.G M.lam M.K Qs ≤ M.G (idealPt M.G) + M.Qd / Qs * Cfun M.Gd M.lam M.K M.Qd := by sorry
end ZhengQR.CostBounds
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a model record of type QRModel. The statement uses the following components of :
- a function (
M.G) and a second function (M.Gd); - real parameters (
M.lam) and (M.K); - a real number (
M.Qd).
QRModel is defined in a separate definitions file whose contents were not given to me. So I can't state what types these fields have, what constraints (if any) the structure places on them, or whether and are related. Let be any real number, and assume the hypothesis
IsOptQty is also defined in the imported file and not shown. Its name suggests " is an optimal order quantity for ", but I can't confirm what condition it actually imposes.
The statement also uses three other functions from the imported files that I can't expand:
- a function (
C0fun); - a function (
Cfun); - a point , computed from alone, at which is evaluated.
Under these assumptions, the theorem asserts that all three of the following inequalities hold together:
The quantity appears with two different argument sets:
- In the second inequality and on the right-hand sides of the first and third, is evaluated at the function and quantity .
- On the left of the second and third inequalities, is evaluated at and .
- The first inequality compares a different function, , at with the scaled term .
The statement asserts nothing about how compares with . It asserts no strict inequalities, and it doesn't say that is optimal for in any sense, except through whatever the fields of QRModel enforce.
Degenerate cases:
- : Nothing in the statement itself excludes this; only
IsOptQtyorQRModelcould. If , real division gives , so the three claims become , , and . - Negative values: Likewise, nothing in the displayed code requires , , or to be positive. If they are negative, the ratio may be negative or zero.
- Unsatisfiable hypothesis: If
IsOptQtycan't be satisfied for some or all models (for example, if the optimality condition refers to a minimizer that doesn't exist), the theorem holds vacuously for those models. - Junk values: Any division by zero, empty or unbounded supremum or infimum, or non-integrable integral inside the definitions of , ,
IsOptQtyoridealPtwould produce Lean's default values there. ForidealPtin particular, if it's defined through a choice or argmin that may not exist, could be an arbitrary default point. Because those definitions weren't given to me, I can't say which of these cases occur.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.