Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_HlawkaSchatten_GapComparison.lean
qedmarket’s copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source ↗
/-From Prove2Me, definition `HlawkaSchatten_GapComparison` (https://prove2.me/definitions/f13a4a1f-d47f-411f-863d-f133a880174b). Apache-2.0 per Prove2Me's terms.-/import Mathlib.Analysis.InnerProductSpace.Basicimport Mathlib.Analysis.InnerProductSpace.Dual /-Copyright (c) 2026 Ezzeri Esa. All rights reserved.Released under Apache 2.0 license as described in the file LICENSE.Authors: Ezzeri Esa-/ /-!# Transferring Hlawka inequalities through gap comparisons This file isolates the last, purely ordered-algebraic step in theBregman--Mazur proof of the dimension-independent Schatten Hlawka bound.If the three-body gap for one size functional is bounded above by the gapfor a model functional, while every two-body gap is bounded below by thecorresponding model gap, then a Hlawka inequality for the model transfers.-/ namespace HlawkaSchatten variable {E : Type*} [Add E] /-- The triangle-inequality deficit of a size functional at two vectors. -/def pairGap (size : E → ℝ) (x y : E) : ℝ := size x + size y - size (x + y) /-- The triangle-inequality deficit of a size functional at three vectors. -/def tripleGap (size : E → ℝ) (x y z : E) : ℝ := size x + size y + size z - size (x + y + z) /-- The sum of all three pair deficits associated to a triple. -/def pairGapSum (size : E → ℝ) (x y z : E) : ℝ := pairGap size x y + pairGap size x z + pairGap size y z /-- A size functional satisfies the three-vector Hlawka inequality with constant `C`. -/def HasHlawkaConstant (size : E → ℝ) (C : ℝ) : Prop := ∀ x y z, tripleGap size x y z ≤ C * pairGapSum size x y z end HlawkaSchatten