Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Directional derivatives and Hessian of the finite coordinate norm

Definition
HlawkaSchatten_DiagonalConstruction_NormHessian

by savarin · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

diagonal-constructiondirectional-derivativehessianhlawka-schattenlp-norm

Seven definitions give power sums and expressions for derivatives of the finite coordinate power functional along a line. They accept any real exponent ppp and real vectors v,hv,hv,h indexed by a finite type; their derivative interpretations require the hypotheses stated here.

powerSum is the unrooted power sum,

powerSum⁡(p,v)=∑i∣vi∣p,\operatorname{powerSum}(p,v) = \sum_i |v_i|^p,powerSum(p,v)=i∑​∣vi​∣p,

so that ∥v∥p=powerSum⁡(p,v)1/p\|v\|_p = \operatorname{powerSum}(p,v)^{1/p}∥v∥p​=powerSum(p,v)1/p for p>0p>0p>0, where ∥⋅∥p\|\cdot\|_p∥⋅∥p​ denotes DiagonalConstruction.lpNorm, a norm for p≥1p\ge1p≥1.

For fixed p,vp,vp,v, powerPair is linear in the direction hhh:

powerPair⁡(p,v,h)=∑i∣vi∣p−2 vi hi.\operatorname{powerPair}(p,v,h) = \sum_i |v_i|^{p-2}\,v_i\,h_i.powerPair(p,v,h)=i∑​∣vi​∣p−2vi​hi​.

For p>1p>1p>1, the directional derivative of powerSum at vvv along hhh is p powerPair⁡(p,v,h)p\,\operatorname{powerPair}(p,v,h)ppowerPair(p,v,h). The dependence on the base vector vvv is generally nonlinear.

powerQuad is the associated quadratic form

powerQuad⁡(p,v,h)=∑i∣vi∣p−2 hi2,\operatorname{powerQuad}(p,v,h) = \sum_i |v_i|^{p-2}\,h_i^2,powerQuad(p,v,h)=i∑​∣vi​∣p−2hi2​,

and powerResidual is the same quadratic form evaluated at hhh after subtracting a multiple of vvv:

powerResidual⁡(p,v,h,a)=∑i∣vi∣p−2 (hi−a vi)2.\operatorname{powerResidual}(p,v,h,a) = \sum_i |v_i|^{p-2}\,(h_i-a\,v_i)^2.powerResidual(p,v,h,a)=i∑​∣vi​∣p−2(hi​−avi​)2.

radialCoefficient is defined by the totalized quotient

radialCoefficient⁡(p,v,h)=powerPair⁡(p,v,h)powerSum⁡(p,v).\operatorname{radialCoefficient}(p,v,h) = \frac{\operatorname{powerPair}(p,v,h)}{\operatorname{powerSum}(p,v)}.radialCoefficient(p,v,h)=powerSum(p,v)powerPair(p,v,h)​.

For p>2p>2p>2 and v≠0v\neq0v=0, it is the unique value of aaa minimizing powerResidual⁡(p,v,h,a)\operatorname{powerResidual}(p,v,h,a)powerResidual(p,v,h,a), as established by the source's residual identities and minimum theorem. This is a projection coefficient for the weighted quadratic form with weights ∣vi∣p−2|v_i|^{p-2}∣vi​∣p−2; that form can be degenerate when a coordinate of vvv vanishes. The displayed definition itself places no restriction on ppp or vvv.

For p>1p>1p>1 and v≠0v\neq0v=0, normSlope is the first derivative at t=0t=0t=0 of the line t↦∥v+th∥pt\mapsto\|v+th\|_pt↦∥v+th∥p​, and for p>4p>4p>4 and v≠0v\neq0v=0, normHessian is its second derivative at t=0t=0t=0:

normSlope⁡(p,v,h)=powerSum⁡(p,v)1/p−1 powerPair⁡(p,v,h),\operatorname{normSlope}(p,v,h) = \operatorname{powerSum}(p,v)^{1/p-1}\,\operatorname{powerPair}(p,v,h),normSlope(p,v,h)=powerSum(p,v)1/p−1powerPair(p,v,h), normHessian⁡(p,v,h)=(p−1) powerSum⁡(p,v)1/p−1 powerResidual⁡(p,v,h,radialCoefficient⁡(p,v,h)).\operatorname{normHessian}(p,v,h) = (p-1)\,\operatorname{powerSum}(p,v)^{1/p-1}\,\operatorname{powerResidual}\big(p,v,h,\operatorname{radialCoefficient}(p,v,h)\big).normHessian(p,v,h)=(p−1)powerSum(p,v)1/p−1powerResidual(p,v,h,radialCoefficient(p,v,h)).

That normSlope is the derivative of t↦∥v+th∥pt\mapsto\|v+th\|_pt↦∥v+th∥p​ for p>1p>1p>1 and v≠0v\neq0v=0, and normHessian its second derivative for p>4p>4p>4 and v≠0v\neq0v=0, is established by derivative theorems in the same source module. These seven definitions supply the curvature computation used, together with the coefficients of the HessianBounds bundle, to prove convexity of the Hlawka deficit on the cyclic coordinate box.

Definition code
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.Analysis.InnerProductSpace.Dual
import Mathlib.Analysis.InnerProductSpace.NormPow
import Mathlib.Analysis.Normed.Lp.PiLp
import Mathlib.Analysis.SpecialFunctions.Pow.Continuity
import Mathlib.Tactic.FieldSimp

/-
Copyright (c) 2026 Ezzeri Esa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ezzeri Esa
-/

/-! # Directional second derivatives of the finite real coordinate norm -/

namespace HlawkaSchatten.DiagonalConstruction

variable {ι : Type*} [Fintype ι]

noncomputable def powerSum (p : ℝ) (v : ι → ℝ) : ℝ := ∑ i, |v i| ^ p

noncomputable def powerPair (p : ℝ) (v h : ι → ℝ) : ℝ :=
  ∑ i, |v i| ^ (p - 2) * v i * h i

noncomputable def powerQuad (p : ℝ) (v h : ι → ℝ) : ℝ :=
  ∑ i, |v i| ^ (p - 2) * (h i) ^ 2

noncomputable def powerResidual (p : ℝ) (v h : ι → ℝ) (a : ℝ) : ℝ :=
  ∑ i, |v i| ^ (p - 2) * (h i - a * v i) ^ 2

noncomputable def radialCoefficient (p : ℝ) (v h : ι → ℝ) : ℝ :=
  powerPair p v h / powerSum p v

noncomputable def normSlope (p : ℝ) (v h : ι → ℝ) : ℝ :=
  powerSum p v ^ (1 / p - 1) * powerPair p v h

noncomputable def normHessian (p : ℝ) (v h : ι → ℝ) : ℝ :=
  (p - 1) * powerSum p v ^ (1 / p - 1) * powerResidual p v h (radialCoefficient p v h)









































end HlawkaSchatten.DiagonalConstruction
Source
https://github.com/savarin/hlawka-schatten/blob/79aa498bfcf7b22bd91d771fb32ec278e2d4704b/HlawkaSchatten/DiagonalConstruction/NormHessian.lean#L16-L34
Human review
  • Endorsed by Shuze Chen · Sep 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by savarin · Sep 29, 2026

    Confirmed by the mission captain (proposal self-audit).

  • Endorsed by marwahaha · Sep 30, 2026

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me