Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The cyclic coordinate box and the triple deficit restricted to it

Definition
HlawkaSchatten_DiagonalConstruction_Localization

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

cyclic-boxdiagonal-constructionhlawka-inequalityhlawka-schattenlocalization

Four definitions describe a single 3×33\times33×3 real matrix, a fixed box of such matrices, and the Hlawka deficit restricted to that box.

Triple is the type of 3×33\times33×3 real matrices, columns first: a value X:TripleX:\mathrm{Triple}X:Triple assigns a real number X(j,i)X(j,i)X(j,i) to each column index j∈{0,1,2}j\in\{0,1,2\}j∈{0,1,2} and coordinate index i∈{0,1,2}i\in\{0,1,2\}i∈{0,1,2}.

cyclicCenter is the fixed sign matrix with −1-1−1 on the diagonal and +1+1+1 off it,

cyclicCenter⁡(j,i)={−1i=j1i≠j,\operatorname{cyclicCenter}(j,i) = \begin{cases} -1 & i=j \\ 1 & i\neq j,\end{cases}cyclicCenter(j,i)={−11​i=ji=j,​

equivalently J−2IJ-2IJ−2I for the 3×33\times33×3 all-ones matrix JJJ and identity matrix III.

entryBox is the set of matrices within entrywise distance 19/10019/10019/100 of cyclicCenter:

entryBox⁡={X:Triple∣∀j,i, ∣X(j,i)−cyclicCenter⁡(j,i)∣≤19/100}.\operatorname{entryBox} = \{X:\mathrm{Triple} \mid \forall j,i,\ |X(j,i)-\operatorname{cyclicCenter}(j,i)|\le 19/100\}.entryBox={X:Triple∣∀j,i, ∣X(j,i)−cyclicCenter(j,i)∣≤19/100}.

tripleDeficit applies the Hlawka deficit (hlawkaDeficit, from the Normalization bundle) to the three columns of a matrix, read as three vectors in R3\mathbb{R}^3R3: for a candidate constant KKK and exponent ppp,

tripleDeficit⁡(p,K,X)=hlawkaDeficit⁡(p,K, X(0,⋅), X(1,⋅), X(2,⋅)).\operatorname{tripleDeficit}(p,K,X) = \operatorname{hlawkaDeficit}\big(p,K,\,X(0,\cdot),\,X(1,\cdot),\,X(2,\cdot)\big).tripleDeficit(p,K,X)=hlawkaDeficit(p,K,X(0,⋅),X(1,⋅),X(2,⋅)).

These definitions frame the localization step of the sharp diagonal construction: a theorem in the same source module shows that, for p≥256p\ge256p≥256 and the constant K=KpK=K_pK=Kp​ (cyclicConstant), any triple x,y,z∈R3x,y,z\in\mathbb{R}^3x,y,z∈R3 with hlawkaDeficit⁡(p,Kp,x,y,z)<0\operatorname{hlawkaDeficit}(p,K_p,x,y,z)<0hlawkaDeficit(p,Kp​,x,y,z)<0 can be relabeled, rescaled, and permuted with signs into a matrix X∈entryBox⁡X\in\operatorname{entryBox}X∈entryBox with tripleDeficit⁡(p,Kp,X)<0\operatorname{tripleDeficit}(p,K_p,X)<0tripleDeficit(p,Kp​,X)<0. Later convexity and averaging arguments then work on this one fixed compact set rather than on an unbounded family of triples.

Definition code
import Definitions.Def_HlawkaSchatten_DiagonalConstruction_Normalization
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
-/

/-! # A strict counterexample lies in the cyclic coordinate box -/

namespace HlawkaSchatten.DiagonalConstruction

/-- Columns first, then coordinates within each column. -/
abbrev Triple := Fin 3 → Fin 3 → ℝ

def cyclicCenter : Triple := fun j i ↦ if i = j then -1 else 1

def entryBox : Set Triple := {X | ∀ j i, |X j i - cyclicCenter j i| ≤ 19 / 100}

noncomputable def tripleDeficit (p K : ℝ) (X : Triple) : ℝ :=
  hlawkaDeficit p K (X 0) (X 1) (X 2)







end HlawkaSchatten.DiagonalConstruction
Source
https://github.com/savarin/hlawka-schatten/blob/79aa498bfcf7b22bd91d771fb32ec278e2d4704b/HlawkaSchatten/DiagonalConstruction/Localization.lean#L12-L20
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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me