Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

hi=hilh_i=h^l_ihi​=hil​ on r≤xir\le x_ir≤xi​, hi=hish_i=h^s_ihi​=his​ on xi<r≤zix_i<r\le z_ixi​<r≤zi​, hi=0h_i=0hi​=0 on r>zir>z_ir>zi​

Proved
PriceQualityService.Dealer.hMax_piecewise

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

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

Let ts<tlt_s<t_lts​<tl​, and let product iii have si>0s_i>0si​>0 and ai−biqi≥0a_i-b_iq_i\ge0ai​−bi​qi​≥0. Then hi(r)=max⁡{hil(r),his(r),0}h_i(r)=\max\{h^l_i(r),h^s_i(r),0\}hi​(r)=max{hil​(r),his​(r),0} satisfies

hi(r)={hil(r),r≤xi,his(r),xi<r≤zi,0,r>zi.h_i(r)=\begin{cases}h^l_i(r), & r\le x_i,\\ h^s_i(r), & x_i<r\le z_i,\\ 0, & r>z_i.\end{cases}hi​(r)=⎩⎨⎧​hil​(r),his​(r),0,​r≤xi​,xi​<r≤zi​,r>zi​.​

Evaluated at the optimal value r∗r^*r∗, this says which service, if any, each product should receive.

Formalization Note The three hypotheses are the model's standing assumptions made explicit, as in the breakpoint-order milestone.

Preamble
import Mathlib
import Definitions.Def_PriceQualityService_Dealer_Model
import Definitions.Def_PriceQualityService_Dealer_Breakpoints

open Finset
Formal statement
namespace PriceQualityService.Dealer

/-- Proof of Theorem 5, Online Supplement p. 8: for a product `i` with `t_s < t_l`, `0 < s_i` and
`0 ≤ a_i − b_i q_i`, `h_i(r) = h^l_i(r)` for `r ≤ x_i`, `h_i(r) = h^s_i(r)` for `x_i < r ≤ z_i`,
and `h_i(r) = 0` for `r > z_i`. -/
theorem hMax_piecewise {N : ℕ} (α a b c s p q : Fin N → ℝ) (ts tl : ℝ) (hts : ts < tl)
    (i : Fin N) (hs : 0 < s i) (hg : 0 ≤ a i - b i * q i) :
    (∀ r : ℝ, r ≤ adjustedMarkup a b c s p q ts tl i →
      hMax α a b c s p q ts tl i r = hLong α a b c s p q tl i r) ∧
    (∀ r : ℝ, adjustedMarkup a b c s p q ts tl i < r → r ≤ markup a b c p q ts i →
      hMax α a b c s p q ts tl i r = hShort α a b c s p q ts i r) ∧
    (∀ r : ℝ, markup a b c p q ts i < r → hMax α a b c s p q ts tl i r = 0) := by sorry

end PriceQualityService.Dealer
Source
Wang, Ke & Cui, Product Price, Quality and Service Decisions under Consumer Choice Models, accepted manuscript (SSRN 3766191), Online Supplement p. 8 (PDF p. 41), Proof of Theorem 5 (characterization of h_i)
Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

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