Exact Lean source
PCTWernerCovariance
formalization/Cloning/PCTWernerCovariance.lean
Source hash: 6836ded259db684efe4e46e7153b67d92e357b0566083d96d1f54e34ec933b76
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.PCT.wordPermutationtheorem Cloning.PCT.tensorFrame_preserves_symmetrictheorem Cloning.PCT.symmetricSubspace_map_tensorFrametheorem Cloning.PCT.tensorFrame_projectortheorem Cloning.PCT.tensorFrame_projector_commutestheorem Cloning.PCT.tensorFrame_adjoint_projector_commutestheorem Cloning.PCT.tensorFrame_singletheorem Cloning.PCT.tensorFrame_adjoint_single_applytheorem Cloning.PCT.fullFrame_resolutiontheorem Cloning.PCT.tensorFrame_fixedSlot_coefficienttheorem Cloning.PCT.tensorFrame_werner_sandwich1import Cloning.PCTPurificationFrame
2import Cloning.PCTPurificationInvariance
3
4/-! The actual tensor power of every orthonormal one-particle frame commutes
5with the physical symmetric projection. Consequently the framed Werner output
6has the original symmetric-sandwich expression with its rotated pure input. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace ComplexOrder Topology
9open Cloning.InfiniteTraceClass
10namespace Cloning.PCT
11open GeneralSymmetricOccupation GeneralCoherent
12set_option maxHeartbeats 1500000
13set_option backward.isDefEq.respectTransparency false
14
15def wordPermutation (L d : ℕ) (σ : Equiv.Perm (Fin L)) : Word L d ≃ Word L d where
16 toFun w := w ∘ σ
17 invFun w := w ∘ σ.symm
18 left_inv w := by funext i; simp
19 right_inv w := by funext i; simp
20
21theorem tensorFrame_preserves_symmetric {d : ℕ}
22 {u : Fin d → Register (Fin d)} (hu : Orthonormal ℂ u) (L : ℕ)
23 {x : TensorSpace L d} (hx : x ∈ symmetricSubspace L d) :
24 tensorFrame hu L x ∈ symmetricSubspace L d := by
25 intro v σ
26 simp only [tensorFrame_apply]
27 calc
28 _ = ∑ w : Word L d, x (w ∘ σ) * ∏ i, u (w (σ i)) (v (σ i)) := by
29 exact ((wordPermutation L d σ).sum_comp
30 (fun w => x w * ∏ i, u (w i) ((v ∘ σ) i))).symm
31 _ = ∑ w : Word L d, x w * ∏ i, u (w i) (v i) := by
32 apply Finset.sum_congr rfl
33 intro w hw
34 rw [hx w σ, Equiv.prod_comp σ (fun i => u (w i) (v i))]
35
36theorem symmetricSubspace_map_tensorFrame {d : ℕ}
37 {u : Fin d → Register (Fin d)} (hu : Orthonormal ℂ u) (L : ℕ) :
38 (symmetricSubspace L d).map (tensorFrame hu L).toLinearMap = symmetricSubspace L d := by
39 letI : FiniteDimensional ℂ (TensorSpace L d) :=
40 (registerBasis (Word L d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
41 have hp : ∀ x ∈ symmetricSubspace L d, (tensorFrame hu L).toLinearMap x ∈
42 symmetricSubspace L d := fun x hx => tensorFrame_preserves_symmetric hu L hx
43 let f := (tensorFrame hu L).toLinearMap.restrict hp
44 have hf : Function.Injective f := by
45 intro x y h
46 apply Subtype.ext
47 exact (tensorFrame hu L).injective (congrArg Subtype.val h)
48 have hs := LinearMap.surjective_of_injective hf
49 apply le_antisymm
50 · rintro y ⟨x, hx, rfl⟩
51 exact hp x hx
52 · intro y hy
53 obtain ⟨x, hx⟩ := hs ⟨y, hy⟩
54 exact ⟨x.val, x.property, congrArg Subtype.val hx⟩
55
56/-- Physical symmetric projection commutes with a tensor-power unitary.
57This follows from the actual permutation-invariant range, not from a
58postulated representation covariance. -/
59theorem tensorFrame_projector {d : ℕ}
60 {u : Fin d → Register (Fin d)} (hu : Orthonormal ℂ u) (L : ℕ) (x : TensorSpace L d) :
61 tensorFrame hu L (projector L d x) = projector L d (tensorFrame hu L x) := by
62 have he := symmetricSubspace_map_tensorFrame hu L
63 letI : ((symmetricSubspace L d).map (tensorFrame hu L).toLinearMap).HasOrthogonalProjection := by
64 rw [he]
65 infer_instance
66 have h := (tensorFrame hu L).map_starProjection (symmetricSubspace L d) x
67 simpa only [he, ← projector_eq_starProjection] using h
68
69theorem tensorFrame_projector_commutes {d : ℕ}
70 {u : Fin d → Register (Fin d)} (hu : Orthonormal ℂ u) (L : ℕ) :
71 (tensorFrame hu L).toContinuousLinearMap * projector L d =
72 projector L d * (tensorFrame hu L).toContinuousLinearMap := by
73 apply ContinuousLinearMap.ext
74 intro x
75 exact tensorFrame_projector hu L x
76
77theorem tensorFrame_adjoint_projector_commutes {d : ℕ}
78 {u : Fin d → Register (Fin d)} (hu : Orthonormal ℂ u) (L : ℕ) :
79 (tensorFrame hu L).toContinuousLinearMap.adjoint * projector L d =
80 projector L d * (tensorFrame hu L).toContinuousLinearMap.adjoint := by
81 have h := congrArg star (tensorFrame_projector_commutes hu L)
82 simpa only [star_mul, (projector_selfAdjoint L d).star_eq,
83 ContinuousLinearMap.star_eq_adjoint] using h.symm
84
85theorem tensorFrame_single {C : Type*} [Fintype C] [DecidableEq C] {d : ℕ}
86 {u : Fin d → Register C} (hu : Orthonormal ℂ u) (L : ℕ) (w : Word L d) :
87 tensorFrame hu L (lp.single 2 w 1) = tensorVector (fun i => u (w i)) := by
88 rw [tensorFrame, OrthogonalFamily.linearIsometry_apply_single]
89 exact one_smul ℂ _
90
91theorem tensorFrame_adjoint_single_apply {C : Type*} [Fintype C] [DecidableEq C] {d : ℕ}
92 {u : Fin d → Register C} (hu : Orthonormal ℂ u) (L : ℕ)
93 (c : Fin L → C) (w : Word L d) :
94 (tensorFrame hu L).toContinuousLinearMap.adjoint (lp.single 2 c 1) w =
95 star (∏ i, u (w i) (c i)) := by
96 rw [← register_inner_single, ContinuousLinearMap.adjoint_inner_right]
97 change ⟪tensorFrame hu L (lp.single 2 w 1), lp.single 2 c 1⟫_ℂ = _
98 rw [tensorFrame_single, lp.inner_single_right]
99 simp [RCLike.inner_apply]
100
101theorem fullFrame_resolution {C : Type*} [Fintype C] [DecidableEq C] {d : ℕ}
102 (u : OrthonormalBasis (Fin d) ℂ (Register C)) (a c : C) :
103 (∑ j, u j a * star (u j c)) = if a = c then 1 else 0 := by
104 have h := congrArg (fun v : Register C => v a) (u.sum_repr' (lp.single 2 c 1))
105 simpa only [lp.coeFn_sum, Finset.sum_apply, lp.coeFn_smul, Pi.smul_apply,
106 smul_eq_mul, lp.inner_single_right, RCLike.inner_apply, one_mul,
107 lp.single_apply, Pi.single_apply, mul_comm, starRingEnd_apply] using h
108
109/-- The rotated input is literally the reference pure state on the selected
110slots and the full identity on all remaining slots, including coherences. -/
111theorem tensorFrame_fixedSlot_coefficient {C : Type*} [Fintype C] [DecidableEq C]
112 {L d : ℕ} (u : OrthonormalBasis (Fin d) ℂ (Register C))
113 (j₀ : Fin d) (S : Finset (Fin L)) (a c : Fin L → C) :
114 operatorConjugation (tensorFrame u.orthonormal L).toContinuousLinearMap
115 (fixedSlotProjector j₀ S) (lp.single 2 c 1) a =
116 ∏ i, if i ∈ S then u j₀ (a i) * star (u j₀ (c i))
117 else if a i = c i then 1 else 0 := by
118 classical
119 change tensorFrame u.orthonormal L
120 (fixedSlotProjector j₀ S ((tensorFrame u.orthonormal L).toContinuousLinearMap.adjoint
121 (lp.single 2 c 1))) a = _
122 rw [tensorFrame_apply]
123 simp only [fixedSlotProjector_apply, tensorFrame_adjoint_single_apply]
124 have he (w : Word L d) :
125 (if S ⊆ letterSlots w j₀ then star (∏ i, u (w i) (c i)) else 0) *
126 ∏ i, u (w i) (a i) =
127 ∏ i, if i ∈ S then
128 (if w i = j₀ then u (w i) (a i) * star (u (w i) (c i)) else 0)
129 else u (w i) (a i) * star (u (w i) (c i)) := by
130 have hpred : S ⊆ letterSlots w j₀ ↔ ∀ i, i ∈ S → w i = j₀ := by
131 simp only [Finset.subset_iff, mem_letterSlots]
132 have hi (i : Fin L) :
133 (if i ∈ S then
134 (if w i = j₀ then u (w i) (a i) * star (u (w i) (c i)) else 0)
135 else u (w i) (a i) * star (u (w i) (c i))) =
136 if (i ∈ S → w i = j₀) then u (w i) (a i) * star (u (w i) (c i)) else 0 := by
137 by_cases hs : i ∈ S <;> simp [hs]
138 simp only [hi, Fintype.prod_ite_zero, ← hpred]
139 split_ifs <;> simp [Finset.prod_mul_distrib, mul_comm]
140 calc
141 _ = ∑ w : Word L d, ∏ i, if i ∈ S then
142 (if w i = j₀ then u (w i) (a i) * star (u (w i) (c i)) else 0)
143 else u (w i) (a i) * star (u (w i) (c i)) := by
144 apply Finset.sum_congr rfl
145 intro w hw
146 simpa only [map_prod, starRingEnd_apply] using he w
147 _ = ∏ i, ∑ j : Fin d, if i ∈ S then
148 (if j = j₀ then u j (a i) * star (u j (c i)) else 0)
149 else u j (a i) * star (u j (c i)) :=
150 (Fintype.prod_sum (fun (i : Fin L) (j : Fin d) => if i ∈ S then
151 (if j = j₀ then u j (a i) * star (u j (c i)) else 0)
152 else u j (a i) * star (u j (c i)))).symm
153 _ = _ := by
154 apply Finset.prod_congr rfl
155 intro i hi
156 by_cases hs : i ∈ S
157 · simp [hs]
158 · simp only [hs, if_false, fullFrame_resolution]
159
160/-- Conjugating the physical Werner sandwich by the actual tensor-power
161unitary leaves the symmetric projectors fixed and rotates only its input. -/
162theorem tensorFrame_werner_sandwich {L s : ℕ}
163 {u : Fin (s + 1) → Register (Fin (s + 1))} (hu : Orthonormal ℂ u)
164 (a : Fin (s + 1)) (S : Finset (Fin L)) :
165 operatorConjugation (tensorFrame hu L).toContinuousLinearMap (wernerOutputOperator a S) =
166 (((Nat.choose (S.card + s) s : ℝ) / Nat.choose (L + s) s : ℝ) : ℂ) •
167 (projector L (s + 1) *
168 operatorConjugation (tensorFrame hu L).toContinuousLinearMap (fixedSlotProjector a S) *
169 projector L (s + 1)) := by
170 rw [wernerOutputOperator, map_smul, occupation_card, occupation_card]
171 congr 1
172 change (tensorFrame hu L).toContinuousLinearMap *
173 (projector L (s + 1) * fixedSlotProjector a S * projector L (s + 1)) *
174 (tensorFrame hu L).toContinuousLinearMap.adjoint = _
175 have h := tensorFrame_projector_commutes hu L
176 have ha := tensorFrame_adjoint_projector_commutes hu L
177 simp only [← mul_assoc]
178 rw [h]
179 simp only [mul_assoc]
180 rw [← ha]
181 rfl
182
183end Cloning.PCT