Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma A.1, p. 32 — the MGF of an epoch's purchase count of i is 1/(1 − vᵢ(e^θ − 1))

Proved
MNLBandit.UCB.lemma_A_1

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

geometric-distributionmnl-banditmoment-generating-functionp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let v1,…,vN≥0v_1,\dots,v_N\ge 0v1​,…,vN​≥0 be MNL parameters (with v0=1v_0=1v0​=1), let SSS be an assortment offered repeatedly until the first no-purchase, and let v^i\hat v_iv^i​ be the number of purchases of a product i∈Si\in Si∈S in this epoch. For every real θ\thetaθ with vi(eθ−1)<1v_i(e^\theta-1)<1vi​(eθ−1)<1,

E[eθv^i]=11−vi(eθ−1).\mathbb E\big[e^{\theta\hat v_i}\big]=\frac{1}{1-v_i(e^\theta-1)}.E[eθv^i​]=1−vi​(eθ−1)1​.

In particular the moment generating function of v^i\hat v_iv^i​ depends only on viv_ivi​ and not on the other products of SSS. This is the starting point of the paper's argument that the per-epoch estimates of viv_ivi​ are i.i.d. even though the offered assortments are chosen adaptively.

Formalization Note. The paper conditions on SℓS_\ellSℓ​; here SSS is fixed and the epoch is modelled by the i.i.d. law epochLaw v S. The expectation is a lower Lebesgue integral of nonnegative values, so it is a genuine (possibly infinite) value. The paper prints θ≤log⁡1+vivi\theta\le\log\frac{1+v_i}{v_i}θ≤logvi​1+vi​​; at the endpoint the right-hand side is 1/01/01/0 and the left-hand side is +∞+\infty+∞, and the proof's (A.3) uses θ<log⁡1+vivi\theta<\log\frac{1+v_i}{v_i}θ<logvi​1+vi​​. The condition vi(eθ−1)<1v_i(e^\theta-1)<1vi​(eθ−1)<1 is that strict range, and it also covers vi=0v_i=0vi​=0 (every θ\thetaθ). The hypothesis i∈Si\in Si∈S is implicit on the page (the proof uses qi=vi/∑j∈Svjq_i=v_i/\sum_{j\in S}v_jqi​=vi​/∑j∈S​vj​).

Preamble
import Mathlib
import Definitions.Def_MNLBandit_UCB_Setting
import Definitions.Def_MNLBandit_UCB_EpochLaw
Formal statement
namespace MNLBandit.UCB

open MeasureTheory

theorem lemma_A_1 {N : ℕ} (v : Fin N → ℝ) (hv : ∀ j, 0 ≤ v j) (S : Finset (Fin N))
    (i : Fin N) (hi : i ∈ S) (θ : ℝ) (hθ : v i * (Real.exp θ - 1) < 1) :
    ∫⁻ ω, ENNReal.ofReal (Real.exp (θ * (epochCount i ω : ℝ))) ∂(epochLaw v S) =
      ENNReal.ofReal (1 / (1 - v i * (Real.exp θ - 1))) := by sorry

end MNLBandit.UCB
Source
Agrawal, Avadhanula, Goyal, Zeevi, MNL-Bandit: A Dynamic Learning Approach to Assortment Selection, arXiv:1706.03880v2, p. 32, Lemma A.1 (proof (A.1)–(A.3), p. 33)
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