Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 — verification of the optimal stopping value

Disproved
PriceSwitch.Markup.lemma1_verification

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

dynamic-pricingoptimal-stoppingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1verification-theorem

Let NNN be a Poisson counting process of positive rate λ\lambdaλ under a probability measure PPP. An item sells for aaa before an admissible stopping time, and the remaining stock then earns terminal revenue g(m,u)g(m,u)g(m,u). Suppose V(n,t)V(n,t)V(n,t) starts from the terminal value, dominates it, and has zero value at zero stock. In its continuation region V>gV>gV>g, its time derivative equals the revenue rate less the expected loss from a sale; on the stopping boundary V=gV=gV=g, the corresponding derivative inequality holds:

∂tV(n,t)=aλ−λ[V(n,t)−V(n−1,t)](V>g),∂tV(n,t)≥aλ−λ[V(n,t)−V(n−1,t)](V=g).\partial_tV(n,t)=a\lambda-\lambda[V(n,t)-V(n-1,t)]\quad(V>g),\qquad \partial_tV(n,t)\ge a\lambda-\lambda[V(n,t)-V(n-1,t)]\quad(V=g).∂t​V(n,t)=aλ−λ[V(n,t)−V(n−1,t)](V>g),∂t​V(n,t)≥aλ−λ[V(n,t)−V(n−1,t)](V=g).

Then V(n,t)V(n,t)V(n,t) equals the supremum of expected revenue over admissible switching times. This is the verification result used for the threshold policy.

Formalization Note The printed lemma omits conditions its proof uses: V(n,0)=g(n,0)V(n,0)=g(n,0)V(n,0)=g(n,0), V(0,t)=g(0,t)=0V(0,t)=g(0,t)=0V(0,t)=g(0,t)=0, and V≥gV\ge gV≥g. Local Lipschitz regularity replaces continuity and almost-everywhere differentiability so the integral decomposition is valid. The terminal function is continuous on nonnegative times. The derivative clauses apply at every positive time where a derivative exists. IsProbabilityMeasure P is written explicitly although the exponential interarrival law entails it.

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

open MeasureTheory QueueingFundamentals.Foundations

variable {Ω : Type*} [MeasurableSpace Ω]

/-- Feng–Gallego (1995), Lemma 1, p. 1378, with the boundary, obstacle and regularity
conditions required by its proof. -/
theorem lemma1_verification
    (P : Measure Ω) [IsProbabilityMeasure P] (T : ℕ → Ω → ℝ) (a la : ℝ) (hla : 0 < la)
    (hT : IsExpInterarrivals P la T)
    (g : ℕ → ℝ → ℝ) (hg0 : ∀ u, 0 ≤ u → g 0 u = 0) (hgc : ∀ m, ContinuousOn (g m) (Set.Ici 0))
    (V : ℕ → ℝ → ℝ)
    (hV0 : ∀ u, 0 ≤ u → V 0 u = 0)
    (hVinit : ∀ n, 1 ≤ n → V n 0 = g n 0)
    (hVge : ∀ n, 1 ≤ n → ∀ u, 0 ≤ u → g n u ≤ V n u)
    (hVlip : ∀ n, 1 ≤ n → ∀ R : ℝ, ∃ K, LipschitzOnWith K (V n) (Set.Icc 0 R))
    (h3 : ∀ n, 1 ≤ n → ∀ u, 0 < u → g n u < V n u → ∀ d, HasDerivAt (V n) d u →
      d = a * la - la * (V n u - V (n - 1) u))
    (h4 : ∀ n, 1 ≤ n → ∀ u, 0 < u → V n u = g n u → ∀ d, HasDerivAt (V n) d u →
      a * la - la * (V n u - V (n - 1) u) ≤ d) :
    ∀ n t, 0 ≤ t → V n t = PriceSwitch.Markdown.stopValue P T a g n t := by sorry

end PriceSwitch.Markup
Source
Feng & Gallego (1995), Management Science 41(8), Lemma 1, p. 1378 and proof pp. 1378–1379, https://doi.org/10.1287/mnsc.41.8.1371
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