Offline · exact source
Exact Lean source

InfiniteTraceClassCutoff

formalization/Cloning/InfiniteTraceClassCutoff.lean

Source hash: e570e31011247881893cbfaf4d968d8e469f3ad746906aa52ffa1e66c7ec395a

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
1import Cloning.InfiniteTraceClassChannels
2import Cloning.InfiniteTraceClassSeries
3 
4/-! Projection compression with trace-preserving replacement on the actual
5trace-class Banach space. The replacement state is explicit. -/
6 
7namespace Cloning.InfiniteTraceClass
8 
9set_option backward.isDefEq.respectTransparency false
10 
11noncomputable section
12open scoped ComplexOrder InnerProductSpace
13 
14variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
15 
16/-- Multiplication by fixed bounded operators is continuous in trace norm. -/
17def sandwichCLM (P Q : H →L[ℂ] H) : TraceClass H →L[ℂ] TraceClass H :=
18  LinearMap.mkContinuous
19    { toFun := fun A => TraceClass.ofOperator (P * A.1 * Q) (isTraceClass_mul_mul A.2)
20      map_add' := by
21        intro A B
22        apply Subtype.ext
23        change P * (A.1 + B.1) * Q = P * A.1 * Q + P * B.1 * Q
24        simp [mul_add, add_mul]
25      map_smul' := by
26        intro c A
27        apply Subtype.ext
28        change P * (c • A.1) * Q = c • (P * A.1 * Q)
29        simp }
30    (‖P‖ * ‖Q‖) (fun A => by
31      change traceNorm _ _ ≤ _ * traceNorm A.1 A.2
32      calc
33        traceNorm _ _ ≤ ‖P‖ * traceNorm A.1 A.2 * ‖Q‖ :=
34          traceNorm_mul_mul_le A.2 _
35        _ = _ := by ring)
36 
37@[simp] lemma sandwichCLM_coe (P Q : H →L[ℂ] H) (A : TraceClass H) :
38    (sandwichCLM P Q A).1 = P * A.1 * Q := rfl
39 
40lemma sandwichCLM_nonneg {P : H →L[ℂ] H} (hP : IsSelfAdjoint P)
41    (A : TraceClass H) (hA : 0 ≤ A.1) : 0 ≤ (sandwichCLM P P A).1 :=
42  hP.conjugate_nonneg hA
43 
44/-- Trace cycling removes one copy of an orthogonal projection. -/
45lemma traceCLM_sandwich_projection {P : H →L[ℂ] H} (hP : IsStarProjection P)
46    (A : TraceClass H) :
47    traceCLM (sandwichCLM P P A) = traceCLM (sandwichCLM 1 P A) := by
48  have hAP : IsTraceClass (A.1 * P) := by
49    simpa using (isTraceClass_mul_mul (A := 1) (B := P) A.2)
50  have h := trace_mul_cycle (A := P) hAP
51  have hleft : P * (A.1 * P) = P * A.1 * P := (mul_assoc _ _ _).symm
52  have hright : A.1 * P * P = 1 * A.1 * P := by
53    rw [mul_assoc, hP.isIdempotentElem.eq, one_mul]
54  simpa only [hleft, hright] using h
55 
56/-- The two complementary compressed blocks have total trace equal to the input. -/
57lemma traceCLM_projection_split {P : H →L[ℂ] H} (hP : IsStarProjection P)
58    (A : TraceClass H) :
59    traceCLM (sandwichCLM P P A) + traceCLM (sandwichCLM (1 - P) (1 - P) A) =
60      traceCLM A := by
61  rw [traceCLM_sandwich_projection hP, traceCLM_sandwich_projection hP.one_sub,
62    ← map_add]
63  congr 1
64  apply Subtype.ext
65  change 1 * A.1 * P + 1 * A.1 * (1 - P) = A.1
66  simp only [one_mul]
67  rw [← mul_add, add_sub_cancel, mul_one]
68 
69/-- Projection compression followed by replacement of lost mass in `σ`.
70This is linear on every trace-class input, including nonpositive inputs. -/
71def projectionReplacement (P : H →L[ℂ] H) (hP : IsStarProjection P)
72    (σ : DensityState H) : PositiveTracePreservingMap H H where
73  toLinearMap :=
74    (sandwichCLM P P).toLinearMap +
75      (traceCLM.comp (sandwichCLM (1 - P) (1 - P))).toLinearMap.smulRight
76        (TraceClass.ofOperator σ.op σ.traceClass)
77  map_nonneg := by
78    intro A hA
79    change 0 ≤ (sandwichCLM P P A).1 +
80      traceCLM (sandwichCLM (1 - P) (1 - P) A) • σ.op
81    have hQ := sandwichCLM_nonneg hP.one_sub.isSelfAdjoint A hA
82    have ht := trace_eq_traceNorm_of_nonneg hQ (sandwichCLM (1 - P) (1 - P) A).2
83    apply add_nonneg (sandwichCLM_nonneg hP.isSelfAdjoint A hA)
84    change 0 ≤ trace (sandwichCLM (1 - P) (1 - P) A).1 _ • σ.op
85    rw [ht]
86    exact smul_nonneg (by exact_mod_cast traceNorm_nonneg _ _) σ.positive
87  trace_preserving := by
88    intro A
89    change traceCLM ((sandwichCLM P P A) +
90      traceCLM (sandwichCLM (1 - P) (1 - P) A) •
91        TraceClass.ofOperator σ.op σ.traceClass) = traceCLM A
92    rw [map_add, map_smul]
93    change traceCLM (sandwichCLM P P A) +
94      traceCLM (sandwichCLM (1 - P) (1 - P) A) * trace σ.op σ.traceClass = _
95    rw [σ.trace_one, mul_one]
96    exact traceCLM_projection_split hP A
97 
98lemma projectionReplacement_apply (P : H →L[ℂ] H) (hP : IsStarProjection P)
99    (σ : DensityState H) (A : TraceClass H) :
100    projectionReplacement P hP σ A = sandwichCLM P P A +
101      traceCLM (sandwichCLM (1 - P) (1 - P) A) •
102        TraceClass.ofOperator σ.op σ.traceClass := rfl
103 
104/-- If the replacement state lies in the retained subspace, so does every output. -/
105lemma projectionReplacement_supported (P : H →L[ℂ] H) (hP : IsStarProjection P)
106    (σ : DensityState H) (hσ : P * σ.op * P = σ.op) (A : TraceClass H) :
107    P * (projectionReplacement P hP σ A).1 * P =
108      (projectionReplacement P hP σ A).1 := by
109  change P * (P * A.1 * P + _ • σ.op) * P = P * A.1 * P + _ • σ.op
110  rw [mul_add, add_mul, mul_smul_comm, smul_mul_assoc, hσ]
111  congr 1
112  calc
113    P * (P * A.1 * P) * P = (P * P) * A.1 * (P * P) := by simp only [mul_assoc]
114    _ = P * A.1 * P := by rw [hP.isIdempotentElem.eq]
115 
116end
117end Cloning.InfiniteTraceClass