Offline · exact source
Exact Lean source

PCTTensorFrame

formalization/Cloning/PCTTensorFrame.lean

Source hash: 25f79e2eacfe40aec680d323b59be4e2587109827c777f3720363f7a0a0e3401

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.PCTPartialTrace
2 
3/-! Tensor powers of an actual orthonormal purification frame, regrouping of
4system and environment slots, and exact reduced-product coefficients. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace ComplexOrder Topology
7open Filter MeasureTheory Cloning.InfiniteTraceClass
8namespace Cloning.PCT
9open GeneralSymmetricOccupation GeneralCoherent
10set_option maxHeartbeats 1000000
11set_option backward.isDefEq.respectTransparency false
12set_option linter.unusedSectionVars false
13 
14variable {C : Type*} [Fintype C] [DecidableEq C]
15 
16def tensorVector {L : ℕ} (v : Fin L → Register C) : Register (Fin L → C) :=
17  ⟨fun w => ∏ i, v i (w i), memℓp_gen (by
18    simp only [ENNReal.toReal_ofNat]; exact (hasSum_fintype _).summable)⟩
19 
20@[simp] theorem tensorVector_apply {L : ℕ} (v : Fin L → Register C) (w : Fin L → C) :
21    tensorVector v w = ∏ i, v i (w i) := rfl
22 
23theorem tensorVector_inner {L : ℕ} (v w : Fin L → Register C) :
24    ⟪tensorVector v, tensorVector w⟫_ℂ = ∏ i, ⟪v i, w i⟫_ℂ := by
25  simp only [lp.inner_eq_tsum, tsum_fintype, RCLike.inner_apply, tensorVector_apply,
26    map_prod, ← Finset.prod_mul_distrib]
27  exact (Fintype.prod_sum (fun i a => w i a * star (v i a))).symm
28 
29theorem tensorFrame_orthonormal {d L : ℕ} {u : Fin d → Register C} (hu : Orthonormal ℂ u) :
30    Orthonormal ℂ (fun w : Word L d => tensorVector (fun i => u (w i))) := by
31  rw [orthonormal_iff_ite]
32  intro w v
33  rw [tensorVector_inner]
34  simp only [orthonormal_iff_ite.mp hu]
35  by_cases h : w = v
36  · simp [h]
37  · rw [if_neg h]
38    obtain ⟨i, hi⟩ : ∃ i, w i ≠ v i := by
39      by_contra hn
40      apply h
41      funext i
42      exact not_not.mp (not_exists.mp hn i)
43    exact Finset.prod_eq_zero (Finset.mem_univ i) (if_neg hi)
44 
45/-- The tensor power of an orthonormal physical one-particle frame. -/
46def tensorFrame {d : ℕ} {u : Fin d → Register C} (hu : Orthonormal ℂ u) (L : ℕ) :
47    TensorSpace L d →ₗᵢ[ℂ] Register (Fin L → C) :=
48  (tensorFrame_orthonormal (L := L) hu).orthogonalFamily.linearIsometry
49 
50theorem tensorFrame_apply {d : ℕ} {u : Fin d → Register C} (hu : Orthonormal ℂ u)
51    (L : ℕ) (x : TensorSpace L d) (v : Fin L → C) :
52    tensorFrame hu L x v = ∑ w : Word L d, x w * ∏ i, u (w i) (v i) := by
53  rw [tensorFrame, OrthogonalFamily.linearIsometry_apply, tsum_fintype]
54  simp only [LinearIsometry.toSpanSingleton_apply, lp.coeFn_sum, Finset.sum_apply,
55    lp.coeFn_smul, Pi.smul_apply, smul_eq_mul, tensorVector_apply]
56 
57/-- The normalized one-particle perturbation in the chosen purification frame. -/
58def frameParticle {s : ℕ} (u : Fin (s + 1) → Register C) (z : Fin s → ℂ) (L : ℕ) :
59    Register C := ∑ j, oneParticle z L j • u j
60 
61@[simp] theorem frameParticle_apply {s : ℕ} (u : Fin (s + 1) → Register C)
62    (z : Fin s → ℂ) (L : ℕ) (c : C) :
63    frameParticle u z L c = ∑ j, oneParticle z L j * u j c := by
64  simp only [frameParticle, lp.coeFn_sum, Finset.sum_apply, lp.coeFn_smul,
65    Pi.smul_apply, smul_eq_mul]
66 
67theorem tensorFrame_productTensor {s : ℕ} {u : Fin (s + 1) → Register C}
68    (hu : Orthonormal ℂ u) (z : Fin s → ℂ) (L : ℕ) :
69    tensorFrame hu L (productTensor z L) = tensorVector (fun _ : Fin L => frameParticle u z L) := by
70  ext v
71  simp only [tensorFrame_apply, productTensor_apply, tensorVector_apply,
72    frameParticle_apply, ← Finset.prod_mul_distrib]
73  exact (Fintype.prod_sum (fun i j => oneParticle z L j * u j (v i))).symm
74 
75variable {A B : Type*} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
76 
77def pairWordsEquiv (L : ℕ) : (Fin L → A × B) ≃ ((Fin L → A) × (Fin L → B)) where
78  toFun w := (fun i => (w i).1, fun i => (w i).2)
79  invFun w := fun i => (w.1 i, w.2 i)
80  left_inv w := by funext i; exact Prod.eta (w i)
81  right_inv w := by cases w; rfl
82 
83theorem regroup_orthonormal (L : ℕ) :
84    Orthonormal ℂ (fun w : Fin L → A × B =>
85      (lp.single 2 (pairWordsEquiv L w) 1 : Register ((Fin L → A) × (Fin L → B)))) := by
86  rw [orthonormal_iff_ite]
87  intro w v
88  simp only [register_inner_single, lp.single_apply, Pi.single_apply]
89  simp only [(pairWordsEquiv L).injective.eq_iff]
90 
91def regroup (L : ℕ) : Register (Fin L → A × B) →ₗᵢ[ℂ]
92    Register ((Fin L → A) × (Fin L → B)) :=
93  (regroup_orthonormal (A := A) (B := B) L).orthogonalFamily.linearIsometry
94 
95@[simp] theorem regroup_apply (L : ℕ) (x : Register (Fin L → A × B))
96    (a : Fin L → A) (b : Fin L → B) :
97    regroup L x (a, b) = x (fun i => (a i, b i)) := by
98  classical
99  rw [regroup, OrthogonalFamily.linearIsometry_apply, tsum_fintype]
100  simp only [LinearIsometry.toSpanSingleton_apply, lp.coeFn_sum, Finset.sum_apply,
101    lp.coeFn_smul, Pi.smul_apply, smul_eq_mul, lp.single_apply, Pi.single_apply]
102  have he (w : Fin L → A × B) : (a, b) = pairWordsEquiv L w ↔ w = (fun i => (a i, b i)) := by
103    constructor
104    · intro h
105      exact (congrArg (pairWordsEquiv (A := A) (B := B) L).symm h).symm
106    · intro h
107      subst w
108      rfl
109  simp only [he, mul_ite, mul_one, mul_zero, Finset.sum_ite_eq', Finset.mem_univ, ite_true]
110 
111/-- Trace out all environment slots after the actual tensor-power change of
112one-particle frame. -/
113def reducedTensorChannel {s : ℕ} {u : Fin (s + 1) → Register (A × B)}
114    (hu : Orthonormal ℂ u) (L : ℕ) :
115    QuantumChannel (TensorSpace L (s + 1)) (Register (Fin L → A)) :=
116  partialTraceChannel.comp
117    ((QuantumChannel.ofIsometry (regroup (A := A) (B := B) L)).comp
118      (QuantumChannel.ofIsometry (tensorFrame hu L)))
119 
120theorem reducedTensorChannel_productTensor {s : ℕ} {u : Fin (s + 1) → Register (A × B)}
121    (hu : Orthonormal ℂ u) (z : Fin s → ℂ) (L : ℕ) :
122    (reducedTensorChannel hu L).toLinearMap (vectorProjector (productTensor z L)) =
123      partialTraceChannel.toLinearMap (vectorProjector
124        (regroup L (tensorVector (fun _ : Fin L => frameParticle u z L)))) := by
125  change partialTraceChannel.toLinearMap ((QuantumChannel.ofIsometry (regroup L)).toLinearMap
126    ((QuantumChannel.ofIsometry (tensorFrame hu L)).toLinearMap
127      (vectorProjector (productTensor z L)))) = _
128  rw [QuantumChannel.ofIsometry_vectorProjector, tensorFrame_productTensor,
129    QuantumChannel.ofIsometry_vectorProjector]
130 
131/-- Partial trace of a tensor power is exactly the tensor power of the reduced
132one-particle matrix. This identifies every coefficient of the physical product
133state inside the PCT Gaussian mixture. -/
134theorem reduced_product_coefficient (v : Register (A × B)) (L : ℕ)
135    (a c : Fin L → A) :
136    (partialTraceChannel.toLinearMap (vectorProjector
137      (regroup L (tensorVector (fun _ : Fin L => v))))).1 (lp.single 2 c 1) a =
138      ∏ i, ∑ b : B, v (a i, b) * star (v (c i, b)) := by
139  rw [show partialTraceChannel.toLinearMap = partialTraceLinear by rfl,
140    partialTraceLinear_coefficient]
141  simp only [vectorProjector, TraceClass.ofOperator_coe, InnerProductSpace.rankOne_apply,
142    lp.inner_single_right, RCLike.inner_apply, one_mul, lp.coeFn_smul, Pi.smul_apply,
143    smul_eq_mul, regroup_apply, tensorVector_apply, map_prod, ← Finset.prod_mul_distrib]
144  simpa only [mul_comm] using
145    (Fintype.prod_sum (fun i b => star (v (c i, b)) * v (a i, b))).symm
146 
147/-- In any actual orthonormal purification frame, the physical Werner output
148after tracing out every environment slot converges to the Gaussian mixture
149of reduced product states. No partial-trace or integration hypothesis remains. -/
150theorem werner_reduced_gaussian_product_mixture {s : ℕ} (hs : 1 ≤ s)
151    {u : Fin (s + 1) → Register (A × B)} (hu : Orthonormal ℂ u)
152    (m : ℕ → ℕ) (hm : ∀ n, n ≤ m n) {γ : ℝ} (hγ : 1 < γ)
153    (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ)) :
154    Tendsto (fun n => ‖(reducedTensorChannel hu (m n)).toLinearMap
155      (wernerOutput (s := s) (inputSlots n (m n) (hm n))) -
156      ∫ z, partialTraceChannel.toLinearMap (vectorProjector
157        (regroup (m n) (tensorVector (fun _ : Fin (m n) => frameParticle u z (m n)))))
158        ∂MultimodeCoherentGaussianMixture.gaussianProductMeasure
159          (fun _ : Fin s => γ - 1)‖) atTop (𝓝 0) := by
160  simpa only [reducedTensorChannel_productTensor] using
161    physical_werner_gaussian_mixture_after_channels hs m hm hγ h
162      (fun n => reducedTensorChannel hu (m n))
163 
164end Cloning.PCT