Nuclear operators on Hilbert spaces: trace, trace norm, Hilbert–Schmidt norm
DefinitionMasulloGRH_HilbertNuclearfunctional-analysishilbert-spacesmasullotrace-class-operators
Let be a complex Hilbert space and a bounded operator on .
- is nuclear, or trace class, if there are sequences , in with and
- The trace of is
for an orthonormal basis of . For nuclear the sum converges absolutely and does not depend on . 3. The absolute value is , and the trace norm is . 4. The Hilbert–Schmidt norm is , and is Hilbert–Schmidt if this is finite.
The nuclear operators form the ideal , normed by the trace norm; the draft computes traces of operators on Hardy–Sobolev completions of spaces of -functions.
Formalization Note The sums of items 2 and 4 are taken over one fixed orthonormal basis of . The inner product is linear in the second variable, so is written with 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)