Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Vertical quality utilities, active demand, gross surplus and price equations

Definition
ProcureAssort_Hotelling_Supplement_Vertical

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

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

Qualities are strictly increasing. A uniformly distributed consumer u∈[0,1]u\in[0,1]u∈[0,1] receives utility uαi−piu\alpha_i-p_iuαi​−pi​ from product iii and buys one unit. A supplier is active when it strictly maximizes utility somewhere on the unit interval. Consecutive active price-to-quality slopes delimit each supplier's consumer interval; absent lower and upper neighbors give interval endpoints zero and one, including unit demand for a singleton assortment.

GCS(x)=∑i∫∑j<ixj∑j≤ixjuαi du.GCS(x)=\sum_i\int_{\sum_{j<i}x_j}^{\sum_{j\le i}x_j}u\alpha_i\,du.GCS(x)=i∑​∫∑j<i​xj​∑j≤i​xj​​uαi​du.

The price-system predicate records adjacent active price differences equal to their virtual-cost differences and interim price-times-quantity transfers equal to the envelope transfers. It is an object used to describe implementation, not an extra premise of Theorem I.1. No sign restriction is imposed on quality.

Definition code
import Mathlib
import Definitions.Def_ProcureAssort_Hotelling_Supplement_Types

open scoped Classical

namespace ProcureAssort.Hotelling.Supplement

/-- Uniform consumers of type u∈[0,1], serving blocks in increasing quality order.
The integrands are continuous, so the interval integrals have no integrability default. -/
noncomputable def verticalGCS {n : ℕ} (alpha : Fin n → ℝ) (x : Fin n → ℝ) : ℝ :=
  ∑ i, ∫ u in (∑ j ∈ Finset.univ.filter (· < i), x j)..
      (∑ j ∈ Finset.univ.filter (· ≤ i), x j), u * alpha i

/-- A supplier is active iff it strictly maximizes consumer utility somewhere in [0,1].
Strictly ordered qualities make ties null sets. Appendix I, pp. 60–61. -/
noncomputable def verticalQ {n : ℕ} (alpha p : Fin n → ℝ) : Finset (Fin n) :=
  Finset.univ.filter (fun i => ∃ u ∈ Set.Icc (0 : ℝ) 1,
    ∀ j, j ≠ i → u * alpha j - p j < u * alpha i - p i)

/-- Demand (34), expressed by the two endpoints of the consumer-type interval.
Missing predecessor/successor means endpoint 0/1; this also gives 1 for a singleton. -/
noncomputable def verticalDemand {n : ℕ} (alpha p : Fin n → ℝ) (i : Fin n) : ℝ :=
  let Q := verticalQ alpha p
  if i ∈ Q then
    (if h : (Q.filter (i < ·)).Nonempty then
      let j := (Q.filter (i < ·)).min' h
      (p j - p i) / (alpha j - alpha i)
    else 1) -
    (if h : (Q.filter (· < i)).Nonempty then
      let j := (Q.filter (· < i)).max' h
      (p i - p j) / (alpha i - alpha j)
    else 0)
  else 0

/-- The adjacent virtual-cost slope in (I.1), with endpoints explicitly in range. -/
noncomputable def qualitySlope {n : ℕ} (alpha p : Fin n → ℝ) (k : ℕ) (hk : k+1 < n) : ℝ :=
  (p ⟨k+1,hk⟩ - p ⟨k,by omega⟩) / (alpha ⟨k+1,hk⟩ - alpha ⟨k,by omega⟩)

/-- The price-difference and interim-transfer system (35). It is a condition on prices,
not an assumption inserted into Theorem I.1. -/
def VerticalPriceSystem {n : ℕ} (alpha : Fin n → ℝ) (Θ : Fin n → Finset ℝ)
    (f : Fin n → ℝ → ℝ) (p : Profile Θ → Fin n → ℝ) : Prop :=
  let x := fun θ : Profile Θ => verticalDemand alpha (vvec Θ f θ)
  (∀ θ, ∀ i ∈ verticalQ alpha (vvec Θ f θ),
    ∀ j ∈ verticalQ alpha (vvec Θ f θ), i < j →
      (∀ k ∈ verticalQ alpha (vvec Θ f θ), ¬ (i < k ∧ k < j)) →
      p θ j - p θ i = virtualCost Θ f j (θ j) - virtualCost Θ f i (θ i)) ∧
  (∀ i, ∀ c ∈ Θ i,
    interim f (fun θ => p θ i * x θ i) i c =
      interim f (fun θ => tstar Θ x θ i) i c)

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 I, (33)–(35), pp. 60–61

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