Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4.1, p. 9 — for Σ ≻ 0 the gradient of f at q ∈ int(Δm) is ½ diag(Σ^{1/2}T(q)^{−1/2}Σ^{1/2}) − Σ^{1/2}T(q)^{−1/2}Σ^{1/2}q

Proved
BSPConvex.CMM.gradient_f

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

bundle-pricinggradientmatrix-square-rootp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let Σ≻0\Sigma\succ0Σ≻0 and q∈int⁡(Δm)q\in\operatorname{int}(\Delta_m)q∈int(Δm​). The function f(x)=tr⁡((Σ1/2S(x)Σ1/2)1/2)f(x)=\operatorname{tr}\big((\Sigma^{1/2}S(x)\Sigma^{1/2})^{1/2}\big)f(x)=tr((Σ1/2S(x)Σ1/2)1/2) is differentiable at qqq and its gradient is

∇f(q)=12diag⁡(Σ1/2(T(q))−1/2Σ1/2)−Σ1/2(T(q))−1/2Σ1/2q,T(q)=Σ1/2S(q)Σ1/2.\nabla f(q)=\tfrac12\operatorname{diag}\big(\Sigma^{1/2}(T(q))^{-1/2}\Sigma^{1/2}\big)-\Sigma^{1/2}(T(q))^{-1/2}\Sigma^{1/2}q,\qquad T(q)=\Sigma^{1/2}S(q)\Sigma^{1/2}.∇f(q)=21​diag(Σ1/2(T(q))−1/2Σ1/2)−Σ1/2(T(q))−1/2Σ1/2q,T(q)=Σ1/2S(q)Σ1/2.

The paper states this formula (attributing the surrounding analysis to Ahipaşaoğlu et al. 2018). Through the first-order condition p−ω=∇f(q)p-\omega=\nabla f(q)p−ω=∇f(q) of Theorem 1 it gives the price as a function of the choice probabilities, which is how the profit (6) arises.

Formalization Note Differentiability is Fréchet differentiability of f:Rm→Rf:\mathbb R^m\to\mathbb Rf:Rm→R at qqq (HasFDerivAt), with derivative the linear functional v↦∇f(q)⊤vv\mapsto\nabla f(q)^\top vv↦∇f(q)⊤v written as ∑i∇f(q)i proji\sum_i \nabla f(q)_i\,\mathrm{proj}_i∑i​∇f(q)i​proji​. The sentence of p. 9 also cites strong concavity of fff; that claim is not part of this statement.

Preamble
import Mathlib
import Definitions.Def_BSPConvex_CMM_Model

open Matrix
open scoped MatrixOrder
Formal statement
namespace BSPConvex.CMM

theorem gradient_f {m : ℕ} (Sig : Matrix (Fin m) (Fin m) ℝ) (hSig : Sig.PosDef)
    (q : Fin m → ℝ) (hq : q ∈ intSimplex m) :
    HasFDerivAt (fCMM Sig)
      (∑ i, gradF Sig q i • (ContinuousLinearMap.proj i : (Fin m → ℝ) →L[ℝ] ℝ)) q := by sorry

end BSPConvex.CMM
Source
Li, Sun & Teo, Convex Optimization for Bundle Size Pricing Problem, SSRN 3426933 (version of May 8, 2021), p. 9, §4.1 (gradient of f)
Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 22, 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