Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3, p. 17 — the two-point finite differences of round i are within ½K₁Δ_i²/12 of d′ at the midpoints

Proved
SLPEPricing.Regret.lemma_3

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

dynamic-pricingfinite-differencesp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1two-point-feedback

Consider round i≥1i\ge1i≥1 of SLPE, with prices piL<piM<piHp^L_i<p^M_i<p^H_ipiL​<piM​<piH​ spaced Δi\Delta_iΔi​ apart, on a noise realisation ϵ\epsilonϵ and pair selector for which Assumption 2 holds in round iii: the selected periods a,b,b′,ca,b,b',ca,b,b′,c lie in the pLp^LpL-, pMp^MpM-, pMp^MpM- and pHp^HpH-blocks and ϵa=ϵb\epsilon_a=\epsilon_bϵa​=ϵb​, ϵb′=ϵc\epsilon_{b'}=\epsilon_cϵb′​=ϵc​. Write DL∗(piL),DM1∗(piM),DM2∗(piM),DH∗(piH)D_{L^*}(p^L_i),D_{M_1^*}(p^M_i),D_{M_2^*}(p^M_i),D_{H^*}(p^H_i)DL∗​(piL​),DM1∗​​(piM​),DM2∗​​(piM​),DH∗​(piH​) for the demands observed at these periods. Let ddd be three times continuously differentiable with ∣d(k)∣≤K1|d^{(k)}|\le K_1∣d(k)∣≤K1​ (k≤3k\le3k≤3) on [−1,2][-1,2][−1,2], and suppose [piL,piH]⊆[−1,2][p^L_i,p^H_i]\subseteq[-1,2][piL​,piH​]⊆[−1,2], μ>0\mu>0μ>0, ρ>0\rho>0ρ>0, T≥2T\ge2T≥2. Then

∣DM1∗(piM)−DL∗(piL)piM−piL−d′(piM+piL2)∣≤12K1Δi212(9)\left|\frac{D_{M_1^*}(p^M_i)-D_{L^*}(p^L_i)}{p^M_i-p^L_i}-d'\Big(\frac{p^M_i+p^L_i}2\Big)\right|\le\frac12K_1\frac{\Delta_i^2}{12}\qquad(9)​piM​−piL​DM1∗​​(piM​)−DL∗​(piL​)​−d′(2piM​+piL​​)​≤21​K1​12Δi2​​(9)

and

∣DH∗(piH)−DM2∗(piM)Δi−d′(piM+piH2)∣≤12K1Δi212.(10)\left|\frac{D_{H^*}(p^H_i)-D_{M_2^*}(p^M_i)}{\Delta_i}-d'\Big(\frac{p^M_i+p^H_i}2\Big)\right|\le\frac12K_1\frac{\Delta_i^2}{12}.\qquad(10)​Δi​DH∗​(piH​)−DM2∗​​(piM​)​−d′(2piM​+piH​​)​≤21​K1​12Δi2​​.(10)

Because each pair carries identical noise, the finite differences are free of stochastic error and approximate the demand gradient to order Δi2\Delta_i^2Δi2​; this is the source of SLPE's fast shrinking of the price range.

Formalization Note Rounds are 1-based, periods 0-based. The observations are those the policy records in round iii (roundObs), d(⋅)+ϵtd(\cdot)+\epsilon_td(⋅)+ϵt​ at round iii's block price. The paper takes K1K_1K1​ on [0,1][0,1][0,1] and the prices as feasible; since SLPE can charge prices outside [0,1][0,1][0,1], the bound is taken on [−1,2][-1,2][−1,2] and the containment [piL,piH]⊆[−1,2][p^L_i,p^H_i]\subseteq[-1,2][piL​,piH​]⊆[−1,2] is a hypothesis. The "Furthermore" sentence of the lemma (the pairs satisfy Assumption 2) is the hypothesis on round iii.

Preamble
import Mathlib
import Definitions.Def_SLPEPricing_Regret_Model
Formal statement
namespace SLPEPricing.Regret

/-- Lemma 3 (p. 17), for round `i ≥ 1` of SLPE. If the selected periods
`(a, b, b', c) = sel i` satisfy Assumption 2 in round `i` and round `i`'s price range lies in
`[-1, 2]`, where `K₁` bounds `|d^{(k)}|`, `k ≤ 3`, then the two-point finite differences
`(D_{M₁*}(p^M_i) - D_{L*}(p^L_i))/(p^M_i - p^L_i)` and `(D_{H*}(p^H_i) - D_{M₂*}(p^M_i))/Δ_i`
are within `(1/2) K₁ Δ_i²/12` of `d'` at the midpoints. -/
theorem lemma_3 (d : ℝ → ℝ) (K₁ μ ρ : ℝ) (hd : ContDiff ℝ 3 d)
    (hK₁ : ∀ k ≤ 3, ∀ p ∈ Set.Icc (-1 : ℝ) 2, |iteratedDeriv k d p| ≤ K₁)
    (hμ : 0 < μ) (hρ : 0 < ρ)
    (amax : (ℝ → ℝ) → ℝ → ℝ → ℝ) (sel : ℕ → ℕ × ℕ × ℕ × ℕ) (ε : ℕ → ℝ)
    (T : ℕ) (hT : 2 ≤ T) (i : ℕ) (hi : 1 ≤ i)
    (hA2 : Assumption2At μ ρ T sel ε i)
    (hdom : Set.Icc (pL d μ ρ amax sel ε T i) (pH d μ ρ amax sel ε T i) ⊆ Set.Icc (-1) 2) :
    |(roundObs d μ ρ amax sel ε T i (sel i).2.1 - roundObs d μ ρ amax sel ε T i (sel i).1) /
        (pM d μ ρ amax sel ε T i - pL d μ ρ amax sel ε T i) -
        deriv d ((pM d μ ρ amax sel ε T i + pL d μ ρ amax sel ε T i) / 2)| ≤
      1 / 2 * K₁ * (Delta μ i ^ 2 / 12) ∧
    |(roundObs d μ ρ amax sel ε T i (sel i).2.2.2 - roundObs d μ ρ amax sel ε T i (sel i).2.2.1) /
        Delta μ i -
        deriv d ((pM d μ ρ amax sel ε T i + pH d μ ρ amax sel ε T i) / 2)| ≤
      1 / 2 * K₁ * (Delta μ i ^ 2 / 12) := by sorry

end SLPEPricing.Regret
Source
Perakis & Singhvi, Dynamic Pricing with Unknown Non-Parametric Demand and Limited Price Changes, SSRN 3336949 (PDF of 2020-07-03), p. 17, Lemma 3, Eqs. (9)–(10) (proof App. C, pp. 39–40)
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 23, 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