Exact Lean source
InfiniteFidelityWeighted
formalization/Cloning/InfiniteFidelityWeighted.lean
Source hash: 29bdd4590adb3fc8c242ef011de3691f2810acae46c51340ce7f493d8bb0485a
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
theorem
Cloning.InfiniteFidelity.trace_re_star_mul_selftheorem Cloning.InfiniteFidelity.trace_re_mul_star_selftheorem Cloning.InfiniteFidelity.trace_mul_cycle_hilbertSchmidttheorem Cloning.InfiniteFidelity.fidelity_le_weighted_sandwichestheorem Cloning.InfiniteFidelity.fidelity_le_unit_weighttheorem Cloning.InfiniteFidelity.trace_sandwich_cycletheorem Cloning.InfiniteFidelity.trace_re_mul_nonneg_of_nonneg_left_traceClasstheorem Cloning.InfiniteFidelity.fidelity_le_weighted_tracestheorem Cloning.InfiniteFidelity.fidelity_le_positive_weight1import Cloning.InfiniteFidelity
2
3/-! Weighted Cauchy–Schwarz bounds for root fidelity of actual infinite-dimensional
4trace-class operators. Bounded inverse factors are genuine operators, not assumed fidelity laws. -/
5
6namespace Cloning.InfiniteFidelity
7
8noncomputable section
9set_option backward.isDefEq.respectTransparency false
10open scoped ComplexOrder InnerProductSpace
11open InfiniteTraceClass InfiniteTraceClass.HilbertSchmidt
12
13variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
14
15lemma trace_re_star_mul_self {R : H →L[ℂ] H} (hR : IsHilbertSchmidt R)
16 {w : Set H} (b : HilbertBasis w ℂ H) :
17 (trace (star R * R) (isTraceClass_star_mul_self_of_isHilbertSchmidt hR)).re =
18 ∑' i : w, ‖R (b i)‖ ^ 2 := by
19 rw [trace_re_eq_traceNorm (star_mul_self_nonneg R), traceNorm_eq_of_hilbertBasis _ b,
20 CFC.abs_of_nonneg _ (star_mul_self_nonneg R)]
21 apply tsum_congr
22 intro i
23 simp only [ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.mul_def,
24 ContinuousLinearMap.comp_apply, ContinuousLinearMap.adjoint_inner_right,
25 inner_self_eq_norm_sq_to_K]
26 norm_cast
27
28lemma trace_re_mul_star_self {R : H →L[ℂ] H} (hR : IsHilbertSchmidt R)
29 {w : Set H} (b : HilbertBasis w ℂ H) :
30 (trace (R * star R) (isTraceClass_mul_star_of_isHilbertSchmidt hR)).re =
31 ∑' i : w, ‖R (b i)‖ ^ 2 := by
32 have h := trace_re_star_mul_self (isHilbertSchmidt_star hR) b
33 simp only [star_star] at h
34 rw [h]
35 exact (hasSum_norm_sq_apply_eq_adjoint b b
36 (summable_norm_sq_apply_of_hilbertBasis w b hR)).tsum_eq
37
38lemma trace_mul_cycle_hilbertSchmidt {R S : H →L[ℂ] H}
39 (hR : IsHilbertSchmidt R) (hS : IsHilbertSchmidt S) :
40 trace (R * S) (isTraceClass_mul_of_isHilbertSchmidt hR hS) =
41 trace (S * R) (isTraceClass_mul_of_isHilbertSchmidt hS hR) := by
42 obtain ⟨w, b, _⟩ := exists_hilbertBasis ℂ H
43 rw [trace_eq_of_hilbertBasis _ b, trace_eq_of_hilbertBasis _ b]
44 exact tsum_diagonal_mul_eq_tsum_diagonal_swap b b hR hS
45
46/-- Hilbert–Schmidt factorization with an inserted bounded right inverse. This formulation
47also handles nonscalar weights and avoids any finite-dimensional inverse convention. -/
48lemma fidelity_le_weighted_sandwiches {A B C D : H →L[ℂ] H}
49 (hA : 0 ≤ A) (hB : 0 ≤ B) (hTA : IsTraceClass A) (hTB : IsTraceClass B)
50 (hCD : C * D = 1) :
51 fidelity A B hA hB hTA hTB ≤
52 Real.sqrt (trace (star C * A * C) (isTraceClass_mul_mul hTA)).re *
53 Real.sqrt (trace (D * B * star D) (isTraceClass_mul_mul hTB)).re := by
54 obtain ⟨w, b, _⟩ := exists_hilbertBasis ℂ H
55 have hR : IsHilbertSchmidt (CFC.sqrt A * C) :=
56 isHilbertSchmidt_mul_right (isHilbertSchmidt_sqrt hA hTA)
57 have hS : IsHilbertSchmidt (D * CFC.sqrt B) :=
58 isHilbertSchmidt_mul_left (isHilbertSchmidt_sqrt hB hTB)
59 have hRS := isTraceClass_mul_of_isHilbertSchmidt hR hS
60 have hfactor : (CFC.sqrt A * C) * (D * CFC.sqrt B) = CFC.sqrt A * CFC.sqrt B := by
61 simp only [mul_assoc, ← mul_assoc C D, hCD, one_mul]
62 have hstarA : star (CFC.sqrt A) = CFC.sqrt A :=
63 (IsSelfAdjoint.of_nonneg (CFC.sqrt_nonneg A)).star_eq
64 have hstarB : star (CFC.sqrt B) = CFC.sqrt B :=
65 (IsSelfAdjoint.of_nonneg (CFC.sqrt_nonneg B)).star_eq
66 have hRprod : star (CFC.sqrt A * C) * (CFC.sqrt A * C) = star C * A * C := by
67 simp only [star_mul, hstarA, mul_assoc]
68 rw [← mul_assoc (CFC.sqrt A), CFC.sqrt_mul_sqrt_self A hA]
69 have hSprod : (D * CFC.sqrt B) * star (D * CFC.sqrt B) = D * B * star D := by
70 simp only [star_mul, hstarB, mul_assoc]
71 rw [← mul_assoc (CFC.sqrt B), CFC.sqrt_mul_sqrt_self B hB]
72 have hRsum : (∑' i : w, ‖(CFC.sqrt A * C) (b i)‖ ^ 2) =
73 (trace (star C * A * C) (isTraceClass_mul_mul hTA)).re := by
74 have h := trace_re_star_mul_self hR b
75 simpa only [hRprod] using h.symm
76 have hSsum : (∑' i : w, ‖(D * CFC.sqrt B) (b i)‖ ^ 2) =
77 (trace (D * B * star D) (isTraceClass_mul_mul hTB)).re := by
78 have h := trace_re_mul_star_self hS b
79 simpa only [hSprod] using h.symm
80 have hbound := traceNorm_mul_le_of_isHilbertSchmidt hR hS hRS b
81 simpa only [hfactor, hRsum, hSsum] using hbound
82
83lemma fidelity_le_unit_weight {A B : H →L[ℂ] H}
84 (hA : 0 ≤ A) (hB : 0 ≤ B) (hTA : IsTraceClass A) (hTB : IsTraceClass B)
85 (U : (H →L[ℂ] H)ˣ) :
86 fidelity A B hA hB hTA hTB ≤
87 Real.sqrt (trace (star (U : H →L[ℂ] H) * A * (U : H →L[ℂ] H))
88 (isTraceClass_mul_mul hTA)).re *
89 Real.sqrt (trace ((↑U⁻¹ : H →L[ℂ] H) * B * star (↑U⁻¹ : H →L[ℂ] H))
90 (isTraceClass_mul_mul hTB)).re :=
91 fidelity_le_weighted_sandwiches hA hB hTA hTB U.val_inv
92
93lemma trace_sandwich_cycle {A : H →L[ℂ] H} (hTA : IsTraceClass A)
94 (C : H →L[ℂ] H) :
95 trace (star C * A * C) (isTraceClass_mul_mul hTA) =
96 trace (A * (C * star C))
97 (isTraceClass_mul_mul (A := 1) (B := C * star C) hTA) := by
98 have hAC : IsTraceClass (A * C) := isTraceClass_mul_mul (A := 1) (B := C) hTA
99 have h := trace_mul_cycle (A := star C) hAC
100 simpa only [mul_assoc] using h
101
102lemma trace_re_mul_nonneg_of_nonneg_left_traceClass {A B : H →L[ℂ] H}
103 (hA : 0 ≤ A) (hB : 0 ≤ B) (hTA : IsTraceClass A) :
104 0 ≤ (trace (A * B) (isTraceClass_mul_mul (A := 1) (B := B) hTA)).re := by
105 have h := trace_sandwich_cycle hTA (CFC.sqrt B)
106 have hstarB : star (CFC.sqrt B) = CFC.sqrt B :=
107 (IsSelfAdjoint.of_nonneg (CFC.sqrt_nonneg B)).star_eq
108 simp only [hstarB, CFC.sqrt_mul_sqrt_self B hB] at h
109 rw [← h]
110 apply trace_re_nonneg
111 simpa only [hstarB] using star_left_conjugate_nonneg hA (CFC.sqrt B)
112
113/-- The weighted fidelity bound in cyclic form. -/
114lemma fidelity_le_weighted_traces {A B C D : H →L[ℂ] H}
115 (hA : 0 ≤ A) (hB : 0 ≤ B) (hTA : IsTraceClass A) (hTB : IsTraceClass B)
116 (hCD : C * D = 1) :
117 fidelity A B hA hB hTA hTB ≤
118 Real.sqrt (trace (A * (C * star C))
119 (isTraceClass_mul_mul (A := 1) (B := C * star C) hTA)).re *
120 Real.sqrt (trace (B * (star D * D))
121 (isTraceClass_mul_mul (A := 1) (B := star D * D) hTB)).re := by
122 have h := fidelity_le_weighted_sandwiches hA hB hTA hTB hCD
123 have hBcycle := trace_sandwich_cycle hTB (star D)
124 simp only [star_star] at hBcycle
125 rwa [trace_sandwich_cycle hTA C, hBcycle] at h
126
127/-- For a strictly positive bounded weight `W`, CFC inverse powers are its genuine bounded
128inverse. This is the infinite-dimensional weighted witness inequality. -/
129lemma fidelity_le_positive_weight {A B W : H →L[ℂ] H}
130 (hA : 0 ≤ A) (hB : 0 ≤ B) (hTA : IsTraceClass A) (hTB : IsTraceClass B)
131 (hW : IsStrictlyPositive W) :
132 fidelity A B hA hB hTA hTB ≤
133 Real.sqrt (trace (A * W) (isTraceClass_mul_mul (A := 1) (B := W) hTA)).re *
134 Real.sqrt (trace (B * CFC.rpow W (-1))
135 (isTraceClass_mul_mul (A := 1) (B := CFC.rpow W (-1)) hTB)).re := by
136 have hCD : CFC.sqrt W * CFC.rpow W (-(1 / 2 : ℝ)) = 1 := by
137 rw [CFC.sqrt_eq_rpow]
138 exact CFC.rpow_mul_rpow_neg (1 / 2 : ℝ) hW.isUnit hW.nonneg
139 have hC : CFC.sqrt W * star (CFC.sqrt W) = W := by
140 rw [(IsSelfAdjoint.of_nonneg (CFC.sqrt_nonneg W)).star_eq]
141 exact CFC.sqrt_mul_sqrt_self W hW.nonneg
142 have hD : star (CFC.rpow W (-(1 / 2 : ℝ))) * CFC.rpow W (-(1 / 2 : ℝ)) =
143 CFC.rpow W (-1) := by
144 have hDstar : star (CFC.rpow W (-(1 / 2 : ℝ))) = CFC.rpow W (-(1 / 2 : ℝ)) :=
145 (IsSelfAdjoint.of_nonneg (show 0 ≤ CFC.rpow W (-(1 / 2 : ℝ)) from
146 CFC.rpow_nonneg)).star_eq
147 rw [hDstar]
148 calc
149 _ = CFC.rpow W (-(1 / 2 : ℝ) + -(1 / 2 : ℝ)) :=
150 (CFC.rpow_add (x := -(1 / 2 : ℝ)) (y := -(1 / 2 : ℝ)) hW.isUnit).symm
151 _ = CFC.rpow W (-1) := by norm_num
152 have h := fidelity_le_weighted_traces hA hB hTA hTB hCD
153 simpa only [hC, hD] using h
154
155end
156end Cloning.InfiniteFidelity