Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Quality step (18): each summand is maximized at qi=(αi+tibi)/(2ci)q_i=(\alpha_i+t_ib_i)/(2c_i)qi​=(αi​+ti​bi​)/(2ci​)

Proved
PriceQualityService.Joint.quality_step

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

multinomial-logitoperations-researchp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1pricing

Fix a product iii with ci>0c_i>0ci​>0, a service duration τ\tauτ for it and a real number rrr. The function

g(x)=exp⁡(αix−cix2+τ(si−(ai−bix))−r−1),g(x)=\exp\bigl(\alpha_ix-c_ix^2+\tau(s_i-(a_i-b_ix))-r-1\bigr),g(x)=exp(αi​x−ci​x2+τ(si​−(ai​−bi​x))−r−1),

which is the iii-th summand of the right-hand side of (18) as a function of the quality x=qix=q_ix=qi​, attains its maximum exactly at

qˉi=αi+τbi2ci,\bar q_i=\frac{\alpha_i+\tau b_i}{2c_i},qˉ​i​=2ci​αi​+τbi​​,

(at no other point), and its maximum value is

g(qˉi)=exp⁡(bi2τ24ci+(si−ai+αibi2ci)τ+αi24ci−r−1).g(\bar q_i)=\exp\Bigl(\frac{b_i^2\tau^2}{4c_i}+\Bigl(s_i-a_i+\frac{\alpha_ib_i}{2c_i}\Bigr)\tau+\frac{\alpha_i^2}{4c_i}-r-1\Bigr).g(qˉ​i​)=exp(4ci​bi2​τ2​+(si​−ai​+2ci​αi​bi​​)τ+4ci​αi2​​−r−1).

Because the right-hand side of (18) is a sum of such terms, one per product, the quality of each product is optimized independently of the others; the maximum value is the summand hi(r,ti)h_i(r,t_i)hi​(r,ti​) of (19).

Formalization Note ci>0c_i>0ci​>0 is the paper's assumption that the production cost ciqi2c_iq_i^2ci​qi2​ is increasing and convex in quality (p. 8); it is not written in the proof. Qualities range over R\mathbb RR; the model's range [0,ai/bi)[0,a_i/b_i)[0,ai​/bi​) is not imposed.

Preamble
import Mathlib
import Definitions.Def_PriceQualityService_Joint_Model
Formal statement
namespace PriceQualityService.Joint

/-- Quality step, (18), Appendix B, Proof of Theorem 1, p. 26: for `c_i > 0`, a duration `τ` of
product `i` and any `r`, the summand
`x ↦ exp(α_i x − c_i x² + τ(s_i − (a_i − b_i x)) − r − 1)` of the right-hand side of (18) is
maximized exactly at `x = (α_i + τ b_i)/(2c_i)`, where it equals the summand of (19),
`exp(b_i² τ²/(4c_i) + (s_i − a_i + α_i b_i/(2c_i)) τ + α_i²/(4c_i) − r − 1)`. -/
theorem quality_step {N : ℕ} (α a b c s : Fin N → ℝ) (hc : ∀ i, 0 < c i) (i : Fin N) (τ r : ℝ) :
    let g : ℝ → ℝ := fun x =>
      Real.exp (α i * x - c i * x ^ 2 + τ * (s i - (a i - b i * x)) - r - 1)
    let qbar : ℝ := (α i + τ * b i) / (2 * c i)
    (∀ x : ℝ, g x ≤ g qbar) ∧ (∀ x : ℝ, g x = g qbar → x = qbar) ∧
      g qbar = Real.exp (durationExponent α a b c s i τ - r - 1) := by sorry

end PriceQualityService.Joint
Source
Wang, Ke & Cui, Product Price, Quality and Service Decisions under Consumer Choice Models, accepted manuscript (SSRN 3766191), p. 26, Appendix B, Proof of Theorem 1, eq. (18) and the definition of hi(r,ti)h_i(r,t_i)hi​(r,ti​) in (19)
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