Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 8 — lim⁡w1→w2dπs/dw1=−τ/((w2−v)f(0))<0\lim_{w_1 \to w_2} d\pi_s/dw_1 = -\tau/((w_2 - v) f(0)) < 0limw1​→w2​​dπs​/dw1​=−τ/((w2​−v)f(0))<0

Proved
CachonPushPull.ShippingCost.supplier_profit_deriv_limit

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

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

Fix v<w2≤pv < w_2 \le pv<w2​≤p, a shipping cost τ>0\tau > 0τ>0 and a production quantity qqq, and let yr(w1)≥0y_r(w_1) \ge 0yr​(w1​)≥0 with F(yr(w1))=(w2−w1)/(w2−v)F(y_r(w_1)) = (w_2 - w_1)/(w_2 - v)F(yr​(w1​))=(w2​−w1​)/(w2​−v) for v<w1<w2v < w_1 < w_2v<w1​<w2​. Then:

  1. yr(w1)→0y_r(w_1) \to 0yr​(w1​)→0 as w1→w2w_1 \to w_2w1​→w2​ from below;
  2. if the density has a positive right limit at 000, f(0):=lim⁡x→0+f(x)>0f(0) := \lim_{x \to 0^+} f(x) > 0f(0):=limx→0+​f(x)>0, then
lim⁡w1→w2−dπs(yr(w1),q)dw1=−τ(w2−v)f(0)<0.\lim_{w_1 \to w_2^-} \frac{d\pi_s(y_r(w_1), q)}{dw_1} = -\frac{\tau}{(w_2 - v) f(0)} < 0 .w1​→w2−​lim​dw1​dπs​(yr​(w1​),q)​=−(w2​−v)f(0)τ​<0.

Hence the supplier's profit is decreasing in w1w_1w1​ as w1w_1w1​ approaches w2w_2w2​: a small advance-purchase discount raises her profit.

Formalization Note The paper's display presupposes a finite positive f(0)f(0)f(0), while the model has a density on (0,∞)(0,\infty)(0,∞) only; the hypothesis that fff has a positive right limit at 000 is the reading of "f(0)f(0)f(0)" and applies to part 2 only. The goal theorem does not use it. Only left limits are taken, since an advance-purchase discount has w1<w2w_1 < w_2w1​<w2​. The derivative is Mathlib's deriv, which is the genuine derivative near w2w_2w2​ because f(yr(w1))>0f(y_r(w_1)) > 0f(yr​(w1​))>0 there.

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

open MeasureTheory ProbabilityTheory

open Filter Topology

/-- The limit display in the proof of Theorem 8, p. 234. Fix `v < w₂ ≤ p`, `τ > 0`, a production
`q` and the retailer's prebook `y_r(w₁) ≥ 0`, `F(y_r(w₁)) = (w₂ - w₁)/(w₂ - v)`, for
`v < w₁ < w₂`. Then `y_r(w₁) → 0` as `w₁ → w₂⁻`. If moreover the density has a positive right
limit `f(0) := lim_{x → 0⁺} f(x) > 0` (the display's hypothesis), then
`lim_{w₁ → w₂⁻} d π_s(y_r(w₁), q)/d w₁ = -τ/((w₂ - v) f(0)) < 0`. -/
theorem supplier_profit_deriv_limit (μ : Measure ℝ) [IsProbabilityMeasure μ] (f : ℝ → ℝ)
    (hD : DemandModel μ f) (p c v : ℝ) (hvc : v < c) (hcp : c < p)
    (τ : ℝ) (hτ : 0 < τ) (w₂ : ℝ) (hvw₂ : v < w₂) (hw₂p : w₂ ≤ p) (yr : ℝ → ℝ)
    (hyr : ∀ w : ℝ, w ∈ Set.Ioo v w₂ → 0 ≤ yr w ∧ cdf μ (yr w) = (w₂ - w) / (w₂ - v))
    (q : ℝ) :
    Tendsto yr (𝓝[<] w₂) (𝓝 0) ∧
    ∀ f₀ : ℝ, 0 < f₀ → Tendsto f (𝓝[>] 0) (𝓝 f₀) →
      Tendsto (fun w₁ : ℝ => deriv (fun w : ℝ => supplierProfit μ c v τ w w₂ (yr w) q) w₁)
          (𝓝[<] w₂) (𝓝 (-τ / ((w₂ - v) * f₀))) ∧
        -τ / ((w₂ - v) * f₀) < 0 := 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. 234, proof of Theorem 8 (limit display)
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 with F(x)=μ((−∞,x])F(x)=\mu((-\infty,x])F(x)=μ((−∞,x]). Let fff 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′=fF'=fF′=f on (0,∞)(0,\infty)(0,∞);
  • yf(y)/(1−F(y))yf(y)/(1-F(y))yf(y)/(1−F(y)) has a strictly positive derivative on (0,∞)(0,\infty)(0,∞).

Let p,c,v,τ,w2p,c,v,\tau,w_2p,c,v,τ,w2​ be reals with

v<c<p,τ>0,v<w2≤p.v<c<p,\qquad\tau>0,\qquad v<w_2\le p.v<c<p,τ>0,v<w2​≤p.

Let yr:R→Ry_r:\mathbb{R}\to\mathbb{R}yr​:R→R satisfy, for every w∈(v,w2)w\in(v,w_2)w∈(v,w2​),

yr(w)≥0,F(yr(w))=w2−ww2−v,y_r(w)\ge0,\qquad F(y_r(w))=\frac{w_2-w}{w_2-v},yr​(w)≥0,F(yr​(w))=w2​−vw2​−w​,

and be arbitrary elsewhere. Let qqq be any real. Define

Φ(w)=πsw,w2(yr(w),q)=(w−v) yr(w)+(w2−τ−v)(S(q)−S(yr(w)))−(c−v) q.\Phi(w)=\pi_s^{w,w_2}(y_r(w),q)=(w-v)\,y_r(w)+(w_2-\tau-v)\bigl(S(q)-S(y_r(w))\bigr)-(c-v)\,q .Φ(w)=πsw,w2​​(yr​(w),q)=(w−v)yr​(w)+(w2​−τ−v)(S(q)−S(yr​(w)))−(c−v)q.

Conclusion. Both of the following hold:

  1. yr(w)→0y_r(w)\to0yr​(w)→0 as w→w2w\to w_2w→w2​ from below, through values w<w2w<w_2w<w2​.
  2. For every real f0>0f_0>0f0​>0 such that f(x)→f0f(x)\to f_0f(x)→f0​ as x→0x\to0x→0 from above (x>0x>0x>0), both of the following hold:
    • as w1→w2w_1\to w_2w1​→w2​ from below,
DΦ(w1)⟶−τ(w2−v) f0;D\Phi(w_1)\longrightarrow-\frac{\tau}{(w_2-v)\,f_0};DΦ(w1​)⟶−(w2​−v)f0​τ​;
  • this limit value is strictly negative, −τ/((w2−v)f0)<0-\tau/((w_2-v)f_0)<0−τ/((w2​−v)f0​)<0.

Here DΦ(w1)D\Phi(w_1)DΦ(w1​) is a derivative operator that equals Φ′(w1)\Phi'(w_1)Φ′(w1​) where Φ\PhiΦ is differentiable and is defined to be 000 at points where it is not.

Degenerate cases. The limit claim applies to that operator. At points w1w_1w1​ where Φ\PhiΦ fails to be differentiable, the value entering the limit is 000, not an actual derivative. Part 2 is conditional on a right limit f0>0f_0>0f0​>0 of fff at 000. If fff has no such positive right limit, part 2 holds vacuously and only part 1 is asserted. The value f(0)f(0)f(0) itself is never constrained. No relation between w2w_2w2​ and ccc or τ\tauτ is assumed, so w2−τ−vw_2-\tau-vw2​−τ−v may be negative.

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