Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Equidistant locations, independent price-difference rows and common virtual-cost range

Definition
ProcureAssort_Hotelling_Supplement_CommonHotelling

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

linear-pricingmechanism-designp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1procurement

Equidistant Hotelling suppliers are located at ℓi=(i−1)/(n−1)\ell_i=(i-1)/(n-1)ℓi​=(i−1)/(n−1), with n≥2n\ge2n≥2. The published Hotelling surplus, demand, virtual costs and mechanism definitions are reused.

For each nonlast active supplier iii, the independent demand row is

pnext(i)−pi=vnext(i)−vi.p_{\mathrm{next}(i)}-p_i=v_{\mathrm{next}(i)}-v_i.pnext(i)​−pi​=vnext(i)​−vi​.

Its coefficient is −1-1−1 at iii, 111 at the next active supplier, and zero otherwise. These are the row coordinates used in Appendix L.3; the base path-matrix coefficients are different coordinates and are not reused for aaa. For a nonempty common support, its virtual-cost range is the value at the maximum minus the value at the minimum. There is no restriction to supports with at least three points.

Definition code
import Mathlib
import Definitions.Def_ProcureAssort_Hotelling_Supplement_Affine

namespace ProcureAssort.Hotelling.Supplement

/-- Endpoint-equidistant locations, paper supplier i+1 is Lean i. -/
noncomputable def equiLoc (n : ℕ) (i : Fin n) : ℝ := (i.val : ℝ) / (n - 1 : ℕ)

/-- The independent price-difference rows used in Appendix L.3, p. 78.
For each nonlast active i the row is p_next - p_i, not a row of pathA. -/
noncomputable def differenceA {n : ℕ} (Q : Finset (Fin n)) (i j : Fin n) : ℝ :=
  if h : (Q.filter (i < ·)).Nonempty then
    (if j = (Q.filter (i < ·)).min' h then 1 else 0) - (if j = i then 1 else 0)
  else 0

/-- Full virtual-cost range of the common support. Defaults off the nonempty domain
are immaterial: every H or L theorem binds nonempty S through ValidTypes. -/
noncomputable def commonRange {n : ℕ} (S : Finset ℝ) (f : ℝ → ℝ) (i : Fin n) : ℝ :=
  if h : S.Nonempty then
    virtualCost (fun _ : Fin n => S) (fun _ => f) i (S.max' h) -
      virtualCost (fun _ : Fin n => S) (fun _ => f) i (S.min' h)
  else 0

end ProcureAssort.Hotelling.Supplement
Source
Saban & Weintraub, Procurement Mechanisms for Assortments of Differentiated Products, SSRN 3453144 (author version of 2020-03-03; Oper. Res. doi:10.1287/opre.2020.2053), Appendix H and Appendix L.3, pp. 60, 75–82

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