Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3, p. 30 — endpoint step (corrected: an interior maximizer of a convex function forces it to be constant)

Proved
PriceQualityService.convex_interior_max_const

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

multinomial-logitoperations-managementpricing

Let ts,tl∈Rt_s,t_l\in\mathbb Rts​,tl​∈R and let f:R→Rf:\mathbb R\to\mathbb Rf:R→R be convex on [ts,tl][t_s,t_l][ts​,tl​]. If fff attains its maximum over [ts,tl][t_s,t_l][ts​,tl​] at an interior point t∈(ts,tl)t\in(t_s,t_l)t∈(ts​,tl​), that is f(t′)≤f(t)f(t')\le f(t)f(t′)≤f(t) for all t′∈[ts,tl]t'\in[t_s,t_l]t′∈[ts​,tl​], then

f(t′)=f(t)for all t′∈[ts,tl].f(t')=f(t)\qquad\text{for all }t'\in[t_s,t_l].f(t′)=f(t)for all t′∈[ts​,tl​].

Applied to f=y(q∗,⋅)f=y(\mathbf q^*,\cdot)f=y(q∗,⋅), this is the step from "yyy is convex in ttt" to "the optimal uniform duration is at a boundary point": an optimal duration is tst_sts​ or tlt_ltl​ unless yyy, and hence the optimal profit, does not depend on the duration at all. The complementary fact that a convex function on [ts,tl][t_s,t_l][ts​,tl​] is bounded by max⁡(f(ts),f(tl))\max(f(t_s),f(t_l))max(f(ts​),f(tl​)) is in Mathlib.

Differences from the source:

  • correction: y convex in t, hence "the optimal uniform service duration t* is at one of the boundary points" → a convex f maximized at an interior t is constant on [t_s, t_l]; reason: a convex function can be maximized at interior points (f constant); in the paper's model this happens for N = 1, α = s = a = c = 1, b = 0, [t_s, t_l] = [1, 2], where every t is optimal (see the main theorem)
  • generalization: f = y, the aggregate attraction → any function convex on [t_s, t_l]; reason: the step uses only convexity; f = y(q*, ·) is the instance
Preamble
import Mathlib
Formal statement
namespace PriceQualityService

/-- **The endpoint step: a convex function maximized at an interior point is constant.**
Wang, Ke & Cui, *Product Price, Quality and Service Decisions under Consumer Choice Models*,
accepted manuscript, SSRN 3766191 (MSOM 2020, doi:10.1287/msom.2020.0947), proof of Theorem 3 (App. B), unnumbered, p. 30: "Thus, y is a convex function in service
duration t. Then the optimal uniform service duration `t*` is at one of the boundary points,
i.e., `t* = t_s` or `t* = t_l`."

If `f` is convex on `[ts, tl]` and attains its maximum over `[ts, tl]` at an interior point
`t ∈ (ts, tl)`, then `f` is constant on `[ts, tl]`.

**Formalization Note.** This is the corrected content of the quoted step: a convex function's
maximizers need not be endpoints (a constant function is maximized everywhere), but an interior
maximizer forces `f` to be constant. The other half, that a convex function on `[ts, tl]` is
bounded by `max (f ts) (f tl)`, is Mathlib's `ConvexOn.le_on_segment`. -/
theorem convex_interior_max_const {f : ℝ → ℝ} {ts tl t : ℝ}
    (hf : ConvexOn ℝ (Set.Icc ts tl) f) (ht : t ∈ Set.Ioo ts tl)
    (hmax : ∀ t' ∈ Set.Icc ts tl, f t' ≤ f t) :
    ∀ t' ∈ Set.Icc ts tl, f t' = f t := by sorry

end PriceQualityService
Source
Wang, Ke & Cui, Product Price, Quality and Service Decisions under Consumer Choice Models, accepted manuscript, SSRN 3766191 (MSOM 2020, doi:10.1287/msom.2020.0947), proof of Theorem 3 (App. B), p. 30 (unnumbered, last paragraph)

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