Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The numerator ∑iAiGi\sum_i A_iG_i∑i​Ai​Gi​ of ∂r/∂t\partial r/\partial t∂r/∂t has nonnegative derivative

Proved
PriceQualityService.Uniform.numerator_deriv_nonneg

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

cauchy-schwarzmultinomial-logitp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1service-duration

Let ci>0c_i>0ci​>0 for every product and let R(t)R(t)R(t) be the root of (24) at every uniform duration ttt, as in the previous statement. Write Gi=Gi(R(t),t)G_i=G_i(R(t),t)Gi​=Gi​(R(t),t) and Ai=Ai(t)A_i=A_i(t)Ai​=Ai​(t). The numerator n(t)=∑i∈NAi(t) Gi(R(t),t)n(t)=\sum_{i\in\mathcal N}A_i(t)\,G_i(R(t),t)n(t)=∑i∈N​Ai​(t)Gi​(R(t),t) of ∂r/∂t\partial r/\partial t∂r/∂t is differentiable at every ttt, with

n′(t)=∑i∈Nbi22ciGi+∑i∈NAi2Gi−(∑i∈NAiGi)21+∑i∈NGi  ≥  0.n'(t)=\sum_{i\in\mathcal N}\frac{b_i^2}{2c_i}G_i+\sum_{i\in\mathcal N}A_i^2G_i-\frac{\big(\sum_{i\in\mathcal N}A_iG_i\big)^2}{1+\sum_{i\in\mathcal N}G_i}\;\ge\;0 .n′(t)=i∈N∑​2ci​bi2​​Gi​+i∈N∑​Ai2​Gi​−1+∑i∈N​Gi​(∑i∈N​Ai​Gi​)2​≥0.

Hence nnn is nondecreasing, so ∂r/∂t\partial r/\partial t∂r/∂t changes sign at most once, from negative to positive; this is the step that makes rrr quasi-convex in ttt.

Formalization Note The paper's display passes through a strict inequality ">>>" before reaching "≥0\ge 0≥0"; the strict step fails when every Ai(t)=0A_i(t)=0Ai​(t)=0, so only the conclusion n′(t)≥0n'(t)\ge0n′(t)≥0 is stated.

Preamble
import Mathlib
import Definitions.Def_PriceQualityService_Uniform_Reduction
Formal statement
namespace PriceQualityService.Uniform

open Finset

/-- The derivative of the numerator of `∂r/∂t`, Proof of Theorem 3, Wang, Ke & Cui, accepted
manuscript (SSRN 3766191), p. 29. With `R` the root of (24) as a function of `t`,
`G_i = G_i(R t, t)` and `A_i = A_i(t)`, the numerator `n(t) = ∑_i A_i G_i` has derivative
`∑_i b_i²/(2c_i) G_i + ∑_i A_i² G_i − (∑_i A_i G_i)² / (1 + ∑_i G_i)` at every `t`, and this
derivative is nonnegative. (The paper prints a strict `>` in its first comparison; only `≥ 0`
holds in general and is what is stated.) -/
theorem numerator_deriv_nonneg {N : ℕ} (α a b c s : Fin N → ℝ) (hc : ∀ i, 0 < c i) (R : ℝ → ℝ)
    (hR : ∀ t, R t = ∑ i, gTerm α a b c s (R t) t i) (t : ℝ) :
    let D : ℝ :=
      ∑ i, b i ^ 2 / (2 * c i) * gTerm α a b c s (R t) t i
        + ∑ i, aTerm α a b c s t i ^ 2 * gTerm α a b c s (R t) t i
        - (∑ i, aTerm α a b c s t i * gTerm α a b c s (R t) t i) ^ 2
          / (1 + ∑ i, gTerm α a b c s (R t) t i)
    HasDerivAt (fun u => ∑ i, aTerm α a b c s u i * gTerm α a b c s (R u) u i) D t ∧ 0 ≤ D := by sorry

end PriceQualityService.Uniform
Source
Wang, Ke & Cui, Product Price, Quality and Service Decisions under Consumer Choice Models, accepted manuscript (SSRN 3766191), p. 29, Proof of Theorem 3, derivative of the numerator
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