Offline · exact source
Exact Lean source

PhysicalCloningConverseUnknown

formalization/Cloning/PhysicalCloningConverseUnknown.lean

Source hash: 8ac36ca96a4344ea77de3d3de6fe1c378402c7a8731ddfdd36448f6a14f24862

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.

In the dependency map: Unknown spectrum

Declarations in this module
1import Cloning.PhysicalCloningConverseWindows
2import Cloning.PhysicalCloningConverseTransfer
3import Cloning.HybridFlatBox
4 
5/-! Physical unknown-spectrum converse at interior base points. The LAN
6premise is the explicit compact-window property for literal tensor states. -/
7noncomputable section
8open scoped BigOperators Topology Classical
9open Filter MeasureTheory
10namespace Cloning.PhysicalCloningConverse
11open Cloning.PCT Cloning.PCTLocalChart Cloning.PCTPhysicalFidelity
12open Cloning.PCTJointGaussianWhitening Cloning.PCTPhysicalState Cloning.TensorCloning
13open Cloning.Hybrid
14set_option backward.isDefEq.respectTransparency false
15set_option maxHeartbeats 1600000
16variable {k s : ℕ}
17 
18theorem output_size_tendsto (m : ℕ → ℕ) (g : ℝ) (hg : 0 < g)
19    (hratio : Tendsto (fun n => (m n : ℝ)/(n : ℝ)) atTop (𝓝 g)) :
20    Tendsto m atTop atTop := by
21  apply (tendsto_natCast_atTop_iff (R := ℝ)).mp
22  have h := hratio.pos_mul_atTop hg (tendsto_natCast_atTop_atTop (R := ℝ))
23  apply h.congr'
24  filter_upwards [eventually_gt_atTop (0 : ℕ)] with n hn
25  exact div_mul_cancel₀ (m n : ℝ) (Nat.cast_ne_zero.mpr hn.ne')
26 
27theorem ae_flatBox_mem (L : ℕ) :
28    ∀ᵐ ξ ∂(flatBoxDensity k s).expandingPrior L,
29      ξ ∈ phaseSpaceBox k s ((L : ℝ)+1) := by
30  rw [PhaseDensity.expandingPrior]
31  apply (ae_map_iff (by fun_prop)
32    (show MeasurableSet {ξ : PhaseSpace k s | ξ ∈ phaseSpaceBox k s ((L : ℝ)+1)}
33      from (phaseSpaceBox_closed k s _).measurableSet)).mpr
34  simp_rw [smul_mem_phaseSpaceBox_iff (by positivity : 0 < (L : ℝ)+1)]
35  rw [PhaseDensity.prior, ae_withDensity_iff (flatBoxDensity k s).measurable.ennreal_ofReal]
36  apply Eventually.of_forall
37  intro ξ hξ
38  by_contra hnot
39  simp [flatBoxDensity, hnot] at hξ
40 
41def spectrumInSet (S : Set (SimpleSpectrum (k+1))) (p : SimpleSpectrum (k+1)) (hp : p ∈ S)
42    (h : Fin (k+1) → ℝ) (n : ℕ) : S :=
43  if hm : localSimpleSpectrum p h n ∈ S then ⟨localSimpleSpectrum p h n,hm⟩ else ⟨p,hp⟩
44 
45def unknownLocalChart (S : Set (SimpleSpectrum (k+1))) (p : SimpleSpectrum (k+1)) (hp : p ∈ S)
46    (b : Fin (k+1) → EuclideanSpace ℝ (Fin (k+1))) (e : Fin s ≃ PairIndex (k+1))
47    (n : ℕ) (ξ : PhaseSpace k s) : S × unitary (Matrix (Fin (k+1)) (Fin (k+1)) ℂ) :=
48  (spectrumInSet S p hp (phaseParameters p b e ξ).1 n,
49    localUnitary p (phaseParameters p b e ξ) n)
50 
51theorem model_phaseParameters (p : SimpleSpectrum (k+1))
52    (b : OrthonormalBasis (Fin (k+1)) ℝ (EuclideanSpace ℝ (Fin (k+1))))
53    (e : Fin s ≃ PairIndex (k+1)) (ξ : PhaseSpace k s) :
54    model p b e (phaseParameters p b e ξ) = translatedPositive ξ (reference p e) := by
55  unfold model
56  rw [parameterTranslation_phaseParameters]
57  rfl
58 
59theorem model_smul_phaseParameters (p : SimpleSpectrum (k+1))
60    (b : OrthonormalBasis (Fin (k+1)) ℝ (EuclideanSpace ℝ (Fin (k+1))))
61    (e : Fin s ≃ PairIndex (k+1)) (c : ℝ) (ξ : PhaseSpace k s) :
62    model p b e (c • phaseParameters p b e ξ) = translatedPositive (c • ξ) (reference p e) := by
63  unfold model
64  rw [parameterTranslation_smul, parameterTranslation_phaseParameters]
65  rfl
66 
67/-- Every fixed physical phase box has genuine input/output LAN errors
68tending to zero, uniformly on the box and independently of the competitor. -/
69theorem unknown_fixedWindow_errors
70    (S : Set (SimpleSpectrum (k+1))) (p : SimpleSpectrum (k+1)) (hp : p ∈ interior S)
71    (b : OrthonormalBasis (Fin (k+1)) ℝ (EuclideanSpace ℝ (Fin (k+1))))
72    (hb : b 0 = sqrtSpectrum p.eigenvalue) (e : Fin s ≃ PairIndex (k+1))
73    (lan : CompactWindowLAN p b e) (m : ℕ → ℕ) (g : ℝ) (hg : 0 < g)
74    (hratio : Tendsto (fun n => (m n : ℝ)/(n : ℝ)) atTop (𝓝 g)) (L : ℕ) :
75    ∃ δ η : ℕ → ℝ, Tendsto δ atTop (𝓝 0) ∧ Tendsto η atTop (𝓝 0) ∧
76      ∀ᶠ n in atTop, ∀ ξ ∈ phaseSpaceBox k s ((L : ℝ)+1),
77        let u := unknownLocalChart S p (interior_subset hp) b e n ξ
78        (‖(lan.reverse n).map (translatedPositive ξ (reference p e)).1 -
79          (tensorState (orbitState u.1.val u.2) n).1‖ ≤ δ n) ∧
80        (‖(lan.forward (m n)).map (tensorState (orbitState u.1.val u.2) (m n)).1 -
81          (translatedPositive (Real.sqrt g • ξ) (reference p e)).1‖ ≤ η n) := by
82  let K := phaseParameters p b e '' phaseSpaceBox k s ((L : ℝ)+1)
83  have hK : IsCompact K := compact_phaseParameters p b e _ (phaseSpaceBox_compact k s _)
84  have hz : ∀ θ ∈ K, ∑ i, θ.1 i = 0 := by
85    rintro θ ⟨ξ,hξ,rfl⟩
86    exact phaseParameters_sum_zero p b hb e ξ
87  have hm := output_size_tendsto m g hg hratio
88  obtain ⟨δ,η,hδ,hη,hbound⟩ := scaled_window_approximations p b e lan m hm
89    (fun n => sampleRatio n (m n)) (Real.sqrt g) (sampleRatio_tendsto m g hratio) K hK hz
90  have hKscore : Bornology.IsBounded (Prod.fst '' K) := (hK.image continuous_fst).isBounded
91  have hzscore : ∀ h ∈ Prod.fst '' K, ∑ i, h i = 0 := by
92    rintro h ⟨θ,hθ,rfl⟩
93    exact hz θ hθ
94  refine ⟨δ,η,hδ,hη,?_⟩
95  filter_upwards [hbound,eventually_orbitState_localSimpleSpectrum p K hK hz,
96    eventually_localSimpleSpectrum_mem_of_interior S p hp (Prod.fst '' K) hKscore hzscore,
97    hm.eventually (eventually_gt_atTop 0)] with n hn he hmem hmn ξ hξ
98  let θ := phaseParameters p b e ξ
99  have hθ : θ ∈ K := ⟨ξ,hξ,rfl⟩
100  have hS := hmem θ.1 ⟨θ,hθ,rfl⟩
101  have hmatrix : (orbitState (unknownLocalChart S p (interior_subset hp) b e n ξ).1.val
102      (unknownLocalChart S p (interior_subset hp) b e n ξ).2).matrix = chartMatrix p θ n := by
103    change (orbitState (spectrumInSet S p (interior_subset hp) θ.1 n).val
104      (localUnitary p θ n)).matrix = _
105    rw [spectrumInSet, dif_pos hS]
106    exact he θ hθ
107  have hinput : (tensorState (orbitState (unknownLocalChart S p (interior_subset hp) b e n ξ).1.val
108      (unknownLocalChart S p (interior_subset hp) b e n ξ).2) n).1 = chartTensor p θ n := by
109    change matrixTensorPower _ n = _
110    rw [hmatrix]
111    rfl
112  have houtput : (tensorState (orbitState (unknownLocalChart S p (interior_subset hp) b e n ξ).1.val
113      (unknownLocalChart S p (interior_subset hp) b e n ξ).2) (m n)).1 =
114      chartTensor p (sampleRatio n (m n) • θ) (m n) := by
115    change matrixTensorPower _ (m n) = matrixTensorPower _ (m n)
116    rw [hmatrix, chartMatrix_rescale p θ n (m n) hmn]
117  have hh := hn θ hθ
118  simpa only [hinput,houtput,θ,model_phaseParameters,model_smul_phaseParameters] using hh
119 
120 
121/-- The physical unknown-spectrum minimax converse at an interior base. The
122only analytic premise is the genuine compact-window mixed-LAN property. -/
123theorem limsup_unknownSpectrumValue_le_of_compactWindowLAN
124    (S : Set (SimpleSpectrum (k+1))) (p : SimpleSpectrum (k+1)) (hp : p ∈ interior S)
125    (b : OrthonormalBasis (Fin (k+1)) ℝ (EuclideanSpace ℝ (Fin (k+1))))
126    (hb : b 0 = sqrtSpectrum p.eigenvalue) (e : Fin s ≃ PairIndex (k+1))
127    (lan : CompactWindowLAN p b e) (m : ℕ → ℕ) (g : ℝ) (hg : 1 < g)
128    (hratio : Tendsto (fun n => (m n : ℝ)/(n : ℝ)) atTop (𝓝 g)) :
129    limsup (fun n => unknownSpectrumValue n (m n) S) atTop ≤ universalValue g p := by
130  letI : Nonempty S := ⟨⟨p,interior_subset hp⟩⟩
131  choose δ η hδ hη hbound using fun L =>
132    unknown_fixedWindow_errors S p hp b hb e lan m g (by linarith) hratio L
133  have hd : ∀ L, ∀ᶠ n in atTop, ∀ᵐ ξ ∂(flatBoxDensity k s).expandingPrior L,
134      ‖(lan.reverse n).map (translatedPositive ξ (reference p e)).1 -
135        (tensorState (orbitState
136          (unknownLocalChart S p (interior_subset hp) b e n ξ).1.val
137          (unknownLocalChart S p (interior_subset hp) b e n ξ).2) n).1‖ ≤ δ L n := by
138    intro L
139    filter_upwards [hbound L] with n hn
140    exact (ae_flatBox_mem L).mono fun ξ hξ => (hn ξ hξ).1
141  have he : ∀ L, ∀ᶠ n in atTop, ∀ᵐ ξ ∂(flatBoxDensity k s).expandingPrior L,
142      ‖(lan.forward (m n)).map (tensorState (orbitState
143          (unknownLocalChart S p (interior_subset hp) b e n ξ).1.val
144          (unknownLocalChart S p (interior_subset hp) b e n ξ).2) (m n)).1 -
145        (translatedPositive (Real.sqrt g • ξ) (reference p e)).1‖ ≤ η L n := by
146    intro L
147    filter_upwards [hbound L] with n hn
148    exact (ae_flatBox_mem L).mono fun ξ hξ => (hn ξ hξ).2
149  have h := limsup_statePayoff_le_modeFactor_of_approximations
150    (fun u : S × unitary (Matrix (Fin (k+1)) (Fin (k+1)) ℂ) => orbitState u.1.val u.2)
151    m (flatBoxDensity k s) (fun _ => 1/2) (fun _ => by norm_num) g hg
152    (fun i => p.ratio (e i)) (fun i => (p.ratio_pos (e i)).le) (fun i => p.ratio_lt_one (e i))
153    lan.reverse (fun n => lan.forward (m n))
154    (unknownLocalChart S p (interior_subset hp) b e) δ η hd he hδ hη
155  have hprod := e.prod_comp (fun ij => Thermal.modeFactor g (p.ratio ij))
156  simpa only [unknownSpectrumValue, spectrumPayoff, universalValue, classicalValue, orbitalValue,
157    Nat.cast_add, Nat.cast_one, add_sub_cancel_right, hprod] using h
158 
159/-- Boundary spectra are included by the proved concrete continuity of the
160Gaussian value. Compactness of S is unnecessary for the upper bound itself. -/
161theorem limsup_unknownSpectrumValue_infimum_of_compactWindowLAN
162    (S : Set (SimpleSpectrum (k+1))) (hSne : S.Nonempty)
163    (hS : closure (interior S) = S) (e : Fin s ≃ PairIndex (k+1))
164    (hLAN : ∀ p ∈ interior S,
165      ∃ b : OrthonormalBasis (Fin (k+1)) ℝ (EuclideanSpace ℝ (Fin (k+1))),
166        b 0 = sqrtSpectrum p.eigenvalue ∧ Nonempty (CompactWindowLAN p b e))
167    (m : ℕ → ℕ) (g : ℝ) (hg : 1 < g)
168    (hratio : Tendsto (fun n => (m n : ℝ)/(n : ℝ)) atTop (𝓝 g)) :
169    limsup (fun n => unknownSpectrumValue n (m n) S) atTop ≤
170      ⨅ p : S, universalValue g p.val := by
171  apply universal_infimum_regularClosure (by linarith) S hSne hS
172  intro p hp
173  obtain ⟨b,hb,⟨lan⟩⟩ := hLAN p hp
174  exact limsup_unknownSpectrumValue_le_of_compactWindowLAN S p hp b hb e lan m g hg hratio
175 
176end Cloning.PhysicalCloningConverse