Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(43), proof of Theorem 2, p. 45 — REV[φ] − REV[S] rewritten as a sum over lists ℓ of p(ℓ) ∑_{k<κ^S(ℓ)} r^S(ℓ_{1:k}) times the stopping indicator

Proved
AssortOpt.HMF.eq_43

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

adjusted-pricesassortment-optimizationoptimal-stoppingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-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 a set of items on which ϕ\phiϕ always stops (ϕj≡1\phi_j \equiv 1ϕj​≡1 for j∈Sj \in Sj∈S). Let κS(ℓ)\kappa^S(\ell)κS(ℓ) be the minimum kkk with ℓk∈S\ell_k \in Sℓk​∈S, and κS(ℓ)=∣ℓ∣+1\kappa^S(\ell) = |\ell| + 1κS(ℓ)=∣ℓ∣+1 if ℓ∩S=∅\ell \cap S = \emptysetℓ∩S=∅. Then

REV[ϕ]−REV[S]=∑ρ:ρ∩S=∅rS(ρ)(∑ℓ:ℓ1:∣ρ∣=ρp(ℓ))ϕρend(ρpre)∏k=1∣ρ∣−1(1−ϕρk(ρ1:k−1))=∑ℓ∈Lp(ℓ)∑k<κS(ℓ)rS(ℓ1:k) ϕℓk(ℓ1:k−1)∏k′=1k−1(1−ϕℓk′(ℓ1:k′−1)).(43)\begin{aligned}\mathsf{REV}[\phi] - \mathsf{REV}[S] &= \sum_{\rho : \rho \cap S = \emptyset} r^S(\rho) \Big(\sum_{\ell : \ell_{1:|\rho|} = \rho} p(\ell)\Big) \phi_{\rho_{\mathrm{end}}}(\rho_{\mathrm{pre}}) \prod_{k=1}^{|\rho|-1} \big(1 - \phi_{\rho_k}(\rho_{1:k-1})\big) \\ &= \sum_{\ell \in \mathcal L} p(\ell) \sum_{k < \kappa^S(\ell)} r^S(\ell_{1:k})\, \phi_{\ell_k}(\ell_{1:k-1}) \prod_{k'=1}^{k-1} \big(1 - \phi_{\ell_{k'}}(\ell_{1:k'-1})\big). \end{aligned} \qquad (43)REV[ϕ]−REV[S]​=ρ:ρ∩S=∅∑​rS(ρ)(ℓ:ℓ1:∣ρ∣​=ρ∑​p(ℓ))ϕρend​​(ρpre​)k=1∏∣ρ∣−1​(1−ϕρk​​(ρ1:k−1​))=ℓ∈L∑​p(ℓ)k<κS(ℓ)∑​rS(ℓ1:k​)ϕℓk​​(ℓ1:k−1​)k′=1∏k−1​(1−ϕℓk′​​(ℓ1:k′−1​)).​(43)

The identity re-expresses Lemma 1 path by path: along each list, ϕ\phiϕ's advantage over SSS is the adjusted price of the position where it stops before reaching SSS. The proof of Theorem 2 uses it to compare the revenue of a policy before and after one stopping decision is switched on.

Formalization Note κS(ℓ)−1\kappa^S(\ell) - 1κS(ℓ)−1 is the 0-based ℓ.findIdx (· ∈ S) (which equals ∣ℓ∣|\ell|∣ℓ∣ when ℓ∩S=∅\ell \cap S = \emptysetℓ∩S=∅), so the inner sum runs over k ∈ range (findIdx) with prefix ℓ.take (k+1). The factor ϕℓk(ℓ1:k−1)∏k′<k(1−ϕℓk′(ℓ1:k′−1))\phi_{\ell_k}(\ell_{1:k-1}) \prod_{k' < k}(1 - \phi_{\ell_{k'}}(\ell_{1:k'-1}))ϕℓk​​(ℓ1:k−1​)∏k′<k​(1−ϕℓk′​​(ℓ1:k′−1​)) is the bracket of (10) at ρ=ℓ1:k\rho = \ell_{1:k}ρ=ℓ1:k​, stopInd φ (ℓ.take (k+1)). The outer sum on the first line runs over the nonempty realizable prefixes disjoint from SSS.

Differences from the source:

  • generalization: SSS = the set of jjj for which ϕj\phi_jϕj​ is the all-1 function (proof of Theorem 2, p. 43) → any SSS contained in that set; reason: the identity holds for every such SSS, and the page's SSS is one of them.
  • 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: κS(ℓ)\kappa^S(\ell)κS(ℓ) and k<κS(ℓ)k < \kappa^S(\ell)k<κS(ℓ) (1-based) → ℓ.findIdx (· ∈ S) and 0-based kkk with prefix ℓ.take (k+1); reason: 0-based indexing.
  • 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 zero weight, and rSr^SrS is defined only for realizable prefixes.
Preamble
import Mathlib
import Definitions.Def_AssortOpt_HMF_Setting
Formal statement
namespace AssortOpt.HMF

theorem eq_43 {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 ρ * (∑ ℓ ∈ D.supp with ρ <+: ℓ, D.p ℓ) * stopInd φ ρ ∧
    revPolicy D r φ - revAssort D r S =
      ∑ ℓ ∈ D.supp, D.p ℓ * ∑ k ∈ Finset.range (ℓ.findIdx (fun i => decide (i ∈ S))),
        adjPrice D r S (ℓ.take (k + 1)) * stopInd φ (ℓ.take (k + 1)) := by sorry

end AssortOpt.HMF
Source
Ma, When is Assortment Optimization Optimal?, arXiv:2105.10433v5, p. 45, display (43) in the proof of Theorem 2 (§E.2)
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