Exact Lean source
TensorCloningUniversalError
formalization/Cloning/TensorCloningUniversalError.lean
Source hash: 9e9fe3e4fa66fb4579ae16e2d2c59a95bc2074cbcd4d39a98eb3dc3f0882bfff
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.TensorCloning.universalAffinitytheorem Cloning.TensorCloning.universalAffinity_nonnegtheorem Cloning.TensorCloning.universalAffinity_le_onetheorem Cloning.TensorCloning.universalChannel_payoff_lower_errordefinition Cloning.TensorCloning.universalTailEnvelopetheorem Cloning.TensorCloning.copyBadMass_le_universalTailEnvelopetheorem Cloning.TensorCloning.universalTailEnvelope_tendsto_zero1import Cloning.TensorCloningUniversalProbability
2
3/-! A quantitative global error bound for the literal universal cloner. -/
4noncomputable section
5open scoped BigOperators Classical Topology Matrix
6namespace Cloning.TensorCloning
7open Cloning.TensorLie Cloning.TensorLAN Cloning.YoungGeneral Cloning.YoungCompatibility
8open Cloning.YoungHyperplane Filter
9set_option backward.isDefEq.respectTransparency false
10set_option maxHeartbeats 1200000
11
12def universalAffinity (n m d : ℕ) (p : SimpleSpectrum (d+1)) : ℝ :=
13 CountableScheffe.affinity
14 (probability (tensorYoungFallbackOutput d n m ((m : ℝ)/(n : ℝ)) p.eigenvalue
15 (fun a ↦ (p.positive a).le) p.normalized))
16 (probability (tensorYoungIntegerPMF d m p.eigenvalue (fun a ↦ (p.positive a).le) p.normalized))
17
18theorem universalAffinity_nonneg (n m d : ℕ) (p : SimpleSpectrum (d+1)) :
19 0 ≤ universalAffinity n m d p :=
20 tsum_nonneg (fun _ ↦ mul_nonneg (Real.sqrt_nonneg _) (Real.sqrt_nonneg _))
21
22theorem universalAffinity_le_one (n m d : ℕ) (p : SimpleSpectrum (d+1)) :
23 universalAffinity n m d p ≤ 1 := by
24 have h := CountableScheffe.affinity_le_sqrt_mass
25 (probability (tensorYoungFallbackOutput d n m ((m : ℝ)/(n : ℝ)) p.eigenvalue
26 (fun a ↦ (p.positive a).le) p.normalized))
27 (probability (tensorYoungIntegerPMF d m p.eigenvalue (fun a ↦ (p.positive a).le) p.normalized))
28 (fun _ ↦ ENNReal.toReal_nonneg) (fun _ ↦ ENNReal.toReal_nonneg)
29 (hasSum_probability _).summable (hasSum_probability _).summable
30 simpa only [tsum_probability, Real.sqrt_one, one_mul] using h
31
32theorem universalChannel_payoff_lower_error {d : ℕ} (n m : ℕ)
33 (p : SimpleSpectrum (d+1)) (U : unitary (Matrix (Fin (d+1)) (Fin (d+1)) ℂ))
34 (γ : ℝ) (hγ : 1 < γ) (η : ℝ) (hη : 0 ≤ η)
35 (hsector : ∀ i j, universalKeep n m d p.eigenvalue i j →
36 orbitalValue γ p - η ≤ transitionFidelity n m (d+1) p.eigenvalue p.positive U i j) :
37 universalValue γ p - η - |universalAffinity n m d p - classicalValue γ (d+1)| -
38 Real.sqrt (copyBadMass n (d+1) p.eigenvalue) ≤ spectrumPayoff n m (universalChannel n m d) p U := by
39 let c := max 0 (orbitalValue γ p - η)
40 have hc0 : 0 ≤ c := le_max_left _ _
41 have hc1 : c ≤ 1 := max_le (by norm_num) (by linarith [orbitalValue_le_one hγ p])
42 have hg : ∀ i j, universalKeep n m d p.eigenvalue i j →
43 c ≤ transitionFidelity n m (d+1) p.eigenvalue p.positive U i j := by
44 intro i j hij
45 exact max_le (transitionFidelity_nonneg _ _ _ _ _ _ _ _) (hsector i j hij)
46 have h := universalChannel_payoff_lower n m p U (universalKeep n m d p.eigenvalue) c hc0 hc1 hg
47 rw [universal_discarded_mass] at h
48 change c * universalAffinity n m d p - _ ≤ _ at h
49 have ha0 := universalAffinity_nonneg n m d p
50 have ha1 := universalAffinity_le_one n m d p
51 have hca := mul_le_mul_of_nonneg_right (le_max_right 0 (orbitalValue γ p-η)) ha0
52 have heta := mul_le_mul_of_nonneg_left ha1 hη
53 have hcst := mul_le_mul_of_nonneg_left
54 (neg_le_abs (universalAffinity n m d p - classicalValue γ (d+1))) (orbitalValue_pos hγ p).le
55 have habs := mul_le_mul_of_nonneg_right (orbitalValue_le_one hγ p)
56 (abs_nonneg (universalAffinity n m d p - classicalValue γ (d+1)))
57 unfold universalValue
58 change max 0 (orbitalValue γ p - η) * _ - _ ≤ _ at h
59 nlinarith
60
61/-- A uniform physical Young-tail envelope, independent of the spectrum. -/
62def universalTailEnvelope (d n : ℕ) : ℝ :=
63 ((((d+1 : ℕ) : ℝ)+1)^Fintype.card (PositiveRoot (d+1))) *
64 (((n : ℝ)+1)^Fintype.card (PositiveRoot (d+1)) * concentrationEnvelope (d+1) n)
65
66theorem copyBadMass_le_universalTailEnvelope {d : ℕ} (n : ℕ) (hn : 1 ≤ n)
67 (p : SimpleSpectrum (d+1)) : copyBadMass n (d+1) p.eigenvalue ≤ universalTailEnvelope d n := by
68 rw [copyBadMass_eq_tail n (d+1) p.eigenvalue (fun a ↦ (p.positive a).le) p.normalized]
69 exact tensorYoungPMF_tail_shrinking_le n hn p.eigenvalue (fun a ↦ (p.positive a).le)
70 p.normalized p.strictAnti.antitone
71
72theorem universalTailEnvelope_tendsto_zero (d : ℕ) :
73 Tendsto (universalTailEnvelope d) atTop (𝓝 0) := by
74 simpa only [universalTailEnvelope, mul_zero] using
75 (polynomial_concentrationEnvelope_tendsto_zero (d+1) (Fintype.card (PositiveRoot (d+1)))).const_mul
76 ((((d+1 : ℕ) : ℝ)+1)^Fintype.card (PositiveRoot (d+1)))
77
78end Cloning.TensorCloning