Offline · exact source
Exact Lean source

InfiniteFidelityTransition

formalization/Cloning/InfiniteFidelityTransition.lean

Source hash: df9d6bf7c42397b596b2d93e1f7a072a11421940068772c97f0cf982692b3aa0

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.InfiniteFidelityFiniteMixture
2 
3/-! Finite transition bounds for actual trace-class root fidelity, including
4an explicit square-root cost for discarding exceptional transitions. -/
5noncomputable section
6open scoped BigOperators Classical ComplexOrder
7namespace Cloning.Hybrid.PositiveTraceClass
8open Cloning.InfiniteTraceClass Cloning.InfiniteFidelity
9set_option backward.isDefEq.respectTransparency false
10set_option maxHeartbeats 800000
11variable {H ι : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
12variable [Fintype ι]
13 
14theorem finiteMixture_rootFidelity_lower_trimmed (q r : ι → ℝ)
15    (hq : ∀ i, 0 ≤ q i) (hr : ∀ i, 0 ≤ r i) (hrsum : ∑ i, r i ≤ 1)
16    (A B : ι → PositiveTraceClass H) (keep : ι → Prop) (c : ℝ)
17    (hc0 : 0 ≤ c) (hc1 : c ≤ 1)
18    (hgood : ∀ i, keep i → c ≤ (A i).rootFidelity (B i)) :
19    c * (∑ i, Real.sqrt (q i) * Real.sqrt (r i)) -
20        Real.sqrt (∑ i, if keep i then 0 else q i) ≤
21      (finiteMixture q hq A).rootFidelity (finiteMixture r hr B) := by
22  let w : ι → ℝ := fun i ↦ Real.sqrt (q i) * Real.sqrt (r i)
23  have hw (i : ι) : 0 ≤ w i := mul_nonneg (Real.sqrt_nonneg _) (Real.sqrt_nonneg _)
24  have hpoint (i : ι) : c * w i ≤ w i * (A i).rootFidelity (B i) +
25      (if keep i then 0 else w i) := by
26    by_cases hi : keep i
27    · simp only [if_pos hi, add_zero]
28      simpa only [mul_comm c] using mul_le_mul_of_nonneg_left (hgood i hi) (hw i)
29    · simp only [if_neg hi]
30      have hnon := mul_nonneg (hw i) (rootFidelity_nonneg (A i) (B i))
31      have hle := mul_le_mul_of_nonneg_right hc1 (hw i)
32      nlinarith
33  have hsum := Finset.sum_le_sum (fun i (_ : i ∈ Finset.univ) ↦ hpoint i)
34  rw [← Finset.mul_sum, Finset.sum_add_distrib] at hsum
35  have hbad : (∑ i, if keep i then 0 else w i) ≤
36      Real.sqrt (∑ i, if keep i then 0 else q i) := by
37    calc
38      _ = ∑ i, Real.sqrt (if keep i then 0 else q i) * Real.sqrt (r i) := by
39        apply Finset.sum_congr rfl
40        intro i hi
41        by_cases hk : keep i <;> simp [hk, w]
42      _ ≤ Real.sqrt (∑ i, if keep i then 0 else q i) * Real.sqrt (∑ i, r i) :=
43        Real.sum_sqrt_mul_sqrt_le Finset.univ (fun i ↦ by split_ifs; exact le_rfl; exact hq i) hr
44      _ ≤ Real.sqrt (∑ i, if keep i then 0 else q i) * 1 :=
45        mul_le_mul_of_nonneg_left (by simpa only [Real.sqrt_one] using Real.sqrt_le_sqrt hrsum)
46          (Real.sqrt_nonneg _)
47      _ = _ := mul_one _
48  have hconc := finiteMixture_rootFidelity_lower q r hq hr A B
49  change (∑ i, w i * (A i).rootFidelity (B i)) ≤ _ at hconc
50  change c * (∑ i, w i) - _ ≤ _
51  linarith
52 
53/-- Adding positive mass to either argument can only increase root fidelity. -/
54theorem rootFidelity_mono_left (A C B : PositiveTraceClass H)
55    (hAC : inclusionCLM A.1 ≤ inclusionCLM C.1) : A.rootFidelity B ≤ C.rootFidelity B :=
56  fidelity_mono_left A.2 C.2 B.2 A.1.2 C.1.2 B.1.2 hAC
57 
58theorem rootFidelity_mono_right (A B D : PositiveTraceClass H)
59    (hBD : inclusionCLM B.1 ≤ inclusionCLM D.1) : A.rootFidelity B ≤ A.rootFidelity D := by
60  rw [rootFidelity_comm A B, rootFidelity_comm A D]
61  exact rootFidelity_mono_left B D A hBD
62 
63end Cloning.Hybrid.PositiveTraceClass