Second derivative of the triple Hlawka deficit along a line (deficitHessian)
DefinitionHlawkaSchatten_DiagonalConstruction_BoxHessianFor a real exponent , a real constant , and two triples (three vectors in each, packaged as a Triple), deficitHessian defines
built the same way as deficitSlope, but from normHessian — for and a nonzero base vector, the second directional derivative of lpNorm p at that vector in a given direction — in place of the first derivative.
For and in the cyclic coordinate box, this is the second derivative at , along the line , of the same Hlawka-deficit quantity that deficitSlope differentiates once. deficitHessian's nonnegativity throughout that box is exactly what proves the quantity convex there. Convexity is then used through Jensen's inequality over the six simultaneous permutations of vector and coordinate labels: the deficit at any point of the box is at least its value at the average of that point's six permuted images, and that average is always a positive multiple of a cyclic witness triple with parameter in , where the deficit — for equal to the cyclic constant — is nonnegative by the very definition of .
import Definitions.Def_HlawkaSchatten_DiagonalConstruction_BoxCoordinates
import Definitions.Def_HlawkaSchatten_DiagonalConstruction_BoxGeometry
import Definitions.Def_HlawkaSchatten_DiagonalConstruction_Localization
import Definitions.Def_HlawkaSchatten_DiagonalConstruction_NormHessian
import Mathlib.Analysis.Complex.ExponentialBounds
import Mathlib.Analysis.Convex.Deriv
import Mathlib.Analysis.Convex.Function
import Mathlib.Analysis.Convex.Jensen
import Mathlib.Analysis.Convex.SpecificFunctions.Basic
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.Data.Fin.VecNotation
import Mathlib.Data.Real.Basic
import Mathlib.Data.Sign.Basic
import Mathlib.Tactic.Abel
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.LinearCombination
import Mathlib.Topology.Instances.Sign
import Mathlib.Topology.Order.Compact
/-
Copyright (c) 2026 Ezzeri Esa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ezzeri Esa
-/
/-! # Nonnegative second variation on the entire cyclic box -/
namespace HlawkaSchatten.DiagonalConstruction
noncomputable def deficitHessian (p K : ℝ) (X Z : Triple) : ℝ :=
(2 * K - 1) * (∑ j, normHessian p (X j) (Z j)) +
normHessian p (totalTriple X) (totalTriple Z) -
K * (∑ j, normHessian p (pairTriple X j) (pairTriple Z j))
end HlawkaSchatten.DiagonalConstruction
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.