Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Euclidean-square bookkeeping for triples: euclideanSq, frobeniusSq, applyTriple, totalTriple

Definition
HlawkaSchatten_DiagonalConstruction_BoxGeometry

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

euclidean-normhlawka-inequalityhlawka-schattenlinear-algebra

Four definitions on vectors in R3\mathbb{R}^3R3 and on triples of such vectors (a Triple is three vectors in R3\mathbb{R}^3R3, packaged as X:Fin 3→Fin 3→RX:\mathrm{Fin}\,3\to\mathrm{Fin}\,3\to\mathbb{R}X:Fin3→Fin3→R):

  1. euclideanSq, the squared Euclidean length of a vector v∈R3v\in\mathbb{R}^3v∈R3:
euclideanSq(v)=∑ivi2.\mathrm{euclideanSq}(v) = \sum_i v_i^2.euclideanSq(v)=i∑​vi2​.
  1. frobeniusSq, the sum of euclideanSq over the three columns of a triple XXX — a squared Frobenius-type size for the whole triple:
frobeniusSq(X)=∑jeuclideanSq(Xj).\mathrm{frobeniusSq}(X) = \sum_j \mathrm{euclideanSq}(X_j).frobeniusSq(X)=j∑​euclideanSq(Xj​).
  1. applyTriple, the linear combination of the three columns of XXX with coefficients a∈R3a\in\mathbb{R}^3a∈R3:
applyTriple(X,a)i=∑jaj Xj i.\mathrm{applyTriple}(X,a)_i = \sum_j a_j\, X_j\, i.applyTriple(X,a)i​=j∑​aj​Xj​i.
  1. totalTriple, the plain sum of the three columns:
totalTriple(X)=X0+X1+X2.\mathrm{totalTriple}(X) = X_0+X_1+X_2.totalTriple(X)=X0​+X1​+X2​.

These are the elementary quadratic and linear tools used to measure and compare triples on the cyclic coordinate box: euclideanSq/frobeniusSq give the size estimates behind the convexity argument, applyTriple expresses a general linear combination of the three columns, and totalTriple is exactly the "x+y+zx+y+zx+y+z" argument that occurs in the Hlawka deficit of a triple.

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

/-!
# Quadratic geometry of the cyclic box

The joint radial estimate uses the convenient bound `300`. This weaker
intermediate constant leaves the exponent cutoff unchanged.
-/

namespace HlawkaSchatten.DiagonalConstruction

def euclideanSq (v : Fin 3 → ℝ) : ℝ := ∑ i, (v i) ^ 2

def frobeniusSq (X : Triple) : ℝ := ∑ j, euclideanSq (X j)

def applyTriple (X : Triple) (a : Fin 3 → ℝ) : Fin 3 → ℝ := fun i ↦ ∑ j, a j * X j i

def totalTriple (X : Triple) : Fin 3 → ℝ := ∑ j, X j

























end HlawkaSchatten.DiagonalConstruction
Source
https://github.com/savarin/hlawka-schatten/blob/79aa498bfcf7b22bd91d771fb32ec278e2d4704b/HlawkaSchatten/DiagonalConstruction/BoxGeometry.lean#L17-L23
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