Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Derivatives of Pⁱ, P⁰ and ξᵘ in the common price

Proved
SubstitutePricing.Unified.price_derivatives

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. Fix an inventory level xxx, numbers δi\delta_iδi​ (i∈S(x)i\in S(x)i∈S(x)) and a common price r∈Rr\in\mathbb Rr∈R, and write Pi(r),P0(r)P^i(r),P^0(r)Pi(r),P0(r) for the MNL probabilities at the price vector (r,…,r)(r,\dots,r)(r,…,r) and

ξ(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​).

Then

  1. dPidr=−1μPiP0\dfrac{dP^i}{dr}=-\dfrac1\mu P^iP^0drdPi​=−μ1​PiP0 for every i∈S(x)i\in S(x)i∈S(x);
  2. dP0dr=1μP0(1−P0)\dfrac{dP^0}{dr}=\dfrac1\mu P^0(1-P^0)drdP0​=μ1​P0(1−P0);
  3. dξdr=λ∑i∈S(x)(Pi−1μPiP0(r−δi))\dfrac{d\xi}{dr}=\lambda\sum_{i\in S(x)}\Bigl(P^i-\dfrac1\mu P^iP^0(r-\delta_i)\Bigr)drdξ​=λ∑i∈S(x)​(Pi−μ1​PiP0(r−δi​));
  4. and this derivative equals
λ(1−P0)−1μP0 ξ(r).\lambda(1-P^0)-\frac1\mu P^0\,\xi(r).λ(1−P0)−μ1​P0ξ(r).

With δi=Δiπt−1(x)\delta_i=\Delta^i\pi_{t-1}(x)δi​=Δiπt−1​(x), ξ\xiξ is the paper's ξtu(x,⋅)\xi^u_t(x,\cdot)ξtu​(x,⋅) of (24); these derivatives give its first-order condition.

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

theorem price_derivatives (M : Model) (hM : M.Assumptions) (x : Fin M.n → ℕ)
    (δ : Fin M.n → ℝ) (r : ℝ) :
    (∀ i ∈ M.S x, HasDerivAt (fun s : ℝ => M.P x (M.const s) i)
        (-(1 / M.μ) * M.P x (M.const r) i * M.P0 x (M.const r)) r) ∧
    HasDerivAt (fun s : ℝ => M.P0 x (M.const s))
        ((1 / M.μ) * M.P0 x (M.const r) * (1 - M.P0 x (M.const r))) r ∧
    HasDerivAt (M.xiS x δ)
        (M.lam * ∑ i ∈ M.S x, (M.P x (M.const r) i -
          (1 / M.μ) * M.P x (M.const r) i * M.P0 x (M.const r) * (r - δ i))) r ∧
    M.lam * ∑ i ∈ M.S x, (M.P x (M.const r) i -
          (1 / M.μ) * M.P x (M.const r) i * M.P0 x (M.const r) * (r - δ i)) =
      M.lam * (1 - M.P0 x (M.const r)) - (1 / M.μ) * M.P0 x (M.const r) * M.xiS x δ r := 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
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