Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(26), p. 59 — the joint no-click/click term is at most the marginal benefit of π∗'s r-th product placed after [π̃]ᵣ₋₁

Proved
RankAssort.SimpleLearn.eq_26

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

approximation-algorithmclick-modelp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1product-ranking

Let types be drawn from D\mathcal DD with a measurable type map, let π~\tilde\piπ~ and π∗\pi^*π∗ be rankings of the nnn products, fix a rank r∈[n]r \in [n]r∈[n] and let i∗=π∗−1(r)i^* = \pi^{*-1}(r)i∗=π∗−1(r). Then

E[Cˉ(r−1,π~) Cˉ(r−1,π∗) Ci∗(π∗)]≤E[Cˉ(r−1,π~) Ci∗([π~]r−1∪i∗)],\mathbb E\bigl[\bar C(r-1,\tilde\pi)\,\bar C(r-1,\pi^*)\,C_{i^*}(\pi^*)\bigr] \le \mathbb E\bigl[\bar C(r-1,\tilde\pi)\,C_{i^*}([\tilde\pi]_{r-1}\cup i^*)\bigr],E[Cˉ(r−1,π~)Cˉ(r−1,π∗)Ci∗​(π∗)]≤E[Cˉ(r−1,π~)Ci∗​([π~]r−1​∪i∗)],

where [π~]r−1∪i∗[\tilde\pi]_{r-1}\cup i^*[π~]r−1​∪i∗ is the prefix of the first r−1r-1r−1 products of π~\tilde\piπ~ followed by i∗i^*i∗ at rank rrr. When i∗i^*i∗ already appears among the first r−1r-1r−1 products of π~\tilde\piπ~, both sides are 000 (footnote 17).

This is the argument of Lemma 1 applied to the learned ranking π~\tilde\piπ~; combined with (23) it bounds each term of (25) by the corresponding term of (6) plus 2ϵ/n2\epsilon/n2ϵ/n.

Formalization Note Ranks are 0-based in Lean: the paper's rank rrr is index r−1r-1r−1, a ranking is a duplicate-free list of the nnn products (Fin n), and π−1(j)\pi^{-1}(j)π−1(j) is the list entry at index j−1j-1j−1. The left side is jointTerm D τ piT piStar r, the right side firstClickTerm D τ (piT.take r ++ [iStar]) r with 0-based rrr; both are computed under the coupled first-click law. The statement holds for every ranking π~\tilde\piπ~, not only for the output of Algorithm 2.

Differences from the source:

  • generalization: π̃ the ranking returned by Algorithm 2 satisfying (24), π∗ the optimal ranking → π̃ and π∗ any two rankings; reason: the argument uses neither property; the paper's pair is one instance
  • encoding: i∗ = π∗⁻¹(r) → iStar with piStar[r]? = some iStar (0-based r); reason: the same product
  • encoding: the C̄(r − 1, ·) C(·) expectations of the paper, on the customer's click realisation → computed under the coupled first-click law (one Bernoulli(pᵢ) like-coin per product, p. 53); reason: the paper evaluates these terms through this coupling (proof of Lemma 1, p. 53); milestone first_click_identity ties the coupled law to the sequential click law with bias
  • encoding: expectation over the type (p, f, k) ∼ D, a random variable → integral over θ ∼ D of a function of τ θ, with TypeMeasurable τ (every coordinate of the type map measurable); reason: the expectations are undefined otherwise (Lean would return the junk value 0); the integrands lie in [0, 1], so measurability is all that is needed
  • encoding: ranks 1..n, a ranking is a permutation π of [n], π⁻¹(j) the product at rank j → 0-based indices, a ranking is a duplicate-free List (Fin n) of length n, π⁻¹(j) is the entry at index j − 1; reason: Lean convention; the same rankings
Preamble
import Mathlib
import Definitions.Def_RankAssort_SimpleLearn_Model
Formal statement
namespace RankAssort.SimpleLearn
open MeasureTheory
theorem eq_26 {n : ℕ} {Θ : Type*} [MeasurableSpace Θ] (D : Measure Θ) [IsProbabilityMeasure D]
    (τ : Θ → CustomerType n) (hτ : TypeMeasurable τ)
    (piT piStar : List (Fin n)) (hT : piT.Nodup) (hTlen : piT.length = n)
    (hs : piStar.Nodup) (hslen : piStar.length = n)
    (r : ℕ) (hr : r < n) (iStar : Fin n) (hiStar : piStar[r]? = some iStar) :
    jointTerm D τ piT piStar r ≤ firstClickTerm D τ (piT.take r ++ [iStar]) r := by sorry
end RankAssort.SimpleLearn
Source
Ferreira, Parthasarathy, Sekar, Learning to Rank an Assortment of Products, SSRN 3395992 author manuscript, p. 59, (26), proof of Theorem 3, with footnote 17
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