Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2 — the first-order condition (11) under equal markup (corrected: t>0t>0t>0)

Proved
RiskBalancingMNL.lemma_2

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

mean-variancemultinomial-logitp2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-v1pricingrevenue-management

Fix the MNL model with n≥1n\ge1n≥1 products, a risk weight λ∈[0,1)\lambda\in[0,1)λ∈[0,1) and an equal markup t>0t>0t>0, and write q0=q0(t,…,t)q_0=q_0(t,\dots,t)q0​=q0​(t,…,t), assuming q0≠1−λq_0\ne1-\lambdaq0​=1−λ. Then every partial derivative of LλL_\lambdaLλ​ with respect to a single markup mjm_jmj​ vanishes at (t,…,t)(t,\dots,t)(t,…,t) if and only if

t−1bq0+λt2(1−q0−λ)=0.(11)t-\frac1{bq_0}+\frac{\lambda t}{2(1-q_0-\lambda)}=0 .\qquad (11)t−bq0​1​+2(1−q0​−λ)λt​=0.(11)

For λ>0\lambda>0λ>0 the last term equals the printed t/(2[(1−q0)/λ−1])t/(2[(1-q_0)/\lambda-1])t/(2[(1−q0​)/λ−1]).

The equation reduces the nnn first-order conditions to one equation in ttt; the last term is the effect of risk aversion.

Formalization Note The partial derivative in coordinate jjj is the derivative of s↦Lλ(t,…,s,…,t)s\mapsto L_\lambda(t,\dots,s,\dots,t)s↦Lλ​(t,…,s,…,t) (sss in position jjj) at s=ts=ts=t.

Differences from the source:

  • correction: the equal-markup first-order condition reduces to (11), for every equal markup → for equal markups t > 0; reason: at t = 0 the gradient of L vanishes while (11) reads −1/(bq₀) = 0; instance n = 1, a₁ = c₁ = 0, b = 1, λ = 0, t = 0: q₀ = 1/2, every partial derivative is 0, and the left side of (11) is −2
  • reading: the last term m/(2[(1 − q₀)/λ − 1]) at λ = 0, where it is undefined → λm/(2(1 − q₀ − λ)), i.e. 0 at λ = 0; reason: the limit of the printed term as λ → 0; it gives the risk-neutral condition m = 1/(bq₀)
  • encoding: m/(2[(1 − q₀)/λ − 1]) for λ > 0 → λm/(2(1 − q₀ − λ)); reason: equal for λ > 0 and q₀ ≠ 1 − λ
  • encoding: (11) wherever it is defined → hypothesis q₀ ≠ 1 − λ; reason: at q₀ = 1 − λ the printed denominator is 0, so this excludes only undefined cases
  • encoding: the first-order condition of (6) in the shares q → vanishing partial derivatives of L in each markup mⱼ; reason: markups and shares are related by a smooth bijection (p.9–10), so the two first-order conditions are equivalent
  • encoding: n products → n ≥ 1; reason: with no product q₀ = 1 and the gradient condition is empty
Preamble
import Mathlib
import Definitions.Def_RiskBalancingMNL_Params
Formal statement
namespace RiskBalancingMNL

/-- **Lemma 2**, Li & Webster, *Optimizing Risk-balancing Return under Discrete Choice Models*,
SSRN 3959428 (PDF of 2021-11-14), p.11: under equal markup the first-order condition reduces to
(11), `m − 1/(bq₀) + m / (2[(1 − q₀)/λ − 1]) = 0`.

Stated as: for `λ ∈ [0, 1)` and an equal markup `t > 0` with `q₀ = q₀(t) ≠ 1 − λ`, every partial
derivative of `L` at `(t, …, t)` vanishes iff `t − 1/(bq₀) + λt / (2(1 − q₀ − λ)) = 0`.

**Formalization Note** The partial derivative in coordinate `j` is the derivative of
`s ↦ L(t, …, s, …, t)` (`Function.update`) at `s = t`. The last term of (11) is written
`λt/(2(1 − q₀ − λ))`, which equals the printed one for `λ > 0`, and is its limit `0` at `λ = 0`.
`t > 0` is needed: at `t = 0` the gradient vanishes while (11) reads `−1/(bq₀) = 0`.
`q₀ ≠ 1 − λ` keeps the denominators of (11) nonzero; `n ≥ 1` (`NeZero n`), as in the model. -/
theorem lemma_2 {n : ℕ} [NeZero n] (P : Params n) (lam t : ℝ) (hlam0 : 0 ≤ lam) (hlam1 : lam < 1)
    (ht : 0 < t) (hq : noPurchase P (constM t) ≠ 1 - lam) :
    (∀ j : Fin n,
      HasDerivAt (fun s : ℝ => objective P lam (Function.update (constM t) j s)) 0 t) ↔
    t - 1 / (P.b * noPurchase P (constM t)) +
      lam * t / (2 * (1 - noPurchase P (constM t) - lam)) = 0 := by sorry

end RiskBalancingMNL
Source
Li & Webster, Optimizing Risk-balancing Return under Discrete Choice Models, SSRN 3959428 (PDF of 2021-11-14), Lemma 2 and eq. (11), p.11
Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 1, 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