Proof of Theorem 8 — the derivative
ProvedCachonPushPull.ShippingCost.supplier_profit_derivFix , a shipping cost and a production quantity . For let be the retailer's prebook of Eq. (22), . At a point where the density is positive at the prebook, :
- is differentiable at with ;
- the supplier's profit along the retailer's prebook is differentiable at with
This display is how the proof of Theorem 8 measures the supplier's gain from deepening the discount.
Formalization Note The positivity is the hypothesis of the paper's implicit-function step, stated here explicitly; the model only gives a density on . The prebook is a function pinned on by the equation of (22), which determines it uniquely because is strictly increasing on .
import Mathlib import Definitions.Def_CachonPushPull_ShippingCost_Game
namespace CachonPushPull.ShippingCost
open MeasureTheory ProbabilityTheory
/-- The derivative display in the proof of Theorem 8, p. 234. Fix `w₂ ≤ p`, a production `q` and
the retailer's prebook `y_r(w₁) ≥ 0`, `F(y_r(w₁)) = (w₂ - w₁)/(w₂ - v)` (Eq. (22)), for
`v < w₁ < w₂`. At a point `w₁` of that interval where the density at `y_r(w₁)` is positive
(the hypothesis of the implicit function step), `y_r` is differentiable with
`y_r'(w₁) = -[(w₂ - v) f(y_r(w₁))]⁻¹`, and
`d π_s(y_r(w₁), q)/d w₁ = y_r(w₁) - [(w₁ - v) - (w₂ - τ - v)(1 - F(y_r(w₁)))]/((w₂ - v) f(y_r(w₁)))`. -/
theorem supplier_profit_deriv (μ : Measure ℝ) [IsProbabilityMeasure μ] (f : ℝ → ℝ)
(hD : DemandModel μ f) (p c v : ℝ) (hvc : v < c) (hcp : c < p)
(τ : ℝ) (hτ : 0 < τ) (w₂ : ℝ) (hw₂p : w₂ ≤ p) (yr : ℝ → ℝ)
(hyr : ∀ w : ℝ, w ∈ Set.Ioo v w₂ → 0 ≤ yr w ∧ cdf μ (yr w) = (w₂ - w) / (w₂ - v))
(q w₁ : ℝ) (hw₁ : w₁ ∈ Set.Ioo v w₂) (hf : 0 < f (yr w₁)) :
HasDerivAt yr (-((w₂ - v) * f (yr w₁))⁻¹) w₁ ∧
HasDerivAt (fun w : ℝ => supplierProfit μ c v τ w w₂ (yr w) q)
(yr w₁ - ((w₁ - v) - (w₂ - τ - v) * (1 - cdf μ (yr w₁))) / ((w₂ - v) * f (yr w₁)))
w₁ := by sorry
end CachonPushPull.ShippingCost
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a probability measure on with . Let be such that satisfies the demand model:
- ;
- is strictly increasing on ;
- for ;
- has a strictly positive derivative on .
Let be reals with
Let be any function such that, for every ,
Outside , is arbitrary. Let be any real. Let satisfy .
Conclusion. Both of the following hold:
- is differentiable at with
- The function
is differentiable at . In , the prebook price and the prebook both vary with , while and stay fixed. Its derivative is
Degenerate cases. The hypothesis can only be met when . No relation between and or is assumed, so may be negative. The positivity of is a separate hypothesis. The demand model does not require to be positive anywhere; it only identifies with on . So this hypothesis is a genuine restriction, and if it fails the statement is vacuous. Because both denominators are nonzero under it, the division-by-zero convention plays no role.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.