Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1, third part of (23) — carried-in inventory makes yt≠y~iy_t\ne\tilde y_iyt​=y~​i​ in only O(1)O(1)O(1) expected periods per stage

Proved
LimitedPriceChanges.AlgorithmI.stage_carryover

by tianyipeng · Nov 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

censored-demanddynamic-pricinginventorylimited-price-changesregret

Consider Algorithm-I with m≥1m\ge1m≥1 price changes on the censored pricing–inventory model of §2–§3, under the standing hypotheses at the true parameter zzz (E[D(p,z)]>0\mathbb E[D(p,z)]>0E[D(p,z)]>0, Assumption A, every optimal order-up-to level exceeds dld^ldl, Definition 1, Assumption 1) and with valid inputs and selections. In stage i∈{1,…,m+1}i\in\{1,\dots,m+1\}i∈{1,…,m+1} the algorithm fixes the price p^i\hat p_ip^​i​ and the target y~i\tilde y_iy~​i​ (Step 1), and in each period ttt of the stage orders up to

yt=max⁡{xt,y~i},y_t=\max\{x_t,\tilde y_i\},yt​=max{xt​,y~​i​},

where xtx_txt​ is the inventory carried into period ttt. In particular, when the inventory carried over from stage i−1i-1i−1 exceeds the new target y~i\tilde y_iy~​i​, the order-up-to level differs from y~i\tilde y_iy~​i​ until that inventory has been sold down.

There is a constant K>0K>0K>0 such that, for all large enough TTT and every stage i∈{1,…,m+1}i\in\{1,\dots,m+1\}i∈{1,…,m+1},

E[#{t∈stage i: yt≠y~i}]≤K.\mathbb E\Big[\#\{t\in\text{stage } i:\ y_t\ne\tilde y_i\}\Big]\le K .E[#{t∈stage i: yt​=y~​i​}]≤K.

This is the inventory carry-over ingredient of the third part of the regret decomposition (23) in the proof of Theorem 1 (pp. 24–25): together with (26) it controls the expected number of periods of stages i≥2i\ge2i≥2 in which the implemented level yty_tyt​ differs from the plug-in level y^i\hat y_iy^​i​.

Formalization Note The expectation is the sum over demand paths d∈NTd\in\mathbb N^Td∈NT weighted by the path law ∏tf(dt;pt,z)\prod_t f(d_t;p_t,z)∏t​f(dt​;pt​,z) of Algorithm-I (Alg.expect), and the count is ∑s<T1{stage(s)=i, ys≠y~i}\sum_{s<T}\mathbf 1\{\mathrm{stage}(s)=i,\ y_s\ne\tilde y_i\}∑s<T​1{stage(s)=i, ys​=y~​i​} in [0,∞][0,\infty][0,∞]. Stages are 1-based and periods 0-based, as in the definition LimitedPriceChanges_AlgorithmI_Algorithm.

Preamble
import Mathlib
import Definitions.Def_LimitedPriceChanges_AlgorithmI_Algorithm
Formal statement
namespace LimitedPriceChanges.AlgorithmI

/-- **Carried-in inventory is depleted in `O(1)` expected periods** (used in the third part of
(23), proof of Theorem 1, pp. 24–25). There is a constant `K > 0` such that, for `T` large
enough and every stage `i ∈ {1, …, m + 1}`, the expected number of periods `s` of stage `i` whose
order-up-to level `y_s = max{x_s, ỹᵢ}` differs from the stage target `ỹᵢ` (i.e. the carried
inventory `x_s` exceeds `ỹᵢ`) is at most `K`. -/
theorem stage_carryover (S : Model) (A : Alg S) (z : ℝ) (hS : S.Standing A.pstar z)
    (hA : A.Valid) :
    ∃ K : ℝ, 0 < K ∧ ∃ T₀ : ℕ, ∀ T ≥ T₀, ∀ i ∈ Finset.Icc 1 (A.m + 1),
      A.expect z T (fun d => ∑ s : Fin T,
          if A.stageOf T s = i ∧ A.level T s d ≠ A.ytilde T i d then (1 : ENNReal) else 0) ≤
        ENNReal.ofReal K := by sorry

end LimitedPriceChanges.AlgorithmI
Source
Chen, Chao and Wang, Data-Based Dynamic Pricing and Inventory Control with Censored Demand and Limited Price Changes, SSRN 2700747 (revision of 2020-02-10), proof of Theorem 1, pp. 24–25 (third part of the decomposition (23)); Algorithm-I Step 1, p. 9 (y_t = max{x_t, ỹ_i})

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