Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1, p. 19 (corrected: S ⊆ {j : φ_j ≡ 1}) — REV[φ] − REV[S] is the sum over S-disjoint prefixes of r^S(ρ) Pr[ρ] times the stopping indicator

Proved
AssortOpt.HMF.lemma_1

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

adjusted-pricesassortment-optimizationoptimal-stoppingp2o-batch-pfp2ap2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let L,p\mathcal L, pL,p be a list distribution with prices rj≥0r_j \ge 0rj​≥0, let ϕ\phiϕ be a monotone stopping policy, and let SSS be an assortment such that ϕj\phi_jϕj​ is the all-1 function for every j∈Sj \in Sj∈S. Then

REV[ϕ]−REV[S]=∑ρ:ρ∩S=∅rS(ρ)Pr⁡[ρ] ϕρend(ρpre)∏k=1∣ρ∣−1(1−ϕρk(ρ1:k−1)),(14)\mathsf{REV}[\phi] - \mathsf{REV}[S] = \sum_{\rho : \rho \cap S = \emptyset} r^S(\rho) \Pr[\rho]\, \phi_{\rho_{\mathrm{end}}}(\rho_{\mathrm{pre}}) \prod_{k=1}^{|\rho|-1} \big(1 - \phi_{\rho_k}(\rho_{1:k-1})\big), \qquad (14)REV[ϕ]−REV[S]=ρ:ρ∩S=∅∑​rS(ρ)Pr[ρ]ϕρend​​(ρpre​)k=1∏∣ρ∣−1​(1−ϕρk​​(ρ1:k−1​)),(14)

the sum over nonempty realizable prefixes disjoint from SSS, where rS(ρ)r^S(\rho)rS(ρ) is the SSS-adjusted price (13).

The product term is 111 exactly when ϕ\phiϕ stops on ρ\rhoρ after not stopping before, so the lemma says that ϕ\phiϕ's advantage over SSS is the expected SSS-adjusted price of the prefix it stops on. It is the identity that turns the comparison of a policy with an assortment into a sign question about adjusted prices.

Formalization Note The sum runs over prefixes D (the nonempty realizable prefixes) filtered by disjointness from SSS; unrealizable prefixes have Pr⁡[ρ]=0\Pr[\rho] = 0Pr[ρ]=0 on the page and contribute nothing.

Differences from the source:

  • correction: "for any monotone stopping policy ϕ\phiϕ and assortment SSS" → additionally ϕj(H)=1\phi_j(H) = 1ϕj​(H)=1 for every j∈Sj \in Sj∈S and H∌jH \not\ni jH∋j; reason: false as printed: MNL with n=3n = 3n=3 and all weights 111, r=(1,2,3)r = (1,2,3)r=(1,2,3), ϕ≡0\phi \equiv 0ϕ≡0 (monotone), S={1}S = \{1\}S={1} gives REV[ϕ]−REV[S]=−1/2\mathsf{REV}[\phi] - \mathsf{REV}[S] = -1/2REV[ϕ]−REV[S]=−1/2 while the right side of (14) is 000. The proof (p. 40) uses that "ϕ\phiϕ would have stopped on the first intersection with SSS", which holds when every ϕj\phi_jϕj​, j∈Sj \in Sj∈S, is the all-1 function, the choice of SSS in the proof of Theorem 2 (p. 43).
  • encoding: items {1,…,n}\{1,\dots,n\}{1,…,n}, lists, support L\mathcal LL with weights ppp → Fin n (0-based), ListDist (finite support of Nodup lists, p>0p > 0p>0 on L\mathcal LL, ∑p=1\sum p = 1∑p=1); reason: same instances.
  • encoding: the sum over prefixes ρ\rhoρ with ρ∩S=∅\rho \cap S = \emptysetρ∩S=∅ → the sum over nonempty realizable prefixes disjoint from SSS; reason: other prefixes have Pr⁡[ρ]=0\Pr[\rho] = 0Pr[ρ]=0, and rS(ρ)r^S(\rho)rS(ρ) is defined only for realizable ρ\rhoρ (Definition 12).
Preamble
import Mathlib
import Definitions.Def_AssortOpt_HMF_Setting
Formal statement
namespace AssortOpt.HMF

theorem lemma_1 {n : ℕ} (D : ListDist n) (r : Fin n → ℝ) (hr : ∀ j, 0 ≤ r j)
    (φ : Policy n) (hφ : IsMonotonePolicy φ) (S : Finset (Fin n))
    (hS : ∀ j ∈ S, ∀ H : Finset (Fin n), j ∉ H → φ j H = true) :
    revPolicy D r φ - revAssort D r S =
      ∑ ρ ∈ (prefixes D).filter (fun ρ => Disjoint ρ.toFinset S),
        adjPrice D r S ρ * prefProb D ρ * stopInd φ ρ := by sorry

end AssortOpt.HMF
Source
Ma, When is Assortment Optimization Optimal?, arXiv:2105.10433v5, p. 19, Lemma 1 (14); proof on p. 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