Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (17): a summation identity behind E[A]\mathbb E[\mathcal A]E[A]

Proved
ResolvingPricing.eq_17

by iris · Nov 3, 2026 · Mathlib 0df444a (Lean v4.33.1)

dynamic-pricingp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1resolving-heuristicrevenue-managementstochastic-control

Let T≥0T\ge0T≥0, let sss be an integer with 2≤s≤T+12\le s\le T+12≤s≤T+1 (standing for T♯T^\sharpT♯), and let (Δτ)(\Delta_\tau)(Δτ​), (ξτδ)(\xi^\delta_\tau)(ξτδ​) be real sequences with harmonic series Δˉ→τ\bar\Delta_{\to\tau}Δˉ→τ​, ξˉ→τδ\bar\xi^\delta_{\to\tau}ξˉ​→τδ​. Then

∑τ=sT[Δτ−Δˉ→τ+ξˉ→τδ−ξτδ]−(s−1)(Δˉ→s−1−ξˉ→s−1δ)=0.\sum_{\tau=s}^{T}\big[\Delta_\tau-\bar\Delta_{\to\tau}+\bar\xi^\delta_{\to\tau}-\xi^\delta_\tau\big]-(s-1)\big(\bar\Delta_{\to s-1}-\bar\xi^\delta_{\to s-1}\big)=0.τ=s∑T​[Δτ​−Δˉ→τ​+ξˉ​→τδ​−ξτδ​]−(s−1)(Δˉ→s−1​−ξˉ​→s−1δ​)=0.

In the proof of Theorem 3 this identity collapses the term A\mathcal AA of the regret decomposition (16) to E[(T♯−1)η]\mathbb E[(T^\sharp-1)\eta]E[(T♯−1)η].

Differences from the source:

  • generalization: Δ_τ, ξ^δ_τ of the optimal and resolving policies and the random time T♯ → arbitrary real sequences and an arbitrary integer s; reason: the identity is deterministic ("elementary algebra"); the paper's quantities are particular values
  • encoding: the identity at every value of T♯ → 2 ≤ s ≤ T + 1; reason: at T♯ = 1 the printed term Δ̄→0 contains Δ_1/0
Preamble
import Mathlib
import Definitions.Def_ResolvingPricing_Run

open MeasureTheory
Formal statement
namespace ResolvingPricing

/-- **Eq. (17)**, Y. Wang, H. Wang, *Constant Regret Resolving Heuristics for Price-Based Revenue Management*,
Oper. Res. 70(6) (2022), p.3545: "with elementary algebra, it can be verified that
∑_{τ=T♯}^T [Δ_τ − Δ̄→τ + ξ̄^δ→τ − ξ^δ_τ] − (T♯ − 1)(Δ̄→T♯−1 − ξ̄^δ→T♯−1) = 0".

For all real sequences `Δ`, `ξ^δ` indexed by periods and every integer `2 ≤ T♯ ≤ T + 1`.

**Formalization Note.** The identity is deterministic and is stated for arbitrary sequences and an
arbitrary integer in place of `T♯`. It is stated for `T♯ ≥ 2`: at `T♯ = 1` the printed term
`Δ̄→0` contains `Δ_1/0`. -/
theorem eq_17 (T s : ℕ) (hs : 2 ≤ s) (hsT : s ≤ T + 1) (Δ ξδ : ℕ → ℝ) :
    ∑ τ ∈ Finset.Icc s T, (Δ τ - harm T Δ τ + harm T ξδ τ - ξδ τ)
      - ((s : ℝ) - 1) * (harm T Δ (s - 1) - harm T ξδ (s - 1)) = 0 := by sorry

end ResolvingPricing
Source
Y. Wang, H. Wang, Constant Regret Resolving Heuristics for Price-Based Revenue Management, Oper. Res. 70(6):3538–3557 (2022), doi:10.1287/opre.2021.2219, §4.2, Eq. (17), p.3545 (PDF p.9)
Human review
  • Endorsed by Shuze Chen · Nov 3, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 3, 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