Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Price step: hi(r,pi)h_i(r,p_i)hi​(r,pi​) is maximized at pi=1+ciqi2+ti(ai−biqi)+rp_i=1+c_iq_i^2+t_i(a_i-b_iq_i)+rpi​=1+ci​qi2​+ti​(ai​−bi​qi​)+r

Proved
PriceQualityService.Joint.price_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, its quality qiq_iqi​ and duration tit_iti​, and a real number rrr. Consider, as a function of the price pip_ipi​,

hi(r,pi)=[pi−ciqi2−ti(ai−biqi)−r]⋅exp⁡(αiqi−pi+tisi).h_i(r,p_i)=\bigl[p_i-c_iq_i^2-t_i(a_i-b_iq_i)-r\bigr]\cdot\exp(\alpha_iq_i-p_i+t_is_i).hi​(r,pi​)=[pi​−ci​qi2​−ti​(ai​−bi​qi​)−r]⋅exp(αi​qi​−pi​+ti​si​).

Let pˉi=1+ciqi2+ti(ai−biqi)+r\bar p_i=1+c_iq_i^2+t_i(a_i-b_iq_i)+rpˉ​i​=1+ci​qi2​+ti​(ai​−bi​qi​)+r. Then hi(r,⋅)h_i(r,\cdot)hi​(r,⋅) is strictly increasing on (−∞,pˉi](-\infty,\bar p_i](−∞,pˉ​i​], strictly decreasing on [pˉi,∞)[\bar p_i,\infty)[pˉ​i​,∞), and its maximum value is

hi(r,pˉi)=exp⁡(αiqi−ciqi2+ti(si−(ai−biqi))−r−1).h_i(r,\bar p_i)=\exp\bigl(\alpha_iq_i-c_iq_i^2+t_i(s_i-(a_i-b_iq_i))-r-1\bigr).hi​(r,pˉ​i​)=exp(αi​qi​−ci​qi2​+ti​(si​−(ai​−bi​qi​))−r−1).

This is the price step of the proof of Theorem 1: given rrr, each product's price maximizes its own term of the fixed-point form (15), and the optimal markup is 1+r1+r1+r for every product.

Formalization Note The paper says "increasing … and decreasing thereafter"; the statement uses the strict forms, which hold because the derivative [1−(pi−ciqi2−ti(ai−biqi)−r)]exp⁡(⋅)[1-(p_i-c_iq_i^2-t_i(a_i-b_iq_i)-r)]\exp(\cdot)[1−(pi​−ci​qi2​−ti​(ai​−bi​qi​)−r)]exp(⋅) vanishes only at pˉi\bar p_ipˉ​i​. No sign assumption on any parameter is needed.

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

/-- Price step, Appendix B, Proof of Theorem 1, p. 26: for fixed `r`, quality `q` and durations `t`,
`h_i(r, p_i) = [p_i − c_i q_i² − t_i(a_i − b_i q_i) − r] · exp(α_i q_i − p_i + t_i s_i)` increases in
`p_i` for `p_i ≤ 1 + c_i q_i² + t_i(a_i − b_i q_i) + r`, decreases thereafter, and its maximum is
`exp(α_i q_i − c_i q_i² + t_i(s_i − (a_i − b_i q_i)) − r − 1)`, attained at that price. -/
theorem price_step {N : ℕ} (α a b c s q t : Fin N → ℝ) (i : Fin N) (r : ℝ) :
    let h : ℝ → ℝ := fun x =>
      (x - c i * q i ^ 2 - t i * (a i - b i * q i) - r) * Real.exp (α i * q i - x + t i * s i)
    let pbar : ℝ := 1 + c i * q i ^ 2 + t i * (a i - b i * q i) + r
    StrictMonoOn h (Set.Iic pbar) ∧ StrictAntiOn h (Set.Ici pbar) ∧
      h pbar = Real.exp (α i * q i - c i * q i ^ 2 + t i * (s i - (a i - b i * q i)) - r - 1) ∧
      ∀ x : ℝ, h x ≤ h pbar := 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, display after (16)
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