Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Duration step (19): hi(r,⋅)h_i(r,\cdot)hi​(r,⋅) is maximized over [ts,tl][t_s,t_l][ts​,tl​] at tst_sts​ or tlt_ltl​

Proved
PriceQualityService.Joint.duration_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, durations ts≤tlt_s\le t_lts​≤tl​ and a real number rrr, and let

hi(r,τ)=exp⁡(bi2τ24ci+(si−ai+αibi2ci)τ+αi24ci−r−1).h_i(r,\tau)=\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).hi​(r,τ)=exp(4ci​bi2​τ2​+(si​−ai​+2ci​αi​bi​​)τ+4ci​αi2​​−r−1).

Then

hi(r,τ)≤max⁡{hi(r,ts),hi(r,tl)}for every τ∈[ts,tl],h_i(r,\tau)\le\max\{h_i(r,t_s),h_i(r,t_l)\}\qquad\text{for every }\tau\in[t_s,t_l],hi​(r,τ)≤max{hi​(r,ts​),hi​(r,tl​)}for every τ∈[ts​,tl​],

so the maximum of hi(r,⋅)h_i(r,\cdot)hi​(r,⋅) over the duration interval is attained at one of its endpoints. Moreover, when bi≠0b_i\ne0bi​=0, hi(r,⋅)h_i(r,\cdot)hi​(r,⋅) is strictly decreasing for τ≤(2(ai−si)ci−αibi)/bi2\tau\le(2(a_i-s_i)c_i-\alpha_ib_i)/b_i^2τ≤(2(ai​−si​)ci​−αi​bi​)/bi2​ and strictly increasing thereafter.

This is the step of the proof of Theorem 1 that makes the optimal service duration extreme.

Formalization Note The endpoint bound holds for every sign of bib_ibi​, including bi=0b_i=0bi​=0 (the exponent is then linear in τ\tauτ); the monotonicity statement, which divides by bi2b_i^2bi2​, is stated only for bi≠0b_i\ne0bi​=0, as the paper's threshold requires. The paper's "decreases … and increases thereafter" is stated in strict form.

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

/-- Duration step, (19), Appendix B, Proof of Theorem 1, pp. 26–27: for `c_i > 0` and `t_s ≤ t_l`,
`h_i(r, τ) = exp(b_i² τ²/(4c_i) + (s_i − a_i + α_i b_i/(2c_i)) τ + α_i²/(4c_i) − r − 1)` attains its
maximum over `[t_s, t_l]` at an endpoint: `max_{τ∈[t_s,t_l]} h_i(r, τ) = max{h_i(r, t_s), h_i(r, t_l)}`.
For `b_i ≠ 0` it decreases for `τ ≤ (2(a_i − s_i)c_i − α_i b_i)/b_i²` and increases thereafter. -/
theorem duration_step {N : ℕ} (α a b c s : Fin N → ℝ) (hc : ∀ i, 0 < c i) (ts tl : ℝ)
    (hst : ts ≤ tl) (i : Fin N) (r : ℝ) :
    let h : ℝ → ℝ := fun τ => Real.exp (durationExponent α a b c s i τ - r - 1)
    (∀ τ ∈ Set.Icc ts tl, h τ ≤ max (h ts) (h tl)) ∧
      (b i ≠ 0 →
        StrictAntiOn h (Set.Iic ((2 * (a i - s i) * c i - α i * b i) / b i ^ 2)) ∧
          StrictMonoOn h (Set.Ici ((2 * (a i - s i) * c i - α i * b i) / b i ^ 2))) := by sorry

end PriceQualityService.Joint
Source
Wang, Ke & Cui, Product Price, Quality and Service Decisions under Consumer Choice Models, accepted manuscript (SSRN 3766191), pp. 26–27, Appendix B, Proof of Theorem 1, eq. (19) and the following paragraph
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