Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The breakpoints xi,yi,zix_i,y_i,z_ixi​,yi​,zi​ solve hil=hish^l_i=h^s_ihil​=his​, hil=0h^l_i=0hil​=0, his=0h^s_i=0his​=0, and xi≤yi≤zix_i\le y_i\le z_ixi​≤yi​≤zi​

Proved
PriceQualityService.Dealer.breakpoints_order

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

  1. xi=(pi−ciqi2)−Ai(ai−biqi)x_i=(p_i-c_iq_i^2)-A_i(a_i-b_iq_i)xi​=(pi​−ci​qi2​)−Ai​(ai​−bi​qi​) is the unique solution of hil(x)=his(x)h^l_i(x)=h^s_i(x)hil​(x)=his​(x);
  2. yi=pi−ciqi2−tl(ai−biqi)y_i=p_i-c_iq_i^2-t_l(a_i-b_iq_i)yi​=pi​−ci​qi2​−tl​(ai​−bi​qi​) is the unique solution of hil(x)=0h^l_i(x)=0hil​(x)=0;
  3. zi=pi−ciqi2−ts(ai−biqi)z_i=p_i-c_iq_i^2-t_s(a_i-b_iq_i)zi​=pi​−ci​qi2​−ts​(ai​−bi​qi​) is the unique solution of his(x)=0h^s_i(x)=0his​(x)=0;
  4. the three breakpoints are ordered:
xi≤yi≤zi.x_i\le y_i\le z_i .xi​≤yi​≤zi​.

The ordering of the breakpoints is what makes hi=max⁡{hil,his,0}h_i=\max\{h^l_i,h^s_i,0\}hi​=max{hil​,his​,0} a three-piece function of rrr.

Formalization Note The hypotheses ts<tlt_s<t_lts​<tl​, si>0s_i>0si​>0 and ai−biqi≥0a_i-b_iq_i\ge0ai​−bi​qi​≥0 are standing assumptions of the model made explicit: ts,tlt_s,t_lts​,tl​ are the shortest and longest durations (p. 7), sis_isi​ is a service utility (p. 6) and ai−biqia_i-b_iq_iai​−bi​qi​ a service cost (p. 8). The first two make AiA_iAi​ well defined; without the third the ordering xi≤yi≤zix_i\le y_i\le z_ixi​≤yi​≤zi​ fails.

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`, the adjusted markup `x_i` is the unique solution of `h^l_i(x) = h^s_i(x)`,
the long-service markup `y_i = p_i − c_i q_i² − t_l(a_i − b_i q_i)` the unique solution of
`h^l_i(x) = 0`, the short-service markup `z_i = p_i − c_i q_i² − t_s(a_i − b_i q_i)` the unique
solution of `h^s_i(x) = 0`, and `x_i ≤ y_i ≤ z_i`. -/
theorem breakpoints_order {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 : ℝ, hLong α a b c s p q tl i r = hShort α a b c s p q ts i r ↔
      r = adjustedMarkup a b c s p q ts tl i) ∧
    (∀ r : ℝ, hLong α a b c s p q tl i r = 0 ↔ r = markup a b c p q tl i) ∧
    (∀ r : ℝ, hShort α a b c s p q ts i r = 0 ↔ r = markup a b c p q ts i) ∧
    adjustedMarkup a b c s p q ts tl i ≤ markup a b c p q tl i ∧
    markup a b c p q tl i ≤ markup a b c p q ts i := 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 (definition of x_i, y_i, z_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