First derivative of the triple Hlawka deficit along a line (deficitSlope)
DefinitionHlawkaSchatten_DiagonalConstruction_BoxConvexityFor a real exponent , a real constant , and two triples (each a Triple, i.e. three vectors in packaged as Fin 3 → Fin 3 → ℝ), deficitSlope defines
where normSlope is, for and a nonzero base vector, the directional derivative of lpNorm p at that vector in a given direction, and pairTriple returns the three pairwise column sums of a triple.
For , and at any whose three columns, three pairwise column sums and column total are all nonzero (as they are throughout the cyclic coordinate box), this is exactly the derivative at , along the line , of the quantity built from lpNorm p on the three columns of : the quantity whose nonnegativity on a box around the cyclic sign matrix (the cyclic witness triple at parameter ) shows is a valid Hlawka constant there. deficitSlope is the first-order tool for that convexity argument; its own derivative, deficitHessian, is what actually gets checked for a sign.
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.Convex.SpecificFunctions.Pow
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.Analysis.InnerProductSpace.Dual
import Mathlib.Analysis.InnerProductSpace.NormPow
import Mathlib.Analysis.Normed.Lp.PiLp
import Mathlib.Analysis.Normed.Module.FiniteDimension
import Mathlib.Analysis.SpecialFunctions.Pow.Continuity
import Mathlib.Data.Fin.VecNotation
import Mathlib.Data.Real.Basic
import Mathlib.Data.Sign.Basic
import Mathlib.LinearAlgebra.Dimension.Finite
import Mathlib.Tactic.Abel
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.LinearCombination
import Mathlib.Tactic.Module
import Mathlib.Tactic.Positivity
import Mathlib.Tactic.Ring
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
-/
/-! # Convexity of the sharp deficit on the cyclic box -/
namespace HlawkaSchatten.DiagonalConstruction
noncomputable def deficitSlope (p K : ℝ) (X Z : Triple) : ℝ :=
(2 * K - 1) * (∑ j, normSlope p (X j) (Z j)) +
normSlope p (totalTriple X) (totalTriple Z) -
K * (∑ j, normSlope p (pairTriple X j) (pairTriple Z j))
end HlawkaSchatten.DiagonalConstruction
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.