Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 2 — the third differential of the perspective y f(s/y)

Proved
PhiDivRobust.Barrier.perspective_third_differential

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

differential-calculusp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1perspective-function

Let f:R→Rf:\mathbb R\to\mathbb Rf:R→R be three times continuously differentiable on (0,∞)(0,\infty)(0,∞) and let g(s,y)=yf(s/y)g(s,y)=y f(s/y)g(s,y)=yf(s/y). For all s>0s>0s>0, y>0y>0y>0 and every h=(h1,h2)∈R2h=(h_1,h_2)\in\mathbb R^2h=(h1​,h2​)∈R2,

∇3g(s,y)[h,h,h]=f′′(s/y)(−3h12h2y2+6sh1h22y3−3s2h23y4)+f′′′(s/y)(h13y2−3sh12h2y3+3s2h1h22y4−s3h23y5).\nabla^3 g(s,y)[h,h,h]=f''(s/y)\left(-\frac{3h_1^2h_2}{y^2}+\frac{6sh_1h_2^2}{y^3}-\frac{3s^2h_2^3}{y^4}\right)+f'''(s/y)\left(\frac{h_1^3}{y^2}-\frac{3sh_1^2h_2}{y^3}+\frac{3s^2h_1h_2^2}{y^4}-\frac{s^3h_2^3}{y^5}\right).∇3g(s,y)[h,h,h]=f′′(s/y)(−y23h12​h2​​+y36sh1​h22​​−y43s2h23​​)+f′′′(s/y)(y2h13​​−y33sh12​h2​​+y43s2h1​h22​​−y5s3h23​​).

Together with Eq. (37) this expresses the third differential of the perspective through f′′f''f′′ and f′′′f'''f′′′ at the single point s/ys/ys/y; the bound (36) is read off from it.

Formalization Note The paper prints the last term as s3hx3/y5s^3h_x^3/y^5s3hx3​/y5; hxh_xhx​ is not a defined symbol and the identity holds exactly with h2h_2h2​ (the f′′′f'''f′′′ bracket is (h1−(s/y)h2)3/y2(h_1-(s/y)h_2)^3/y^2(h1​−(s/y)h2​)3/y2), so the corrected term is stated. The third differential is iteratedFDeriv ℝ 3 g (s, y) applied to (h,h,h)(h,h,h)(h,h,h); f′′,f′′′f'',f'''f′′,f′′′ are iteratedDeriv 2 f, iteratedDeriv 3 f.

Preamble
import Mathlib
import Definitions.Def_PhiDivRobust_Barrier_perspective
Formal statement
namespace PhiDivRobust.Barrier

theorem perspective_third_differential (f : ℝ → ℝ) (hf : ContDiffOn ℝ 3 f (Set.Ioi 0))
    (s y : ℝ) (hs : 0 < s) (hy : 0 < y) (h : ℝ × ℝ) :
    iteratedFDeriv ℝ 3 (perspective f) (s, y) (fun _ => h) =
      iteratedDeriv 2 f (s / y) *
          (-(3 * h.1 ^ 2 * h.2 / y ^ 2) + 6 * s * h.1 * h.2 ^ 2 / y ^ 3
            - 3 * s ^ 2 * h.2 ^ 3 / y ^ 4)
        + iteratedDeriv 3 f (s / y) *
          (h.1 ^ 3 / y ^ 2 - 3 * s * h.1 ^ 2 * h.2 / y ^ 3 + 3 * s ^ 2 * h.1 * h.2 ^ 2 / y ^ 4
            - s ^ 3 * h.2 ^ 3 / y ^ 5) := by sorry

end PhiDivRobust.Barrier
Source
Ben-Tal, den Hertog, De Waegenaere, Melenberg, Rennen, Robust Solutions of Optimization Problems Affected by Uncertain Probabilities, Management Sci. 59(2), 2013, p. 350, proof of Theorem 2, display after Eq. (37) (printed term s³h_x³/y⁵ corrected to s³h₂³/y⁵)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting.

  • f:R→Rf : \mathbb{R} \to \mathbb{R}f:R→R is three times continuously differentiable on (0,∞)(0,\infty)(0,∞).
  • g(s,y)=y f(s/y)g(s,y) = y\,f(s/y)g(s,y)=yf(s/y) is its perspective.
  • s>0s > 0s>0 and y>0y > 0y>0.
  • h=(h1,h2)∈R2h = (h_1,h_2) \in \mathbb{R}^2h=(h1​,h2​)∈R2 is an arbitrary direction.

Claim. The third Fréchet derivative of ggg at (s,y)(s,y)(s,y), applied three times to hhh, satisfies

D3g(s,y)[h,h,h]  =  f′′ ⁣(sy)(−3h12h2y2+6sh1h22y3−3s2h23y4)+  f′′′ ⁣(sy)(h13y2−3sh12h2y3+3s2h1h22y4−s3h23y5).\begin{aligned} D^3 g(s,y)[h,h,h] \;=\;& f''\!\left(\tfrac{s}{y}\right)\left(-\frac{3 h_1^2 h_2}{y^2} + \frac{6 s h_1 h_2^2}{y^3} - \frac{3 s^2 h_2^3}{y^4}\right)\\ &+\; f'''\!\left(\tfrac{s}{y}\right)\left(\frac{h_1^3}{y^2} - \frac{3 s h_1^2 h_2}{y^3} + \frac{3 s^2 h_1 h_2^2}{y^4} - \frac{s^3 h_2^3}{y^5}\right). \end{aligned}D3g(s,y)[h,h,h]=​f′′(ys​)(−y23h12​h2​​+y36sh1​h22​​−y43s2h23​​)+f′′′(ys​)(y2h13​​−y33sh12​h2​​+y43s2h1​h22​​−y5s3h23​​).​

Here f′′f''f′′ and f′′′f'''f′′′ are the second and third derivatives of fff as a function on R\mathbb{R}R, evaluated at s/y>0s/y > 0s/y>0. No convexity of fff is assumed.

Degenerate cases:

  • Values of fff at arguments ≤0\le 0≤0 are irrelevant.
  • All denominators are positive powers of y>0y > 0y>0, so no division-by-zero convention is involved.
  • For h=0h = 0h=0 both sides are 000.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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