Offline · exact source
Exact Lean source

InfiniteTraceClassAlgebra

formalization/Cloning/InfiniteTraceClassAlgebra.lean

Source hash: 2948a88ebc8097094113c1171e05ec11c333bed31e55a3d1dd19566f5660c3c0

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/TraceAlgebra.lean.
8Upstream blob: 3b9f78daf7b160f3da9eeefb7bb0c7f92aef73e0.
9Compatibility: Qualifies the older map application lemmas.
10-/
11 
12import Cloning.InfiniteTraceClassNormBounds
13import Cloning.InfiniteTraceClassBanach
14 
15/-!
16 
17# Linearity and cyclicity of the trace
18 
19## i. Overview
20 
21The trace is linear on trace-class operators and cyclic against bounded operators: `Tr (A T) = Tr (T
22A)` for trace-class `T` and bounded `A`.
23 
24## ii. Key results
25 
26- `trace_add`, `trace_smul` : the trace is linear.
27- `trace_mul_cycle` : the trace is cyclic.
28 
29## iii. Table of contents
30 
31  - A.1. Additivity and cyclicity
32 
33-/
34 
35namespace Cloning.InfiniteTraceClass
36 
37set_option backward.isDefEq.respectTransparency false
38 
39noncomputable section
40 
41open scoped ComplexOrder InnerProductSpace
42open HilbertSchmidt
43 
44variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
45 
46/-- Scalar homogeneity of the trace, with the canonical trace-class proof for the scaled
47operator. -/
48lemma trace_smul {T : H →L[ℂ] H} (c : ℂ) (hT : IsTraceClass T) :
49    trace (c • T) (isTraceClass_smul c hT) = c * trace T hT := by
50  let hT' : IsTraceClass (c • T) := isTraceClass_smul c hT
51  let w : Set H := hT.choose
52  let b : HilbertBasis w ℂ H := hT.choose_spec.choose
53  have hleft := trace_eq_of_hilbertBasis hT' b
54  have hright := trace_eq_of_hilbertBasis hT b
55  rw [hleft, hright]
56  calc
57    (∑' i : w, ⟪b i, (c • T) (b i)⟫_ℂ) =
58        ∑' i : w, c * ⟪b i, T (b i)⟫_ℂ := by
59      apply tsum_congr
60      intro i
61      simp [inner_smul_right]
62    _ = c * ∑' i : w, ⟪b i, T (b i)⟫_ℂ := tsum_mul_left
63 
64/-! ### A.1. Additivity and cyclicity -/
65 
66/-- Additivity of the unconditional trace. -/
67lemma trace_add {T T' : H →L[ℂ] H} (hT : IsTraceClass T) (hT' : IsTraceClass T') :
68    trace (T + T') (isTraceClass_add hT hT') = trace T hT + trace T' hT' := by
69  obtain ⟨w, b, _⟩ := exists_hilbertBasis ℂ H
70  have hsum : IsTraceClass (T + T') := isTraceClass_add hT hT'
71  rw [trace_eq_of_hilbertBasis hsum b, trace_eq_of_hilbertBasis hT b,
72    trace_eq_of_hilbertBasis hT' b]
73  calc
74    (∑' i : w, ⟪b i, (T + T') (b i)⟫_ℂ) =
75        ∑' i : w, (⟪b i, T (b i)⟫_ℂ + ⟪b i, T' (b i)⟫_ℂ) := by
76      apply tsum_congr
77      intro i
78      simp [inner_add_right]
79    _ = (∑' i : w, ⟪b i, T (b i)⟫_ℂ) +
80        ∑' i : w, ⟪b i, T' (b i)⟫_ℂ :=
81      (summable_trace_diagonal_of_isTraceClass hT b).tsum_add
82        (summable_trace_diagonal_of_isTraceClass hT' b)
83 
84/-- Cyclicity of the trace across a bounded factor and a trace-class factor. -/
85lemma trace_mul_cycle {A T : H →L[ℂ] H} (hT : IsTraceClass T) :
86    trace (A * T) (isTraceClass_mul_mul (A := A) (B := 1) hT) =
87      trace (T * A) (isTraceClass_mul_mul (A := 1) (B := A) hT) := by
88  obtain ⟨w, b, _⟩ := exists_hilbertBasis ℂ H
89  obtain ⟨hR, hS, hfactor⟩ :=
90    isHilbertSchmidt_polarFactor_mul_sqrt_abs_and_sqrt_abs hT
91  let R : H →L[ℂ] H := Polar.polarFactor T * CFC.sqrt (CFC.abs T)
92  let S : H →L[ℂ] H := CFC.sqrt (CFC.abs T)
93  have hfactor' : R * S = T := by simpa [R, S] using hfactor
94  have hAR : IsHilbertSchmidt (A * R) :=
95    HilbertSchmidt.isHilbertSchmidt_mul_left hR
96  have hSA : IsHilbertSchmidt (S * A) :=
97    HilbertSchmidt.isHilbertSchmidt_mul_right hS
98  have h₁ := HilbertSchmidt.tsum_diagonal_mul_eq_tsum_diagonal_swap
99    (R := A * R) (S := S) b b hAR hS
100  have h₂ := HilbertSchmidt.tsum_diagonal_mul_eq_tsum_diagonal_swap
101    (R := S * A) (S := R) b b hSA hR
102  have h₃ : A * T = (A * R) * S := by
103    rw [show T = R * S from hfactor'.symm]
104    simp only [mul_assoc]
105  have h₄ : T * A = R * (S * A) := by
106    rw [show T = R * S from hfactor'.symm]
107    simp only [mul_assoc]
108  let hAT : IsTraceClass (A * T) := by
109    simpa using (isTraceClass_mul_mul (A := A) (B := 1) hT)
110  let hTA : IsTraceClass (T * A) := by
111    simpa using (isTraceClass_mul_mul (A := 1) (B := A) hT)
112  rw [trace_eq_of_hilbertBasis hAT b, trace_eq_of_hilbertBasis hTA b]
113  calc
114    (∑' i : w, ⟪b i, (A * T) (b i)⟫_ℂ) =
115        ∑' i : w, ⟪b i, ((A * R) * S) (b i)⟫_ℂ := by
116          rw [h₃]
117    _ =
118        ∑' i : w, ⟪b i, (S * (A * R)) (b i)⟫_ℂ := h₁
119    _ = ∑' i : w, ⟪b i, ((S * A) * R) (b i)⟫_ℂ := by
120          apply tsum_congr
121          intro i
122          simp only [mul_assoc]
123    _ = ∑' i : w, ⟪b i, (R * (S * A)) (b i)⟫_ℂ := h₂
124    _ = ∑' i : w, ⟪b i, (T * A) (b i)⟫_ℂ := by
125          rw [h₄]
126 
127 
128end
129end Cloning.InfiniteTraceClass