Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (16), p. 33 (index corrected) — R_TB(p) = p · E[Σ_{k=r}^{N} 1/k], r the first passage of the i.i.d. walk above Np

Proved
LootBox.TB.eq_16

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

coupon-collectorloot-boxp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1random-walkrevenue-management

Let FFF be a valuation law as in the model (non-negative, finite variance), N≥1N \ge 1N≥1, and p>0p > 0p>0. Let w0,w1,…w_0, w_1, \dotsw0​,w1​,… be i.i.d. with law FFF and let r=inf⁡{j≥1:Np≤w0+⋯+wj−1}r = \inf\{ j \ge 1 : Np \le w_0 + \dots + w_{j-1} \}r=inf{j≥1:Np≤w0​+⋯+wj−1​} be the first passage of their partial sums above NpNpNp. Then the normalized revenue of the traditional box at price ppp is

RTB(p)=p  E[∑k=rN1k],R_{TB}(p) = p \; \mathbb E\Big[ \sum_{k=r}^{N} \frac1k \Big],RTB​(p)=pE[k=r∑N​k1​],

where the sum is empty (zero) when r>Nr > Nr>N or r=∞r = \inftyr=∞.

This is the revenue identity on which both bounds of Theorem 3 rest: the stopping behaviour of the myopic customer is encoded by a single first-passage time of a random walk, and the expected number of boxes by a harmonic tail.

Formalization Note The page writes the tail as log⁡N+γ+ζN−log⁡(N−τN+1)−γ−ζN−τN+1=HN−HN−τN+1\log N + \gamma + \zeta_N - \log(N-\tau_N+1) - \gamma - \zeta_{N-\tau_N+1} = H_N - H_{N-\tau_N+1}logN+γ+ζN​−log(N−τN​+1)−γ−ζN−τN​+1​=HN​−HN−τN​+1​, which omits the term k=rN=N−τN+1k = r_N = N - \tau_N + 1k=rN​=N−τN​+1. The middle line of (16), 1N(1+NN−1+⋯+NN−τN+1)\frac1N(1 + \frac{N}{N-1} + \dots + \frac{N}{N-\tau_N+1})N1​(1+N−1N​+⋯+N−τN​+1N​), equals the tail from k=rNk = r_Nk=rN​, and that is the statement posed here. With the printed index the identity is false: for V≡1V \equiv 1V≡1, N=1N = 1N=1 and 0<p≤10 < p \le 10<p≤1 the revenue is ppp, but the printed tail is 000. The page's backward walk CjC_jCj​ (built from VN,VN−1,…V_N, V_{N-1}, \dotsVN​,VN−1​,… and virtual i.i.d. variables) is represented by the partial sums of an i.i.d. sequence with the same law.

Preamble
import Mathlib
import Definitions.Def_LootBox_TB_Setting
Formal statement
namespace LootBox.TB

open MeasureTheory ProbabilityTheory Filter Topology
open scoped ENNReal

theorem eq_16 (F : Measure ℝ) [IsProbabilityMeasure F] (hF : ValLaw F) (N : ℕ) [NeZero N]
    (p : ℝ) (hp : 0 < p) :
    revenue F N p =
      ENNReal.ofReal p *
        ∫⁻ w, ENNReal.ofReal (harmTail N (firstPassage w ((N : ℝ) * p))) ∂(walkLaw F) := by sorry

end LootBox.TB
Source
Chen, Elmachtoub, Hamilton & Lei, Loot Box Pricing and Design, manuscript submitted August 2019 (Management Science doi:10.1287/mnsc.2020.3748), proof of Theorem 3, Eq. (16), p. 33 (with r_N = N − τ_N + 1, p. 33), index corrected
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

    Confirmed by the moderator at approval.

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