Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Nuclear operators on Hilbert spaces: trace, trace norm, Hilbert–Schmidt norm

Definition
MasulloGRH_HilbertNuclear

by Shuze Chen · Nov 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

functional-analysishilbert-spacesmasullotrace-class-operators

Let HHH be a complex Hilbert space and TTT a bounded operator on HHH.

  1. TTT is nuclear, or trace class, if there are sequences (xm)(x_m)(xm​), (ym)(y_m)(ym​) in HHH with ∑m∥xm∥ ∥ym∥<∞\sum_m\|x_m\|\,\|y_m\|<\infty∑m​∥xm​∥∥ym​∥<∞ and
Tu=∑m⟨u,xm⟩ ymfor all u∈H.Tu=\sum_{m}\langle u,x_m\rangle\,y_m\qquad\text{for all }u\in H .Tu=m∑​⟨u,xm​⟩ym​for all u∈H.
  1. The trace of TTT is
Trace⁡(T)=∑φ∈Σ⟨Tφ,φ⟩H\operatorname{Trace}(T)=\sum_{\varphi\in\Sigma}\langle T\varphi,\varphi\rangle_HTrace(T)=φ∈Σ∑​⟨Tφ,φ⟩H​

for an orthonormal basis Σ\SigmaΣ of HHH. For nuclear TTT the sum converges absolutely and does not depend on Σ\SigmaΣ. 3. The absolute value is ∣T∣=(T∗T)1/2|T|=(T^*T)^{1/2}∣T∣=(T∗T)1/2, and the trace norm is ∥T∥Tr=Trace⁡(∣T∣)\|T\|_{\mathrm{Tr}}=\operatorname{Trace}(|T|)∥T∥Tr​=Trace(∣T∣). 4. The Hilbert–Schmidt norm is ∥T∥S2=(∑φ∈Σ∥Tφ∥2)1/2\|T\|_{S_2}=\big(\sum_{\varphi\in\Sigma}\|T\varphi\|^2\big)^{1/2}∥T∥S2​​=(∑φ∈Σ​∥Tφ∥2)1/2, and TTT is Hilbert–Schmidt if this is finite.

The nuclear operators form the ideal N(H)N(H)N(H), normed by the trace norm; the draft computes traces of operators on Hardy–Sobolev completions of spaces of θ\thetaθ-functions.

Formalization Note The sums of items 2 and 4 are taken over one fixed orthonormal basis of HHH. The inner product is linear in the second variable, so ⟨Tφ,φ⟩H\langle T\varphi,\varphi\rangle_H⟨Tφ,φ⟩H​ is written with TφT\varphiTφ in the second slot.

Definition code
import Mathlib

/-!
# Nuclear operators, traces and Hilbert–Schmidt operators on Hilbert spaces

Source: A. M. Masullo, *The Music of the Primes* (draft of 20 November 2026), Appendix C, §C.3:
Definition C.3.4.2 (pp. 697–698), Definition C.3.6.2 (p. 704).
-/

namespace MasulloGRH

open MeasureTheory

noncomputable section

variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]

/-- `T` is a nuclear (trace-class) operator on the Hilbert space `H`: there are sequences
`(x_m)`, `(y_m)` in `H` with `∑ ‖x_m‖ ‖y_m‖ < ∞` and `T u = ∑_m ⟨u, x_m⟩ y_m` for all `u`. -/
def IsNuclearOperator (T : H →L[ℂ] H) : Prop :=
  ∃ x y : ℕ → H, Summable (fun m => ‖x m‖ * ‖y m‖) ∧
    ∀ u : H, HasSum (fun m => inner ℂ (x m) u • y m) (T u)

/-- An orthonormal basis of `H`, chosen once and for all. -/
def chosenHilbertBasis (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H]
    [CompleteSpace H] : HilbertBasis (exists_hilbertBasis ℂ H).choose ℂ H :=
  (exists_hilbertBasis ℂ H).choose_spec.choose

/-- Definition C.3.4.2(1): the trace `∑_φ ⟨T φ, φ⟩` of an operator `T`, the sum over an
orthonormal basis of `H`.  For a nuclear operator the sum converges absolutely and does not
depend on the orthonormal basis. -/
def operatorTrace (T : H →L[ℂ] H) : ℂ :=
  ∑' i, inner ℂ (chosenHilbertBasis H i) (T (chosenHilbertBasis H i))

/-- The absolute value `|T| = (T* T)^{1/2}` of an operator. -/
def operatorAbs (T : H →L[ℂ] H) : H →L[ℂ] H := CFC.sqrt (star T * T)

/-- Definition C.3.4.2(2): the trace norm `‖T‖_Tr = Trace |T|`. -/
def traceNorm (T : H →L[ℂ] H) : ℝ := (operatorTrace (operatorAbs T)).re

/-- The Hilbert–Schmidt norm `‖T‖_{S₂} = (∑_φ ‖T φ‖²)^{1/2}` (Definition C.3.6.2), the sum over an
orthonormal basis of `H`. -/
def hilbertSchmidtNorm (T : H →L[ℂ] H) : ℝ :=
  Real.sqrt (∑' i, ‖T (chosenHilbertBasis H i)‖ ^ 2)

/-- `T` is a Hilbert–Schmidt operator: `∑_φ ‖T φ‖² < ∞` over an orthonormal basis. -/
def IsHilbertSchmidt (T : H →L[ℂ] H) : Prop :=
  Summable (fun i => ‖T (chosenHilbertBasis H i)‖ ^ 2)

end

end MasulloGRH
Source
A. M. Masullo, The Music of the Primes, draft of 20 November 2026, https://math216.wordpress.com/wp-content/uploads/2026/11/the-music-of-the-primes.pdf, Appendix C, §C.3, Definition C.3.4.2 (pp. 697–698) and Definition C.3.6.2 (p. 704)

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