Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Second derivative of the triple Hlawka deficit along a line (deficitHessian)

Definition
HlawkaSchatten_DiagonalConstruction_BoxHessian

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

convexityhlawka-inequalityhlawka-schattensecond-derivative

For a real exponent ppp, a real constant KKK, and two triples X,ZX, ZX,Z (three vectors in R3\mathbb{R}^3R3 each, packaged as a Triple), deficitHessian defines

deficitHessian(p,K,X,Z)=(2K−1)∑jnormHessianp(Xj,Zj)  +  normHessianp(∑jXj, ∑jZj)  −  K∑jnormHessianp(pairTriple(X)j, pairTriple(Z)j),\begin{gathered} \mathrm{deficitHessian}(p,K,X,Z) = (2K-1)\sum_{j} \mathrm{normHessian}_p(X_j, Z_j) \\ \;+\; \mathrm{normHessian}_p\Big(\sum_j X_j,\ \sum_j Z_j\Big) \;-\; K\sum_{j} \mathrm{normHessian}_p\big(\mathrm{pairTriple}(X)_j,\ \mathrm{pairTriple}(Z)_j\big), \end{gathered}deficitHessian(p,K,X,Z)=(2K−1)j∑​normHessianp​(Xj​,Zj​)+normHessianp​(j∑​Xj​, j∑​Zj​)−Kj∑​normHessianp​(pairTriple(X)j​, pairTriple(Z)j​),​

built the same way as deficitSlope, but from normHessian — for p>4p>4p>4 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 p>4p>4p>4 and XXX in the cyclic coordinate box, this is the second derivative at t=0t=0t=0, along the line X+tZX+tZX+tZ, 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 [1/2,2][1/2,2][1/2,2], where the deficit — for KKK equal to the cyclic constant KpK_pKp​ — is nonnegative by the very definition of KpK_pKp​.

Definition code
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
Source
https://github.com/savarin/hlawka-schatten/blob/79aa498bfcf7b22bd91d771fb32ec278e2d4704b/HlawkaSchatten/DiagonalConstruction/BoxHessian.lean#L13-L16
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