Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Proposition 5, p. 118 — the derivative of E[u(ΠH(I,α))]\mathbb E[u(\Pi_H(I,\alpha))]E[u(ΠH​(I,α))] at α=0\alpha=0α=0 is E[u′(W+ΠU(I)){−XT+X0erT}]\mathbb E[u'(W+\Pi_U(I))\{-X_T+X_0e^{rT}\}]E[u′(W+ΠU​(I)){−XT​+X0​erT}]

Proved
HedgeInv.Value.derivative_at_zero

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

differentiation-under-integralexpected-utilityhedgingnewsvendorp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Consider the hedged newsvendor of Gaur and Seshadri in scaled units: scaled wealth WWW, demand parameters aaa and b>0b>0b>0, an order quantity I>max⁡{a,0}I>\max\{a,0\}I>max{a,0}, and a scaled unit cost c1c_1c1​ with 0<c10<c_10<c1​ and c1b<1c_1b<1c1​b<1 (the scaled form of p>cerT>sp>ce^{rT}>sp>cerT>s). The asset price STS_TST​ has law ν\nuν and the scaled forecast error ε\varepsilonε has law GGG, both probability measures on R\mathbb RR, with E[ε]=0\mathbb E[\varepsilon]=0E[ε]=0 and E[ε2]<∞\mathbb E[\varepsilon^2]<\inftyE[ε2]<∞; STS_TST​ and ε\varepsilonε are independent. The hedge pays XT=φ(ST)X_T=\varphi(S_T)XT​=φ(ST​) for a nondecreasing, measurable, ν\nuν-integrable φ\varphiφ, and its forward price X0erTX_0e^{rT}X0​erT satisfies the fair-gamble condition (12), E[XT]=X0erT\mathbb E[X_T]=X_0e^{rT}E[XT​]=X0​erT. Let uuu be a concave, differentiable utility function on R\mathbb RR.

Suppose that for some δ>0\delta>0δ>0 the utility u(ΠH(I,α))u(\Pi_H(I,\alpha))u(ΠH​(I,α)) of the hedged wealth is integrable at α=−δ\alpha=-\deltaα=−δ, α=0\alpha=0α=0 and α=δ\alpha=\deltaα=δ. Then α↦E[u(ΠH(I,α))]\alpha\mapsto\mathbb E[u(\Pi_H(I,\alpha))]α↦E[u(ΠH​(I,α))] is differentiable at α=0\alpha=0α=0, and

ddαE[u(ΠH(I,α))]∣α=0=E[u′(W+min⁡{ST+ε,(I−a)/b}−c1I) {−XT+X0erT}].\frac{d}{d\alpha}\mathbb E[u(\Pi_H(I,\alpha))]\Big|_{\alpha=0} = \mathbb E\Big[u'\big(W+\min\{S_T+\varepsilon,(I-a)/b\}-c_1I\big)\,\{-X_T+X_0e^{rT}\}\Big].dαd​E[u(ΠH​(I,α))]​α=0​=E[u′(W+min{ST​+ε,(I−a)/b}−c1​I){−XT​+X0​erT}].

This is the first step of the authors' proof of Proposition 5: it identifies the marginal value of a small short position in the hedge with an expectation that the second step shows to be nonnegative.

Formalization Note The derivative is two-sided (α<0\alpha<0α<0 means buying the portfolio). The paper differentiates under the expectation without comment; the integrability at α∈{−δ,0,δ}\alpha\in\{-\delta,0,\delta\}α∈{−δ,0,δ} is the regularity assumption that makes this legitimate, and is added. The standing assumptions of §2–§3 (b>0b>0b>0, I>max⁡{a,0}I>\max\{a,0\}I>max{a,0}, p>cerT>sp>ce^{rT}>sp>cerT>s, E[ε]=0\mathbb E[\varepsilon]=0E[ε]=0, E[ε2]<∞\mathbb E[\varepsilon^2]<\inftyE[ε2]<∞, (12), XTX_TXT​ increasing in STS_TST​) are carried although this step does not use all of them.

Preamble
import Mathlib
import Definitions.Def_HedgeInv_Value_Model
open MeasureTheory
Formal statement
namespace HedgeInv.Value

/-- Proof of Proposition 5, p. 118 (Gaur & Seshadri 2005): the first derivative of the expected
utility (14) in the hedge ratio `α`, evaluated at `α = 0`, is
`E[u′(W + min{S_T + ε, (I − a)/b} − c₁I){−X_T + X₀e^{rT}}]`. The derivative is two-sided. -/
theorem derivative_at_zero
    (ν G : Measure ℝ) [IsProbabilityMeasure ν] [IsProbabilityMeasure G]
    (hG_mean : ∫ e, e ∂G = 0) (hG_L2 : MemLp id 2 G)
    (W a b c₁ I : ℝ) (hb : 0 < b) (hI : max a 0 < I) (hc₁ : 0 < c₁) (hc₁b : c₁ * b < 1)
    (φ : ℝ → ℝ) (hφ_mono : Monotone φ) (hφ_meas : Measurable φ) (hφ_int : Integrable φ ν)
    (x0r : ℝ) (h12 : ∫ s, φ s ∂ν = x0r)
    (u : ℝ → ℝ) (hu_conc : ConcaveOn ℝ Set.univ u) (hu_diff : Differentiable ℝ u)
    (δ : ℝ) (hδ : 0 < δ)
    (hint : ∀ α ∈ ({-δ, 0, δ} : Set ℝ),
      Integrable (fun p : ℝ × ℝ => u (HedgeInv.Order.hedgedPayoff W a b c₁ φ x0r I α p.1 p.2)) (ν.prod G)) :
    HasDerivAt (fun α => HedgeInv.Order.expUtil ν G u W a b c₁ φ x0r I α)
      (∫ p : ℝ × ℝ, deriv u (unhedgedPayoff W a b c₁ I p.1 p.2) * (x0r - φ p.1) ∂(ν.prod G)) 0 := by sorry

end HedgeInv.Value
Source
Gaur & Seshadri, Hedging Inventory Risk Through Market Instruments, Manuf. Serv. Oper. Manag. 7(2) (2005), p. 118, Appendix, proof of Proposition 5, first sentence and display; setting (11), (12), (14) on pp. 110–111
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

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