Offline · exact source
Exact Lean source

InfiniteTraceClassBasis

formalization/Cloning/InfiniteTraceClassBasis.lean

Source hash: a3f87e4d40bc60369a0a42b21ecf465b21a7986031b33abdb3a6a78a9688f642

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1/-
2Copyright (c) 2026 Tom Ole Diem. All rights reserved.
3Released under Apache 2.0 license as described in PHYSLIB-LICENSE.txt.
4Authors: Tom Ole Diem
5 
6Adapted from Physlib commit f6e446ca99fd83b3a60743a61900cb2acb98f531,
7PhyslibAlpha/ProbabilisticTheory/HilbertSpace/TraceClass/GeneralIdeal.lean.
8Upstream blob: 7ba8c586b9941e9280fa0e14c19c8a66353313fc.
9Compatibility: Only module imports and namespace packaging are changed.
10-/
11 
12import Cloning.InfiniteTraceClassPolar
13import Cloning.InfiniteHilbertSchmidt
14 
15/-!
16 
17# Basis independence of the trace
18 
19## i. Overview
20 
21For a trace-class operator `T`, `√|T|` is Hilbert–Schmidt, so the diagonal of `T = (U √|T|) √|T|` is
22a diagonal of a product of Hilbert–Schmidt operators. This shows that the trace of every trace-class
23operator is an absolutely convergent sum whose value does not depend on the basis.
24 
25## ii. Key results
26 
27- `isHilbertSchmidt_sqrt_abs_of_isTraceClass` : `√|T|` is Hilbert–Schmidt.
28- `summable_trace_diagonal_of_isTraceClass` : the diagonal of a trace-class operator is absolutely
29  summable.
30- `trace_eq_of_hilbertBasis` : the trace does not depend on the basis.
31 
32-/
33 
34namespace Cloning.InfiniteTraceClass
35 
36set_option backward.isDefEq.respectTransparency false
37 
38noncomputable section
39 
40open scoped ComplexOrder InnerProductSpace
41open HilbertSchmidt
42 
43variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
44 
45lemma sqrt_abs_diagonal_eq_norm_sq {T : H →L[ℂ] H} {w : Set H} (b : HilbertBasis w ℂ H)
46    (i : w) :
47    (⟪b i, CFC.abs T (b i)⟫_ℂ).re = ‖(CFC.sqrt (CFC.abs T)) (b i)‖ ^ 2 := by
48  let A : H →L[ℂ] H := CFC.abs T
49  let S : H →L[ℂ] H := CFC.sqrt A
50  have hAnonneg : 0 ≤ A := CFC.abs_nonneg T
51  have hSself : IsSelfAdjoint S := .of_nonneg (CFC.sqrt_nonneg A)
52  have hSS : S * S = A := CFC.sqrt_mul_sqrt_self A hAnonneg
53  have hinner : ⟪b i, A (b i)⟫_ℂ = ⟪S (b i), S (b i)⟫_ℂ := by
54    have hSstar : ContinuousLinearMap.adjoint S = S :=
55      (ContinuousLinearMap.star_eq_adjoint S).symm.trans hSself
56    rw [← hSS]
57    show ⟪b i, (S * S) (b i)⟫_ℂ = _
58    rw [ContinuousLinearMap.mul_def, ContinuousLinearMap.comp_apply,
59      ← ContinuousLinearMap.adjoint_inner_left S (S (b i)) (b i), hSstar]
60  rw [show CFC.abs T = A from rfl, hinner, inner_self_eq_norm_sq_to_K]
61  norm_cast
62 
63lemma isHilbertSchmidt_sqrt_abs_of_isTraceClass {T : H →L[ℂ] H} (hT : IsTraceClass T) :
64    IsHilbertSchmidt (CFC.sqrt (CFC.abs T)) := by
65  obtain ⟨w, b, _⟩ := exists_hilbertBasis ℂ H
66  refine ⟨w, b, ?_⟩
67  have hdiag : Summable (fun i : w => (⟪b i, CFC.abs T (b i)⟫_ℂ).re) := isTraceClass_iff.mp hT w b
68  exact hdiag.congr (fun i => sqrt_abs_diagonal_eq_norm_sq b i)
69 
70lemma summable_trace_diagonal_of_isTraceClass {T : H →L[ℂ] H} (hT : IsTraceClass T)
71    {w : Set H} (b : HilbertBasis w ℂ H) :
72    Summable (fun i : w => ⟪b i, T (b i)⟫_ℂ) := by
73  let S : H →L[ℂ] H := CFC.sqrt (CFC.abs T)
74  let U : H →L[ℂ] H := Polar.polarFactor T
75  have hS : IsHilbertSchmidt S := isHilbertSchmidt_sqrt_abs_of_isTraceClass hT
76  have hU : ‖U‖ ≤ 1 := Polar.polarFactor_opNorm_le T
77  have hUS : IsHilbertSchmidt (U * S) := isHilbertSchmidt_mul_left_of_opNorm_le_one hU hS
78  have hdiag := summable_diagonal_of_hilbertSchmidt b hUS hS
79  have hSS : S * S = CFC.abs T := CFC.sqrt_mul_sqrt_self (CFC.abs T) (CFC.abs_nonneg T)
80  have hfactor : (U * S) * S = T := by
81    rw [mul_assoc, hSS]; exact Polar.polarFactor_mul_absOperator T
82  simpa only [hfactor] using hdiag
83 
84lemma tsum_diagonal_eq_of_isTraceClass {T : H →L[ℂ] H} (hT : IsTraceClass T)
85    {w w' : Set H} (b : HilbertBasis w ℂ H) (c : HilbertBasis w' ℂ H) :
86    (∑' i : w, ⟪b i, T (b i)⟫_ℂ) = ∑' j : w', ⟪c j, T (c j)⟫_ℂ := by
87  let S : H →L[ℂ] H := CFC.sqrt (CFC.abs T)
88  let U : H →L[ℂ] H := Polar.polarFactor T
89  have hS : IsHilbertSchmidt S := isHilbertSchmidt_sqrt_abs_of_isTraceClass hT
90  have hUS : IsHilbertSchmidt (U * S) :=
91    isHilbertSchmidt_mul_left_of_opNorm_le_one (Polar.polarFactor_opNorm_le T) hS
92  have hSS : S * S = CFC.abs T := CFC.sqrt_mul_sqrt_self (CFC.abs T) (CFC.abs_nonneg T)
93  have hfactor : (U * S) * S = T := by
94    rw [mul_assoc, hSS]; exact Polar.polarFactor_mul_absOperator T
95  have h₁ := HilbertSchmidt.tsum_diagonal_mul_eq_tsum_diagonal_swap (R := U * S) (S := S) b c hUS hS
96  have h₂ := HilbertSchmidt.tsum_diagonal_mul_eq_tsum_diagonal_swap (R := S) (S := U * S) c c hS hUS
97  rw [hfactor] at h₁ h₂
98  calc
99    (∑' i : w, ⟪b i, T (b i)⟫_ℂ) = ∑' j : w', ⟪c j, (S * (U * S)) (c j)⟫_ℂ := h₁
100    _ = ∑' j : w', ⟪c j, T (c j)⟫_ℂ := h₂
101 
102lemma trace_eq_of_hilbertBasis_unconditional {T : H →L[ℂ] H} (hT : IsTraceClass T) {w : Set H}
103    (b : HilbertBasis w ℂ H) :
104    trace T hT = ∑' i : w, ⟪b i, T (b i)⟫_ℂ := by
105  let w₀ : Set H := hT.choose
106  let b₀ : HilbertBasis w₀ ℂ H := hT.choose_spec.choose
107  change (∑' i : w₀, ⟪b₀ i, T (b₀ i)⟫_ℂ) = ∑' i : w, ⟪b i, T (b i)⟫_ℂ
108  exact tsum_diagonal_eq_of_isTraceClass hT b₀ b
109 
110/-- **Basis-independent trace evaluation for an arbitrary trace-class operator.** Unlike the
111witness-basis definition, this requires no self-adjointness/positivity hypothesis. -/
112lemma trace_eq_of_hilbertBasis {T : H →L[ℂ] H} (hT : IsTraceClass T) {w : Set H}
113    (b : HilbertBasis w ℂ H) :
114    trace T hT = ∑' i : w, ⟪b i, T (b i)⟫_ℂ :=
115  trace_eq_of_hilbertBasis_unconditional hT b
116 
117end
118 
119 
120end Cloning.InfiniteTraceClass