Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(EC.7), Online Supplement p. 6 — for every rrr the qualities qxi†=(αxi+txbxi)/(2cxi)q^\dagger_{xi}=(\alpha_{xi}+t_xb_{xi})/(2c_{xi})qxi†​=(αxi​+tx​bxi​)/(2cxi​) uniquely maximize the right-hand side

Proved
PriceQualityService.NestedLogit.ec7_optimal_quality

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

nested-logitoperations-researchp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quality

Consider the two-stage nested logit model with μ1≥1\mu_1\ge 1μ1​≥1 and cxi>0c_{xi}>0cxi​>0, and let rrr be any real number. For a quality vector q\mathbf qq put

F(q,r)=∑x∈{s,l}μ1(∑j=1mxexp⁡(αxjqxj−cxjqxj2−tx(axj−bxjqxj)+txsxj−r−μ1))1/μ1.F(\mathbf q,r)=\sum_{x\in\{s,l\}}\mu_1\Bigl(\sum_{j=1}^{m_x}\exp\bigl(\alpha_{xj}q_{xj}-c_{xj}q_{xj}^2-t_x(a_{xj}-b_{xj}q_{xj})+t_xs_{xj}-r-\mu_1\bigr)\Bigr)^{1/\mu_1}.F(q,r)=x∈{s,l}∑​μ1​(j=1∑mx​​exp(αxj​qxj​−cxj​qxj2​−tx​(axj​−bxj​qxj​)+tx​sxj​−r−μ1​))1/μ1​.

Then for every quality vector q\mathbf qq,

F(q,r)≤F(q†,r),qxi†=αxi+txbxi2cxi,F(\mathbf q,r)\le F(\mathbf q^\dagger,r),\qquad q^\dagger_{xi}=\frac{\alpha_{xi}+t_xb_{xi}}{2c_{xi}},F(q,r)≤F(q†,r),qxi†​=2cxi​αxi​+tx​bxi​​,

and equality holds only for q=q†\mathbf q=\mathbf q^\daggerq=q†.

This is the quality step of the proof of Theorem 4: after the markups have been fixed at r+μ1r+\mu_1r+μ1​, the optimal quality of each product depends only on its own parameters and on its nest's duration, not on the other products.

Formalization Note. The paper computes ∂F/∂qxi\partial F/\partial q_{xi}∂F/∂qxi​ "for any r>0r>0r>0"; the maximization statement holds for every real rrr and is stated that way. The maximum is global over Rms+ml\mathbb R^{m_s+m_l}Rms​+ml​, not a first-order condition.

Preamble
import Mathlib
import Definitions.Def_PriceQualityService_NestedLogit_Optimum
Formal statement
namespace PriceQualityService.NestedLogit

/-- (EC.7) and the optimal quality, Online Supplement p. 6 (proof of Theorem 4): for every real
`r`, the map
`q ↦ ∑_{x∈{s,l}} μ₁ (∑_j exp(α_xj q_xj − c_xj q_xj² − t_x (a_xj − b_xj q_xj) + t_x s_xj − r − μ₁))^{1/μ₁}`
attains its maximum over all quality vectors exactly at `q†`, `q†_xi = (α_xi + t_x b_xi)/(2c_xi)`. -/
theorem ec7_optimal_quality (M : Model) (hμ : 1 ≤ M.μ₁) (hc : ∀ x i, 0 < M.c x i)
    (r : ℝ) (q : Vec M) :
    fixedPointRHS M q r ≤ fixedPointRHS M (qDagger M) r ∧
      (fixedPointRHS M q r = fixedPointRHS M (qDagger M) r → q = qDagger M) := by sorry

end PriceQualityService.NestedLogit
Source
Wang, Ke & Cui, Product Price, Quality and Service Decisions under Consumer Choice Models, accepted manuscript (SSRN 3766191), Online Supplement p. 6 (PDF p. 39), proof of Theorem 4, (EC.7)
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