Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Display (8): R>0R>0R>0 iff the expected sales-to-supply ratio exceeds h/ρh/\rhoh/ρ

Proved
TradeAgentNV.equation_8

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

biddingnewsvendorp2o-gran-per-chapterp2o-plan-paperp2o-v1random-yieldsupply-uncertainty

Let UUU be a random variable with 0≤U≤10\le U\le10≤U≤1 almost surely and E[U]>0E[U]>0E[U]>0, let D,r,t,h,π>0D,r,t,h,\pi>0D,r,t,h,π>0 with r−t+π>0r-t+\pi>0r−t+π>0, q>0q>0q>0, ρ=r−t+h+π\rho=r-t+h+\piρ=r−t+h+π and R=ρE[min⁡(qU,D)]−hqE[U]R=\rho E[\min(qU,D)]-hqE[U]R=ρE[min(qU,D)]−hqE[U]. Then

R>0  ⟺  E[min⁡(qU,D)]qE[U]>hρ  ⟺  E[min⁡(U,D/q)]E[U]>hρ.R>0\iff\frac{E[\min(qU,D)]}{qE[U]}>\frac h\rho\iff\frac{E[\min(U,D/q)]}{E[U]}>\frac h\rho .R>0⟺qE[U]E[min(qU,D)]​>ρh​⟺E[U]E[min(U,D/q)]​>ρh​.

So the conditions of Theorem 1(i) and (ii) are R≤0R\le0R≤0 and R>0R>0R>0.

Differences from the source:

  • encoding: the seller has qqq units (D/qD/qD/q is used throughout) → q>0q>0q>0; reason: implicit in the paper; D/qD/qD/q is undefined at q=0q=0q=0
Preamble
import Mathlib
import Definitions.Def_TradeAgentNV_expBenefit
import Definitions.Def_TradeAgentNV_salesSupplyRatio

open MeasureTheory
Formal statement
namespace TradeAgentNV

/-- **Display (8)** (p.11) of Çakıcı & Karaesmen, *When Yield is Not the Only Supply Uncertainty: Newsvendor Model of a
Trade Agent*, SSRN 4409114 (v. Oct 14, 2023): the expected benefit of bidding
`R = ρE[min(qU, D)] − hqE[U]` is positive exactly when the expected sales-to-supply ratio
exceeds `h/ρ`, in either of its two forms:
`R > 0 ⇔ E[min(qU, D)]/(qE[U]) > h/ρ ⇔ E[min(U, D/q)]/E[U] > h/ρ`.

**Formalization Note.** `0 ≤ U ≤ 1` a.s. and `E[U] > 0` (p.9); `D, r, t, h, π > 0`,
`r − t + π > 0` (p.8) and `q > 0`; so `ρ`, `qE[U]` and `E[U]` are positive. -/
theorem equation_8
    (Ω : Type*) [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
    (U : Ω → ℝ) (hU : Measurable U)
    (hU01 : ∀ᵐ ω ∂P, U ω ∈ Set.Icc (0 : ℝ) 1) (hEU : 0 < ∫ ω, U ω ∂P)
    (r t h π D q : ℝ) (hr : 0 < r) (ht : 0 < t) (hh : 0 < h) (hπ : 0 < π) (hD : 0 < D)
    (hq : 0 < q) (hrtπ : 0 < r - t + π) :
    (0 < expBenefit P U r t h π D q ↔
        h / rho r t h π < (∫ ω, min (q * U ω) D ∂P) / (q * ∫ ω, U ω ∂P)) ∧
      (h / rho r t h π < (∫ ω, min (q * U ω) D ∂P) / (q * ∫ ω, U ω ∂P) ↔
        h / rho r t h π < salesSupplyRatio P U D q) := by sorry

end TradeAgentNV
Source
Çakıcı & Karaesmen, When Yield is Not the Only Supply Uncertainty: Newsvendor Model of a Trade Agent, SSRN 4409114 (v. Oct 14, 2023), https://ssrn.com/abstract=4409114, display (8), p.11
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

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