Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Nonnegativity of the optimal solution (x^,y^)(\hat x,\hat y)(x^,y^​) of the nested-by-revenue problem (4)

Proved
NestedLogitNBR.optimal_nonneg

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

assortment-optimizationlinear-programmingnested-logitoperations-research

There are mmm nests M={1,…,m}M=\{1,\dots,m\}M={1,…,m}, each offering products N={1,…,n}N=\{1,\dots,n\}N={1,…,n}. Product jjj of nest iii has revenue rijr_{ij}rij​ and preference weight vij≥0v_{ij}\ge 0vij​≥0, and the products of every nest are ordered so that ri1≥ri2≥⋯≥rinr_{i1}\ge r_{i2}\ge\dots\ge r_{in}ri1​≥ri2​≥⋯≥rin​. Nest iii has a dissimilarity parameter γi≥0\gamma_i\ge 0γi​≥0, and v0≥0v_0\ge 0v0​≥0 is the preference weight of choosing no nest. As in Section 4 of the paper the no-purchase weights inside the nests are vi0=0v_{i0}=0vi0​=0, so Vi(S)=∑j∈SvijV_i(S)=\sum_{j\in S}v_{ij}Vi​(S)=∑j∈S​vij​ and Ri(S)=∑j∈Srijvij/Vi(S)R_i(S)=\sum_{j\in S}r_{ij}v_{ij}/V_i(S)Ri​(S)=∑j∈S​rij​vij​/Vi​(S), with Ri(∅)=0R_i(\emptyset)=0Ri​(∅)=0. The nested-by-revenue assortments are Nij={1,…,j}N_{ij}=\{1,\dots,j\}Nij​={1,…,j} for j∈N+={0,1,…,n}j\in N_+=\{0,1,\dots,n\}j∈N+​={0,1,…,n}, with Ni0=∅N_{i0}=\emptysetNi0​=∅.

Let (x^,y^)(\hat x,\hat y)(x^,y^​) be an optimal solution of problem (4) with the nested-by-revenue candidate assortments {Nij:j∈N+}\{N_{ij}:j\in N_+\}{Nij​:j∈N+​}. Then

x^≥0andy^i≥0  for all i∈M.\hat x\ge0\qquad\text{and}\qquad \hat y_i\ge0\ \ \text{for all } i\in M.x^≥0andy^​i​≥0  for all i∈M.

This is the first step of the proof of Theorem 7: the constraint for Ni0=∅N_{i0}=\emptysetNi0​=∅ gives y^i≥0\hat y_i\ge0y^​i​≥0, and these signs are what allow the factor α≥1\alpha\ge1α≥1 to be moved onto x^\hat xx^ and y^\hat yy^​.

Differences from the source:

  • reading: revenues r_ij with no stated sign → r_ij ≥ 0; reason: revenues are prices; the proof uses x̂ ≥ 0 and Σ_{k≤j} r_ik v_ik ≥ Σ_{k≤j−1} r_ik v_ik; with negative revenues the printed Theorem 7 fails on fully defined data (E2: nest 1 with γ=2, r=(−1,−2), v=(1,1), nest 2 with γ=0.01, r=(2,1), v=(1,1), v_0=1: every term of (6) is defined, (6) = 0.755, x̂ = 1, and (0.755 x̂, 0.755 ŷ) is infeasible for (3))
  • reading: V_i(S)^{γ_i} (and (Σ_j v_ij z_ij)^{γ_i} in (7), (8)) at total weight 0 → 0 when the weight is 0, Real.rpow otherwise; reason: the paper uses V_i(∅)^{γ_i}(R_i(∅) − x̂) = 0 (p. 41) and an assortment of total weight 0 is never chosen (p. 7); Real.rpow gives 0^0 = 1 at γ_i = 0, which the model allows
  • generalization: standing assumption of §4 (p. 16): γ_i > 1 for some i ∈ M → not assumed; reason: the inequality does not use it; every instance satisfying it is covered
  • encoding: v_i0 = 0 (§4); products {1,…,n}; N_ij = {1,…,j}, j ∈ N_+; S_i ⊂ N; optimal solution of (4); R_i(∅) = 0 → prefWeight without v_i0; Fin n, 0-based; nbr j; every Finset (Fin n); FeasibleNBR with least x (IsOptimalNBR); x/0 = 0; reason: Lean conventions; same instances
Preamble
import Mathlib
import Definitions.Def_NestedLogitNBR_IsOptimalNBR
Formal statement
namespace NestedLogitNBR

/-- **Nonnegativity of the optimal solution of the nested-by-revenue problem (4).**
Davis, Gallego & Topaloglu, *Assortment Optimization under Variants of the Nested Logit Model*,
revised manuscript dated June 18, 2013 (published as Operations Research 62(2), 2014,
doi:10.1287/opre.2014.1256), App. A.1 (proof of Theorem 7), p. 41, unnumbered: "this solution satisfies the second set
of constraints for nest `i` and the nested-by-revenue assortment `N_i0 = ∅`. Noting that
`V_i(∅) = 0`, it follows that `ŷ_i ≥ 0` for all `i ∈ M`. In this case, the first constraint
in problem (4) implies that `x̂ ≥ 0`."

Standing hypotheses (pp. 7, 16): `v_0 ≥ 0`, `v_ij ≥ 0`, revenues `r_ij ≥ 0` ordered
`r_i1 ≥ … ≥ r_in` in every nest, `γ_i ≥ 0`, `v_i0 = 0`.

**Formalization Note.** For `v_0 = 0` the first constraint gives no bound on `x̂`; the claim
`x̂ ≥ 0` then comes from optimality, as stated. -/
theorem optimal_nonneg {m n : ℕ} (v0 : ℝ) (r v : Fin m → Fin n → ℝ) (γ : Fin m → ℝ)
    (hv0 : 0 ≤ v0) (hv : ∀ i j, 0 ≤ v i j) (hr : ∀ i j, 0 ≤ r i j)
    (hord : ∀ i, Antitone (r i)) (hγ : ∀ i, 0 ≤ γ i)
    (x : ℝ) (y : Fin m → ℝ) (hopt : IsOptimalNBR v0 r v γ x y) :
    0 ≤ x ∧ ∀ i, 0 ≤ y i := by sorry

end NestedLogitNBR
Source
Davis, Gallego & Topaloglu, Assortment Optimization under Variants of the Nested Logit Model, revised manuscript dated June 18, 2013 (published as Operations Research 62(2), 2014, doi:10.1287/opre.2014.1256), App. A.1 (proof of Theorem 7), p. 41, unnumbered

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