Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5, Eq. (16), p. 1385 — derivative in t of the switch-at-once revenue J^i(n,t;0)

Proved
PriceSwitch.UpOrDown.eq16_deriv_switch_now

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

calculusdynamic-pricingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1poisson-process

Let a,λa,ba, \lambda_a, ba,λa​,b be real numbers and λb≥0\lambda_b \ge 0λb​≥0. Let J(n,t;0)J(n,t;0)J(n,t;0) be the expected revenue of switching at once from price aaa to price bbb (so that J(n,t;0)=b Emin⁡(n,Nb(t))J(n,t;0) = b\,E\min(n, N_b(t))J(n,t;0)=bEmin(n,Nb​(t)) with Nb(t)N_b(t)Nb​(t) Poisson of mean λbt\lambda_b tλb​t), and let G(n,t)=aλa−bλb−b(λa−λb)P(Nb(t)≥n)G(n,t) = a\lambda_a - b\lambda_b - b(\lambda_a - \lambda_b)P(N_b(t) \ge n)G(n,t)=aλa​−bλb​−b(λa​−λb​)P(Nb​(t)≥n). Then for every n≥1n \ge 1n≥1 and every t>0t > 0t>0, J(n,⋅;0)J(n,\cdot;0)J(n,⋅;0) is differentiable at ttt and

∂J(n,t;0)∂t=aλa−λa[J(n,t;0)−J(n−1,t;0)]−G(n,t).\frac{\partial J(n,t;0)}{\partial t} = a\lambda_a - \lambda_a\bigl[J(n,t;0) - J(n-1,t;0)\bigr] - G(n,t).∂t∂J(n,t;0)​=aλa​−λa​[J(n,t;0)−J(n−1,t;0)]−G(n,t).

In §5 this is applied with (a,λa,b,λb)=(p,λ,pi,λi)(a,\lambda_a,b,\lambda_b) = (p,\lambda,p_i,\lambda_i)(a,λa​,b,λb​)=(p,λ,pi​,λi​), giving (16): ∂Ji(n,t;0)/∂t=r−λ[Ji(n,t;0)−Ji(n−1,t;0)]−Gi(n,t)\partial J^i(n,t;0)/\partial t = r - \lambda[J^i(n,t;0) - J^i(n-1,t;0)] - G^i(n,t)∂Ji(n,t;0)/∂t=r−λ[Ji(n,t;0)−Ji(n−1,t;0)]−Gi(n,t) for i=1,2i = 1,2i=1,2. The identity converts the verification conditions of Lemma 1 into conditions on the excess F=V−Ji(⋅;0)F = V - J^i(\cdot;0)F=V−Ji(⋅;0), which is how the proof of Theorem 3 begins.

Formalization Note The identity is a calculus fact about Poisson tails and is stated for arbitrary real a,λa,ba, \lambda_a, ba,λa​,b; only λb≥0\lambda_b \ge 0λb​≥0 is needed, so that the Poisson mean λbt\lambda_b tλb​t is nonnegative. It is the same statement as (17) of the Appendix (p. 1387), stated in the generic pair (a,b)(a,b)(a,b).

Preamble
import Mathlib
import Definitions.Def_PriceSwitch_Markdown_Model
Formal statement
namespace PriceSwitch.UpOrDown

/-- Feng–Gallego (1995), §5, Eq. (16), p. 1385 (the instance `(a, la, b, lb) = (p, λ, p_i, λ_i)` of (17),
p. 1387). -/
theorem eq16_deriv_switch_now
    (a la b lb : ℝ) (hlb : 0 ≤ lb) (n : ℕ) (hn : 1 ≤ n) (t : ℝ) (ht : 0 < t) :
    HasDerivAt (fun u => PriceSwitch.Markdown.switchRevenue a la b lb n u 0)
      (a * la - la * (PriceSwitch.Markdown.switchRevenue a la b lb n t 0 -
        PriceSwitch.Markdown.switchRevenue a la b lb (n - 1) t 0) - PriceSwitch.Markdown.G a la b lb n t) t := by sorry

end PriceSwitch.UpOrDown
Source
Feng & Gallego (1995), Management Science 41(8), §5, Eq. (16), p. 1385 (from Eq. (17), Appendix, p. 1387)
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