Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The scalar Bregman-to-Mazur ratio, regularized and compactified

Definition
HlawkaSchatten_ScalarRatio

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

bregman-divergencecompactificationhlawka-schattenmazur-mapscalar-analysis

For real p,tp,tp,t, using the scalar Bregman divergence βp\beta_pβp​ and scalar Mazur map ψp\psi_pψp​ from the ScalarBregman bundle:

  • scalarRatio p t :=βp(t,1)/(ψp(t)−1)2:= \beta_p(t,1)\big/(\psi_p(t)-1)^2:=βp​(t,1)/(ψp​(t)−1)2 — the Bregman-to-Mazur ratio, with its second scalar argument normalized to 111.
  • regularizedScalarRatio p t :=:=:= if t=1t=1t=1 then 2(p−1)/p22(p-1)/p^22(p−1)/p2 else scalarRatio p t — the same ratio with its removable singularity at t=1t=1t=1 (where the denominator (ψp(t)−1)2(\psi_p(t)-1)^2(ψp​(t)−1)2 vanishes) patched by the value 2(p−1)/p22(p-1)/p^22(p−1)/p2, which is the limit of scalarRatio p at t=1t=1t=1 for p>1p>1p>1 (tendsto_scalarRatio_one, a separate page).
  • compactifiedScalarRatio p (a function OnePoint ℝ → ℝ) — extends regularizedScalarRatio p to the one-point compactification of R\mathbb{R}R, assigning the point at infinity the value 1/p1/p1/p, which is the limit of the ratio as t→±∞t\to\pm\inftyt→±∞ for p>1p>1p>1 (tendsto_scalarRatio_atTop/atBot in the source module). At p=1p=1p=1 the ratio is identically 000 for t>0t>0t>0, so this assigned value does not match a limit at every ppp.

These three definitions build, in stages, a function on a compact domain, which is what lets a compactness argument (elsewhere) produce a uniform two-sided bound mp≤ratio≤Mpm_p\le\text{ratio}\le M_pmp​≤ratio≤Mp​ on the compactified real line — the "scalar comparison" step of the construction.

One embedded algebraic fact is included: scalarMazur_sq, that for p>0p>0p>0, ψp(a)2=∣a∣p\psi_p(a)^2=|a|^pψp​(a)2=∣a∣p.

Definition code
import Definitions.Def_HlawkaSchatten_ScalarBregman
import Mathlib.Analysis.Calculus.LHopital
import Mathlib.Analysis.Convex.Deriv
import Mathlib.Analysis.Convex.SpecificFunctions.Basic
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.Analysis.InnerProductSpace.Dual
import Mathlib.Analysis.InnerProductSpace.NormPow
import Mathlib.Data.Sign.Basic
import Mathlib.Topology.Compactification.OnePoint.Basic
import Mathlib.Topology.Instances.Sign

/-
Copyright (c) 2026 Ezzeri Esa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ezzeri Esa
-/

/-!
# The scalar Bregman--Mazur ratio

This file starts the compact scalar-reduction layer of the Schatten Hlawka
argument.  The raw quotient has a removable singularity at `t = 1`; the
regularized version installs its second-order limiting value.
-/

namespace HlawkaSchatten

open Filter Set
open scoped OnePoint Topology

/-- The Bregman-to-Mazur ratio after normalizing the second scalar to one. -/
noncomputable def scalarRatio (p t : ℝ) : ℝ :=
  scalarBregman p t 1 / (scalarMazur p t - 1) ^ 2

/-- The scalar ratio with its removable value installed at `t = 1`. -/
noncomputable def regularizedScalarRatio (p t : ℝ) : ℝ :=
  if t = 1 then 2 * (p - 1) / p ^ 2 else scalarRatio p t









































































/-- The scalar ratio on the one-point compactification of the real line. -/
noncomputable def compactifiedScalarRatio (p : ℝ) : OnePoint ℝ → ℝ :=
  fun x ↦ x.elim (1 / p) (regularizedScalarRatio p)











/-- Squaring the scalar Mazur map recovers the degree-`p` absolute power. -/
theorem scalarMazur_sq {p : ℝ} (hp : 0 < p) (a : ℝ) :
    (scalarMazur p a) ^ 2 = |a| ^ p := by
  by_cases ha : a = 0
  · subst a
    simp [Real.zero_rpow hp.ne']
  · have habs : 0 < |a| := abs_pos.mpr ha
    have hpow : (|a| ^ (p / 2)) ^ 2 = |a| ^ p := by
      rw [← Real.rpow_natCast, ← Real.rpow_mul habs.le]
      congr 1
      ring
    rcases lt_or_gt_of_ne ha with haneg | hapos
    · simp [scalarMazur, signedPower, sign_neg haneg, hpow]
    · simp [scalarMazur, signedPower, sign_pos hapos, hpow]







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