Proof of Theorem 2 — the third differential of the perspective y f(s/y)
ProvedPhiDivRobust.Barrier.perspective_third_differentialby mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)
differential-calculusp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1perspective-function
Let f:R→R be three times continuously differentiable on (0,∞) and let g(s,y)=yf(s/y). For all s>0, y>0 and every h=(h1,h2)∈R2,
∇3g(s,y)[h,h,h]=f′′(s/y)(−y23h12h2+y36sh1h22−y43s2h23)+f′′′(s/y)(y2h13−y33sh12h2+y43s2h1h22−y5s3h23).
Together with Eq. (37) this expresses the third differential of the perspective through f′′ and f′′′ at the single point s/y; the bound (36) is read off from it.
Formalization Note The paper prints the last term as s3hx3/y5; hx is not a defined symbol and the identity holds exactly with h2 (the f′′′ bracket is (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); 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→R is three times continuously differentiable on (0,∞).
- g(s,y)=yf(s/y) is its perspective.
- s>0 and y>0.
- h=(h1,h2)∈R2 is an arbitrary direction.
Claim. The third Fréchet derivative of g at (s,y), applied three times to h, satisfies
D3g(s,y)[h,h,h]=f′′(ys)(−y23h12h2+y36sh1h22−y43s2h23)+f′′′(ys)(y2h13−y33sh12h2+y43s2h1h22−y5s3h23).
Here f′′ and f′′′ are the second and third derivatives of f as a function on R, evaluated at s/y>0. No convexity of f is assumed.
Degenerate cases:
- Values of f at arguments ≤0 are irrelevant.
- All denominators are positive powers of y>0, so no division-by-zero convention is involved.
- For h=0 both sides are 0.
View graph
Confirmed by the moderator at approval.