Theorem 2 — , , , and increases to a finite limit in
ProvedZhengQR.OrderQty.order_quantity_boundsConsider the continuous-review inventory system with demand rate , leadtime , holding cost rate and backorder penalty rate . The leadtime demand has a distribution that is a probability measure, integrable, with mean and almost surely, and the newsvendor cost has a unique minimizer . Let , where is the optimal reorder point for , and . In the EOQ model with the same parameters, and .
For a fixed ordering cost , let , , be the positive solutions of
(a) Each of the three equations has exactly one positive solution, and for the optimal order quantity of the stochastic model
(b) Keep fixed and let vary. Then is nondecreasing on , and it converges to a finite constant as .
So the EOQ quantity underestimates the optimal order quantity when demand is random, but the gap is at most , which stays bounded as the ordering cost grows.
Formalization Note "" is read as the unique positive solution. The statement quantifies over any positive solutions and any optimal , and separately asserts that each equation has exactly one positive solution, so the bounds are not vacuous; existence and uniqueness of is Lemma 6. Part (b) quantifies over every function that solves the defining equation for each . The paper calls "an increasing function of "; its proof shows a nonnegative derivative, so the claim proved and formalized is "nondecreasing". The limit is a real number, not . The four comparisons are exactly the paper's; and are not compared with each other.
import Mathlib import Definitions.Def_ZhengQR_OrderQty_newsvendorCost import Definitions.Def_ZhengQR_OrderQty_qrMachinery open MeasureTheory Filter Topology
namespace ZhengQR.OrderQty
/-- Theorem 2 (Zheng 1992, p. 96). With `Q̄`, `Q̄₁`, `Q̄₂` the positive solutions of
`Q H₀(Q) = 2λK`, `H₀(Q) = H_d(Q*_d)` and `∫_0^Q H₀(y) dy = λK`:
(a) each of the three equations has exactly one positive solution, and for every optimal order
quantity `Q*`, `Q*_d ≤ Q* ≤ Q̄`, `Q̄ ≤ Q̄₁`, `Q̄ ≤ Q̄₂`;
(b) with `λ, L, h, p, μ` fixed, `K ↦ Q̄₁(K) - Q*_d(K)` is nondecreasing on `(0, ∞)` ("increasing")
and converges to a finite constant as `K → ∞`. -/
theorem order_quantity_bounds
{lam L h p : ℝ} {μ : Measure ℝ}
(hlam : 0 < lam) (hL : 0 < L) (hh : 0 < h) (hp : 0 < p)
(hμ : IsLeadtimeDemand lam L μ)
(hG : ∃! y : ℝ, IsMinimizer (newsvendorCost h p μ) y) :
(∀ K : ℝ, 0 < K →
(∃! Q : ℝ, 0 < Q ∧ Q * H0fun (newsvendorCost h p μ) Q = 2 * lam * K) ∧
(∃! Q : ℝ, 0 < Q ∧
H0fun (newsvendorCost h p μ) Q = Hfun (eoqCost lam L h p) (eoqQty lam K h p)) ∧
(∃! Q : ℝ, 0 < Q ∧ (∫ y in (0 : ℝ)..Q, H0fun (newsvendorCost h p μ) y) = lam * K) ∧
∀ Qs Qb Qb1 Qb2 : ℝ,
IsOptQty (newsvendorCost h p μ) lam K Qs →
0 < Qb → Qb * H0fun (newsvendorCost h p μ) Qb = 2 * lam * K →
0 < Qb1 →
H0fun (newsvendorCost h p μ) Qb1 = Hfun (eoqCost lam L h p) (eoqQty lam K h p) →
0 < Qb2 → (∫ y in (0 : ℝ)..Qb2, H0fun (newsvendorCost h p μ) y) = lam * K →
eoqQty lam K h p ≤ Qs ∧ Qs ≤ Qb ∧ Qb ≤ Qb1 ∧ Qb ≤ Qb2) ∧
∀ Qb1 : ℝ → ℝ,
(∀ K : ℝ, 0 < K → 0 < Qb1 K ∧
H0fun (newsvendorCost h p μ) (Qb1 K) = Hfun (eoqCost lam L h p) (eoqQty lam K h p)) →
MonotoneOn (fun K => Qb1 K - eoqQty lam K h p) (Set.Ioi 0) ∧
∃ c : ℝ, Tendsto (fun K => Qb1 K - eoqQty lam K h p) atTop (𝓝 c) := by sorry
end ZhengQR.OrderQty
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Throughout, are real numbers and is a measure on . The statement also uses several named objects whose definitions are imported from other files and are not shown here. Their meaning cannot be recovered from this declaration, so they are treated as opaque. Only their shapes, as the statement uses them, are recorded below:
- is a condition on , and the measure .
- is a real function of one real variable, , built from , and .
- is a condition on the function and the point .
- is a real function built from .
- is some object built from . It does not involve or .
- is a real function .
- is a real number built from . It does not involve or .
- is a condition on , , and a real number .
Hypotheses. Assume all of the following:
- , , and ;
- holds;
- there is exactly one real for which holds.
Part (a). For every real , all four of the following hold.
- There is exactly one real with and
- There is exactly one real with and
- There is exactly one real with and
where the integral is the ordinary interval integral from to . 4. Take any reals such that:
- holds (no sign condition is placed on );
- and ;
- and ;
- and .
Then
All four inequalities are non-strict. No comparison is made between and .
Items 1–3 make , and the unique positive solutions. Nothing asserts that any satisfying exists. If none exists for a given , the conclusion about holds vacuously for that .
Part (b). Let be any function such that, for every :
- , and
- .
Then two things hold:
- The function is monotone non-decreasing on the open interval . That is, implies . This is not strict increase.
- There is a real number with
The values of at are unconstrained. They do not affect either conclusion. By item 2 of part (a), is uniquely determined on , so such a function exists under the hypotheses.
Degenerate cases. Non-positive is excluded in part (a). In part (b), is ignored by both the monotonicity claim, which is restricted to , and the limit, which depends only on large . The hypotheses are and the existence of a unique minimizer of , and their content is not visible here. If they cannot hold together for positive , the whole statement is vacuous. Since is an arbitrary measure apart from the condition, if , or are defined through integrals, then integrals of non-integrable functions would take the default value inside those definitions. Any divisions inside or the other definitions would take the value when dividing by zero. Neither default is visible from this statement. In the integral equation of item 3, suppose is not integrable on . Then the interval integral takes the default value , which cannot equal , so such a never counts as a solution. Existence and uniqueness are asserted for the three equations only, not for . The asserted ordering places no requirement that be positive.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.