Lemma 2 — for , is an optimal reorder point iff
ProvedZhengQR.EOQHeuristic.reorder_opt_iffIn the stochastic model (demand rate , leadtime , cost rates , nonnegative leadtime demand with mean , newsvendor cost with a unique minimiser, fixed ordering cost ), fix an order quantity . Then has a minimiser, and for every ,
In words: for a given order quantity, the reorder point is optimal exactly when the inventory costs at the start and at the end of a replenishment cycle are equal.
Formalization Note The paper writes " if and only if ", where is an optimal reorder point for . The statement is formalised for the minimiser predicate, and the existence of a minimiser, which the paper presupposes, is added as a conjunct.
import Mathlib import Definitions.Def_ZhengQR_EOQHeuristic_qrCost import Definitions.Def_ZhengQR_EOQHeuristic_stochasticModel open MeasureTheory Filter Topology
namespace ZhengQR.EOQHeuristic
theorem reorder_opt_iff {lam L K h p : ℝ} {μ : Measure ℝ} (hM : IsQRModel lam L h p μ) (hK : 0 < K) (Q : ℝ) (hQ : 0 < Q) :
(∃ r : ℝ, IsOptReorder (newsvendorCost μ h p) lam K Q r) ∧
∀ r : ℝ, IsOptReorder (newsvendorCost μ h p) lam K Q r ↔ newsvendorCost μ h p r = newsvendorCost μ h p (r + Q) := 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.
Assume also , and fix a real .
Write . Call optimal if for every real .
Claim. Both of the following hold:
- At least one optimal exists.
- For every real :
Degenerate cases. and are excluded by hypothesis. Nothing is claimed about how many satisfy ; the statement only gives existence and the characterization. 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.