The spectral Mazur distance squared as an overlap-weighted sum of scalar Mazur terms
ProvedHlawkaSchatten.spectralMazurDistanceSq_eq_sumFix a finite-dimensional complex inner-product space and a real number (no hypothesis is placed on ). Let and be orthonormal bases of indexed by finite index types , with real numbers , attached to them. Write for the self-adjoint operator on with (spectralDiagonal), and for write for the tuple .
Let for , with , be the scalar Mazur map (scalarMazur). The spectral Mazur distance squared of against is
This is the real-valued definition spectralMazurDistanceSq. With the squared overlap of two basis vectors (orthonormalBasisOverlap), the theorem states
This is the second of two exact finite double-sum decompositions (the other is for the trace-level Bregman divergence) that let a scalar comparison known for every pair of real numbers be lifted, with the overlap weights — nonnegative and summing to along every row and column — unchanged in its constants, to a comparison between traces of finite-dimensional Hermitian operators.
Formalization Note The identity holds for every real and needs no hypothesis on it: both sides are already expressed through the fully totalized real power , and the right-hand side is manifestly a sum of squares whatever the sign or size of .
import Definitions.Def_HlawkaSchatten_HermitianSpectral
import Definitions.Def_HlawkaSchatten_ScalarBregman
import Definitions.Def_HlawkaSchatten_SpectralLift
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.Analysis.InnerProductSpace.PiL2
import Mathlib.Analysis.InnerProductSpace.Trace
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
-/
/-!
# Finite Hermitian spectral trace expansions
This file connects the overlap-weighted scalar comparison to traces of
finite-dimensional symmetric complex-linear maps.
-/
open scoped InnerProductSpace
open RCLike
open ComplexConjugate
variable {ι κ E : Type*} [Fintype ι] [Fintype κ]
[NormedAddCommGroup E] [InnerProductSpace ℂ E]
open HlawkaSchatten
theorem HlawkaSchatten.spectralMazurDistanceSq_eq_sum [FiniteDimensional ℂ E]
(p : ℝ) (e : OrthonormalBasis ι ℂ E) (a : ι → ℝ)
(f : OrthonormalBasis κ ℂ E) (b : κ → ℝ) :
spectralMazurDistanceSq p e a f b =
∑ ij : ι × κ, orthonormalBasisOverlap e f ij *
(scalarMazur p (a ij.1) - scalarMazur p (b ij.2)) ^ 2 := by sorry