Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (35)–(37), p. 83 — the marginals of Π; every optimum with s_s > 0 has c′(s_r) = h_s, F_r(s_r) = (h_s + β)/(h_r + β)

Proved
CachonCoord.TwoLocation.eq_35_37

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

base-stockoptimizationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1supply-chain

Let c′(y)=(hr+β)Fr(y)−βc'(y) = (h_r + \beta)F_r(y) - \betac′(y)=(hr​+β)Fr​(y)−β. In the two-location base-stock model the supply chain's cost Π(sr,ss)\Pi(s_r,s_s)Π(sr​,ss​) is differentiable in each base stock, with

∂Π(sr,ss)∂sr=Fs(ss) c′(sr)+∫ss∞c′(sr+ss−x) fs(x) dx(35)\frac{\partial \Pi(s_r,s_s)}{\partial s_r} = F_s(s_s)\,c'(s_r) + \int_{s_s}^\infty c'(s_r+s_s-x)\,f_s(x)\,dx \qquad (35)∂sr​∂Π(sr​,ss​)​=Fs​(ss​)c′(sr​)+∫ss​∞​c′(sr​+ss​−x)fs​(x)dx(35) ∂Π(sr,ss)∂ss=Fs(ss) hs+∫ss∞c′(sr+ss−x) fs(x) dx(36)\frac{\partial \Pi(s_r,s_s)}{\partial s_s} = F_s(s_s)\,h_s + \int_{s_s}^\infty c'(s_r+s_s-x)\,f_s(x)\,dx \qquad (36)∂ss​∂Π(sr​,ss​)​=Fs​(ss​)hs​+∫ss​∞​c′(sr​+ss​−x)fs​(x)dx(36)

for all (sr,ss)∈R2(s_r, s_s) \in \mathbb R^2(sr​,ss​)∈R2. Moreover:

  1. every optimal policy {sr,ss}\{s_r, s_s\}{sr​,ss​} (a minimizer of Π\PiΠ over R2\mathbb R^2R2) with ss>0s_s > 0ss​>0 satisfies
c′(sr)=hs,equivalentlyFr(sr)=hs+βhr+β;(37)c'(s_r) = h_s, \quad\text{equivalently}\quad F_r(s_r) = \frac{h_s + \beta}{h_r + \beta}; \qquad (37)c′(sr​)=hs​,equivalentlyFr​(sr​)=hr​+βhs​+β​;(37)
  1. the equation Fr(s~r1)=(hs+β)/(hr+β)F_r(\tilde s^1_r) = (h_s+\beta)/(h_r+\beta)Fr​(s~r1​)=(hs​+β)/(hr​+β) has exactly one solution s~r1\tilde s^1_rs~r1​;
  2. for that s~r1\tilde s^1_rs~r1​, the equation ∂Π(s~r1,ss)/∂ss=0\partial\Pi(\tilde s^1_r, s_s)/\partial s_s = 0∂Π(s~r1​,ss​)/∂ss​=0 has exactly one solution s~s1\tilde s^1_ss~s1​.

This identifies the only candidate optimal policy with positive supplier base stock. The retailer's component is the critical fractile (hs+β)/(hr+β)(h_s+\beta)/(h_r+\beta)(hs​+β)/(hr​+β), which is the target of the coordinating contract.

Formalization Note Derivatives are stated with HasDerivAt. The integrals against fs(x) dxf_s(x)\,dxfs​(x)dx over (ss,∞)(s_s,\infty)(ss​,∞) are written as integrals against the law of DsD_sDs​ over (ss,∞)(s_s,\infty)(ss​,∞), which is the same quantity when DsD_sDs​ has density fsf_sfs​ and requires no density hypothesis. Clause 3 is the "exists and is unique" claim, with ∂Π/∂ss\partial\Pi/\partial s_s∂Π/∂ss​ written out by (36); the page's supporting remark that Π(s~r1,⋅)\Pi(\tilde s^1_r, \cdot)Π(s~r1​,⋅) is strictly convex is not stated as a separate clause.

Preamble
import Mathlib
import Definitions.Def_CachonCoord_TwoLocation_Model

open MeasureTheory
Formal statement
namespace CachonCoord.TwoLocation

/-- §6.8.4, p. 83, Eqs. (35)–(37). The partial derivatives of the supply chain's cost are
(35) `∂Π/∂s_r = F_s(s_s) c'(s_r) + ∫_{s_s}^∞ c'(s_r + s_s − x) f_s(x) dx` and
(36) `∂Π/∂s_s = F_s(s_s) h_s + ∫_{s_s}^∞ c'(s_r + s_s − x) f_s(x) dx`
(the integrals against `f_s(x) dx` written as integrals against the law of `D_s` over
`(s_s, ∞)`); every optimal policy with `s_s > 0` has `c'(s_r) = h_s` (37), i.e.
`F_r(s_r) = (h_s + β)/(h_r + β)`; the solution `s̃¹_r` of that equation exists and is unique, and
then `∂Π(s̃¹_r, s_s)/∂s_s = 0` has exactly one solution `s̃¹_s`. -/
theorem eq_35_37 (M : Model) :
    (∀ sr ss : ℝ, HasDerivAt (fun x => M.Pi x ss)
      (M.FS ss * M.cDeriv sr + ∫ x in Set.Ioi ss, M.cDeriv (sr + ss - x) ∂M.lawS) sr) ∧
    (∀ sr ss : ℝ, HasDerivAt (fun y => M.Pi sr y)
      (M.FS ss * M.hs + ∫ x in Set.Ioi ss, M.cDeriv (sr + ss - x) ∂M.lawS) ss) ∧
    (∀ sr ss : ℝ, IsMinOn (fun p : ℝ × ℝ => M.Pi p.1 p.2) Set.univ (sr, ss) → 0 < ss →
      M.cDeriv sr = M.hs ∧ M.FR sr = (M.hs + M.beta) / (M.hr + M.beta)) ∧
    (∃! s1r : ℝ, M.FR s1r = (M.hs + M.beta) / (M.hr + M.beta)) ∧
    (∀ s1r : ℝ, M.FR s1r = (M.hs + M.beta) / (M.hr + M.beta) →
      ∃! s1s : ℝ, M.FS s1s * M.hs + ∫ x in Set.Ioi s1s, M.cDeriv (s1r + s1s - x) ∂M.lawS = 0) := by sorry

end CachonCoord.TwoLocation
Source
Cachon (2003), Supply Chain Coordination with Contracts, 3rd draft (Jan. 2003), §6.8.4, p. 83, Eqs. (35), (36), (37) and the display F_r(s̃¹_r) = (h_s + β)/(h_r + β) with the two existence-and-uniqueness sentences
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