Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4: the indifference quantity qPq^PqP exists, is unique, maximizes πr−π^s\pi_r - \hat\pi_sπr​−π^s​, and exceeds q∗q^*q∗

Proved
CachonPushPull.Pareto.qP_characterization

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

contractsp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1supply-chain

Let demand satisfy the standing assumptions and v<c<pv < c < pv<c<p. There is a quantity qP>0q^P > 0qP>0 such that

  1. (i) qPq^PqP is the unique q>0q > 0q>0 with πr(q)=π^r(q)\pi_r(q) = \hat\pi_r(q)πr​(q)=π^r​(q);
  2. (ii) qPq^PqP is the unique q>0q > 0q>0 with πs(q)=π^s(q)\pi_s(q) = \hat\pi_s(q)πs​(q)=π^s​(q);
  3. (iii) qPq^PqP maximizes πr(q)−π^s(q)\pi_r(q) - \hat\pi_s(q)πr​(q)−π^s​(q) over q≥0q \ge 0q≥0, and is its only maximizer there;
  4. (v) every maximizer q∗q^*q∗ of πr\pi_rπr​ over [0,∞)[0, \infty)[0,∞) satisfies qP>q∗q^P > q^*qP>q∗.

Item (iv) of the paper, qP=q′=q′′q^P = q' = q''qP=q′=q′′, is expressed by using the single quantity qPq^PqP in (i)–(iii).

At qPq^PqP each firm earns the same with the pull and with the push contract; qPq^PqP is the lower end of the Pareto set of Theorem 6.

Formalization Note Uniqueness in (i) and (ii) is over q>0q > 0q>0, since all four profits vanish at q=0q = 0q=0. The existence of a maximizer q∗q^*q∗ is Theorem 3.

Preamble
import Mathlib
import Definitions.Def_CachonPushPull_Pareto_Profits
Formal statement
namespace CachonPushPull.Pareto

open MeasureTheory ProbabilityTheory

/-- Lemma 4, p. 230: the quantity `q^P` exists; it is the unique positive quantity where the
retailer is indifferent between pull and push, the unique positive quantity where the supplier is
indifferent, the unique maximizer of `π_r(q) - π̂_s(q)`, and it exceeds every maximizer `q*` of
`π_r`. -/
theorem qP_characterization (μ : Measure ℝ) [IsProbabilityMeasure μ] (f : ℝ → ℝ)
    (hD : DemandModel μ f) (p c v : ℝ) (hvc : v < c) (hcp : c < p) :
    ∃ qP : ℝ, 0 < qP ∧
      (∀ q : ℝ, 0 < q → (pullRetailerProfit μ p c v q = pushRetailerProfit μ p v q ↔ q = qP)) ∧
      (∀ q : ℝ, 0 < q → (pullSupplierProfit μ c v q = pushSupplierProfit μ p c v q ↔ q = qP)) ∧
      IsMaxOn (fun q : ℝ => pullRetailerProfit μ p c v q - pushSupplierProfit μ p c v q)
        (Set.Ici 0) qP ∧
      (∀ q : ℝ, 0 ≤ q →
        IsMaxOn (fun q : ℝ => pullRetailerProfit μ p c v q - pushSupplierProfit μ p c v q)
          (Set.Ici 0) q → q = qP) ∧
      (∀ qstar : ℝ, 0 ≤ qstar → IsMaxOn (pullRetailerProfit μ p c v) (Set.Ici 0) qstar →
        qstar < qP) := by sorry

end CachonPushPull.Pareto
Source
Cachon, The Allocation of Inventory Risk in a Supply Chain: Push, Pull, and Advance-Purchase Discount Contracts, Management Science 50(2), 2004, p. 230, Lemma 4
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. This is the same as above:

  • μ\muμ is a probability measure on R\mathbb RR with distribution function FFF, and f:R→Rf:\mathbb R\to\mathbb Rf:R→R;
  • the demand-model conditions hold: F(0)=0F(0)=0F(0)=0; FFF is strictly increasing on [0,∞)[0,\infty)[0,∞); F′=fF'=fF′=f on (0,∞)(0,\infty)(0,∞); and g(y)=yf(y)/(1−F(y))g(y)=yf(y)/(1-F(y))g(y)=yf(y)/(1−F(y)) is differentiable with g′>0g'>0g′>0 on (0,∞)(0,\infty)(0,∞);
  • p,c,vp,c,vp,c,v are reals with v<c<pv<c<pv<c<p.

Functions used. With S(q)=q−∫0qFS(q)=q-\int_0^qFS(q)=q−∫0q​F:

  • w^1(q)=p−(p−v)F(q)\hat w_1(q)=p-(p-v)F(q)w^1​(q)=p−(p−v)F(q);
  • w1(q)=(c−vF(q))/(1−F(q))w_1(q)=(c-vF(q))/(1-F(q))w1​(q)=(c−vF(q))/(1−F(q)), set to 000 if F(q)=1F(q)=1F(q)=1;
  • push retailer profit π^r(q)=(p−v)S(q)−(w^1(q)−v)q\hat\pi_r(q)=(p-v)S(q)-(\hat w_1(q)-v)qπ^r​(q)=(p−v)S(q)−(w^1​(q)−v)q;
  • push supplier profit π^s(q)=(w^1(q)−c)q\hat\pi_s(q)=(\hat w_1(q)-c)qπ^s​(q)=(w^1​(q)−c)q;
  • pull retailer profit πr(q)=(p−w1(q))S(q)\pi_r(q)=(p-w_1(q))S(q)πr​(q)=(p−w1​(q))S(q);
  • pull supplier profit πs(q)=(w1(q)−v)S(q)−(c−v)q\pi_s(q)=(w_1(q)-v)S(q)-(c-v)qπs​(q)=(w1​(q)−v)S(q)−(c−v)q.

Conclusion. There exists a real qP>0q^P>0qP>0 with all five of the following properties.

  1. For every q>0q>0q>0: πr(q)=π^r(q)\pi_r(q)=\hat\pi_r(q)πr​(q)=π^r​(q) if and only if q=qPq=q^Pq=qP.
  2. For every q>0q>0q>0: πs(q)=π^s(q)\pi_s(q)=\hat\pi_s(q)πs​(q)=π^s​(q) if and only if q=qPq=q^Pq=qP.
  3. qPq^PqP maximizes D(q)=πr(q)−π^s(q)D(q)=\pi_r(q)-\hat\pi_s(q)D(q)=πr​(q)−π^s​(q) over [0,∞)[0,\infty)[0,∞), that is, D(q)≤D(qP)D(q)\le D(q^P)D(q)≤D(qP) for all q≥0q\ge0q≥0.
  4. Every q≥0q\ge0q≥0 that maximizes DDD over [0,∞)[0,\infty)[0,∞) equals qPq^PqP.
  5. Every q∗≥0q^*\ge0q∗≥0 that maximizes πr\pi_rπr​ over [0,∞)[0,\infty)[0,∞) satisfies q∗<qPq^*<q^Pq∗<qP.

Degenerate cases.

  • Items 1 and 2 speak only about q>0q>0q>0. At q=0q=0q=0 all four profits are 000, so the equalities also hold at 000, and the statement does not exclude that.
  • Item 5 is vacuous if πr\pi_rπr​ has no maximizer on [0,∞)[0,\infty)[0,∞); this statement does not assert that one exists.
  • On [0,∞)[0,\infty)[0,∞) the hypotheses force F<1F<1F<1, so no divide-by-zero default arises.
  • The hypotheses can be satisfied, for example by exponential demand.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

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