Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (22) — the retailer's optimal prebook yry_ryr​, F(yr)=(w2−w1)/(w2−v)F(y_r) = (w_2 - w_1)/(w_2 - v)F(yr​)=(w2​−w1​)/(w2​−v)

Proved
CachonPushPull.ShippingCost.retailer_prebook_argmax

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

contractsnewsvendorp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1supply-chain

Consider a contract {w1,w2}\{w_1, w_2\}{w1​,w2​} with v<w1≤w2≤pv < w_1 \le w_2 \le pv<w1​≤w2​≤p, and let FFF be the demand distribution function of the model. Fix any production quantity qqq. Then the retailer's profit y↦πr(y,q)y \mapsto \pi_r(y, q)y↦πr​(y,q) is concave on y≥0y \ge 0y≥0, there is a prebook yr≥0y_r \ge 0yr​≥0 with

F(yr)=w2−w1w2−v,F(y_r) = \frac{w_2 - w_1}{w_2 - v},F(yr​)=w2​−vw2​−w1​​,

and every such yry_ryr​ is the unique maximizer of πr(⋅,q)\pi_r(\cdot, q)πr​(⋅,q) over y≥0y \ge 0y≥0: πr(y,q)<πr(yr,q)\pi_r(y, q) < \pi_r(y_r, q)πr​(y,q)<πr​(yr​,q) for every y≥0y \ge 0y≥0, y≠yry \ne y_ry=yr​.

Since yry_ryr​ does not depend on qqq, the retailer's optimal prebook is independent of the supplier's production whenever he prebooks less than she produces. The shipping cost does not enter the retailer's profit, so this equation is the same with and without it.

Formalization Note The paper writes "πr(y,q)\pi_r(y,q)πr​(y,q) is concave in yyy, so let yr=arg⁡max⁡πr(y,q)y_r = \arg\max \pi_r(y,q)yr​=argmaxπr​(y,q)"; the statement asserts concavity, existence of yry_ryr​ and that it is the unique maximizer. The paper's contracts have c≤w1c \le w_1c≤w1​; the weaker hypothesis v<w1v < w_1v<w1​ suffices.

Preamble
import Mathlib
import Definitions.Def_CachonPushPull_ShippingCost_Game
Formal statement
namespace CachonPushPull.ShippingCost

open MeasureTheory ProbabilityTheory

/-- Eq. (22), p. 233: under a contract with `v < w₁ ≤ w₂ ≤ p` and any fixed production `q`, the
retailer's profit `π_r(y, q)` is concave in the prebook `y ≥ 0`, a prebook `y_r ≥ 0` with
`F(y_r) = (w₂ - w₁)/(w₂ - v)` exists, and every such `y_r` is the unique maximizer of
`y ↦ π_r(y, q)` over `y ≥ 0`; in particular `y_r` does not depend on `q`. -/
theorem retailer_prebook_argmax (μ : Measure ℝ) [IsProbabilityMeasure μ] (f : ℝ → ℝ)
    (hD : DemandModel μ f) (p c v : ℝ) (hvc : v < c) (hcp : c < p)
    (w₁ w₂ : ℝ) (hvw₁ : v < w₁) (hw₁₂ : w₁ ≤ w₂) (hw₂p : w₂ ≤ p) (q : ℝ) :
    ConcaveOn ℝ (Set.Ici 0) (fun y : ℝ => retailerProfit μ p v w₁ w₂ y q) ∧
    (∃ yr : ℝ, 0 ≤ yr ∧ cdf μ yr = (w₂ - w₁) / (w₂ - v)) ∧
    ∀ yr : ℝ, 0 ≤ yr → cdf μ yr = (w₂ - w₁) / (w₂ - v) →
      ∀ y : ℝ, 0 ≤ y → y ≠ yr →
        retailerProfit μ p v w₁ w₂ y q < retailerProfit μ p v w₁ w₂ yr q := by sorry

end CachonPushPull.ShippingCost
Source
Cachon, The Allocation of Inventory Risk in a Supply Chain: Push, Pull, and Advance-Purchase Discount Contracts, Management Science 50(2), 2004, p. 233, Section 4.5, Eq. (22)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let μ\muμ be a probability measure on R\mathbb{R}R, so F(x)=μ((−∞,x])F(x)=\mu((-\infty,x])F(x)=μ((−∞,x]). Let f:R→Rf:\mathbb{R}\to\mathbb{R}f:R→R be such that (μ,f)(\mu,f)(μ,f) satisfies the demand model:

  • F(0)=0F(0)=0F(0)=0;
  • FFF is strictly increasing on [0,∞)[0,\infty)[0,∞);
  • F′(x)=f(x)F'(x)=f(x)F′(x)=f(x) for every x>0x>0x>0;
  • g(y)=yf(y)/(1−F(y))g(y)=yf(y)/(1-F(y))g(y)=yf(y)/(1−F(y)) has a strictly positive derivative at every x>0x>0x>0.

Let p,c,v,w1,w2p,c,v,w_1,w_2p,c,v,w1​,w2​ be reals with

v<c<p,v<w1≤w2≤p,v<c<p,\qquad v<w_1\le w_2\le p,v<c<p,v<w1​≤w2​≤p,

and let qqq be any real, with no sign condition and no relation to anything else. Here πrw1,w2(y,q)=−(w1−v)y+(p−v)S(y)+(p−w2)(S(q)−S(y))\pi_r^{w_1,w_2}(y,q)=-(w_1-v)y+(p-v)S(y)+(p-w_2)(S(q)-S(y))πrw1​,w2​​(y,q)=−(w1​−v)y+(p−v)S(y)+(p−w2​)(S(q)−S(y)), with S(y)=y−∫0yFS(y)=y-\int_0^yFS(y)=y−∫0y​F.

Conclusion. All three of the following hold:

  1. The map y↦πrw1,w2(y,q)y\mapsto\pi_r^{w_1,w_2}(y,q)y↦πrw1​,w2​​(y,q) is concave on [0,∞)[0,\infty)[0,∞).
  2. There exists yr≥0y_r\ge 0yr​≥0 with
F(yr)=w2−w1w2−v.F(y_r)=\frac{w_2-w_1}{w_2-v}.F(yr​)=w2​−vw2​−w1​​.
  1. For every yr≥0y_r\ge 0yr​≥0 satisfying that equation, and every y≥0y\ge0y≥0 with y≠yry\ne y_ry=yr​,
πrw1,w2(y,q)<πrw1,w2(yr,q).\pi_r^{w_1,w_2}(y,q)<\pi_r^{w_1,w_2}(y_r,q).πrw1​,w2​​(y,q)<πrw1​,w2​​(yr​,q).

Consequently, such a yry_ryr​ is unique and is the strict maximiser over [0,∞)[0,\infty)[0,∞) for every choice of qqq. The parameter ccc appears only in the hypothesis v<c<pv<c<pv<c<p.

Degenerate cases. The denominator w2−vw_2-vw2​−v is positive, and the target value (w2−w1)/(w2−v)(w_2-w_1)/(w_2-v)(w2​−w1​)/(w2​−v) lies in [0,1)[0,1)[0,1). When w1=w2w_1=w_2w1​=w2​ the target is 000. Then, because F(0)=0F(0)=0F(0)=0 and FFF is strictly increasing on [0,∞)[0,\infty)[0,∞), the only admissible yry_ryr​ is 000, and the statement says the prebook 000 is the strict maximiser. Negative values of qqq are allowed, and qqq need not be at least yyy.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me