Exact Lean source
InfiniteFidelityWitness
formalization/Cloning/InfiniteFidelityWitness.lean
Source hash: f416113d46abcfa5c9e9b32c4d379263295bb5a8d5d46025639add1f59e9828f
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
definition
Cloning.InfiniteFidelity.fidelityBlocktheorem Cloning.InfiniteFidelity.contraction_quadratic_nonnegtheorem Cloning.InfiniteFidelity.contractionWitness_traceClassdefinition Cloning.InfiniteFidelity.contractionWitnesstheorem Cloning.InfiniteFidelity.contractionWitness_blockPositivedefinition Cloning.InfiniteFidelity.polarWitnesstheorem Cloning.InfiniteFidelity.polarWitness_blockPositivetheorem Cloning.InfiniteFidelity.polarWitness_tracetheorem Cloning.InfiniteFidelity.exists_fidelityBlock_witness1import Cloning.InfiniteCompletelyPositive
2import Cloning.InfiniteFidelityWeighted
3
4/-! An attaining positive block witness for actual trace-class root fidelity. -/
5
6namespace Cloning.InfiniteFidelity
7
8noncomputable section
9set_option backward.isDefEq.respectTransparency false
10open scoped ComplexOrder InnerProductSpace BigOperators
11open InfiniteTraceClass InfiniteTraceClass.HilbertSchmidt
12
13variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
14
15/-- The canonical self-adjoint two-by-two operator block. -/
16def fidelityBlock (A B X : TraceClass H) : Fin 2 → Fin 2 → TraceClass H :=
17 fun i j => if i = 0 then (if j = 0 then A else X)
18 else (if j = 0 then TraceClass.adjoint X else B)
19
20lemma contraction_quadratic_nonneg (U : H →L[ℂ] H) (hU : ‖U‖ ≤ 1) (x y : H) :
21 0 ≤ ⟪x, x⟫_ℂ + ⟪x, (star U) y⟫_ℂ + (⟪y, U x⟫_ℂ + ⟪y, y⟫_ℂ) := by
22 have hnorm : ‖U x‖ ≤ ‖x‖ := by
23 calc
24 ‖U x‖ ≤ ‖U‖ * ‖x‖ := U.le_opNorm x
25 _ ≤ 1 * ‖x‖ := mul_le_mul_of_nonneg_right hU (norm_nonneg x)
26 _ = ‖x‖ := one_mul _
27 have hs : 0 ≤ ‖x‖ ^ 2 - ‖U x‖ ^ 2 :=
28 sub_nonneg.mpr ((sq_le_sq₀ (norm_nonneg _) (norm_nonneg _)).2 hnorm)
29 have heq : ⟪x, x⟫_ℂ + ⟪x, (star U) y⟫_ℂ + (⟪y, U x⟫_ℂ + ⟪y, y⟫_ℂ) =
30 ⟪U x + y, U x + y⟫_ℂ + ((‖x‖ ^ 2 - ‖U x‖ ^ 2 : ℝ) : ℂ) := by
31 rw [inner_add_left, inner_add_right, inner_add_right]
32 simp only [ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.adjoint_inner_right,
33 inner_self_eq_norm_sq_to_K, RCLike.ofReal_eq_complex_ofReal]
34 push_cast
35 ring
36 rw [heq]
37 have hp : 0 ≤ ⟪U x + y, U x + y⟫_ℂ := by
38 simp only [inner_self_eq_norm_sq_to_K, RCLike.ofReal_eq_complex_ofReal,
39 ← Complex.ofReal_pow, Complex.nonneg_iff, Complex.ofReal_re, Complex.ofReal_im]
40 exact ⟨sq_nonneg _, trivial⟩
41 exact add_nonneg hp (by exact_mod_cast hs)
42
43lemma contractionWitness_traceClass {A B : H →L[ℂ] H} (hA : 0 ≤ A) (hB : 0 ≤ B)
44 (hTA : IsTraceClass A) (hTB : IsTraceClass B) (U : H →L[ℂ] H) :
45 IsTraceClass (CFC.sqrt A * star U * CFC.sqrt B) :=
46 isTraceClass_mul_of_isHilbertSchmidt
47 (isHilbertSchmidt_mul_right (isHilbertSchmidt_sqrt hA hTA))
48 (isHilbertSchmidt_sqrt hB hTB)
49
50def contractionWitness (A B : TraceClass H) (hA : 0 ≤ A.1) (hB : 0 ≤ B.1)
51 (U : H →L[ℂ] H) : TraceClass H :=
52 TraceClass.ofOperator (CFC.sqrt A.1 * star U * CFC.sqrt B.1)
53 (contractionWitness_traceClass hA hB A.2 B.2 U)
54
55lemma contractionWitness_blockPositive (A B : TraceClass H) (hA : 0 ≤ A.1) (hB : 0 ≤ B.1)
56 (U : H →L[ℂ] H) (hU : ‖U‖ ≤ 1) :
57 BlockPositive (fidelityBlock A B (contractionWitness A B hA hB U)) := by
58 intro x
59 have hsA : IsSelfAdjoint (CFC.sqrt A.1) := .of_nonneg (CFC.sqrt_nonneg A.1)
60 have hsB : IsSelfAdjoint (CFC.sqrt B.1) := .of_nonneg (CFC.sqrt_nonneg B.1)
61 have hdA : ⟪x 0, A.1 (x 0)⟫_ℂ = ⟪CFC.sqrt A.1 (x 0), CFC.sqrt A.1 (x 0)⟫_ℂ := by
62 conv_lhs => rw [← CFC.sqrt_mul_sqrt_self A.1 hA]
63 exact (hsA.isSymmetric (x 0) (CFC.sqrt A.1 (x 0))).symm
64 have hdB : ⟪x 1, B.1 (x 1)⟫_ℂ = ⟪CFC.sqrt B.1 (x 1), CFC.sqrt B.1 (x 1)⟫_ℂ := by
65 conv_lhs => rw [← CFC.sqrt_mul_sqrt_self B.1 hB]
66 exact (hsB.isSymmetric (x 1) (CFC.sqrt B.1 (x 1))).symm
67 have hcross : ⟪x 0, (CFC.sqrt A.1 * star U * CFC.sqrt B.1) (x 1)⟫_ℂ =
68 ⟪CFC.sqrt A.1 (x 0), star U (CFC.sqrt B.1 (x 1))⟫_ℂ := by
69 exact (hsA.isSymmetric (x 0) (star U (CFC.sqrt B.1 (x 1)))).symm
70 have hstar : star (CFC.sqrt A.1 * star U * CFC.sqrt B.1) =
71 CFC.sqrt B.1 * U * CFC.sqrt A.1 := by
72 simp only [star_mul, star_star, hsA.star_eq, hsB.star_eq, mul_assoc]
73 have hcross' : ⟪x 1, star (CFC.sqrt A.1 * star U * CFC.sqrt B.1) (x 0)⟫_ℂ =
74 ⟪CFC.sqrt B.1 (x 1), U (CFC.sqrt A.1 (x 0))⟫_ℂ := by
75 rw [hstar]
76 exact (hsB.isSymmetric (x 1) (U (CFC.sqrt A.1 (x 0)))).symm
77 have h10 : (1 : Fin 2) ≠ 0 := by decide
78 simp only [Fin.sum_univ_two, fidelityBlock, Fin.isValue, h10, ↓reduceIte,
79 contractionWitness, TraceClass.adjoint, TraceClass.ofOperator_coe]
80 rw [hdA, hdB, hcross, hcross']
81 exact contraction_quadratic_nonneg U hU _ _
82
83/-- The polar factor determines a concrete attaining block witness. -/
84def polarWitness (A B : TraceClass H) (hA : 0 ≤ A.1) (hB : 0 ≤ B.1) : TraceClass H :=
85 contractionWitness A B hA hB (Polar.polarFactor (CFC.sqrt B.1 * CFC.sqrt A.1))
86
87lemma polarWitness_blockPositive (A B : TraceClass H) (hA : 0 ≤ A.1) (hB : 0 ≤ B.1) :
88 BlockPositive (fidelityBlock A B (polarWitness A B hA hB)) :=
89 contractionWitness_blockPositive A B hA hB _ (Polar.polarFactor_opNorm_le _)
90
91lemma polarWitness_trace (A B : TraceClass H) (hA : 0 ≤ A.1) (hB : 0 ≤ B.1) :
92 (traceCLM (polarWitness A B hA hB)).re = fidelity A.1 B.1 hA hB A.2 B.2 := by
93 let T := CFC.sqrt B.1 * CFC.sqrt A.1
94 let U := Polar.polarFactor T
95 have hR := isHilbertSchmidt_sqrt hA A.2
96 have hS : IsHilbertSchmidt (star U * CFC.sqrt B.1) :=
97 isHilbertSchmidt_mul_left (isHilbertSchmidt_sqrt hB B.2)
98 have hcycle := trace_mul_cycle_hilbertSchmidt hR hS
99 have hfactor : (star U * CFC.sqrt B.1) * CFC.sqrt A.1 = CFC.abs T := by
100 rw [mul_assoc]
101 exact Polar.star_polarFactor_mul_self T
102 have hTC := sqrt_product_traceClass hB hA B.2 A.2
103 have htrace : (traceCLM (polarWitness A B hA hB)).re =
104 (trace (CFC.abs T) (isTraceClass_abs hTC)).re := by
105 change (trace (CFC.sqrt A.1 * star U * CFC.sqrt B.1) _).re = _
106 have h := congrArg Complex.re hcycle
107 simpa only [hfactor, mul_assoc] using h
108 rw [htrace, trace_re_eq_traceNorm (CFC.abs_nonneg T), traceNorm_abs]
109 exact fidelity_comm hB hA B.2 A.2
110
111lemma exists_fidelityBlock_witness (A B : TraceClass H) (hA : 0 ≤ A.1) (hB : 0 ≤ B.1) :
112 ∃ X : TraceClass H, BlockPositive (fidelityBlock A B X) ∧
113 (traceCLM X).re = fidelity A.1 B.1 hA hB A.2 B.2 :=
114 ⟨polarWitness A B hA hB, polarWitness_blockPositive A B hA hB,
115 polarWitness_trace A B hA hB⟩
116
117end
118end Cloning.InfiniteFidelity