Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Pair and triple gaps of a family after a possibly nonlinear map into a Hilbert space

Definition
HlawkaSchatten_MazurGapComparison

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

gap-comparisonhlawka-inequalityhlawka-schattenmazur-map

Fix any type EEE and a normed additive commutative group HHH. These three definitions require neither an addition operation on EEE nor a scalar field or inner product on HHH. Let N:E→RN:E\to\mathbb{R}N:E→R be any size functional and map:E→H\mathrm{map}:E\to Hmap:E→H a possibly nonlinear map.

  • mappedPairGap N map x y :=N(x)+N(y)−∥map(x)+map(y)∥:= N(x)+N(y)-\|\mathrm{map}(x)+\mathrm{map}(y)\|:=N(x)+N(y)−∥map(x)+map(y)∥
  • mappedTripleGap N map x y z :=N(x)+N(y)+N(z)−∥map(x)+map(y)+map(z)∥:= N(x)+N(y)+N(z)-\|\mathrm{map}(x)+\mathrm{map}(y)+\mathrm{map}(z)\|:=N(x)+N(y)+N(z)−∥map(x)+map(y)+map(z)∥
  • mappedPairGapSum N map x y z :=:=:= the sum of the three mappedPairGap values on the triple (x,y,z)(x,y,z)(x,y,z).

The point of naming these separately from pairGap/tripleGap/pairGapSum (GapComparison bundle) is the norm term: it is ∥map(x)+map(y)∥\|\mathrm{map}(x)+\mathrm{map}(y)\|∥map(x)+map(y)∥, the norm of the sum of images, not ∥map(x+y)∥\|\mathrm{map}(x+y)\|∥map(x+y)∥, the norm of the image of the sum. The later application takes HHH to be a Hilbert space and uses its Hlawka inequality on the images. A possibly nonlinear map need not identify these two expressions.

Definition code
import Mathlib.Analysis.InnerProductSpace.Basic
import 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
-/

/-!
# Gap comparison through a nonlinear Mazur map

The Mazur map is not additive, so the Hilbert model for a family
`x, y, z` must use sums of the three *images*, rather than the image of
`x + y + z`.  This file records that distinction in the interface used by
the variational proof and carries out the final ordered-algebraic transfer.
-/

namespace HlawkaSchatten

variable {E H : Type*} [Add E]
  {𝕜 : Type*} [RCLike 𝕜]
  [NormedAddCommGroup H] [InnerProductSpace 𝕜 H]

/-- Two-body deficit of a family after applying a possibly nonlinear map
into a normed additive group. -/
def mappedPairGap (size : E → ℝ) (map : E → H) (x y : E) : ℝ :=
  size x + size y - ‖map x + map y‖

/-- Three-body deficit of a family after applying a possibly nonlinear map
into a normed additive group. -/
def mappedTripleGap (size : E → ℝ) (map : E → H) (x y z : E) : ℝ :=
  size x + size y + size z - ‖map x + map y + map z‖

/-- Sum of the three two-body mapped deficits. -/
def mappedPairGapSum (size : E → ℝ) (map : E → H) (x y z : E) : ℝ :=
  mappedPairGap size map x y + mappedPairGap size map x z +
    mappedPairGap size map y z

include 𝕜







end HlawkaSchatten
Source
https://github.com/savarin/hlawka-schatten/blob/79aa498bfcf7b22bd91d771fb32ec278e2d4704b/HlawkaSchatten/MazurGapComparison.lean#L23-L36
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by savarin · Oct 1, 2026

    Confirmed by the mission captain (proposal self-audit).

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