Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§6.6.1, p. 67 — ∂Π₁(x|q₁)/∂x = −c₁ + c₂(1 − G(ξ(x))), negative at q₁°: the supplier produces exactly q₁°

Proved
CachonCoord.DemandUpdate.p67_supplier_production

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

demand-updatingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1supply-chainvoluntary-compliance

Let q2(q1,ξ)q_2(q_1,\xi)q2​(q1​,ξ) be a supply chain optimal period-2 order. The retailer orders it in period 2 and the supplier fills it. Consider the supplier's period-1 expected profit Π1(x ∣ q1)\Pi_1(x\,|\,q_1)Π1​(x∣q1​) as a function of her period-1 production xxx.

  1. If x≥q1x \ge q_1x≥q1​, x>0x > 0x>0 and ξ(x)≥0\xi(x) \ge 0ξ(x)≥0 solves F(x ∣ ξ(x))=(p−c2)/pF(x\,|\,\xi(x)) = (p-c_2)/pF(x∣ξ(x))=(p−c2​)/p, then the right derivative of Π1(⋅ ∣ q1)\Pi_1(\cdot\,|\,q_1)Π1​(⋅∣q1​) at xxx is
∂Π1(x ∣ q1)∂x=−c1+c2(1−G(ξ(x))),\frac{\partial \Pi_1(x\,|\,q_1)}{\partial x} = -c_1 + c_2\big(1 - G(\xi(x))\big),∂x∂Π1​(x∣q1​)​=−c1​+c2​(1−G(ξ(x))),

and for x>q1x > q_1x>q1​ this is a two-sided derivative. 2. Let q1o>0q_1^o > 0q1o​>0 be a supply chain optimal period-1 order, and let ξ(q1o)≥0\xi(q_1^o) \ge 0ξ(q1o​)≥0 solve (26) at q1oq_1^oq1o​. Then

−c1+c2(1−G(ξ(q1o)))<0,-c_1 + c_2\big(1 - G(\xi(q_1^o))\big) < 0,−c1​+c2​(1−G(ξ(q1o​)))<0,

and producing exactly q1oq_1^oq1o​ is the supplier's unique optimal period-1 production: Π1(x ∣ q1o)<Π1(q1o ∣ q1o)\Pi_1(x\,|\,q_1^o) < \Pi_1(q_1^o\,|\,q_1^o)Π1​(x∣q1o​)<Π1​(q1o​∣q1o​) for every x≥0x \ge 0x≥0, x≠q1ox \ne q_1^ox=q1o​.

With a coordinating contract the supplier therefore produces just enough to cover the retailer's period-1 order, and no inventory is stranded at the supplier.

Formalization Note At x=q1x = q_1x=q1​ the function Π1(⋅ ∣ q1)\Pi_1(\cdot\,|\,q_1)Π1​(⋅∣q1​) has a kink (its left derivative is c2−c1c_2 - c_1c2​−c1​), so the page's ∂Π1(q1o∣q1o)/∂x\partial \Pi_1(q_1^o|q_1^o)/\partial x∂Π1​(q1o​∣q1o​)/∂x is read as a right derivative. These claims do not depend on the contract terms w2w_2w2​, bbb, which enter Π1\Pi_1Π1​ only through terms constant in xxx, so the statement holds for all w2w_2w2​, bbb. The page's "Hence" is formalized as the unique-maximizer statement.

Preamble
import Mathlib
import Definitions.Def_CachonCoord_DemandUpdate_Model
import Definitions.Def_CachonCoord_DemandUpdate_Profits

open MeasureTheory ProbabilityTheory
Formal statement
namespace CachonCoord.DemandUpdate

open Model

/-- Cachon (2003), 3rd draft, §6.6.1, p. 67 (the two derivative displays and "Hence, …").
Let `q2sel` select a supply chain optimal period-2 order `q_2(q_1, ξ)`, which the retailer orders
and the supplier fills. For the supplier's period-1 profit `Π_1(x|q_1)` as a function of her
period-1 production `x`:
1. for `x ≥ q_1`, `x > 0`, with `ξ(x)` solving (26) at `x`, the right derivative is
   `−c_1 + c_2(1 − G(ξ(x)))`, and it is a two-sided derivative when `x > q_1`;
2. at a supply chain optimal `q_1° > 0` with `ξ(q_1°)` solving (26),
   `−c_1 + c_2(1 − G(ξ(q_1°))) < 0`, and producing exactly `q_1°` is the supplier's unique
   optimal period-1 production. -/
theorem p67_supplier_production (M : Model) (w2 b : ℝ) (q2sel : ℝ → ℝ → ℝ)
    (hq2 : M.IsChainPeriod2Optimal q2sel) :
    (∀ q1 x xx, 0 ≤ q1 → q1 ≤ x → 0 < x → 0 ≤ xx → M.F xx x = M.ratio →
      HasDerivWithinAt (M.supplierProfit1 w2 b q2sel q1) (-M.c1 + M.c2 * (1 - M.G xx))
        (Set.Ici x) x) ∧
    (∀ q1 x xx, 0 ≤ q1 → q1 < x → 0 ≤ xx → M.F xx x = M.ratio →
      HasDerivAt (M.supplierProfit1 w2 b q2sel q1) (-M.c1 + M.c2 * (1 - M.G xx)) x) ∧
    (∀ q1o xi0, 0 < q1o → IsMaxOn (M.Omega1 q2sel) (Set.Ici 0) q1o →
      0 ≤ xi0 → M.F xi0 q1o = M.ratio →
      -M.c1 + M.c2 * (1 - M.G xi0) < 0 ∧
      ∀ x, 0 ≤ x → x ≠ q1o →
        M.supplierProfit1 w2 b q2sel q1o x < M.supplierProfit1 w2 b q2sel q1o q1o) := by sorry

end CachonCoord.DemandUpdate
Source
Cachon (2003), Supply Chain Coordination with Contracts, 3rd draft (Jan. 2003), §6.6.1, p. 67, the two derivative displays and the sentence "Hence, …"
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