Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§6.2.5, p. 24 — w_q(0) = (p − v + g_r)F̄(q°) + v − c_r, w_q(1) = p + g_r − c_r, w_q(δ) increasing, so v − c_r ≤ w_q(δ) ≤ p + g_r − c_r

Proved
CachonCoord.Newsvendor.p24_wq_range

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

coordinationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1quantity-flexibility

Let qoq^oqo maximize the supply chain profit Π(q)=(p−v+g)S(q)−(c−v)q−gμ\Pi(q) = (p - v + g)S(q) - (c - v)q - g\muΠ(q)=(p−v+g)S(q)−(c−v)q−gμ. Under the quantity flexibility contract the wholesale price that makes qoq^oqo satisfy the retailer's first-order condition (11) is

wq(δ)=(p−v+gr)(1−F(qo))1−F(qo)+(1−δ)F((1−δ)qo)−cr+v.w_q(\delta) = \frac{(p - v + g_r)(1 - F(q^o))}{1 - F(q^o) + (1-\delta)F((1-\delta)q^o)} - c_r + v.wq​(δ)=1−F(qo)+(1−δ)F((1−δ)qo)(p−v+gr​)(1−F(qo))​−cr​+v.

Then

wq(0)=(p−v+gr)Fˉ(qo)+v−cr,wq(1)=p+gr−cr,w_q(0) = (p - v + g_r)\bar F(q^o) + v - c_r, \qquad w_q(1) = p + g_r - c_r,wq​(0)=(p−v+gr​)Fˉ(qo)+v−cr​,wq​(1)=p+gr​−cr​,

wq(δ)w_q(\delta)wq​(δ) is strictly increasing on δ∈[0,1]\delta \in [0,1]δ∈[0,1], and consequently v−cr≤wq(δ)≤p+gr−crv - c_r \le w_q(\delta) \le p + g_r - c_rv−cr​≤wq​(δ)≤p+gr​−cr​ for every δ∈[0,1]\delta \in [0,1]δ∈[0,1].

This is the range Cachon uses to conclude that the retailer's profit is concave under (wq(δ),δ)(w_q(\delta), \delta)(wq​(δ),δ), so that wq(δ)w_q(\delta)wq​(δ) is indeed a coordinating wholesale price.

Formalization Note The local ContractData has Cachon’s assumptions v<cs+crv<c_s+c_rv<cs​+cr​, cs+cr<pc_s+c_r<pcs​+cr​<p, and nonnegative goodwill costs. It permits negative net salvage and v≥crv\ge c_rv≥cr​. Demand is a probability law on [0,∞)[0,\infty)[0,∞) with finite mean and a continuous cdf strictly increasing until it reaches one. These are the chapter’s standing assumptions; Π(qo)>0\Pi(q^o)>0Π(qo)>0 is included wherever a chain optimum is named. Cachon’s differentiable cdf is represented on the interior of its active support by hFderiv; derivative claims use HasDerivAt. wq(δ)w_q(\delta)wq​(δ) is the local quantityFlexPrice (the explicit formula, not "the solution of (11)"). The page says "increasing"; the Lean states strict monotonicity, which holds because qo>0q^o > 0qo>0 and FFF is positive on (0,∞)(0, \infty)(0,∞).

Preamble
import Mathlib
import Definitions.Def_CachonCoord_Newsvendor_Contracts

open MeasureTheory ProbabilityTheory
Formal statement
namespace CachonCoord.Newsvendor

/-- Cachon (2003), §6.2.5, p. 24: the quantity flexibility wholesale price
`w_q(δ) = (p − v + g_r)(1 − F(q°)) / (1 − F(q°) + (1 − δ)F((1 − δ)q°)) − c_r + v` satisfies
`w_q(0) = (p − v + g_r)F̄(q°) + v − c_r`, `w_q(1) = p + g_r − c_r`, is (strictly) increasing in
`δ ∈ [0, 1]`, and so lies in `[v − c_r, p + g_r − c_r]` for `δ ∈ [0, 1]`. -/
theorem p24_wq_range (P : ContractData) (D : Measure ℝ) [IsProbabilityMeasure D] [NullSingletonClass D]
    (hD : Integrable (fun x => x) D) (hD0 : D (Set.Iio 0) = 0)
    (hF : ∀ x y : ℝ, 0 ≤ x → x < y → cdf D x < 1 → cdf D x < cdf D y)
    (density : ℝ → ℝ)
    (hFderiv : ∀ x : ℝ, 0 < x → cdf D x < 1 → HasDerivAt (cdf D) (density x) x)
    (q0 : ℝ) (h0 : IsMaxOn (chainProfit P D) Set.univ q0)
    (hPi : 0 < chainProfit P D q0) :
    quantityFlexPrice P D q0 0 = (P.r - P.v + P.pr) * (1 - cdf D q0) + P.v - P.cr ∧
      quantityFlexPrice P D q0 1 = P.r + P.pr - P.cr ∧
      StrictMonoOn (fun δ => quantityFlexPrice P D q0 δ) (Set.Icc 0 1) ∧
      ∀ δ ∈ Set.Icc (0 : ℝ) 1,
        P.v - P.cr ≤ quantityFlexPrice P D q0 δ ∧ quantityFlexPrice P D q0 δ ≤ P.r + P.pr - P.cr := by sorry

end CachonCoord.Newsvendor
Source
Cachon (2003), Supply Chain Coordination with Contracts, 3rd draft (Jan. 2003), §6.2.5, p. 24 (w_q(δ) display after (11); the range sentence and the w_q(0), w_q(1) displays)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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