Offline · exact source
Exact Lean source

InfiniteFidelityRegularized

formalization/Cloning/InfiniteFidelityRegularized.lean

Source hash: af43265af08b9c6ce103bdfab8bfc6cf77980ff5af2db661af9441dfca152a5d

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.InfiniteFidelityWeighted
2 
3/-! Removing a strictly-positive regularization from the weighted fidelity inequality.
4The inverse moment assumption concerns actual bounded CFC inverse operators for every positive
5regularization. No unbounded operator or inverse is silently treated as bounded. -/
6 
7namespace Cloning.InfiniteFidelity
8 
9noncomputable section
10set_option backward.isDefEq.respectTransparency false
11open scoped ComplexOrder InnerProductSpace
12open InfiniteTraceClass
13 
14variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
15 
16def regularizedWeight (W : H →L[ℂ] H) (ε : ℝ) : H →L[ℂ] H := W + ε • 1
17 
18lemma regularizedWeight_strictlyPositive {W : H →L[ℂ] H} (hW : 0 ≤ W)
19    {ε : ℝ} (hε : 0 < ε) : IsStrictlyPositive (regularizedWeight W ε) :=
20  IsStrictlyPositive.nonneg_add hW (isStrictlyPositive_one.smul hε)
21 
22lemma trace_regularizedWeight {A W : H →L[ℂ] H} (hTA : IsTraceClass A) (ε : ℝ) :
23    trace (A * regularizedWeight W ε)
24      (isTraceClass_mul_mul (A := 1) (B := regularizedWeight W ε) hTA) =
25      trace (A * W) (isTraceClass_mul_mul (A := 1) (B := W) hTA) +
26        (ε : ℂ) * trace A hTA := by
27  have hAW : IsTraceClass (A * W) := isTraceClass_mul_mul (A := 1) (B := W) hTA
28  have h := trace_add hAW (isTraceClass_smul (ε : ℂ) hTA)
29  rw [trace_smul] at h
30  simpa only [regularizedWeight, mul_add, Algebra.mul_smul_comm, mul_one,
31    Complex.coe_smul] using h
32 
33lemma fidelity_sq_le_positive_weight {A B W : H →L[ℂ] H}
34    (hA : 0 ≤ A) (hB : 0 ≤ B) (hTA : IsTraceClass A) (hTB : IsTraceClass B)
35    (hW : IsStrictlyPositive W) :
36    fidelity A B hA hB hTA hTB ^ 2 ≤
37      (trace (A * W) (isTraceClass_mul_mul (A := 1) (B := W) hTA)).re *
38      (trace (B * CFC.rpow W (-1))
39        (isTraceClass_mul_mul (A := 1) (B := CFC.rpow W (-1)) hTB)).re := by
40  have hleft := trace_re_mul_nonneg_of_nonneg_left_traceClass hA hW.nonneg hTA
41  have hright := trace_re_mul_nonneg_of_nonneg_left_traceClass hB
42    (show 0 ≤ CFC.rpow W (-1) from CFC.rpow_nonneg) hTB
43  have h := (sq_le_sq₀ (fidelity_nonneg hA hB hTA hTB)
44    (mul_nonneg (Real.sqrt_nonneg _) (Real.sqrt_nonneg _))).2
45    (fidelity_le_positive_weight hA hB hTA hTB hW)
46  simpa only [mul_pow, Real.sq_sqrt hleft, Real.sq_sqrt hright] using h
47 
48/-- A uniform bound on regularized inverse moments suffices for the unregularized witness
49bound, even when `W` itself has no bounded inverse. -/
50lemma fidelity_sq_le_of_regularized_inverse_moment {A B W : H →L[ℂ] H}
51    (hA : 0 ≤ A) (hB : 0 ≤ B) (hW : 0 ≤ W)
52    (hTA : IsTraceClass A) (hTB : IsTraceClass B) {M : ℝ} (hM : 0 ≤ M)
53    (hInv : ∀ ε : ℝ, 0 < ε →
54      (trace (B * CFC.rpow (regularizedWeight W ε) (-1))
55        (isTraceClass_mul_mul (A := 1)
56          (B := CFC.rpow (regularizedWeight W ε) (-1)) hTB)).re ≤ M) :
57    fidelity A B hA hB hTA hTB ^ 2 ≤
58      (trace (A * W) (isTraceClass_mul_mul (A := 1) (B := W) hTA)).re * M := by
59  have htrA : 0 ≤ (trace A hTA).re := trace_re_nonneg hA hTA
60  have htrW := trace_re_mul_nonneg_of_nonneg_left_traceClass hA hW hTA
61  apply le_of_forall_pos_le_add
62  intro δ hδ
63  let ε : ℝ := δ / ((trace A hTA).re * M + 1)
64  have hden : 0 < (trace A hTA).re * M + 1 := by positivity
65  have hε : 0 < ε := div_pos hδ hden
66  have hbound := fidelity_sq_le_positive_weight hA hB hTA hTB
67    (regularizedWeight_strictlyPositive hW hε)
68  have ht := congrArg Complex.re (trace_regularizedWeight (W := W) hTA ε)
69  simp only [Complex.add_re, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im,
70    zero_mul, sub_zero] at ht
71  rw [ht] at hbound
72  have hbound' := hbound.trans (mul_le_mul_of_nonneg_left (hInv ε hε)
73    (add_nonneg htrW (mul_nonneg hε.le htrA)))
74  have hsmall : ε * ((trace A hTA).re * M) ≤ δ := by
75    calc
76      ε * ((trace A hTA).re * M) ≤ ε * ((trace A hTA).re * M + 1) := by
77        gcongr
78        exact le_add_of_nonneg_right zero_le_one
79      _ = δ := div_mul_cancel₀ δ (ne_of_gt hden)
80  nlinarith
81 
82end
83end Cloning.InfiniteFidelity