Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 5: a markup-ordered assortment is optimal, with long service on an adjusted markup-ordered subset

Proved
PriceQualityService.Dealer.theorem_5

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

assortment-optimizationmultinomial-logitp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1revenue-management

Consider the dealer's problem (13): prices pip_ipi​ and qualities qiq_iqi​ are fixed, and the dealer chooses disjoint sets Sl,Ss⊆NS_l,S_s\subseteq\mathcal NSl​,Ss​⊆N of products offered with long service tlt_ltl​ and short service tst_sts​ to maximize Πs(p,q;Sl,Ss)\Pi^s(\mathbf p,\mathbf q;S_l,S_s)Πs(p,q;Sl​,Ss​). Write 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​) for the markup with short service, and 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​) with Ai=tletlsi−tsetssietlsi−etssiA_i=\frac{t_l e^{t_ls_i}-t_s e^{t_ss_i}}{e^{t_ls_i}-e^{t_ss_i}}Ai​=etl​si​−ets​si​tl​etl​si​−ts​ets​si​​ for the adjusted markup. A markup-ordered assortment is a set of the form {i:zi≥θ}\{i: z_i\ge\theta\}{i:zi​≥θ} and an adjusted markup-ordered set one of the form {i:xi≥θ′}\{i: x_i\ge\theta'\}{i:xi​≥θ′}.

Theorem 5. Assume ts<tlt_s<t_lts​<tl​, and si>0s_i>0si​>0 and ai−biqi≥0a_i-b_iq_i\ge0ai​−bi​qi​≥0 for every product. Then there are thresholds θ,θ′\theta,\theta'θ,θ′ such that, with Si∗={i:zi≥θ}S_{i^*}=\{i: z_i\ge\theta\}Si∗​={i:zi​≥θ} and Sj♮={i:xi≥θ′}S_{j^\natural}=\{i: x_i\ge\theta'\}Sj♮​={i:xi​≥θ′}:

  1. (a) Si∗S_{i^*}Si∗​ is an optimal offer set for (13);
  2. (b) Sj♮⊆Si∗S_{j^\natural}\subseteq S_{i^*}Sj♮​⊆Si∗​, and attaching the long service to Sj♮S_{j^\natural}Sj♮​ and the short service to Si∗∖Sj♮S_{i^*}\setminus S_{j^\natural}Si∗​∖Sj♮​ is optimal:
Πs(p,q;Sl,Ss)≤Πs(p,q;Sj♮,Si∗∖Sj♮)for all disjoint Sl,Ss⊆N.\Pi^s(\mathbf p,\mathbf q;S_l,S_s)\le\Pi^s\big(\mathbf p,\mathbf q;S_{j^\natural},S_{i^*}\setminus S_{j^\natural}\big)\quad\text{for all disjoint }S_l,S_s\subseteq\mathcal N .Πs(p,q;Sl​,Ss​)≤Πs(p,q;Sj♮​,Si∗​∖Sj♮​)for all disjoint Sl​,Ss​⊆N.

Consequently at most O(N2)O(N^2)O(N2) candidate pairs need to be examined, and long service goes to the products with the highest adjusted profit margins.

Formalization Note The paper relabels products by decreasing markup and calls a prefix {1,…,i}\{1,\dots,i\}{1,…,i} a markup-ordered assortment. Here such sets are the upper level sets {i:zi≥θ}\{i: z_i\ge\theta\}{i:zi​≥θ} and {i:xi≥θ′}\{i: x_i\ge\theta'\}{i:xi​≥θ′}; every level set is a prefix of every decreasing relabelling, so the statement holds whatever tie-break the relabelling uses. The empty set and the full set are allowed. Parts (a) and (b) share the same Si∗S_{i^*}Si∗​: (a) is the optimality of the pair in (b), whose union is Si∗S_{i^*}Si∗​. 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 the model's standing assumptions made explicit (shortest and longest duration, service utility, service cost); the first two make AiA_iAi​ well defined, and without the third part (b) is false.

Preamble
import Mathlib
import Definitions.Def_PriceQualityService_Dealer_Model
import Definitions.Def_PriceQualityService_Dealer_Breakpoints

open Finset
Formal statement
namespace PriceQualityService.Dealer

/-- Theorem 5, p. 23. Assume `t_s < t_l`, `0 < s_i` and `0 ≤ a_i − b_i q_i` for every product.
(a) Some markup-ordered assortment `S = {i | z_i ≥ θ}`, `z_i = p_i − c_i q_i² − t_s(a_i − b_i q_i)`,
is an optimal offer set for problem (13); (b) some adjusted markup-ordered set
`L = {i | x_i ≥ θ'}` lies within `S`, and attaching the long service to `L` and the short service
to `S \ L` is optimal among all disjoint pairs `(S_l, S_s)`. -/
theorem theorem_5 {N : ℕ} (α a b c s p q : Fin N → ℝ) (ts tl : ℝ) (hts : ts < tl)
    (hs : ∀ i, 0 < s i) (hg : ∀ i, 0 ≤ a i - b i * q i) :
    ∃ θ θ' : ℝ,
      (univ.filter fun i => θ' ≤ adjustedMarkup a b c s p q ts tl i) ⊆
          (univ.filter fun i => θ ≤ markup a b c p q ts i) ∧
      ∀ Sl Ss : Finset (Fin N), Disjoint Sl Ss →
        dealerProfit α a b c s p q ts tl Sl Ss ≤
          dealerProfit α a b c s p q ts tl
            (univ.filter fun i => θ' ≤ adjustedMarkup a b c s p q ts tl i)
            ((univ.filter fun i => θ ≤ markup a b c p q ts i) \
              univ.filter fun i => θ' ≤ adjustedMarkup a b c s p q ts tl i) := by sorry

end PriceQualityService.Dealer
Source
Wang, Ke & Cui, Product Price, Quality and Service Decisions under Consumer Choice Models, accepted manuscript (SSRN 3766191), p. 23, Theorem 5 (orderings pp. 22–23; proof Online Supplement p. 8, PDF p. 41)
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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me