Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (4), p. 17 — R₂(C) as a ratio of quadratic forms in x^C with θij and r̂ij

Proved
MultiPurchase.Hardness.eq_4

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

assortment-optimizationchoice-modelsmulti-purchasep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Consider a BundleMVL-2 instance with products W={1,…,n}W=\{1,\dots,n\}W={1,…,n}, revenues rir_iri​, weights V{i}V_{\{i\}}V{i}​, V{i,j}V_{\{i,j\}}V{i,j}​ and no-purchase weight v0v_0v0​. For C⊆WC\subseteq WC⊆W let xiC=1x^C_i=1xiC​=1 if i∈Ci\in Ci∈C and 000 otherwise, and set

θij={V{i,j}/2i≠jV{i}i=j,r^ij={ri+rji≠jrii=j.\theta_{ij}=\begin{cases}V_{\{i,j\}}/2 & i\ne j\\ V_{\{i\}} & i=j\end{cases},\qquad \hat r_{ij}=\begin{cases}r_i+r_j & i\ne j\\ r_i & i=j.\end{cases}θij​={V{i,j}​/2V{i}​​i=ji=j​,r^ij​={ri​+rj​ri​​i=ji=j.​

Then the expected revenue of CCC is

R2(C)=∑i∈W∑j∈Wr^ijθijxiCxjCv0+∑i∈W∑j∈WθijxiCxjC.R_2(C)=\frac{\sum_{i\in W}\sum_{j\in W}\hat r_{ij}\theta_{ij}x^C_ix^C_j}{v_0+\sum_{i\in W}\sum_{j\in W}\theta_{ij}x^C_ix^C_j}.R2​(C)=v0​+∑i∈W​∑j∈W​θij​xiC​xjC​∑i∈W​∑j∈W​r^ij​θij​xiC​xjC​​.

This rewrites the revenue as a ratio of two quadratic forms in the indicator vector of CCC, the form used in the Compare-Step and in the hardness proof.

Formalization Note The identity is stated for every instance, without the well-formedness conditions: it is an algebraic identity between two expressions for the same numerator and denominator (Lean's division by zero gives both sides the same value).

Preamble
import Mathlib
import Definitions.Def_CookPvsNP_defs
import Definitions.Def_ProjSchedTW_Complexity_Encoding
import Definitions.Def_MultiPurchase_Hardness_Model
Formal statement
namespace MultiPurchase.Hardness

/-- Eq. (4), p. 17, second form: with `x^C_i` the indicator of `C`, `θᵢᵢ = V{i}`,
`θᵢⱼ = V{i,j}/2` and `r̂ᵢᵢ = rᵢ`, `r̂ᵢⱼ = rᵢ + rⱼ` (`i ≠ j`),
`R₂(C) = ∑_{i∈W} ∑_{j∈W} r̂ᵢⱼ θᵢⱼ x^C_i x^C_j / (v0 + ∑_{i∈W} ∑_{j∈W} θᵢⱼ x^C_i x^C_j)`. -/
theorem eq_4 (I : Instance) (C : Finset (Fin I.n)) :
    I.R2 C = (∑ i, ∑ j, I.rhat i j * I.theta i j * xC C i * xC C j) /
      (I.v0 + ∑ i, ∑ j, I.theta i j * xC C i * xC C j) := by sorry

end MultiPurchase.Hardness
Source
Tulabandhula, Sinha, Karra & Patidar, Multi-Purchase Behavior: Modeling, Estimation and Optimization, arXiv:2006.08055v2, p. 17 (PDF 17), eq. (4), second equality
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

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