Directional derivatives and Hessian of the finite coordinate norm
DefinitionHlawkaSchatten_DiagonalConstruction_NormHessianSeven definitions give power sums and expressions for derivatives of the finite coordinate power functional along a line. They accept any real exponent and real vectors indexed by a finite type; their derivative interpretations require the hypotheses stated here.
powerSum is the unrooted power sum,
so that for , where denotes DiagonalConstruction.lpNorm, a norm for .
For fixed , powerPair is linear in the direction :
For , the directional derivative of powerSum at along is . The dependence on the base vector is generally nonlinear.
powerQuad is the associated quadratic form
and powerResidual is the same quadratic form evaluated at after subtracting a multiple of :
radialCoefficient is defined by the totalized quotient
For and , it is the unique value of minimizing , as established by the source's residual identities and minimum theorem. This is a projection coefficient for the weighted quadratic form with weights ; that form can be degenerate when a coordinate of vanishes. The displayed definition itself places no restriction on or .
For and , normSlope is the first derivative at of the line , and for and , normHessian is its second derivative at :
That normSlope is the derivative of for and , and normHessian its second derivative for and , 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.
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.