Offline · exact source
Exact Lean source

WernerPhysicalPullback

formalization/Cloning/WernerPhysicalPullback.lean

Source hash: 328dd36bde83e302e13d99f6168651cb90f5a10b39811339590e645822c5b30b

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: Purify–clone–trace

Paper ↔ Lean correspondence in this module
Declarations in this module
definition Cloning.GeneralSymmetricOccupation.excitationtheorem Cloning.GeneralSymmetricOccupation.occupation_sumtheorem Cloning.GeneralSymmetricOccupation.reference_add_excitationtheorem Cloning.GeneralSymmetricOccupation.excitation_sum_letheorem Cloning.GeneralSymmetricOccupation.reference_eq_sub_excitationtheorem Cloning.GeneralSymmetricOccupation.excitation_injectivedefinition Cloning.GeneralSymmetricOccupation.fromExcitationtheorem Cloning.GeneralSymmetricOccupation.excitation_fromExcitationdefinition Cloning.GeneralSymmetricOccupation.FockSpacedefinition Cloning.GeneralSymmetricOccupation.numberVectortheorem Cloning.GeneralSymmetricOccupation.numberVector_normtheorem Cloning.GeneralSymmetricOccupation.finite_number_orthonormaldefinition Cloning.GeneralSymmetricOccupation.occupationPadtheorem Cloning.GeneralSymmetricOccupation.occupationPad_singledefinition Cloning.GeneralSymmetricOccupation.vacuumRegisterdefinition Cloning.GeneralSymmetricOccupation.occupationRecoverytheorem Cloning.GeneralSymmetricOccupation.occupationRecovery_columndefinition Cloning.GeneralSymmetricOccupation.wernerOutputtheorem Cloning.GeneralSymmetricOccupation.wernerOutput_optheorem Cloning.GeneralSymmetricOccupation.wernerWeight_eq_occupationLawtheorem Cloning.GeneralSymmetricOccupation.occupationRecovery_wernerOutputdefinition Cloning.GeneralSymmetricOccupation.inputSlotstheorem Cloning.GeneralSymmetricOccupation.inputSlots_cardtheorem Cloning.GeneralSymmetricOccupation.mem_inputSlotstheorem Cloning.GeneralSymmetricOccupation.wernerOutput_nonnegtheorem Cloning.GeneralSymmetricOccupation.wernerOutput_trace_onedefinition Cloning.GeneralSymmetricOccupation.wernerOutputStatetheorem Cloning.GeneralSymmetricOccupation.physical_werner_thermal_limittheorem Cloning.GeneralSymmetricOccupation.physical_werner_traceNorm_limit
1import Cloning.WernerPhysicalOperator
2import Cloning.IsometricRecovery
3import Cloning.InfiniteOccupationStates
4 
5/-! # Physical Werner occupation pullback and its trace-norm limit
6 
7The occupation coordinate isometry is extended to a CPTP compression on the
8whole computational tensor space. Applied to the original Werner sandwich
9operator, it gives exactly the already-formalized finite-support Fock
10occupation state. This closes the physical-output identification required
11for the general-dimensional Werner thermal limit.
12-/
13noncomputable section
14set_option synthInstance.maxHeartbeats 200000
15set_option maxHeartbeats 1000000
16set_option backward.isDefEq.respectTransparency false
17open scoped BigOperators InnerProductSpace ComplexOrder Topology
18open Filter
19 
20namespace Cloning.GeneralSymmetricOccupation
21open Cloning.InfiniteTraceClass
22 
23/-- Excitation occupations, with basis letter zero chosen as the reference. -/
24def excitation {L s : ℕ} (q : Occupation L (s + 1)) : Fin s → ℕ :=
25  fun i => q.val i.succ
26 
27theorem occupation_sum {L d : ℕ} (q : Occupation L d) : ∑ a, q.val a = L := by
28  obtain ⟨w, hw⟩ := q.property
29  rw [← hw]
30  exact profile_sum w
31 
32theorem reference_add_excitation {L s : ℕ} (q : Occupation L (s + 1)) :
33    q.val 0 + ∑ i, excitation q i = L := by
34  simpa [Fin.sum_univ_succ, excitation] using occupation_sum q
35 
36theorem excitation_sum_le {L s : ℕ} (q : Occupation L (s + 1)) :
37    (∑ i, excitation q i) ≤ L := by
38  have h := reference_add_excitation q
39  omega
40 
41theorem reference_eq_sub_excitation {L s : ℕ} (q : Occupation L (s + 1)) :
42    q.val 0 = L - ∑ i, excitation q i := by
43  have h := reference_add_excitation q
44  omega
45 
46theorem excitation_injective (L s : ℕ) : Function.Injective (@excitation L s) := by
47  intro q r h
48  apply Subtype.ext
49  funext i
50  refine Fin.cases ?_ (fun j => ?_) i
51  · rw [reference_eq_sub_excitation, reference_eq_sub_excitation, h]
52  · exact congrFun h j
53 
54/-- Restoring the reference occupation to an admissible excitation index. -/
55def fromExcitation {L s : ℕ} (k : Fin s → ℕ) (hk : (∑ i, k i) ≤ L) :
56    Occupation L (s + 1) :=
57  (compositionEquiv L (s + 1)).symm
58    ⟨Fin.cons (L - ∑ i, k i) k, by simp [Fin.sum_univ_succ, Nat.sub_add_cancel hk]⟩
59 
60@[simp] theorem excitation_fromExcitation {L s : ℕ} (k : Fin s → ℕ)
61    (hk : (∑ i, k i) ≤ L) : excitation (fromExcitation k hk) = k := by
62  funext i
63  simp [excitation, fromExcitation, compositionEquiv]
64 
65abbrev FockSpace (s : ℕ) := lp (fun _ : Fin s → ℕ => ℂ) 2
66 
67def numberVector {s : ℕ} (k : Fin s → ℕ) : FockSpace s := lp.single 2 k 1
68 
69theorem numberVector_norm {s : ℕ} (k : Fin s → ℕ) : ‖numberVector k‖ = 1 := by
70  rw [numberVector, lp.norm_single (by norm_num)]
71  simp
72 
73theorem finite_number_orthonormal (L s : ℕ) :
74    Orthonormal ℂ (fun q : Occupation L (s + 1) => numberVector (excitation q)) := by
75  rw [orthonormal_iff_ite]
76  intro q r
77  rw [numberVector, lp.inner_single_left]
78  simp only [numberVector, RCLike.inner_apply, lp.single_apply, Pi.single_apply]
79  by_cases h : q = r
80  · simp [h]
81  · have hx : excitation q ≠ excitation r := fun he => h (excitation_injective L s he)
82    simp [h, hx]
83 
84/-- Zero-padding the finite occupation register into full multimode Fock space. -/
85def occupationPad (L s : ℕ) : OccupationSpace L (s + 1) →ₗᵢ[ℂ] FockSpace s :=
86  (finite_number_orthonormal L s).orthogonalFamily.linearIsometry
87 
88theorem occupationPad_single (L s : ℕ) (q : Occupation L (s + 1)) :
89    occupationPad L s (lp.single 2 q 1) = numberVector (excitation q) := by
90  rw [occupationPad, OrthogonalFamily.linearIsometry_apply_single]
91  exact one_smul ℂ _
92 
93/-- The finite occupation density selected as replacement for nonsymmetric mass. -/
94def vacuumRegister (L s : ℕ) : DensityState (OccupationSpace L (s + 1)) :=
95  DensityState.pure (lp.single 2 (label (fun _ : Fin L => (0 : Fin (s + 1)))) 1)
96    (by rw [lp.norm_single (by norm_num)]; simp)
97 
98/-- A genuine CPTP occupation pullback defined for every tensor-space input. -/
99def occupationRecovery (L s : ℕ) : QuantumChannel (TensorSpace L (s + 1)) (FockSpace s) :=
100  (QuantumChannel.ofIsometry (occupationPad L s)).comp
101    (QuantumChannel.isometricRecovery (isometry L (s + 1)) (vacuumRegister L s))
102 
103theorem occupationRecovery_column (L s : ℕ) (q : Occupation L (s + 1)) :
104    (occupationRecovery L s).toLinearMap (vectorProjector (column q)) =
105      vectorProjector (numberVector (excitation q)) := by
106  rw [← isometry_single]
107  change (QuantumChannel.ofIsometry (occupationPad L s)).toLinearMap
108    ((QuantumChannel.isometricRecovery (isometry L (s + 1)) (vacuumRegister L s)).toLinearMap
109      (vectorProjector (isometry L (s + 1) (lp.single 2 q 1)))) = _
110  rw [QuantumChannel.isometricRecovery_vectorProjector,
111    QuantumChannel.ofIsometry_vectorProjector, occupationPad_single]
112 
113/-- Werner's pure-product output as an actual trace-class operator. -/
114def wernerOutput {L s : ℕ} (S : Finset (Fin L)) : TraceClass (TensorSpace L (s + 1)) :=
115  ∑ q : Occupation L (s + 1),
116    ((((q.val 0).choose S.card : ℝ) / (L + s).choose (S.card + s) : ℝ) : ℂ) •
117      vectorProjector (column q)
118 
119/-- The bundled trace-class output is exactly the physical symmetric sandwich. -/
120theorem wernerOutput_op {L s : ℕ} (S : Finset (Fin L)) :
121    (wernerOutput (s := s) S).1 = wernerOutputOperator (0 : Fin (s + 1)) S := by
122  rw [wernerOutputOperator_eq_sum]
123  change inclusionCLM (wernerOutput S) = _
124  simp only [wernerOutput, map_sum, map_smul]
125  rfl
126 
127/-- The physical eigenvalue agrees with the full padded Fock occupation law. -/
128theorem wernerWeight_eq_occupationLaw {L s : ℕ} (S : Finset (Fin L))
129    (q : Occupation L (s + 1)) :
130    ((q.val 0).choose S.card : ℝ) / (L + s).choose (S.card + s) =
131      Cloning.WernerNormalization.occupationLaw S.card L s (excitation q) := by
132  rw [Cloning.WernerNormalization.occupationLaw, reference_eq_sub_excitation]
133  split_ifs with hk
134  · exact Cloning.WernerAsymptotics.coefficient_eq_wernerWeight S.card L s _
135  · have hn : L - ∑ i, excitation q i < S.card := by
136      have hs := excitation_sum_le q
137      have hSL : S.card ≤ L := by simpa using Finset.card_le_univ S
138      omega
139    simp [Nat.choose_eq_zero_of_lt hn]
140 
141/-- Exact channel-level identification with the finite Werner Fock operator. -/
142theorem occupationRecovery_wernerOutput {L s : ℕ} (S : Finset (Fin L)) :
143    (occupationRecovery L s).toLinearMap (wernerOutput (s := s) S) =
144      Cloning.InfiniteOccupationStates.occupationOperator (@numberVector s) S.card L := by
145  classical
146  simp only [wernerOutput, map_sum, map_smul, occupationRecovery_column]
147  have hw : ∀ q : Occupation L (s + 1),
148      ((((q.val 0).choose S.card : ℝ) / (L + s).choose (S.card + s) : ℝ) : ℂ) =
149        (Cloning.WernerNormalization.occupationLaw S.card L s (excitation q) : ℂ) := by
150    intro q
151    exact_mod_cast wernerWeight_eq_occupationLaw S q
152  simp_rw [hw]
153  unfold Cloning.InfiniteOccupationStates.occupationOperator vectorMixture
154  rw [tsum_eq_sum (s := Cloning.WernerNormalization.occupationSupport s L)]
155  · apply Finset.sum_bij (fun q _ => excitation q)
156    · intro q hq
157      exact Cloning.WernerNormalization.mem_occupationSupport.mpr (excitation_sum_le q)
158    · intro q hq r hr hqr
159      exact excitation_injective L s hqr
160    · intro k hk
161      let q := fromExcitation k (Cloning.WernerNormalization.mem_occupationSupport.mp hk)
162      exact ⟨q, Finset.mem_univ q, excitation_fromExcitation k _⟩
163    · intro q hq
164      rfl
165  · intro k hk
166    have hk' : ¬ (∑ i, k i) ≤ L - S.card := by
167      intro h
168      apply hk
169      exact Cloning.WernerNormalization.mem_occupationSupport.mpr (h.trans (Nat.sub_le _ _))
170    simp [Cloning.WernerNormalization.occupationLaw, hk']
171 
172end Cloning.GeneralSymmetricOccupation
173 
174namespace Cloning.GeneralSymmetricOccupation
175open Cloning.InfiniteTraceClass
176 
177/-- The first `n` slots of an `m`-fold physical tensor product. -/
178def inputSlots (n m : ℕ) (hnm : n ≤ m) : Finset (Fin m) :=
179  Finset.univ.map ⟨Fin.castLE hnm, Fin.castLE_injective hnm⟩
180 
181@[simp] theorem inputSlots_card (n m : ℕ) (hnm : n ≤ m) :
182    (inputSlots n m hnm).card = n := by simp [inputSlots]
183 
184theorem mem_inputSlots (n m : ℕ) (hnm : n ≤ m) (i : Fin m) :
185    i ∈ inputSlots n m hnm ↔ i.val < n := by
186  classical
187  simp only [inputSlots, Finset.mem_map, Finset.mem_univ, true_and,
188    Function.Embedding.coeFn_mk]
189  constructor
190  · rintro ⟨j, rfl⟩
191    exact j.isLt
192  · intro hi
193    exact ⟨⟨i.val, hi⟩, Fin.ext rfl⟩
194 
195/-- Positivity of the physical Werner output has no additional hypothesis. -/
196theorem wernerOutput_nonneg {L s : ℕ} (S : Finset (Fin L)) :
197    0 ≤ (wernerOutput (s := s) S).1 := by
198  have heq : wernerOutput (s := s) S = vectorMixture (@column L (s + 1))
199      (fun q => ((q.val 0).choose S.card : ℝ) / (L + s).choose (S.card + s)) := by
200    simp only [vectorMixture, tsum_fintype, wernerOutput]
201  rw [heq]
202  exact vectorMixture_nonneg _ column_norm _ (hasSum_fintype _).summable
203    (fun _ => by positivity)
204 
205/-- Unit trace follows from the exact CPTP pullback and the proved Werner law. -/
206theorem wernerOutput_trace_one {L s : ℕ} (hs : 1 ≤ s) (S : Finset (Fin L)) :
207    traceCLM (wernerOutput (s := s) S) = 1 := by
208  have htp :=
209    (traceCLM_apply ((occupationRecovery L s).toLinearMap (wernerOutput (s := s) S))).trans
210      (((occupationRecovery L s).trace_preserving (wernerOutput (s := s) S)).trans
211        (traceCLM_apply (wernerOutput (s := s) S)).symm)
212  rw [← htp, occupationRecovery_wernerOutput]
213  change traceCLM (vectorMixture (@numberVector s)
214    (Cloning.WernerNormalization.occupationLaw S.card L s)) = 1
215  rw [traceCLM_vectorMixture _ numberVector_norm _
216    (Cloning.InfiniteOccupationStates.occupationLaw_summable _ _ _),
217    (Cloning.WernerNormalization.occupationLaw_hasSum S.card L s
218      (by simpa using Finset.card_le_univ S) hs).tsum_eq]
219  simp
220 
221/-- A concrete normalized density state equal to Werner's original formula. -/
222def wernerOutputState {L s : ℕ} (hs : 1 ≤ s) (S : Finset (Fin L)) :
223    DensityState (TensorSpace L (s + 1)) where
224  op := (wernerOutput (s := s) S).1
225  positive := wernerOutput_nonneg S
226  traceClass := (wernerOutput (s := s) S).2
227  trace_one := wernerOutput_trace_one hs S
228 
229/-- The general-dimensional physical Werner output, pulled back by an actual
230channel, converges in trace norm to the multimode thermal density operator.
231No physical-occupation identification or coefficient-convergence assumption
232remains: only the cloning-ratio hypothesis is required. -/
233theorem physical_werner_thermal_limit {s : ℕ} (hs : 1 ≤ s)
234    (m : ℕ → ℕ) (hm : ∀ n, n ≤ m n) {γ : ℝ} (hγ : 1 < γ)
235    (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ)) :
236    Tendsto (fun n ↦ (occupationRecovery (m n) s).toLinearMap
237      (wernerOutput (s := s) (inputSlots n (m n) (hm n)))) atTop
238      (𝓝 (Cloning.InfiniteOccupationStates.thermalOperator (@numberVector s) γ)) := by
239  simp only [occupationRecovery_wernerOutput, inputSlots_card]
240  exact Cloning.InfiniteOccupationStates.occupationOperator_tendsto hs _ numberVector_norm m hγ h
241 
242/-- The same physical channel limit written explicitly as trace-norm error. -/
243theorem physical_werner_traceNorm_limit {s : ℕ} (hs : 1 ≤ s)
244    (m : ℕ → ℕ) (hm : ∀ n, n ≤ m n) {γ : ℝ} (hγ : 1 < γ)
245    (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ)) :
246    Tendsto (fun n ↦ ‖(occupationRecovery (m n) s).toLinearMap
247      (wernerOutput (s := s) (inputSlots n (m n) (hm n))) -
248        Cloning.InfiniteOccupationStates.thermalOperator (@numberVector s) γ‖) atTop (𝓝 0) :=
249  tendsto_iff_norm_sub_tendsto_zero.mp (physical_werner_thermal_limit hs m hm hγ h)
250 
251end Cloning.GeneralSymmetricOccupation