Offline · exact source
Exact Lean source

PhysicalFlatRate

formalization/Cloning/PhysicalFlatRate.lean

Source hash: f53cc2b085c589d6a5b039c7d7efb6e56d7515e8c6c01e7142ad437b51f2441e

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.YoungDimensionMomentRate
2import Cloning.PhysicalFlatConverseFinite
3 
4/-! The actual finite rank-flat converse has relative error O(1/n), uniformly
5for every larger output sample size. -/
6noncomputable section
7open scoped BigOperators Classical Topology
8open Filter
9namespace Cloning.PhysicalFlatConverse
10open Cloning.TensorLie Cloning.YoungGeneral Cloning.YoungDimensionRatio
11set_option maxHeartbeats 1400000
12set_option backward.isDefEq.respectTransparency false
13 
14def flatConverseRateConstant (r k : ℕ) : ℝ := 2*dimensionMomentRateConstant r k+1
15 
16theorem flatConverseRateConstant_nonneg (r k : ℕ) : 0≤flatConverseRateConstant r k := by
17  have := dimensionMomentRateConstant_nonneg r k
18  unfold flatConverseRateConstant
19  positivity
20 
21private theorem pmf_mean_le_one_add_error {ι : Type*} [Fintype ι]
22    (P : PMF ι) (f : ι→ℝ) :
23    (∑i,(P i).toReal*f i)≤1+∑i,(P i).toReal*|f i-1| := by
24  have hmass : ∑i,(P i).toReal=1 := by
25    simpa only [tsum_fintype,Cloning.YoungCompatibility.probability] using
26      Cloning.YoungCompatibility.tsum_probability P
27  have hp (i : ι) : (P i).toReal*f i≤(P i).toReal+(P i).toReal*|f i-1| := by
28    have h := mul_le_mul_of_nonneg_left (le_abs_self (f i-1))
29      (show 0≤(P i).toReal from ENNReal.toReal_nonneg)
30    nlinarith
31  simpa only [Finset.sum_add_distrib,hmass] using
32    Finset.sum_le_sum (fun i (_ : i∈Finset.univ)=>hp i)
33 
34/-- The actual Schur-dimension upper bound has a finite relative rate,
35uniformly in all output lengths m≥n once n is large enough. -/
36theorem eventually_flatConverseBound_rate (r k : ℕ) (hr : 0<r) :
37    ∀ᶠ (n : ℕ) in atTop, ∀ m : ℕ, n≤m →
38      flatConverseBound r k hr n m≤
39        ((m:ℝ)/(n:ℝ))^(-(((r*k:ℕ):ℝ)/2))*(1+flatConverseRateConstant r k/(n:ℝ)) := by
40  obtain ⟨N,hN⟩ := eventually_atTop.mp (tensorFlatYoungPMF_mean_inverse_dimension_error_le r k hr)
41  filter_upwards [Filter.eventually_ge_atTop (max N 1)] with n hn m hmn
42  have hn1 : 1≤n := (le_max_right N 1).trans hn
43  have hn0 : 0<n := by omega
44  have hm0 : 0<m := by omega
45  have hnR : (0:ℝ)<n := Nat.cast_pos.mpr hn0
46  have hmR : (0:ℝ)<m := Nat.cast_pos.mpr hm0
47  have hnm : (n:ℝ)≤m := Nat.cast_le.mpr hmn
48  let A := ∑mu,(tensorFlatYoungPMF n r hr mu).toReal*normalizedDimension r k n mu
49  let B := ∑mu,(tensorFlatYoungPMF m r hr mu).toReal*inverseNormalizedDimension r k m mu
50  let C := flatConverseRateConstant r k
51  have hC : 0≤C := flatConverseRateConstant_nonneg r k
52  have hA0 : 0≤A := Finset.sum_nonneg (fun mu _=>mul_nonneg ENNReal.toReal_nonneg
53    (div_nonneg (dimensionRatio_pos r k (shapeRows mu) (shapeRows_nonneg mu)).le
54      (mul_nonneg (leadingConstant_pos r k hr).le (pow_nonneg (Nat.cast_nonneg _) _))))
55  have hB0 : 0≤B := Finset.sum_nonneg (fun mu _=>mul_nonneg ENNReal.toReal_nonneg
56    (div_nonneg (mul_nonneg (leadingConstant_pos r k hr).le (pow_nonneg (Nat.cast_nonneg _) _))
57      (dimensionRatio_pos r k (shapeRows mu) (shapeRows_nonneg mu)).le))
58  have hA : A≤1+C/(n:ℝ) := by
59    have h := (pmf_mean_le_one_add_error (tensorFlatYoungPMF n r hr)
60      (normalizedDimension r k n)).trans (add_le_add le_rfl
61        (tensorFlatYoungPMF_mean_dimension_error_le r k n hr hn1))
62    apply h.trans
63    apply add_le_add le_rfl
64    exact div_le_div_of_nonneg_right (by
65      dsimp [C,flatConverseRateConstant]
66      have := dimensionMomentRateConstant_nonneg r k
67      linarith) hnR.le
68  have hB : B≤1+C/(n:ℝ) := by
69    have hmN : N≤m := (le_max_left N 1).trans (hn.trans hmn)
70    have h := (pmf_mean_le_one_add_error (tensorFlatYoungPMF m r hr)
71      (inverseNormalizedDimension r k m)).trans (add_le_add le_rfl (hN m hmN))
72    exact h.trans (add_le_add le_rfl (div_le_div_of_nonneg_left hC hnR hnm))
73  have hu : 0≤1+C/(n:ℝ) := by positivity
74  have hsqrt : Real.sqrt (A*B)≤1+C/(n:ℝ) := by
75    rw [Real.sqrt_le_iff]
76    exact ⟨hu,by simpa only [pow_two] using mul_le_mul hA hB hB0 hu⟩
77  rw [flatConverseBound_factorization r k hr n m hn0 hm0]
78  change Real.sqrt ((((n:ℝ)/(m:ℝ))^(r*k)*A)*B)≤_
79  rw [mul_assoc,Real.sqrt_mul (pow_nonneg (div_nonneg hnR.le hmR.le) _)]
80  have hroot : Real.sqrt (((n:ℝ)/(m:ℝ))^(r*k))=
81      ((m:ℝ)/(n:ℝ))^(-(((r*k:ℕ):ℝ)/2)) := by
82    have he := Cloning.YoungFlat.sqrt_inv_nat_pow ((m:ℝ)/(n:ℝ)) (div_pos hmR hnR) (r*k)
83    simpa only [inv_div] using he
84  rw [hroot]
85  exact mul_le_mul_of_nonneg_left hsqrt (Real.rpow_nonneg (div_nonneg hmR.le hnR.le) _)
86 
87/-- The rate applies to the optimization over every actual input-output
88quantum channel, not just to a selected protocol. -/
89theorem eventually_minimaxValue_rate (r k : ℕ) (hr : 0<r) :
90    ∀ᶠ (n : ℕ) in atTop, ∀ m : ℕ, n≤m →
91      minimaxValue r k hr n m≤
92        ((m:ℝ)/(n:ℝ))^(-(((r*k:ℕ):ℝ)/2))*(1+flatConverseRateConstant r k/(n:ℝ)) := by
93  filter_upwards [eventually_flatConverseBound_rate r k hr] with n hn m hmn
94  exact (minimaxValue_le_flatConverseBound r k hr n m).trans (hn m hmn)
95 
96end Cloning.PhysicalFlatConverse