Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Knapsack rounding inequality (11)

Proved
ConstrNestedLogit.Space.equation_11

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

assortment-optimizationknapsacknested-logitp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let xxx be an optimal solution of the LP relaxation of (10) at u≥0u\ge0u≥0, with at most one fractional product jgj_gjg​. Let Sg={j:xj=1}S^g=\{j:x_j=1\}Sg={j:xj​=1}. For every feasible integer assortment TTT,

∑j∈Tvij(rij−u)≤2max⁡{∑j∈Sgvij(rij−u), vijg(rijg−u)}.\sum_{j\in T}v_{ij}(r_{ij}-u)\le 2\max\left\{\sum_{j\in S^g}v_{ij}(r_{ij}-u),\ v_{ij_g}(r_{ij_g}-u)\right\}.j∈T∑​vij​(rij​−u)≤2max⎩⎨⎧​j∈Sg∑​vij​(rij​−u), vijg​​(rijg​​−u)⎭⎬⎫​.

If there is no fractional product, the second argument of the maximum is zero. Thus either a rounded LP assortment or a singleton attains a two-approximation.

Formalization Note An optional index records whether the fractional product exists.

Preamble
import Mathlib
import Definitions.Def_ConstrNestedLogit_Space_Model
Formal statement
namespace ConstrNestedLogit.Space

/-- Equation (11), with an optional fractional coordinate. -/
theorem equation_11 {ι : Type*} [Fintype ι] [DecidableEq ι] {n : ℕ}
    (I : NestedLogitVariants.LP.Instance ι n)
    (w : ι → Fin n → ℝ) (c : ι → ℝ) (i : ι)
    (hvnp : ∀ i, I.vnp i = 0) (hv : ∀ j, 0 < I.v i j)
    (hw : ∀ j, 0 < w i j) (hwc : ∀ j, w i j ≤ c i)
    (u : ℝ) (hu : 0 ≤ u) (x : Fin n → ℝ)
    (hx : spaceLPOptimal I w c i u x) (j : Option (Fin n))
    (hj : ∀ k, (0 < x k ∧ x k < 1) ↔ j = some k) :
    ∀ T : Finset (Fin n), spaceFeasible w c i T →
      assortmentUtility I i u T ≤
        2 * max (assortmentUtility I i u (rounded x))
          (match j with | none => 0 | some k => utility I i u k) := by sorry

end ConstrNestedLogit.Space
Source
Gallego & Topaloglu, Constrained Assortment Optimization for the Nested Logit Model, Management Science (2014), DOI 10.1287/mnsc.2014.1931; authors' manuscript of Sept. 11, 2013, p. 20, equation (11)
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 8, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me