Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
โ† Formalpedia

The finite-dimensional Schatten ppp-quantity, from singular values

Definition
HlawkaSchatten_SchattenNorm

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

hlawka-schattenoperator-normsschatten-normsingular-values

Fix a scalar field Kโˆˆ{R,C}\mathbb{K}\in\{\mathbb{R},\mathbb{C}\}Kโˆˆ{R,C} (Lean: RCLike ๐•œ) and finite-dimensional inner product spaces E,FE,FE,F over K\mathbb{K}K. Let T:Eโ†’FT:E\to FT:Eโ†’F be K\mathbb{K}K-linear, with singular values ฯƒk(T)\sigma_k(T)ฯƒkโ€‹(T) (Mathlib's LinearMap.singularValues, a sequence that is nonzero for only finitely many kkk).

  • singularValuePowerSum p T :=โˆ‘k:โ€‰ฯƒk(T)โ‰ 0ฯƒk(T)p:= \sum_{k:\,\sigma_k(T)\neq0}\sigma_k(T)^p:=โˆ‘k:ฯƒkโ€‹(T)๎€ =0โ€‹ฯƒkโ€‹(T)p โ€” the sum of the ppp-th powers of the nonzero singular values, for any real ppp. Lean sums over the finite support of the singular-value sequence, so this is a finite sum by construction, not merely because it happens to converge; for p>0p>0p>0 it agrees with a sum over every kkk, since 0p=00^p=00p=0, but the two differ at p=0p=0p=0 (where the all-kkk reading would count every zero singular value too, via 00=10^0=100=1).
  • schattenPNorm p T :=(singularValuePowerSumโ€‰pโ€‰T)1/p=:โˆฅTโˆฅp:= \bigl(\mathrm{singularValuePowerSum}\,p\,T\bigr)^{1/p} =: \|T\|_p:=(singularValuePowerSumpT)1/p=:โˆฅTโˆฅpโ€‹ โ€” the Schatten ppp-quantity. The definition is total in ppp and TTT; it is a genuine norm only in the intended range pโ‰ฅ1p\ge1pโ‰ฅ1, and the analytic hypotheses needed for norm-type facts are placed on the theorems that use them rather than on this definition.
  • schattenPowerSphere p :={T:singularValuePowerSumโ€‰pโ€‰T=1}:= \{T : \mathrm{singularValuePowerSum}\,p\,T = 1\}:={T:singularValuePowerSumpT=1} โ€” the subtype of operators whose singular-value ppp-power sum equals exactly one: the normalization actually used by the Mazur-map constructions, before the outer 1/p1/p1/p root that appears in โˆฅTโˆฅp\|T\|_pโˆฅTโˆฅpโ€‹ itself.

The bundle also carries five short supporting facts: singularValuePowerSum is nonnegative, and strictly positive when Tโ‰ 0T\neq0T๎€ =0; consequently schattenPNorm is strictly positive for Tโ‰ 0T\ne0T๎€ =0; for p>0p>0p>0, โˆฅTโˆฅp=1\|T\|_p=1โˆฅTโˆฅpโ€‹=1 exactly when singularValuePowerSum p T = 1 (so the two normalizations above agree); and at p=2p=2p=2, singularValuePowerSum 2 T equals Reโ€‰Tr(Tโˆ—T)\mathrm{Re}\,\mathrm{Tr}(T^*T)ReTr(Tโˆ—T), the real trace of the domain Gram operator.

Definition code
import Mathlib.Analysis.InnerProductSpace.SingularValues
import Mathlib.Analysis.InnerProductSpace.Trace

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

/-!
# Finite-dimensional Schatten quantities

This file gives the definition needed by the Hlawka boundary. Mathlib's
singular-value sequence is finitely supported, so the power sum is finite
without choosing bases or matrix dimensions.
-/

namespace HlawkaSchatten

variable {๐•œ E F : Type*} [RCLike ๐•œ]
  [NormedAddCommGroup E] [InnerProductSpace ๐•œ E] [FiniteDimensional ๐•œ E]
  [NormedAddCommGroup F] [InnerProductSpace ๐•œ F] [FiniteDimensional ๐•œ F]

/-- The sum of the `p`-th powers of the singular values of `T`. -/
noncomputable def singularValuePowerSum (p : โ„) (T : E โ†’โ‚—[๐•œ] F) : โ„ :=
  โˆ‘ i โˆˆ T.singularValues.support, (T.singularValues i) ^ p

/--
The finite-dimensional Schatten `p` quantity: the `1 / p` power of the
sum of the `p`-th powers of the singular values.

For the norm laws, the intended range is `1 โ‰ค p`. Keeping the definition
total makes boundary statements straightforward while putting analytic
hypotheses on the theorems that need them.
-/
noncomputable def schattenPNorm (p : โ„) (T : E โ†’โ‚—[๐•œ] F) : โ„ :=
  (singularValuePowerSum p T) ^ (1 / p)

/-- The unit sphere described by a singular-value power sum.  This is the
normalization naturally used by the Mazur map before taking the outer
`p`-th root in the Schatten norm. -/
def schattenPowerSphere (p : โ„) :=
  {T : E โ†’โ‚—[๐•œ] F // singularValuePowerSum p T = 1}

theorem singularValuePowerSum_nonneg (p : โ„) (T : E โ†’โ‚—[๐•œ] F) :
    0 โ‰ค singularValuePowerSum p T := by
  unfold singularValuePowerSum
  exact Finset.sum_nonneg fun i _ โ†ฆ Real.rpow_nonneg (T.singularValues_nonneg i) _



theorem singularValuePowerSum_pos (p : โ„) {T : E โ†’โ‚—[๐•œ] F}
    (hT : T โ‰  0) : 0 < singularValuePowerSum p T := by
  unfold singularValuePowerSum
  have hsupport : T.singularValues.support.Nonempty := by
    rw [Finsupp.support_nonempty_iff]
    exact T.singularValues_eq_zero_iff.not.mpr hT
  apply Finset.sum_pos'
  ยท exact fun i _ โ†ฆ Real.rpow_nonneg (T.singularValues_nonneg i) _
  ยท obtain โŸจi, hiโŸฉ := hsupport
    refine โŸจi, hi, Real.rpow_pos_of_pos ?_ pโŸฉ
    exact (T.singularValues_pos_iff_ne_zero i).mpr (Finsupp.mem_support_iff.mp hi)

theorem schattenPNorm_pos (p : โ„) {T : E โ†’โ‚—[๐•œ] F} (hT : T โ‰  0) :
    0 < schattenPNorm p T :=
  Real.rpow_pos_of_pos (singularValuePowerSum_pos p hT) _



/-- For a positive exponent, unit Schatten norm is equivalent to unit
singular-value power sum. -/
theorem schattenPNorm_eq_one_iff {p : โ„} (hp : 0 < p) (T : E โ†’โ‚—[๐•œ] F) :
    schattenPNorm p T = 1 โ†” singularValuePowerSum p T = 1 := by
  let s := singularValuePowerSum p T
  have hs : 0 โ‰ค s := singularValuePowerSum_nonneg p T
  constructor
  ยท intro h
    have hspos : 0 < s := by
      by_contra hn
      have hs0 : s = 0 := le_antisymm (le_of_not_gt hn) hs
      unfold schattenPNorm at h
      rw [show singularValuePowerSum p T = s by rfl, hs0,
        Real.zero_rpow (one_div_ne_zero hp.ne')] at h
      norm_num at h
    have hpow := congrArg (fun x : โ„ => x ^ p) h
    simp only [Real.one_rpow] at hpow
    change (s ^ (1 / p)) ^ p = 1 at hpow
    rw [โ† Real.rpow_mul hs] at hpow
    rw [show 1 / p * p = 1 by field_simp [hp.ne'], Real.rpow_one] at hpow
    exact hpow
  ยท intro h
    unfold schattenPNorm
    rw [h, Real.one_rpow]





/-- At exponent two, the singular-value power sum is the real trace of the
domain Gram operator. -/
theorem singularValuePowerSum_two_eq_re_trace (T : E โ†’โ‚—[๐•œ] F) :
    singularValuePowerSum 2 T =
      RCLike.re ((T.adjoint.comp T).trace ๐•œ E) := by
  have hrank : Module.finrank ๐•œ T.range โ‰ค Module.finrank ๐•œ E :=
    T.finrank_range_le
  have hsum :
      (โˆ‘ i โˆˆ Finset.range (Module.finrank ๐•œ T.range), T.singularValues i ^ 2) =
        โˆ‘ i โˆˆ Finset.range (Module.finrank ๐•œ E), T.singularValues i ^ 2 := by
    apply Finset.sum_subset (Finset.range_mono hrank)
    intro i hi hi'
    have hirank : Module.finrank ๐•œ T.range โ‰ค i := by
      exact Nat.le_of_not_gt (fun hlt โ†ฆ hi' (Finset.mem_range.mpr hlt))
    rw [T.singularValues_eq_zero_iff_le_finrank_range.mpr hirank]
    norm_num
  unfold singularValuePowerSum
  rw [T.support_singularValues]
  simp_rw [Real.rpow_two]
  rw [T.isSymmetric_adjoint_comp_self.re_trace_eq_sum_eigenvalues rfl]
  simp_rw [โ† T.sq_singularValues_fin rfl]
  exact hsum.trans (Fin.sum_univ_eq_sum_range
    (fun i : โ„• โ†ฆ T.singularValues i ^ 2) (Module.finrank ๐•œ E)).symm



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