Proof of Theorem 8 —
ProvedCachonPushPull.ShippingCost.supplier_profit_deriv_limitFix , a shipping cost and a production quantity , and let with for . Then:
- as from below;
- if the density has a positive right limit at , , then
Hence the supplier's profit is decreasing in as approaches : a small advance-purchase discount raises her profit.
Formalization Note The paper's display presupposes a finite positive , while the model has a density on only; the hypothesis that has a positive right limit at is the reading of "" and applies to part 2 only. The goal theorem does not use it. Only left limits are taken, since an advance-purchase discount has . The derivative is Mathlib's deriv, which is the genuine derivative near because there.
import Mathlib import Definitions.Def_CachonPushPull_ShippingCost_Game
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
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 ;
- on ;
- has a strictly positive derivative on .
Let be reals with
Let satisfy, for every ,
and be arbitrary elsewhere. Let be any real. Define
Conclusion. Both of the following hold:
- as from below, through values .
- For every real such that as from above (), both of the following hold:
- as from below,
- this limit value is strictly negative, .
Here is a derivative operator that equals where is differentiable and is defined to be at points where it is not.
Degenerate cases. The limit claim applies to that operator. At points where fails to be differentiable, the value entering the limit is , not an actual derivative. Part 2 is conditional on a right limit of at . If has no such positive right limit, part 2 holds vacuously and only part 1 is asserted. The value itself is never constrained. No relation between and or is assumed, so may be negative.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.