Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

r* = Δʷπ + m with m = μ/P⁰*, and m solves (m/μ − 1)exp((m+u₀)/μ) = exp((a_w − Δʷπ)/μ)

Proved
SubstitutePricing.Unified.optimal_price_formula

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

dynamic-pricingmultinomial-logitp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Assume μ>0\mu>0μ>0 and 0<λ≤10<\lambda\le10<λ≤1, let xxx be an inventory level with S(x)≠∅S(x)\neq\emptysetS(x)=∅, let δ∈Rn\delta\in\mathbb R^nδ∈Rn, and let rrr be a stationary point of the static objective ξ(r)=∑i∈S(x)λPi(r)(r−δi)\xi(r)=\sum_{i\in S(x)}\lambda P^i(r)(r-\delta_i)ξ(r)=∑i∈S(x)​λPi(r)(r−δi​) of the common price. Put m=μ/P0(r,…,r)m=\mu/P^0(r,\dots,r)m=μ/P0(r,…,r) and

δw=∑i∈S(x)eai/μδi∑i∈S(x)eai/μ,aw=μln⁡∑i∈S(x)eai/μ.\delta_w=\frac{\sum_{i\in S(x)}e^{a_i/\mu}\delta_i}{\sum_{i\in S(x)}e^{a_i/\mu}},\qquad a_w=\mu\ln\sum_{i\in S(x)}e^{a_i/\mu}.δw​=∑i∈S(x)​eai​/μ∑i∈S(x)​eai​/μδi​​,aw​=μlni∈S(x)∑​eai​/μ.

Then

r=δw+mand(mμ−1)exp⁡(m+u0μ)=exp⁡(aw−δwμ).r=\delta_w+m\qquad\text{and}\qquad \Bigl(\frac m\mu-1\Bigr)\exp\Bigl(\frac{m+u_0}\mu\Bigr)=\exp\Bigl(\frac{a_w-\delta_w}{\mu}\Bigr).r=δw​+mand(μm​−1)exp(μm+u0​​)=exp(μaw​−δw​​).

With δi=Δiπt−1(x)\delta_i=\Delta^i\pi_{t-1}(x)δi​=Δiπt−1​(x), δw\delta_wδw​ is Δwπt−1(x)\Delta^w\pi_{t-1}(x)Δwπt−1​(x) and this is the formula rt∗=Δwπt−1(xt)+mtr^*_t=\Delta^w\pi_{t-1}(x_t)+m_trt∗​=Δwπt−1​(xt​)+mt​ of the proof of Proposition 1, together with the equation that determines mtm_tmt​.

Formalization Note. The paper's intermediate display (27) is misprinted (it has (mt/μ−1)∑iexp⁡(−ai/μ)(m_t/\mu-1)\sum_i\exp(-a_i/\mu)(mt​/μ−1)∑i​exp(−ai​/μ) where (mt/μ−1)/∑iexp⁡(ai/μ)(m_t/\mu-1)/\sum_i\exp(a_i/\mu)(mt​/μ−1)/∑i​exp(ai​/μ) is meant); only the conclusions, which are stated correctly on the page, are formalized.

Preamble
import Mathlib
import Definitions.Def_SubstitutePricing_Unified_Model
Formal statement
namespace SubstitutePricing.Unified

theorem optimal_price_formula (M : Model) (hM : M.Assumptions) (x : Fin M.n → ℕ)
    (hx : (M.S x).Nonempty) (δ : Fin M.n → ℝ) (r : ℝ) (hr : HasDerivAt (M.xiS x δ) 0 r) :
    r = M.wavg x δ + M.μ / M.P0 x (M.const r) ∧
    M.marginLHS (M.μ / M.P0 x (M.const r)) =
      Real.exp ((M.aW x - M.wavg x δ) / M.μ) := by sorry

end SubstitutePricing.Unified
Source
Dong, Kouvelis, Tian, Dynamic Pricing and Inventory Control of Substitute Products, Manufacturing & Service Operations Management 11(2) (2009), p. 336, App. A, proof of Proposition 1, (27)–(28) and the following displays
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